- Sep 30, 2018
- 102
- 70
Hõla todos,
have a problem with an UI Screen
The problem is that my function listOfSpells[0].useSpell() does some datas update and finish with refreshing UI and then call screen UI.
What I don't understand is why renpy detects an infinite loop since I have not yet used the textbutton ?
If I replace my function by another which don't call screen ui, no problem.
have a problem with an UI Screen
Python:
screen ui:
zorder 105
.../...
# WEAPONS
if len(Hero.weapons)>0:
textbutton "{b}" + findWeaponName(Hero.weapons[0]) + "{/b}" xpos 815 ypos 940:
action listOfSpells[0].useSpell()
What I don't understand is why renpy detects an infinite loop since I have not yet used the textbutton ?
If I replace my function by another which don't call screen ui, no problem.
Last edited: