tutorials: don't show tutorial helper objects in editor

ipv6
Maikel de Vries 2016-12-21 14:09:05 +01:00
parent 478265fe96
commit 3aaf216582
4 changed files with 8 additions and 5 deletions

View File

@ -2,3 +2,4 @@
id=GUI_SpawnMenu
Version=5,4,0,0
Category=C4D_StaticBack
HideInCreator=true

View File

@ -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,9 +23,9 @@ 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
if(GetMenu())
// The interaction menu calls SetMenu(this) in the clonk,
// so after this call menu = the created menu.
if (GetMenu())
GetMenu()->~Show();
return true;
}

View File

@ -9,3 +9,4 @@ Vertices=1
VertexX=0
VertexY=-8
Rotate=1
HideInCreator=true

View File

@ -2,4 +2,5 @@
id=TutorialGuide
Version=5,4,0,0
Category=C4D_StaticBack
Picture=0,0,64,64
Picture=0,0,64,64
HideInCreator=true