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