- Mesaj
- 234
- Çözümler
- 14
- Beğeni
- 696
- Puan
- 839
- Ticaret Puanı
- 0
Merhaba metin2 geliştiricileri dali offline shopa official gui tasarımı yapcak biri lazım ben source tarafında won eklemesini yaptım sadece gui tasarımı kaldı pytondan pek anlamam yapacak arkadaşlar iletişime geçebiliri en son paylaşmayı düşünüyorum uiscript tasarımını yaptım sande uishop.py düzenlemeler kaldı
offlineshop.py:
import uiScriptLocale
ROOT_PATH = "d:/ymir work/ui/game/premium_private_shop/"
WINDOW_WIDTH = 196
WINDOW_HEIGHT = 450
window = {
"name" : "ShopDialog",
"style" : ("movable", "float",),
"x" : SCREEN_WIDTH / 2 - WINDOW_WIDTH / 2,
"y" : SCREEN_HEIGHT / 2 - WINDOW_HEIGHT / 2,
"width" : WINDOW_WIDTH,
"height" : WINDOW_HEIGHT,
"children" :
(
{
"name" : "Board",
"type" : "board",
"x" : 0,
"y" : 0,
"width" : WINDOW_WIDTH,
"height" : WINDOW_HEIGHT,
"children" :
(
## Title
{
"name" : "TitleBar",
"type" : "titlebar",
"style" : ("attach",),
"x" : 8,
"y" : 7,
"width" : 164,
"height" : 3,
"color" : "yellow",
"children" :
(
{
"name":"TitleName",
"type":"text",
"x":83,
"y":3,
"text":"Dükkan",
"text_horizontal_align":"center"
},
),
},
## Titles
{
"name" : "TitlesBar",
"type" : "titlebar",
"style" : ("attach",),
"x" : 8,
"y" : 7,
"width" : 181,
"height" : 3,
"color" : "yellow",
"children" :
(
{
"name":"TitleName",
"type":"text",
"x":90,
"y":3,
"text":"Benim Dukkan",
"text_horizontal_align":"center"
},
),
},
##İsim Deiştirme
{
"name" : "RenameButton",
"type" : "button",
"x" : 0,
"y" : 35,
"horizontal_align" : "left",
"vertical_align" : "top",
"tooltip_text" : "İsim Değiştir",
"default_image" : ROOT_PATH + "position_icon.sub",
"over_image" : ROOT_PATH + "position_icon.sub",
"down_image" : ROOT_PATH + "position_icon.sub",
},
## ShopSign
{
"name" : "ShopSignSlot",
"type" : "image",
"x" : 2,
"y" : 35,
"horizontal_align" : "center",
"image" : ROOT_PATH + "shop_name_text_bg.sub",
"children" :
(
{
"name" : "ShopSignText",
"type" : "text",
"x" : 3,
"y" : 2,
"horizontal_align" : "left",
"text_horizontal_align" : "left",
"text" : "",
},
),
},
## PositionInfoText
{
"name" : "PositionInfoSlot",
"type" : "slotbar",
"x" : -1,
"y" : 58,
"width" : 162,
"height" : 18,
"horizontal_align" : "center",
"children" :
(
{
"name" : "PosInfoText",
"type" : "text",
"x" : 3,
"y" : 2,
"horizontal_align" : "left",
"text_horizontal_align" : "left",
"text" : "",
},
),
},
## Item Slot
{
"name" : "ItemSlot",
"type" : "grid_table",
"x" : 18,
"y" : 80,
"start_index" : 0,
"x_count" : 5,
"y_count" : 8,
"x_step" : 32,
"y_step" : 32,
"image" : "d:/ymir work/ui/public/Slot_Base.sub",
},
## TimeLeftText
{
"name" : "TimeLeftSlot",
"type" : "slotbar",
"x" : 8,
"y" : 350,
"width" : 141,
"height" : 18,
"horizontal_align" : "center",
"children" :
(
{
"name" : "HourglassImage",
"type" : "image",
"x" : -19,
"y" : 1,
"image" : "d:/ymir work/ui/shop/sandglass_icon.sub",
},
{
"name" : "TimeLeftText",
"type" : "text",
"x" : 3,
"y" : 2,
"horizontal_align" : "left",
"text_horizontal_align" : "left",
"text" : "",
},
),
},
## MoneySlot
{
"name" : "MoneySlot",
"type" : "slotbar",
"x" : 35,
"y" : 380,
"width" : 90,
"height" : 20,
"horizontal_align" : "center",
"default_image" : "d:/ymir work/ui/public/parameter_slot_03.sub",
"over_image" : "d:/ymir work/ui/public/parameter_slot_03.sub",
"down_image" : "d:/ymir work/ui/public/parameter_slot_03.sub",
"children" :
(
{
"name" : "MoneyIcon",
"type" : "image",
"x" : -18,
"y" : 2,
"image" : "d:/ymir work/ui/game/windows/money_icon.sub",
},
{
"name" : "Money",
"type" : "text",
"x" : 3,
"y" : 3,
"horizontal_align" : "right",
"text_horizontal_align" : "right",
"text" : "123456789",
},
),
},
## ChequeSlot
{
"name" : "Cheque_Slot",
"type" : "slotbar",
"x" : -51,
"y" : 380,
"width" : 24,
"height" : 20,
"horizontal_align" : "center",
"default_image" : "d:/ymir work/ui/public/parameter_slot_01.sub",
"over_image" : "d:/ymir work/ui/public/parameter_slot_01.sub",
"down_image" : "d:/ymir work/ui/public/parameter_slot_01.sub",
"children" :
(
{
"name" : "ChequeIcon",
"type" : "image",
"x" : -18,
"y" : 2,
"image":"d:/ymir work/ui/game/windows/cheque_icon.sub",
},
{
"name" : "Cheque",
"type" : "text",
"x" : 3,
"y" : 3,
"horizontal_align" : "right",
"text_horizontal_align" : "right",
"text" : "123456789",
},
),
},
## Edit Button
{
"name" : "LockButton",
"type" : "button",
"x" : 10,
"y" : 37,
"horizontal_align" : "left",
"vertical_align" : "bottom",
"tooltip_text" : "Kilitle/Kilidi Aç",
"default_image" : ROOT_PATH + "modify_button_default.sub",
"over_image" : ROOT_PATH + "modify_button_over.sub",
"down_image" : ROOT_PATH + "modify_button_down.sub",
},
## Button Refresh Money
{
"name" : "MoneySlot",
"type" : "button",
"x" :-2,
"y" : 37,
"horizontal_align" : "center",
"vertical_align" : "bottom",
"tooltip_text" : "Yang Çek",
"default_image" : ROOT_PATH + "tax_adjustment_button_default.sub",
"over_image" : ROOT_PATH + "tax_adjustment_button_over.sub",
"down_image" : ROOT_PATH + "tax_adjustment_button_down.sub",
},
## Button Close Shop
{
"name" : "CloseButton",
"type" : "button",
"x" : 65,
"y" : 37,
"horizontal_align" : "right",
"vertical_align" : "bottom",
"tooltip_text" : "Pazar Kapatma-Pazarının Yanında Pazar İsmine Tıklayınca Çalışır",
"default_image" : ROOT_PATH + "shop_close_button_default.sub",
"over_image" : ROOT_PATH + "shop_close_button_over.sub",
"down_image" : ROOT_PATH + "shop_close_button_down.sub",
},
),
},
),
}
Son düzenleme: