Scapest
Member
- Jul 8, 2017
- 100
- 134
I'm trying to show a message when I click in a Imagebutton.
or in a menu
But every time, it shows the message or the menu, with a black screen, how can I show the message or the menu, with the background that already exists at the moment?
Do I need to call the screen again? or create a new one?
Code:
imagebutton:
xpos 1272 ypos 261
focus_mask True
idle "Hud/overworldmark_idle.png"
hover "Hud/overworldmark_hover.png"
if unclickable == False:
if time_of_day in ('MORNING', 'AFTERNOON'):
action Hide("overworld_map"), Jump("college") hovered ShowTransient("label_college") unhovered Hide("label_college")
else:
action SetVariable("show_college_closed_message", True), Jump("college_closed_message")
label college_closed_message:
$ unclickable = True
if show_college_closed_message:
n "College is closed right now."
$ unclickable = False
jump overworld_map
You don't have permission to view the spoiler content.
Log in or register now.
or in a menu
Code:
label mcbedroom_menu:
if daytime<4:
menu:
"Rest":
#"Afternoon": #imagebutton transformar em label os horários
if daytime < 2: # Verifica se é possível avançar para a tarde
$daytime = 2
jump change_timename
#"Evening": #imagebutton
if daytime < 3: # Verifica se é possível avançar para a noite
$daytime = 3
jump change_timename
#"Night": #imagebutton
if daytime < 4: # Verifica se é possível avançar para a noite
$daytime = 4
jump change_timename
"Go to sleep": #imagebutton
if daytime == 4: # Verifica se é noite para permitir ir dormir
$lastplace="mc_room"
jump start_of_next_day
else:
jump change_timename
else:
menu:
"Go to sleep": #imagebutton
if daytime == 4: # Verifica se é noite para permitir ir dormir
$lastplace="mc_room"
You don't have permission to view the spoiler content.
Log in or register now.
But every time, it shows the message or the menu, with a black screen, how can I show the message or the menu, with the background that already exists at the moment?
Do I need to call the screen again? or create a new one?