Advertisement
Hijiri

Untitled

Feb 2nd, 2019
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.40 KB | None | 0 0
  1. screen file_slots:
  2.     viewport:
  3.         scrollbars "vertical"
  4.         xpos 708
  5.         ypos 111
  6.         mousewheel True
  7.         #side_yfill True
  8.  
  9.         vbox:
  10.             spacing 20
  11.             for i in range(0, 30):
  12.  
  13.                 $ slot = i + 1
  14.  
  15.                 button:
  16.                     action FileAction(slot)
  17.                     style "slott_button"
  18.  
  19.                     has hbox
  20.  
  21.                     spacing 2
  22.  
  23.                     text FileTime(slot, format=_("{#file_time}%b %d "), empty=_("Empty Slot")):
  24.                         style "slot_time_text"
  25.  
  26.                     text FileSaveName(slot):
  27.                         style "slot_name_text"
  28.  
  29.                     key "save_delete" action FileDelete(slot)
  30.                     tooltip ""
  31.         $ tooltip = GetTooltip()
  32.  
  33.         if tooltip:
  34.             #This isnt working
  35.             add FileScreenshot(slot) xpos 23 ypos 191
  36.  
  37. init -2:
  38.     style slott_button is button:
  39.         xminimum 500
  40.         ymaximum 60
  41.         left_padding 10
  42.         top_padding 20
  43.     style slott_button background "gui/button/slot_ground_background.png"
  44.     style slott_button idle_background "gui/button/slot_idle_background.png"
  45.     style slott_button hover_background "gui/button/slot_hover_background.png"
  46.     style slott_button focus_mask "gui/button/slot_ground_background.png"
  47.     style slott_button hover_sound "audio/sfx/hover.ogg"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement