*Poze / Video:
![[C++] Fereastra de negot cu 24 de slot-uri - Mesaj 1 - Imagine 1 [C++] Fereastra de negot cu 24 de slot-uri - Mesaj 1 - Imagine 1](https://i.imgur.com/vqI60Ai.png)
*Link download / Code:
![[C++] Fereastra de negot cu 24 de slot-uri - Mesaj 1 - Imagine 1 [C++] Fereastra de negot cu 24 de slot-uri - Mesaj 1 - Imagine 1](https://i.imgur.com/vqI60Ai.png)
Zeci de resurse Metin2 Premium - exclusive și 100% funcționale începând cu 15.99€!.
Vezi resursele Cumpără premium
deschide fisieru .py si vezi de unde citește sagetile.primus77463 scrie: ↑ Imi poti spune te rog unde ar trebui sa pun acele sageti? Am incercat in mai multe foldere din etc/ymirwork/ui, dar nu reusesc sa il gasesc pe cel care trebuie (daca acolo ar fi trebuit sa fie). De asemenea, cum as putea sa fac ca sa bag mai mult yang? Nu ma lasa sa bag mai mult de 9.999.999 si dupa nici nu ma mai lasa sa modific suma.
Multumesc!
ne poti spune si noua cum?
pai ti-a zis, vezi de unde ti le citeste si le pui acolo ..
import uiScriptLocale
ROOT = "d:/ymir work/ui/game/"
WIDTH = 282 + 180 # mai lat
HEIGHT = 167 + 70 # mai înalt
window = {
"name" : "ExchangeDialog",
"style" : ("movable", "float",),
"x" : 0,
"y" : 30,
"width" : WIDTH,
"height" : HEIGHT,
"children" :
(
{
"name" : "board",
"type" : "board",
"style" : ("attach",),
"x" : 0,
"y" : 0,
"width": WIDTH,
"height": HEIGHT,
"children" :
(
{
"name" : "TitleBar",
"type" : "titlebar",
"style" : ("attach",),
"x" : 6,
"y" : 8,
"width" : WIDTH - 14,
"color" : "yellow",
"children" :
(
{ "name" : "TitleName", "type" : "text", "x" : 0, "y" : 3, "text":uiScriptLocale.EXCHANGE_TITLE, "text_horizontal_align" : "center", "horizontal_align" : "center" },
),
},
## Owner (You)
{
"name" : "Owner",
"type" : "window",
"x" : 144 + 116,
"y" : 33,
"width" : 200,
"height" : 150,
"children" :
(
{
"name" : "Owner_Slot",
"type" : "grid_table",
"start_index" : 0,
"x" : 0,
"y" : 0,
"x_count" : 6,
"y_count" : 4,
"x_step" : 32,
"y_step" : 32,
"x_blank" : 0,
"y_blank" : 0,
"image" : "d:/ymir work/ui/public/slot_base.sub",
},
{
"name" : "Owner_Money",
"type" : "button",
"x" : 75,
"y" : 134,
"default_image" : "d:/ymir work/ui/public/parameter_slot_04.sub",
"over_image" : "d:/ymir work/ui/public/parameter_slot_04.sub",
"down_image" : "d:/ymir work/ui/public/parameter_slot_04.sub",
"children" :
(
{
"name" : "Owner_Money_Value",
"type" : "text",
"x" : 105,
"y" : 0,
"text" : "1234567",
"text_horizontal_align" : "right",
},
),
},
),
},
{
"name" : "Target_Cheque",
"type" : "image",
"x" : 13,
"y" : 164 + 32, # ajustează după cum vrei să apară
"image" : "d:/ymir work/ui/public/parameter_slot_04.sub",
"children" :
(
{
"name" : "Target_Cheque_Value",
"type" : "text",
"x" : 8,
"y" : 0,
"text" : "1234567",
"text_horizontal_align" : "left",
},
),
},
{
"type" : "text", # tipul elementului
"x" : 148, # coordonata X în pixeli (orizontal)
"y" : 139 + 32, # coordonata Y în pixeli (vertical)
"text" : "YANG", # textul care apare
"text_horizontal_align" : "left", # alinierea textului: left / center / right
},
{
"type" : "text", # tipul elementului
"x" : 148, # coordonata X în pixeli (orizontal)
"y" : 169 + 32, # coordonata Y în pixeli (vertical)
"text" : "WON", # textul care apare
"text_horizontal_align" : "left", # alinierea textului: left / center / right
},
{
"type" : "text", # tipul elementului
"x" : 100 + 190, # coordonata X în pixeli (orizontal)
"y" : 139 + 32, # coordonata Y în pixeli (vertical)
"text" : "YANG", # textul care apare
"text_horizontal_align" : "left", # alinierea textului: left / center / right
},
{
"type" : "text", # tipul elementului
"x" : 100 + 190, # coordonata X în pixeli (orizontal)
"y" : 170 + 32, # coordonata Y în pixeli (vertical)
"text" : "WON", # textul care apare
"text_horizontal_align" : "left", # alinierea textului: left / center / right
},
{
"name" : "Owner_Cheque",
"type" : "button",
"x" : 145 + 190,
"y" : 164 + 32, # ajustează după cum vrei să apară
"default_image" : "d:/ymir work/ui/public/parameter_slot_04.sub",
"over_image" : "d:/ymir work/ui/public/parameter_slot_04.sub",
"down_image" : "d:/ymir work/ui/public/parameter_slot_04.sub",
"children" :
(
{
"name" : "Owner_Cheque_Value",
"type" : "text",
"x" : 105,
"y" : 0,
"text" : "1234567",
"text_horizontal_align" : "right",
},
),
},
## Target (Enemy)
{
"name" : "Target",
"type" : "window",
"x" : 10,
"y" : 33,
"width" : 200,
"height" : 150,
"children" :
(
{
"name" : "Target_Slot",
"type" : "grid_table",
"start_index" : 0,
"x" : 0,
"y" : 0,
"x_count" : 6,
"y_count" : 4,
"x_step" : 32,
"y_step" : 32,
"x_blank" : 0,
"y_blank" : 0,
"image" : "d:/ymir work/ui/public/slot_base.sub",
},
{
"name" : "Target_Money",
"type" : "image",
"x" : 3,
"y" : 134,
"image" : "d:/ymir work/ui/public/parameter_slot_04.sub",
"children" :
(
{
"name" : "Target_Money_Value",
"type" : "text",
"x" : 8,
"y" : 0,
"text" : "1234567",
"text_horizontal_align" : "left",
},
),
},
),
},
{
"name" : "Owner_Accept_Light",
"type" : "button",
"x" : 0,
"y" : 93,
"horizontal_align" : "center",
"default_image" : "d:/ymir work/ui/game/exchange/own_arrow_01.tga",
"over_image" : "d:/ymir work/ui/game/exchange/own_arrow_01.tga",
"down_image" : "d:/ymir work/ui/game/exchange/own_arrow_03.tga",
},
{
"name" : "Target_Accept_Light",
"type" : "button",
"x" : 0,
"y" : 93 + 18,
"horizontal_align" : "center",
"default_image" : "d:/ymir work/ui/game/exchange/target_arrow_01.tga",
"over_image" : "d:/ymir work/ui/game/exchange/target_arrow_01.tga",
"down_image" : "d:/ymir work/ui/game/exchange/target_arrow_03.tga",
},
{
"name" : "Owner_Accept_Button",
"type" : "toggle_button",
"x" : 0,
"y" : 101 + 32,
"horizontal_align" : "center",
"text" : uiScriptLocale.EXCHANGE_ACCEPT,
"default_image" : "d:/ymir work/ui/public/small_button_01.sub",
"over_image" : "d:/ymir work/ui/public/small_button_02.sub",
"down_image" : "d:/ymir work/ui/public/small_button_03.sub",
},
),
},
),
}Trebuie să fii membru pentru a răspunde
Membrii pot crea subiecte noi și pot descărca resurse Metin2 Gratuit!
Te poți înregistra sau conecta rapid utilizând contul tău de Discord, Github sau Google.
Utilizatori ce navighează pe acest forum: Bing [Bot], garden_rr, Google [Bot], LeH, yahacker007 și 7 vizitatori