forked from Mirrors/openclonk
tutorials: don't show tutorial helper objects in editor
parent
478265fe96
commit
3aaf216582
|
@ -2,3 +2,4 @@
|
|||
id=GUI_SpawnMenu
|
||||
Version=5,4,0,0
|
||||
Category=C4D_StaticBack
|
||||
HideInCreator=true
|
||||
|
|
|
@ -14,7 +14,7 @@ public func ObjectControl(int plr, int ctrl, int x, int y, int strength, bool re
|
|||
if (GetMenu())
|
||||
{
|
||||
var is_spawn = GetMenu()->~IsSpawnMenu();
|
||||
// unclosable menu? bad luck
|
||||
// unclosable menu? bad luck.
|
||||
if (!TryCancelMenu()) return true;
|
||||
// If contents menu, don't open new one and return.
|
||||
if (is_spawn)
|
||||
|
@ -23,8 +23,8 @@ public func ObjectControl(int plr, int ctrl, int x, int y, int strength, bool re
|
|||
// Open contents menu.
|
||||
CancelUse();
|
||||
GUI_SpawnMenu->CreateFor(this);
|
||||
// the interaction menu calls SetMenu(this) in the clonk
|
||||
// so after this call menu = the created menu
|
||||
// The interaction menu calls SetMenu(this) in the clonk,
|
||||
// so after this call menu = the created menu.
|
||||
if (GetMenu())
|
||||
GetMenu()->~Show();
|
||||
return true;
|
||||
|
|
|
@ -9,3 +9,4 @@ Vertices=1
|
|||
VertexX=0
|
||||
VertexY=-8
|
||||
Rotate=1
|
||||
HideInCreator=true
|
|
@ -3,3 +3,4 @@ id=TutorialGuide
|
|||
Version=5,4,0,0
|
||||
Category=C4D_StaticBack
|
||||
Picture=0,0,64,64
|
||||
HideInCreator=true
|
Loading…
Reference in New Issue