Community
SCI Programming => SCI Syntax Help => Topic started by: Doan Sephim on March 31, 2007, 09:49:27 PM
-
I am having difficulty with the menubar. I wanted to hide it for my introduction scene and so I coded in (MenuBar:hide()) and that works pretty well (although it still allows the player to use the menubar, it's just hidden). The problem comes in when I go to the game proper...the menubar is not there! So I tried the very likely (MenuBar:show()) because the hide worked well, but this crashes the game.
So my question is this: what is the easiest way to disable the Menubar and then reintroduce it? I tried to see how it was down with the Titlescreen script (since it is disabled there) but did not find the answer...
-
Try (MenuBar:draw())
MenuBar doesn't have a show method, that's why it crashes (see the top of the Controls.sc file).
-
Ah...just what I needed! Brilliant and simple! Thanks!
-
I'm trying to put strict type-checking into the C-style syntax I'm trying to support. That would catch this kind of problem at compile time.