- Jan 1, 2023
- 33
- 4
hello the navigation system works great, but there is one thing that bothers me.
when i click on the map from home, the travelUI shows all the buttons
For example, I select the park and the movescreen appears
However, all buttons of the travelUI only disappear the first time.
if i now go to the park and back to the map, for example, i can click on every button of the travelUI and they do not disappear
.
I have tried the
[/CODE]
to change to show but then i get a str error. i have also tried
action [Show("traveilUI"), Show("("moveScreen", "park")] but then the same error occurs only if I use ShowMenu at the end the error does not occur. but the traveilui is not visible.
when i click on the map from home, the travelUI shows all the buttons
Python:
screen travelUI():
imagebutton:
xalign 0.51 yalign 0.61 idle "images/citybuttons/home_idle.png" hover "images/citybuttons/home_hover.png"
# While be not sensitive (so not clickable) if there's no travel value, from the
# current location to "home" ; what mean that it's where we are.
sensitive not travelTime[currentLocation]["home"] is None
# A screen to select how to move, passing it the expected destination.
if currentLocation == "home":
action Jump("homeHub")
else:
action ShowMenu("moveScreen", "home")
imagebutton:
xalign 0.65 yalign 0.40 idle "images/citybuttons/park_idle.png" hover "images/citybuttons/park_hover.png"
sensitive not travelTime[currentLocation]["park"] is None
if currentLocation == "park":
action Jump("parkHub")
else:
action ShowMenu("moveScreen", "park")
For example, I select the park and the movescreen appears
However, all buttons of the travelUI only disappear the first time.
if i now go to the park and back to the map, for example, i can click on every button of the travelUI and they do not disappear
.
I have tried the
Python:
else:
action ShowMenu("moveScreen", "park")
to change to show but then i get a str error. i have also tried
action [Show("traveilUI"), Show("("moveScreen", "park")] but then the same error occurs only if I use ShowMenu at the end the error does not occur. but the traveilui is not visible.