Advertisement
Guest User

Untitled

a guest
May 20th, 2019
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.90 KB | None | 0 0
  1.     fixed:
  2.         $ i = 0
  3.         area (540, 154, 560, 350)
  4.         viewport id "argit_vp":
  5.             if labe != "shar_shopping":
  6.                 mousewheel True
  7.             vbox:
  8.                 spacing 12
  9.                 for p in reversed(argit_inventory.inv):
  10.                     if p[0].type == argit_page:
  11.                         fixed:
  12.                             add "images/UI/shops/argit/item.png"
  13.                             ysize 47
  14.  
  15.                             button:
  16.                                 background "images/UI/shops/argit/Item info.png"
  17.                                 pos (6, 5)
  18.                                 xysize (37, 37)
  19.                                 action Return(p[0].long)
  20.                                 hover_sound "Audio/Sounds/hover.ogg"
  21.                                 activate_sound "Audio/Sounds/Click.ogg"
  22.  
  23.                             text p[0].name style "shop" pos (62, 15)
  24.                             text "{font=Casanova_Scotia.otf}" + str(p[0].price) + "{size=10} {color=#ffe81b}UC{/color}{/size}{/font}" style "shop" size 15 pos (380, 18) xalign 1.0
  25.                             if p[1] > 1:
  26.                                 imagebutton:
  27.                                     pos (395, 3)
  28.                                     idle "images/UI/shops/argit/add to cart.png"
  29.                                     hover_sound "Audio/Sounds/hover.ogg"
  30.                                     activate_sound "Audio/Sounds/Click.ogg"
  31.                                     action Return(["take", p[0]])
  32.                             else:
  33.                                 add "images/UI/shops/argit/Sold_Out.png" pos (285, 2)
  34.                             $ i += 1
  35.         if i > 6:
  36.             vbar:
  37.                 value YScrollValue("argit_vp")
  38.                 base_bar "#E1E1E1"
  39.                 thumb "#CB5D08"
  40.                 pos (549, 5)
  41.                 xysize (10, 325)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement