Author Topic: Menubar stuff  (Read 4194 times)

0 Members and 1 Guest are viewing this topic.

Offline Doan Sephim

Menubar stuff
« 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...


Artificial Intelligence Competition

Offline troflip

Re: Menubar stuff
« Reply #1 on: March 31, 2007, 11:00:36 PM »
Try (MenuBar:draw())

MenuBar doesn't have a show method, that's why it crashes (see the top of the Controls.sc file).

Check out my website: http://icefallgames.com
Groundhog Day Competition

Offline Doan Sephim

Re: Menubar stuff
« Reply #2 on: March 31, 2007, 11:05:29 PM »
Ah...just what I needed! Brilliant and simple! Thanks!

Offline troflip

Re: Menubar stuff
« Reply #3 on: March 31, 2007, 11:59:46 PM »
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.
Check out my website: http://icefallgames.com
Groundhog Day Competition


SMF 2.0.19 | SMF © 2021, Simple Machines
Simple Audio Video Embedder

Page created in 0.059 seconds with 23 queries.