Files
mtgodot-poc/assets/uiscript/uiscript/exchangedialog.py
T
shenandClaude Sonnet 5 2277b1dd60 Vendor Metin2 assets (assets/ + bgm/)
Committed to this self-hosted private repo so a clone builds on any machine
without a separate asset sync. Copyrighted Ymir art — do not publish or
redistribute. 54198 files, ~2.2 GB. asset_index.txt / assets.zip stay
gitignored (derived: bake_asset_index.gd / pack-assets.sh).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013EJxkHiNKS4kybHS3XKyAJ
2026-08-31 20:04:32 +09:00

217 lines
3.9 KiB
Python

import uiScriptLocale
ROOT = "d:/ymir work/ui/game/"
window = {
"name" : "ExchangeDialog",
"x" : 0,
"y" : 0,
"style" : ("movable", "float",),
"width" : 282,
"height" : 167,
"children" :
(
{
"name" : "board",
"type" : "board",
"style" : ("attach",),
"x" : 0,
"y" : 0,
"width" : 282,
"height" : 167,
"children" :
(
## Title
{
"name" : "TitleBar",
"type" : "titlebar",
"style" : ("attach",),
"x" : 8,
"y" : 8,
"width" : 266,
"color" : "gray",
"children" :
(
{ "name":"TitleName", "type":"text", "x":133, "y":3, "text":uiScriptLocale.EXCHANGE_TITLE, "text_horizontal_align":"center" },
),
},
## MiddleBar
{
"name" : "Middle_Bar",
"type" : "image",
"x" : 139,
"y" : 31,
"image" : ROOT + "windows/middlebar.sub",
},
## Owner
{
"name" : "Owner",
"type" : "window",
"x" : 144,
"y" : 33,
"width" : 130,
"height" : 130,
"children" :
(
{
"name" : "Owner_Slot",
"type" : "grid_table",
"start_index" : 0,
"x" : 0,
"y" : 0,
"x_count" : 4,
"y_count" : 3,
"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" : 0,
"y" : 102,
#"image" : "d:/ymir work/ui/public/parameter_slot_02.sub",
"default_image" : "d:/ymir work/ui/public/parameter_slot_02.sub",
"over_image" : "d:/ymir work/ui/public/parameter_slot_02.sub",
"down_image" : "d:/ymir work/ui/public/parameter_slot_02.sub",
"children" :
(
{
"name" : "Owner_Money_Value",
"type" : "text",
"x" : 59,
"y" : 2,
"text" : "1234567",
"text_horizontal_align" : "right",
},
),
},
{
"name" : "Owner_Accept_Light",
"type" : "button",
"x" : 62,
"y" : 101,
"default_image" : "d:/ymir work/ui/game/windows/accept_button_off.sub",
"over_image" : "d:/ymir work/ui/game/windows/accept_button_off.sub",
"down_image" : "d:/ymir work/ui/game/windows/accept_button_on.sub",
},
{
"name" : "Owner_Accept_Button",
"type" : "toggle_button",
"x" : 85,
"y" : 101,
"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",
},
),
},
## Target
{
"name" : "Target",
"type" : "window",
"x" : 10,
"y" : 33,
"width" : 130,
"height" : 130,
"children" :
(
{
"name" : "Target_Slot",
"type" : "grid_table",
"start_index" : 0,
"x" : 0,
"y" : 0,
"x_count" : 4,
"y_count" : 3,
"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" : 0,
"y" : 102,
"image" : "d:/ymir work/ui/public/parameter_slot_02.sub",
"children" :
(
{
"name" : "Target_Money_Value",
"type" : "text",
"x" : 59,
"y" : 2,
"text" : "1234567",
"text_horizontal_align" : "right",
},
),
},
{
"name" : "Target_Accept_Light",
"type" : "button",
"x" : 62,
"y" : 101,
"default_image" : "d:/ymir work/ui/game/windows/accept_button_off.sub",
"over_image" : "d:/ymir work/ui/game/windows/accept_button_off.sub",
"down_image" : "d:/ymir work/ui/game/windows/accept_button_on.sub",
},
),
},
),
},
),
}