Sorry to be a pain, but I'm unable to figure out why my hovered code doesn't work after the update. It seemed to be working in version 6.16.5, but now, I can't get this screen to get any hovered code to work. Images are not changing, and text is not appearing. I'm calling this screen using ShowMenu(), so maybe that has something to do with it? Hovered works on other screens but not this one:
Code: Select all
screen people:
tag case_files
modal True
zorder 0
default tt = Tooltip("")
default tt1 = Tooltip("")
default tt2 = Tooltip("")
#timer 0.1 repeat True action If(minutes2 == -1 and timerGameOver == True, true=[Play("sound", buttonSFX), SetVariable ("inTestimony", False), SetVariable("timerGameOver", False), SetVariable("showTimerChange", False), Hide("testimony"), Hide("nextButton"), Hide("backButton"), Jump("gameOver")], false=[SetVariable ("tick", "tock"), countdownTimer()])
frame:
background "#0008"
xfill True
yfill True
add "GUI/timer_back.png" xpos timerBGX ypos timerBGY
fixed:
xpos timerX
ypos timerY
xmaximum 80
ymaximum 40
if minutes2 > minuteWarning:
text "[minutes2:0.0f]:[seconds2:04.1f]" xalign 1.0 color "#fff" size fontSize
elif minutes2 > -1:
text "[minutes2:0.0f]:[seconds2:04.1f]" xalign 1.0 color "#f00" size fontSize
else:
text "0:0.0" xalign 1.0 color "#f00" size fontSize at blink
add "GUI/confidence_back.png" xpos confidenceBGX ypos confidenceBGY
fixed:
xpos confidenceX
ypos confidenceY
bar:
value AnimatedValue(confidence, range=confidenceMax)
xmaximum 150
ymaximum 50
left_bar Frame("GUI/HealthBar_full.png", 50, 0)
right_bar Frame("GUI/HealthBar_empty.png", 50, 0)
thumb None
thumb_shadow None
fixed:
imagebutton idle "GUI/caseFilesButton_idle.png" hover "GUI/caseFilesButton_hover.png" xanchor 'left' yanchor 'top' xpos 0.871 ypos topMarginMenu action [Play("sound", buttonSFX), Hide("people"), Show("case_files")]
imagebutton idle "GUI/cancelButton_idle.png" hover "GUI/cancelButton_hover.png" xpos 0.0 ypos 1.0 xanchor 'left' yanchor 'bottom' action [Play("sound", buttonSFX), Return()]
#textbutton "Examine" xpos rightMargin ypos bottomMargin xanchor 'right' yanchor 'bottom' action Return(True)
frame:
background "#0000"
xfill True
yfill True
xpadding 100
ypadding 120
xalign 0.5
yalign 0.5
vbox:
grid 5 2:
spacing 14
for i in range(len(caseFiles.personnelList)):
imagebutton:
idle caseFiles.getPersonnelImage(i)
hover caseFiles.getPersonnelImage(i)
action [ Play("sound", buttonSFX), SetVariable("selectionNumber", i), SetVariable("selectedAnItem", True), SetVariable("showCaseFilesTypeScreen", people), Hide("case_files"), Show("evidence_detail") ]
hovered [tt.Action(i), tt1.Action(caseFiles.personnelList[i].name), tt2.Action(caseFiles.personnelList[i].description) ]
for i in range (10 - len(caseFiles.personnelList)):
image "CaseNotes/clear.png"
#text "[tt.value]"
vbox:
yoffset 30
xoffset 20
spacing 20
xmaximum 600
text "{b}[tt1.value]{/b}"
text "[tt2.value]"
