Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ShopDialog ~ 80 Items for Shop
- #Developed by Samuel
- import uiScriptLocale
- window = {
- "name" : "ShopDialog",
- "x" : SCREEN_WIDTH - 400,
- "y" : 10,
- "style" : ("movable", "float",),
- "width" : 345,
- "height" : 328,
- "children" :
- (
- {
- "name" : "board",
- "type" : "board",
- "style" : ("attach",),
- "x" : 0,
- "y" : 0,
- "width" : 345,
- "height" : 328,
- "children" :
- (
- ## Title
- {
- "name" : "TitleBar",
- "type" : "titlebar",
- "style" : ("attach",),
- "x" : 8,
- "y" : 8,
- "width" : 330,
- "color" : "gray",
- "children" :
- (
- { "name":"TitleName", "type":"text", "x":168, "y":4 "text":uiScriptLocale.SHOP_TITLE, "text_horizontal_align":"center" },
- ),
- },
- ## Item Slot
- {
- "name" : "ItemSlot",
- "type" : "grid_table",
- "x" : 12,
- "y" : 34,
- "start_index" : 0,
- "x_count" : 10,
- "y_count" : 8,
- "x_step" : 32,
- "y_step" : 32,
- "image" : "d:/ymir work/ui/public/Slot_Base.sub",
- },
- ## Buy
- {
- "name" : "BuyButton",
- "type" : "toggle_button",
- "x" : 42,
- "y" : 295,
- "width" : 61,
- "height" : 21,
- "text" : uiScriptLocale.SHOP_BUY,
- "default_image" : "d:/ymir work/ui/public/middle_button_01.sub",
- "over_image" : "d:/ymir work/ui/public/middle_button_02.sub",
- "down_image" : "d:/ymir work/ui/public/middle_button_03.sub",
- },
- ## Sell
- {
- "name" : "SellButton",
- "type" : "toggle_button",
- "x" : 240,
- "y" : 295,
- "width" : 61,
- "height" : 21,
- "text" : uiScriptLocale.SHOP_SELL,
- "default_image" : "d:/ymir work/ui/public/middle_button_01.sub",
- "over_image" : "d:/ymir work/ui/public/middle_button_02.sub",
- "down_image" : "d:/ymir work/ui/public/middle_button_03.sub",
- },
- ## Close
- {
- "name" : "CloseButton",
- "type" : "button",
- "x" : 0,
- "y" : 295,
- "horizontal_align" : "center",
- "text" : uiScriptLocale.PRIVATE_SHOP_CLOSE_BUTTON,
- "default_image" : "d:/ymir work/ui/public/large_button_01.sub",
- "over_image" : "d:/ymir work/ui/public/large_button_02.sub",
- "down_image" : "d:/ymir work/ui/public/large_button_03.sub",
- },
- ),
- },
- ),
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement