Notify (2,3,4?)
Posted: Sun Jan 07, 2018 3:40 pm
Hello! Thx for attention. I have a question.
May I use several Notify screens?
I use Notify for buttons. And for each button the coordinates for the notify are necessary.
I try copy my code for each but doesnt work
Actually to me it isn't important will be it the notify or just the text. But "hovered" work only with "Notify" for me.
Any tips?
Sry for bad eng.
May I use several Notify screens?
Code: Select all
screen button:
imagebutton:
hovered Notify("Wait")
idle "Buttons/waitidle.png"
hover "Buttons/waithover.png"
action Function (updateTime)
xalign 0.5 ypos 0.87 xpos 0.96
I try copy my code for each but doesnt work
Code: Select all
screen notify(message):
zorder 100
style_prefix "notify"
frame at notify_appear:
text "[message!tq]"
timer 2 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:
xalign 0.5 ypos 0.82 xpos 0.97
background None #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")
color "#fff"
size 40
font "fonts/myfont.ttf"
Actually to me it isn't important will be it the notify or just the text. But "hovered" work only with "Notify" for me.
Any tips?
Sry for bad eng.