custom notify screen help[solved]
Posted: Sun Jul 30, 2017 12:46 pm
I'm trying to adjust the notify screen under certain circumstances and it's not working?
it just ignores the if statement and maintains the other notify styles
the notify is part of my achievements image map, so that when a player clicks on the achievement image they get a definition of what the achievement was for, and I just wanted to have a different style for that instance and not fully change all the notify messages -_-
I define the style in a seperate .rpy file:
Ideally I would like for a simple message to appear at true center and then fade away after a few seconds > < I'm sorry I'm not great at programming so I'm not sure why it's not working
Code: Select all
screen notify(message):
if message == ach_string:
zorder 100
style_prefix "not_ach"
frame at truecenter:
text ach_string style "not_ach"
else:
zorder 100
style_prefix "notify"
frame at notify_appear:
text message color "000000"
timer 3.25 action Hide('notify')
transform notify_appear:
on show:
alpha 0
linear .25 alpha 1.0
on hide:
linear .5 alpha 0.0
style notify_frame is empty
style notify_text is gui_text
style notify_frame:
ypos gui.notify_ypos
background Frame("gui/notify.png", gui.notify_frame_borders, tile=gui.frame_tile)
padding gui.notify_frame_borders.padding
style notify_text:
properties gui.text_properties("notify")the notify is part of my achievements image map, so that when a player clicks on the achievement image they get a definition of what the achievement was for, and I just wanted to have a different style for that instance and not fully change all the notify messages -_-
Code: Select all
if persistent.ach01:
$ ach_string = "Placeholder Text!"
hotspot (114, 295, 185, 170) action Notify(ach_string)
else:
pass
Code: Select all
init python:
style.not_ach = Style(style.default)
style.not_ach.color = "000000"
style.not_ach.size = 50