Lemma Soft Forums

Supporting creators of visual novels and story-based games since 2003.


Visit our new games list, blog aggregator, IRC, and wiki.
Activation problem? Email [email protected]
It is currently Wed Jun 19, 2013 9:46 am

All times are UTC - 5 hours [ DST ]




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
PostPosted: Tue Aug 24, 2010 8:06 am 
Regular
User avatar

Joined: Thu Feb 25, 2010 9:22 pm
Posts: 28
Location: Sweden
Projects: Demon Lord & Yuki Academy
Seems to be a common problem and yet. I can not find answers.
I have a few image buttons in the game for a ingame menu. And they do not want to disappear when the text window disappear. What do I have to do for that to happen?

Code:

init python:

def toggle_skipping():
config.skipping = not config.skipping

#def toggle_auto():
#config.auto = not config.auto

show_in_game_menu = True

def in_game_menu():

if show_in_game_menu:

# to save typing
ccinc = renpy.curried_call_in_new_context

ui.hbox(xpos=400, ypos=439)
ui.imagebutton("UI/menu/quit.png", "UI/menu/quit_down.png", clicked=ui.callsinnewcontext("_quit_prompt"))
ui.imagebutton("UI/menu/menu.png", "UI/menu/menu_down.png", clicked=ui.callsinnewcontext("_main_menu_prompt"))
ui.imagebutton("UI/menu/skip.png", "UI/menu/skip_down.png", clicked=toggle_skipping)
#ui.imagebutton("UI/menu/auto.png", "UI/menu/auto_down.png", clicked=toggle_auto)
ui.imagebutton("UI/menu/options.png", "UI/menu/options_down.png", clicked=ccinc("_game_menu_preferences"))
ui.imagebutton("UI/menu/save.png", "UI/menu/save_down.png", clicked=ccinc("_game_menu_save"))
ui.imagebutton("UI/menu/load.png", "UI/menu/load_down.png", clicked=ccinc("_game_menu_load"))
ui.imagebutton("UI/menu/q_save.png", "UI/menu/q_save_down.png", clicked=ccinc("_quick_save"))
ui.imagebutton("UI/menu/q_load.png", "UI/menu/q_load_down.png", clicked=ui.jumps("_quick_load"))

ui.close()

config.overlay_functions.append(in_game_menu)

_________________
I'm a GameMaker!
My Portfolio: http://www.bluepipestudio.com


Top
 Profile Send private message  
 
PostPosted: Wed Aug 25, 2010 5:16 am 
Veteran
User avatar

Joined: Thu Oct 18, 2007 3:43 am
Posts: 298
Nice avatar.

_________________
- Erik B
http://www.visualnovelty.com


Top
 Profile Send private message  
 
PostPosted: Fri Aug 27, 2010 7:01 am 
Regular
User avatar

Joined: Tue Jan 05, 2010 3:44 am
Posts: 58
Location: New York
@Sin
Quote:
Nice avatar.

That made me laugh.. alot. XD

@Sehaf
1.)You should know that Etna avatars can be found pretty much everywhere. She's pretty popular. You might wanna change it.
2.) Try posting "click here" You're much more likely to get help.
I'd move this thread myself, but I'm not a high enough level yet, still gotta kill some more pidgeys.

_________________
"Never argue with an idiot. They will bring you down to their level and beat you to death with their experience."

Current Status="A brilliantly lazy man"


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Protected by Anti-Spam ACP
Powered by phpBB® Forum Software © phpBB Group