how do you hide UI buttons...?
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
- Snowflower
- Bishie Fangirl
- Posts: 814
- Joined: Sat Jan 01, 2011 11:24 pm
- Completed: Idol Crush
- Projects: Shugojin!, RockRobin (openmodewriter), your highness
- Soundcloud: jenna-yeon
- Location: Orange County, CA
- Contact:
how do you hide UI buttons...?
Hello,
it will be extremely helpful if anyone can tell me a way to hide the ui buttons for
a. the splashscreen
b. the CG scene.
it will be extremely helpful if anyone can tell me a way to hide the ui buttons for
a. the splashscreen
b. the CG scene.

Completed: Idol Crush | WIP: your highness | Hiatus: Shugojin!| Follow Me on Twitter | Subscribe to YouTube
your highness @ 102k as of 2/13
- Black_Saber
- Regular
- Posts: 74
- Joined: Wed Jul 14, 2010 4:56 am
- Completed: cafe minigame
- Projects: Beach Restaurant
- Location: Indonesia
- Contact:
Re: how do you hide UI buttons...?
just a guess, but looks like here is the answer for your question number 2 : http://lemmasoft.renai.us/forums/viewto ... f=8&t=8933
I'm not really know about splashscreen, but you can see this topic : http://lemmasoft.renai.us/forums/viewto ... f=8&t=8382
I'm not really know about splashscreen, but you can see this topic : http://lemmasoft.renai.us/forums/viewto ... f=8&t=8382
"*cackle*cackle*! In short, it's all about cleverly using the gaps between jobs to play. If it goes too far, it can turn to laziness. However, people only become mature when they learn to balance work with pleasure. Simply put, if all you care about is work all the time, you're not fully mature." - Gaap (Umineko no Naku Koro ni)
- MaiMai
- Yandere
- Posts: 1757
- Joined: Sat Mar 21, 2009 6:04 pm
- Completed: [Phase Shift]
- Projects: [ None ]
- Organization: Paper Stars
- Tumblr: maiscribbles
- Deviantart: maiscribble
- Location: USA, Southern California
- Contact:
Re: how do you hide UI buttons...?
It's a default feature of Ren Py' to hide UI buttons for CG scenes by simply pressing 'H'
- Snowflower
- Bishie Fangirl
- Posts: 814
- Joined: Sat Jan 01, 2011 11:24 pm
- Completed: Idol Crush
- Projects: Shugojin!, RockRobin (openmodewriter), your highness
- Soundcloud: jenna-yeon
- Location: Orange County, CA
- Contact:
Re: how do you hide UI buttons...?
Eh? I don't think your first link is relevant to my question... I'm not looking for the cg gallery button. I need to HIDE the skip, save, load, config buttons I made for the text window during CGs. It's not working.Black_Saber wrote:just a guess, but looks like here is the answer for your question number 2 : http://lemmasoft.renai.us/forums/viewto ... f=8&t=8933
I'm not really know about splashscreen, but you can see this topic : http://lemmasoft.renai.us/forums/viewto ... f=8&t=8382
The second link, I tried numerous times, trying to hide it, but it fails everytime.
even though I set is as false before splash, it shows up. False doesnt do anything for me.
can you defaultly (?) hide it during CGs without clicking H? I've seen some games without the ui buttons during CGs automatically.MaiMai wrote:It's a default feature of Ren Py' to hide UI buttons for CG scenes by simply pressing 'H'

Completed: Idol Crush | WIP: your highness | Hiatus: Shugojin!| Follow Me on Twitter | Subscribe to YouTube
your highness @ 102k as of 2/13
- Snowflower
- Bishie Fangirl
- Posts: 814
- Joined: Sat Jan 01, 2011 11:24 pm
- Completed: Idol Crush
- Projects: Shugojin!, RockRobin (openmodewriter), your highness
- Soundcloud: jenna-yeon
- Location: Orange County, CA
- Contact:
Re: how do you hide UI buttons...?
nevermind, I found a solution.

