Skip to content

Commit

Permalink
tutorials: don't show tutorial helper objects in editor
Browse files Browse the repository at this point in the history
  • Loading branch information
MDT-Maikel committed Dec 21, 2016
1 parent 478265f commit 3aaf216
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
id=GUI_SpawnMenu
Version=5,4,0,0
Category=C4D_StaticBack
HideInCreator=true
8 changes: 4 additions & 4 deletions planet/Tutorials.ocf/PlayGround.ocs/System.ocg/SpawnMenu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ Vertices=1
VertexX=0
VertexY=-8
Rotate=1
HideInCreator=true
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 3aaf216

Please sign in to comment.