I have a screen named "gold_overlay";
I add on my label like this :
Code: Select all
config.overlay_screens.append('gold_overlay')
Sometime i want to delete the overlay, the doc say its a list so i try "remove"
Code: Select all
$ config.overlay_screens.remove('gold_overlay')
The ambition behind this is to actualize the screen.
For text and object it actualize auto yes but for picture its not the case.
Code: Select all
screen gold_overlay():
add "interface.png" align (0.5, 0)
add "credit.png" zoom 0.3 align (0.13, 0.02)
text '{color=#000000}[inventaire_joueur.credit]{/color}' align (0.18, 0.03)
hbox:
xsize 120+joueur.pm_max/4 ysize 30
add "mana.png" zoom 0.15
bar value AnimatedValue(joueur.pm_actu, range=joueur.pm_max) ysize 15
align (0.25, 0.045)
hbox:
xsize 120+joueur.pv_max/4 ysize 30
add "hp.png" zoom 0.15
bar value AnimatedValue(joueur.pv_actu, range=joueur.pv_max) ysize 15
align (0.25, 0.022)
text '[joueur.pm_actu]/[joueur.pm_max]' align (0.28, 0.045) size 14
text '[joueur.pv_actu]/[joueur.pv_max]' align (0.28, 0.022) size 14
if inventaire_ok:
textbutton "Inventaire" style "lilbutton" text_style "lilbutton_text" action Jump("inventaire") align (0.45, 0.03)
if inventaire_avance:
textbutton "zzz" action Jump("dormir") align (0.52, 0.03)
if calendrier.statut == 'jour':
textbutton "attendre la nuit" action Jump("attendre_nuit") align (0.61, 0.03)
text calendrier.affichage_cal(lang) align (0.80, 0.03)
text '[calendrier.statut]' align (0.71, 0)
zorder 100
by default they dont actualize.
Is the remove/append on config.overlay, the good choice ?
Thanks,
just for the record (and i guess you notified this, english is not my first langage)