I've defined a screen which shows when a textbutton is clicked on. That works fine, but just for user-friendliness I want it to also be shown when the textbutton is hovered and hidden when it's unhovered, to give the player a quick overview. The unhovering bit works fine, but when hovered the screen flickers several times a second like a flickery thing with a degree from Flickering University.
Having looked for a few hours online and finding nothing that helped, I'm asking here. Here's the relevant code.
I'm using Renpy 7.3.5.606. Thanks in advance for any help.
Having looked for a few hours online and finding nothing that helped, I'm asking here. Here's the relevant code.
Code:
screen todo_list():
$ itodo = 0
frame:
xpos 1120
ypos 200
xsize 160
ysize 300
text "{size=15}Your tasks:{/size}" outlines[ (absolute(1), "#000", absolute(0), absolute(0)) ]
vbox:
null height 30
xalign 0.5
spacing 5
if ntasks_to_do > 0:
for itodo_1 in range(0,ntasks_per_week):
$ areastyle = area_name[itasklocationlist[itodo_1]]
$ screentask = tasktypelist[itodo]
$ newcolour1 = taskcolourlist[itodo]
if not ftaskdone[itodo_1]:
textbutton "{color=#[newcolour1]}[screentask]{/color}" action SetVariable("itodo", itodo_1) style style.button[areastyle] at truecenter:
text_outlines [ (absolute(1), "#000", absolute(0), absolute(0)) ]
hovered Show("display_task") # <<<----- screen is shown, but flickers
unhovered Hide("display_task")
$ itodo += 1
else: