Remove unnecessary screen variable

This commit is contained in:
Gouvernathor 2023-11-16 01:11:38 +01:00
parent c64635aace
commit b222860bec

View File

@ -392,14 +392,12 @@ screen map_screen_characters():
tag map tag map
zorder 5 zorder 5
$ UI_xpos_offset = 0
#Hermione #Hermione
if states.her.unlocked: if states.her.unlocked:
if states.her.map_location == "forest": # Mark forest event. if states.her.map_location == "forest": # Mark forest event.
add "interface/achievements/glow.webp" pos (UI_xpos_offset+her_map_xpos, UI_ypos_offset+her_map_ypos) align (0.5, 0.5) zoom 0.15 alpha 0.5 at rotate_circular add "interface/achievements/glow.webp" pos (her_map_xpos, UI_ypos_offset+her_map_ypos) align (0.5, 0.5) zoom 0.15 alpha 0.5 at rotate_circular
imagebutton: imagebutton:
xpos +UI_xpos_offset +her_map_xpos xpos her_map_xpos
ypos +UI_ypos_offset +her_map_ypos ypos +UI_ypos_offset +her_map_ypos
xalign 0.5 xalign 0.5
yalign 0.5 yalign 0.5
@ -412,7 +410,7 @@ screen map_screen_characters():
#Luna #Luna
if states.lun.unlocked: if states.lun.unlocked:
imagebutton: imagebutton:
xpos UI_xpos_offset+ lun_map_xpos xpos lun_map_xpos
ypos UI_ypos_offset+ lun_map_ypos ypos UI_ypos_offset+ lun_map_ypos
xalign 0.5 xalign 0.5
yalign 0.5 yalign 0.5
@ -425,7 +423,7 @@ screen map_screen_characters():
#Astoria #Astoria
if states.ast.unlocked: if states.ast.unlocked:
imagebutton: imagebutton:
xpos UI_xpos_offset +ast_map_xpos xpos ast_map_xpos
ypos UI_ypos_offset +ast_map_ypos ypos UI_ypos_offset +ast_map_ypos
xalign 0.5 xalign 0.5
yalign 0.5 yalign 0.5
@ -438,7 +436,7 @@ screen map_screen_characters():
#Susan #Susan
if states.sus.unlocked: if states.sus.unlocked:
imagebutton: imagebutton:
xpos UI_xpos_offset +sus_map_xpos xpos sus_map_xpos
ypos UI_ypos_offset +sus_map_ypos ypos UI_ypos_offset +sus_map_ypos
xalign 0.5 xalign 0.5
yalign 0.5 yalign 0.5
@ -451,7 +449,7 @@ screen map_screen_characters():
#Cho #Cho
if states.cho.unlocked: if states.cho.unlocked:
imagebutton: imagebutton:
xpos UI_xpos_offset +cho_map_xpos xpos cho_map_xpos
ypos UI_ypos_offset +cho_map_ypos ypos UI_ypos_offset +cho_map_ypos
xalign 0.5 xalign 0.5
yalign 0.5 yalign 0.5
@ -464,7 +462,7 @@ screen map_screen_characters():
#Snape #Snape
if states.sna.unlocked: if states.sna.unlocked:
imagebutton: imagebutton:
xpos UI_xpos_offset +sna_map_xpos xpos sna_map_xpos
ypos UI_ypos_offset +sna_map_ypos ypos UI_ypos_offset +sna_map_ypos
xalign 0.5 xalign 0.5
yalign 0.5 yalign 0.5
@ -477,7 +475,7 @@ screen map_screen_characters():
#Tonks #Tonks
if states.ton.unlocked: if states.ton.unlocked:
imagebutton: imagebutton:
xpos UI_xpos_offset +ton_map_xpos xpos ton_map_xpos
ypos UI_ypos_offset +ton_map_ypos ypos UI_ypos_offset +ton_map_ypos
xalign 0.5 xalign 0.5
yalign 0.5 yalign 0.5