Code: Select all
hide screen quick_menu
show screen quick_menu
Code: Select all
hide screen quick_menu
show screen quick_menu
Code: Select all
#Hide the quick menu
$ quick_menu = False
#Show the quick menu
$ quick_menu = True
Thanks, Imperf3kt! I tried implementing this in my game, but it still shows up unfortunatelyImperf3kt wrote: ↑Sat Apr 06, 2019 3:06 am The quick menu is shown via a variableCode: Select all
#Hide the quick menu $ quick_menu = False #Show the quick menu $ quick_menu = True
Code: Select all
label start:
stop music fadeout 5.6
$ pcname = "Chelsea"
$ quick_menu = False
window hide
centered "Three years ago, you and your parents were in a terrible car accident while on vacation. Miraculously, you survived - but your parents were not so lucky." with fade
centered "With no other relatives to speak of, you spent a year getting your life back together." with fade
Code: Select all
screen quick_menu():
imagemap:
ground "gui/quick-menu-inactive.png"
hover "gui/quick-menu-active.png"
selected_idle "gui/quick-menu-active.png"
hotspot (552, 720, 148, 59) action Rollback()
hotspot (711, 720, 177, 59) action ShowMenu('history')
hotspot (899, 720, 146, 59) action Skip()
hotspot (1057, 720, 150, 59) action Preference("auto-forward", "toggle")
hotspot (1217, 720, 160, 59) action ShowMenu('load')
hotspot (1388, 720, 160, 59) action ShowMenu('save')
hotspot (1558, 720, 174, 59) action ShowMenu('preferences')
## This code ensures that the quick_menu screen is displayed in-game, whenever
## the player has not explicitly hidden the interface.
init python:
config.overlay_screens.append("quick_menu")
default quick_menu = False
style quick_button is default
style quick_button_text is button_text
style quick_button:
properties gui.button_properties("quick_button")
style quick_button_text:
properties gui.button_text_properties("quick_button")
Code: Select all
init python:
config.overlay_screens.append("quick_menu")
That was good thinking!! I checked the NVL screen and it doesn't seem to be using the quick menu. It shows up throughout the game even when I hide the textbox
Code: Select all
## NVL screen ##################################################################
##
## This screen is used for NVL-mode dialogue and menus.
##
## https://www.renpy.org/doc/html/screen_special.html#nvl
screen nvl(dialogue, items=None):
window:
style "nvl_window"
has vbox:
spacing gui.nvl_spacing
## Displays dialogue in either a vpgrid or the vbox.
if gui.nvl_height:
vpgrid:
cols 1
yinitial 1.0
use nvl_dialogue(dialogue)
else:
use nvl_dialogue(dialogue)
## Displays the menu, if given. The menu may be displayed incorrectly if
## config.narrator_menu is set to True, as it is above.
for i in items:
textbutton i.caption:
action i.action
style "nvl_button"
add SideImage() xalign 0.0 yalign 1.0
screen nvl_dialogue(dialogue):
for d in dialogue:
window:
id d.window_id
fixed:
yfit gui.nvl_height is None
if d.who is not None:
text d.who:
id d.who_id
text d.what:
id d.what_id
## This controls the maximum number of NVL-mode entries that can be displayed at
## once.
define config.nvl_list_length = gui.nvl_list_length
style nvl_window is default
style nvl_entry is default
style nvl_label is say_label
style nvl_dialogue is say_dialogue
style nvl_button is button
style nvl_button_text is button_text
style nvl_window:
xfill True
yfill True
background "gui/nvl.png"
padding gui.nvl_borders.padding
style nvl_entry:
xfill True
ysize gui.nvl_height
style nvl_label:
xpos gui.nvl_name_xpos
xanchor gui.nvl_name_xalign
ypos gui.nvl_name_ypos
yanchor 0.0
xsize gui.nvl_name_width
min_width gui.nvl_name_width
text_align gui.nvl_name_xalign
style nvl_dialogue:
xpos gui.nvl_text_xpos
xanchor gui.nvl_text_xalign
ypos gui.nvl_text_ypos
xsize gui.nvl_text_width
min_width gui.nvl_text_width
text_align gui.nvl_text_xalign
layout ("subtitle" if gui.nvl_text_xalign else "tex")
style nvl_thought:
xpos gui.nvl_thought_xpos
xanchor gui.nvl_thought_xalign
ypos gui.nvl_thought_ypos
xsize gui.nvl_thought_width
min_width gui.nvl_thought_width
text_align gui.nvl_thought_xalign
layout ("subtitle" if gui.nvl_text_xalign else "tex")
style nvl_button:
properties gui.button_properties("nvl_button")
xpos gui.nvl_button_xpos
xanchor gui.nvl_button_xalign
style nvl_button_text:
properties gui.button_text_properties("nvl_button")
Nothing seems off, it was worth a shot. I wonder if there's a way to hide the imagemap instead of the whole screen. Kind of like a cheat? Something like this but I'm not sure how to go about editing or implementing it. Note that article is really old so It would probably need to be updated.
I believe what we're seeing is part of the quick menu.... If what we were seeing was the textbox, wouldn't we be seeing the whole textbox?Matalla wrote: ↑Sat Apr 06, 2019 8:23 pm I downloaded it and I see two problems that can actually be summarized in one: what you (and me) are watching, is not the quick menu. It's just part of the textbox.
First, edit your textbox image and delete that part.
Second, the inactive image on your imagemap is fully transparent. Substitute it for the image you want when the buttons are not hovered.
Code: Select all
init python:
config.overlay_screens.append("quick_menu")
I'm just really confused and don't understand what I need to do. Any chance you could zip up & share the game file folder of my game that you tweaked so I could take a look to better understand how you edited the images & got it to work?Matalla wrote: ↑Sat Apr 06, 2019 9:36 pm Hiding the quick menu is the next step, before you must know if the quick menu is indeed there. If the image of the textbox includes the image of the buttons, you can't really hide them. You could quite posible have been hiding the quick menu all the time, but you would still see the buttons in the textbox.
I just did a quick edit to your images and throw some "$ quick_menu = True" and "$ quick_menu = False" here and there and it works, believe me. Did you delete or coment these lines? Do it and try again.Code: Select all
init python: config.overlay_screens.append("quick_menu")
Code: Select all
screen quick_menu():
zorder 100
imagemap:
ground "gui/quick-menu-inactive.png"
hover "gui/quick-menu-active.png"
selected_idle "gui/quick-menu-selected.png"
hotspot (552, 720, 148, 59) action Rollback()
hotspot (711, 720, 177, 59) action ShowMenu('history')
hotspot (899, 720, 146, 59) action Skip()
hotspot (1057, 720, 150, 59) action Preference("auto-forward", "toggle")
hotspot (1217, 720, 160, 59) action ShowMenu('load')
hotspot (1388, 720, 160, 59) action ShowMenu('save')
hotspot (1558, 720, 174, 59) action ShowMenu('preferences')
## This code ensures that the quick_menu screen is displayed in-game, whenever
## the player has not explicitly hidden the interface.
#init python:
# config.overlay_screens.append("quick_menu")
default quick_menu = False
Code: Select all
scene bg Home with fade
show screen quick_menu
"You just finished putting the rest of your stuff away, and have decided to relax on the nice, warm, and comfy couch."
show Relaxed Happy at right with moveinright
hide screen quick_menu
pcname "*Yawn*"
show Relaxed Blank at right
pcname "Ugh, I can't believe I start school tomorrow..."
show screen quick_menu
"Your phone vibrates."
Code: Select all
# Use the quick menu.
if say:
use quick_menu
Users browsing this forum: Bing [Bot]