Jump to content

Recommended Posts

Hello guys I have a problem with my yang in the trade window when I click to add some yang to the trade nothing happens no little window pops up for yang. The syserr is empty,

exchangewindow.py

Spoiler

#By ImTweet™,Have Fun
import uiScriptLocale

ROOT = "d:/ymir work/ui/game/"

window = {
    "name" : "ExchangeDialog",

    "x" : 0,
    "y" : 0,

    "style" : ("movable", "float",),

    "width" : 450,
    "height" : 200,

    "children" :
    (
        {
            "name" : "board",
            "type" : "board",
            "style" : ("attach",),

            "x" : 0,
            "y" : 0,

            "width" : 450,
            "height" : 200,

            "children" :
            (
                ## Title
                {
                    "name" : "TitleBar",
                    "type" : "titlebar",
                    "style" : ("attach",),

                    "x" : 8,
                    "y" : 8,
 
                    "width" : 435,
                    "color" : "gray",

                    "children" :
                    (
                        { "name":"TitleName", "type":"text", "x":215, "y":3, "text":uiScriptLocale.EXCHANGE_TITLE, "text_horizontal_align":"center" },
                    ),
                },

                ## MiddleBar
                #{
                #    "name" : "Middle_Bar",
                #    "type" : "image",

                #    "x" : 200,
                #    "y" : 31,

                #    "image" : ROOT + "windows/middlebar.sub",
                #},

                ## Owner
                {
                    "name" : "Owner",
                    "type" : "window",

                    "x" : 249,
                    "y" : 33,

                    "width" : 200,
                    "height" : 130,

                    "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" : 370,
                    "y" : 168,

                    #"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" : 206,
                    "y" : 70,
               
                    "default_image" : "d:/ymir work/ui/game/new_trade/accept_buttonv1_off.sub",
                    "over_image" : "d:/ymir work/ui/game/new_trade/accept_buttonv1_off.sub",
                    "down_image" : "d:/ymir work/ui/game/new_trade/accept_buttonv1_on.sub",
                },
                {
                    "name" : "Owner_Accept_Button",
                    "type" : "toggle_button",

                    "x" : 180,
                    "y" : 167,

                    "text" : uiScriptLocale.EXCHANGE_ACCEPT,

                    "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",
                },

                ## Target
                {
                    "name" : "Target",
                    "type" : "window",

                    "x" : 10,
                    "y" : 33,

                    "width" : 200,
                    "height" : 130,

                    "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" : 0,
                            "y" : 135,

                            "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" : 196,
                                        "y" : 73,
 
                                        "default_image" : "d:/ymir work/ui/game/new_trade/accept_buttonv2_off.sub",
                                        "over_image" : "d:/ymir work/ui/game/new_trade/accept_buttonv2_off.sub",
                                        "down_image" : "d:/ymir work/ui/game/new_trade/accept_buttonv2_on.sub",
                                },
                    ),
                },
            ),
        },
    ),
}

Please someone help :)

Thanks in advance

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.