LethalArms

Metin2 exchangedialog_new.py

Oct 10th, 2022
933
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 5.21 KB | Source Code | 0 0
  1. import uiScriptLocale
  2.  
  3. ROOT = "d:/ymir work/ui/game/"
  4. FACE_SLOT_FILE = "d:/ymir work/ui/game/windows/box_face.sub"
  5.  
  6. window = {
  7.     "name" : "ExchangeDialog",
  8.     "x" : 0,
  9.     "y" : 0,
  10.     "style" : ("movable", "float",),
  11.     "width" : 400 + 42,
  12.     "height" : 200 + 50 + 90,
  13.     "children" :
  14.     (
  15.         {
  16.             "name" : "ExchangeLogs",
  17.             "type" : "thinboard",
  18.             "style" : ("attach",),
  19.             "x" : 0,
  20.             "y" : 235,
  21.             "width" : 392,
  22.             "height" : 80,
  23.             "horizontal_align" : "center",
  24.         },
  25.        
  26.         {
  27.             "name" : "board",
  28.             "type" : "board",
  29.             "style" : ("attach",),
  30.             "x" : 0,
  31.             "y" : 0,
  32.             "width" : 400 + 42,
  33.             "height" : 200 + 50,
  34.             "children" :
  35.             (
  36.                 {
  37.                     "name" : "TitleBar",
  38.                     "type" : "titlebar",
  39.                     "style" : ("attach",),
  40.                     "x" : 8,
  41.                     "y" : 8,
  42.                     "width" : 384 + 42,
  43.                     "color" : "gray",
  44.                     "children" :
  45.                     (
  46.                         {
  47.                             "name" : "TitleName",
  48.                             "type" : "text",
  49.                             "x" : 192,
  50.                             "y" : 3,
  51.                             "text" : uiScriptLocale.EXCHANGE_TITLE,
  52.                             "text_horizontal_align" : "center"
  53.                         },
  54.                     ),
  55.                 },
  56.                 {
  57.                     "name" : "FaceOwner_Image",
  58.                     "type" : "image",
  59.                     "x" : 200 + 38 + 11 - 6,
  60.                     "y" : 39,
  61.                     "image" : "d:/ymir work/ui/game/windows/face_warrior.sub"
  62.                 },
  63.                 {
  64.                     "name" : "FaceOwner_Slot",
  65.                     "type" : "image",
  66.                     "x" : 200 + 38 + 7 - 6,
  67.                     "y" : 34,
  68.                     "image" : FACE_SLOT_FILE,
  69.                 },
  70.                 {
  71.                     "name" : "own_Text",
  72.                     "type" : "text",
  73.                     "x" : 200 + 38 + 7 - 6 + 32 + 32,
  74.                     "y" : 32 + 5,
  75.                     "r" : 0.8500,
  76.                     "g" : 0.2500,
  77.                     "b" : 0.2500,
  78.                     "text" : uiScriptLocale.NEW_EXCHANGE_YOU,
  79.                     "text_horizontal_align" : "center"
  80.                 },
  81.                 {
  82.                     "name" : "FaceTarget_Image",
  83.                     "type" : "image",
  84.                     "x" : 11 + 4,
  85.                     "y" : 39,
  86.                     "image" : "d:/ymir work/ui/game/windows/face_warrior.sub"
  87.                 },
  88.                 {
  89.                     "name" : "FaceTarget_Slot",
  90.                     "type" : "image",
  91.                     "x" : 7 + 4,
  92.                     "y" : 34,
  93.                     "image" : FACE_SLOT_FILE,
  94.                 },
  95.                 {
  96.                     "name" : "target_LvText",
  97.                     "type" : "text",
  98.                     "x" : 7 + 4 + 32 + 32 + 7,
  99.                     "y" : 32 + 5,
  100.                     "r" : 0.0,
  101.                     "g" : 0.8500,
  102.                     "b" : 0.0,
  103.                     "text" : "Lv. 1",
  104.                     "text_horizontal_align" : "center"
  105.                 },
  106.                 {
  107.                     "name" : "target_NameText",
  108.                     "type" : "text",
  109.                     "x" : 7 + 4 + 32 + 32 + 15 + 45,
  110.                     "y" : 32 + 5,
  111.                     "text" : "Character Name",
  112.                     "text_horizontal_align" : "center"
  113.                 },
  114.                 {
  115.                     "name" : "Owner",
  116.                     "type" : "window",
  117.                     "x" : 200 + 38,
  118.                     "y" : 33 + 50 + 2,
  119.                     "width" : 200,
  120.                     "height" : 150 + 36,
  121.                     "children" :
  122.                     (
  123.                         {
  124.                             "name" : "Owner_Slot",
  125.                             "type" : "grid_table",
  126.                             "start_index" : 0,
  127.                             "x" : 0,
  128.                             "y" : 25,
  129.                             "x_count" : 6,
  130.                             "y_count" : 4,
  131.                             "x_step" : 32,
  132.                             "y_step" : 32,
  133.                             "x_blank" : 0,
  134.                             "y_blank" : 0,
  135.                             "image" : "d:/ymir work/ui/public/slot_base.sub",
  136.                         },
  137.                         {
  138.                             "name" : "Owner_Money",
  139.                             "type" : "button",
  140.                             "x" : 0,
  141.                             "y" : 1,
  142.                             "default_image" : "d:/ymir work/ui/public/parameter_slot_04.sub",
  143.                             "over_image" : "d:/ymir work/ui/public/parameter_slot_04.sub",
  144.                             "down_image" : "d:/ymir work/ui/public/parameter_slot_04.sub",
  145.                             "children" :
  146.                             (
  147.                                 {
  148.                                     "name" : "Owner_Money_Value",
  149.                                     "type" : "text",
  150.                                     "x" : 112,
  151.                                     "y" : 2,
  152.                                     "text" : "1234567",
  153.                                     "text_horizontal_align" : "right",
  154.                                 },
  155.                             ),
  156.                         },
  157.                     ),
  158.                 },
  159.                 {
  160.                     "name" : "Target",
  161.                     "type" : "window",
  162.                     "x" : 10,
  163.                     "y" : 33 + 50 + 2,
  164.                     "width" : 200,
  165.                     "height" : 150 + 36,
  166.                     "children" :
  167.                     (
  168.                         {
  169.                             "name" : "Target_Slot",
  170.                             "type" : "grid_table",
  171.                             "start_index" : 0,
  172.                             "x" : 0,
  173.                             "y" : 25,
  174.                             "x_count" : 6,
  175.                             "y_count" : 4,
  176.                             "x_step" : 32,
  177.                             "y_step" : 32,
  178.                             "x_blank" : 0,
  179.                             "y_blank" : 0,
  180.                             "image" : "d:/ymir work/ui/public/slot_base.sub",
  181.                         },
  182.                         {
  183.                             "name" : "Target_Money",
  184.                             "type" : "image",
  185.                             "x" : 0,
  186.                             "y" : 1,
  187.                             "image" : "d:/ymir work/ui/public/parameter_slot_04.sub",
  188.                             "children" :
  189.                             (
  190.                                 {
  191.                                     "name" : "Target_Money_Value",
  192.                                     "type" : "text",
  193.                                     "x" : 112,
  194.                                     "y" : 2,
  195.                                     "text" : "1234567",
  196.                                     "text_horizontal_align" : "right",
  197.                                 },
  198.                             ),
  199.                         },
  200.                     ),
  201.                 },
  202.                 {
  203.                     "name" : "Owner_Accept_Button",
  204.                     "type" : "toggle_button",
  205.                     "text" : " ",
  206.                     "x" : 33 + 50 + 2 + 25 + 1 + 64 + 30,
  207.                     "y" : 200 + 18 - 96 + 38,
  208.                     "default_image" : "d:/ymir work/ui/game/exchange/own_arrow_01.tga",
  209.                     "over_image" : "d:/ymir work/ui/game/exchange/own_arrow_02.tga",
  210.                     "down_image" : "d:/ymir work/ui/game/exchange/own_arrow_03.tga",
  211.                 },
  212.                 {
  213.                     "name" : "Target_Accept_Button",
  214.                     "type" : "toggle_button",
  215.                     "text" : " ",
  216.                     "x" : 33 + 50 + 2 + 25 + 1 + 64 + 30,
  217.                     "y" : 200 + 18 - 96 + 38 + 18,
  218.                     "default_image" : "d:/ymir work/ui/game/exchange/target_arrow_01.tga",
  219.                     "over_image" : "d:/ymir work/ui/game/exchange/target_arrow_01.tga",
  220.                     "down_image" : "d:/ymir work/ui/game/exchange/target_arrow_03.tga",
  221.                 },
  222.             ),
  223.         },
  224.     ),
  225. }
Tags: metin2
Advertisement
Add Comment
Please, Sign In to add comment