Completed: Idol Crush | WIP: your highness | Hiatus: Shugojin!| Follow Me on Twitter | Subscribe to YouTube
your highness @ 102k as of 2/13
- Black_Saber
- Regular
- Posts: 74
- Joined: Wed Jul 14, 2010 4:56 am
- Completed: cafe minigame
- Projects: Beach Restaurant
- Location: Indonesia
- Contact:
Re: how do you hide UI buttons...?
[QUOTE=Snowflower]I need to HIDE the skip, save, load, config buttons I made for the text window during CGs. It's not working.[/QUOTE]
you didn't said that >.>
and I thought you're gonna hide some CG picture in a button :/
you didn't said that >.>
and I thought you're gonna hide some CG picture in a button :/
"*cackle*cackle*! In short, it's all about cleverly using the gaps between jobs to play. If it goes too far, it can turn to laziness. However, people only become mature when they learn to balance work with pleasure. Simply put, if all you care about is work all the time, you're not fully mature." - Gaap (Umineko no Naku Koro ni)
Re: how do you hide UI buttons...?
can I ask you how you did it? I want the same for pauses in the game, I have this pause of like 5 sec and the buttons doesn't look that good floating in there XDDD (sorry for my english btw x__x)Snowflower wrote:nevermind, I found a solution.
- Snowflower
- Bishie Fangirl
- Posts: 814
- Joined: Sat Jan 01, 2011 11:24 pm
- Completed: Idol Crush
- Projects: Shugojin!, RockRobin (openmodewriter), your highness
- Soundcloud: jenna-yeon
- Location: Orange County, CA
- Contact:
Re: how do you hide UI buttons...?
For the cgs?
May I ask what code you have for defining your buttons?
May I ask what code you have for defining your buttons?

Completed: Idol Crush | WIP: your highness | Hiatus: Shugojin!| Follow Me on Twitter | Subscribe to YouTube
your highness @ 102k as of 2/13
Re: how do you hide UI buttons...?
I'm using something like this:
For now I'm "resolving" this issue with the Hide button for cgs, but still looks a little weird when I have a pause during 5 secs (for school bell's sound effect) :/
Code: Select all
ui.hbox(xpos=0.96, ypos=0.75, xanchor='right', yanchor='bottom')
ui.textbutton("{size=-7}Hide{/size}", clicked=ccinc("_hide_windows"), xminimum=40)
ui.textbutton("{size=-7}Skip{/size}", clicked=toggle_skipping, xminimum=40)
ui.textbutton("{size=-7}Q.Save{/size}", clicked=renpy.curried_call_in_new_context('_quick_save'), xminimum=40)
ui.textbutton("{size=-7}Q.Load{/size}", clicked=ui.jumps("_quick_load"), xminimum=40)
ui.textbutton("{size=-7}Prefs{/size}", clicked=ccinc("_game_menu_preferences"), xminimum=40)
ui.close()- Snowflower
- Bishie Fangirl
- Posts: 814
- Joined: Sat Jan 01, 2011 11:24 pm
- Completed: Idol Crush
- Projects: Shugojin!, RockRobin (openmodewriter), your highness
- Soundcloud: jenna-yeon
- Location: Orange County, CA
- Contact:
Re: how do you hide UI buttons...?
Code: Select all
# Give us some space on the right side of the screen.
style.window.right_padding = 100
def toggle_skipping():
config.skipping = not config.skipping
show_button_game_menu = True
def button_game_menu():
if show_button_game_menu == True:
# to save typing
ccinc = renpy.curried_call_in_new_context
ui.vbox(xpos=0.97, ypos=0.96, xanchor='right', yanchor='bottom')
ui.textbutton("Skip", clicked=toggle_skipping, xminimum=75)
ui.textbutton("Save", clicked=ccinc("_game_menu_save"), xminimum=75)
ui.textbutton("Load", clicked=ccinc("_game_menu_load"), xminimum=75)
ui.textbutton("Prefs", clicked=ccinc("_game_menu_preferences"), xminimum=75)
ui.close()
config.overlay_functions.append(button_game_menu)
Code: Select all
show_button_game_menu = FalseThat was my issue

Completed: Idol Crush | WIP: your highness | Hiatus: Shugojin!| Follow Me on Twitter | Subscribe to YouTube
your highness @ 102k as of 2/13
- Aleema
- Lemma-Class Veteran
- Posts: 2677
- Joined: Fri May 23, 2008 2:11 pm
- Organization: happyB
- Tumblr: happybackwards
- Contact:
Re: how do you hide UI buttons...?
Damn it, we need to edit the wiki but I CAN'T IT'S BROKEN.
To make your buttons only appear for the dialogue window, say:
INSTEAD OF:
To make your buttons only appear for the dialogue window, say:
Code: Select all
config.window_overlay_functions.append(button_game_menu)Code: Select all
config.overlay_functions.append(button_game_menu)Who is online
Users browsing this forum: No registered users

