Advertisement
Guest User

Untitled

a guest
Mar 20th, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. init:
  2.  
  3. default tt = { }
  4.  
  5. screen travel_map:
  6.  
  7. $ idx = 0
  8. for name, v in player.places.items():
  9. if v.enabled:
  10. vbox:
  11. $ tt[idx] = Tooltip(' ')
  12. imagebutton auto "gui/horizontal_thumb_1_%s.png":
  13. xpos v.x
  14. ypos v.y
  15. action Jump('location_'+str(idx+1))
  16. hovered tt[idx].Action("foo{b}[v.name]{/b}{p}[v.legend]")
  17. text tt[idx].value:
  18. xpos v.x + 3
  19. ypos v.x + 3
  20. outlines [ (0.5, "#000", 1, 1) ]
  21. $ idx += 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement