AVA2 cross-platform client parity baseline

This commit is contained in:
shen
2026-10-06 00:53:42 -07:00
commit 9f748eb05a
3271 changed files with 1275528 additions and 0 deletions
@@ -0,0 +1,214 @@
import localeInfo
ROOT = "d:/ymir work/ui/game/offlineshop/"
ROOT_PRIVATESHOP = "d:/ymir work/ui/game/privatesearch/"
window = {
"name" : "OfflineShopBuilder",
"x" : 0,
"y" : 0,
"style" : ("float","movable", "animate",),
"width" : 184*2-15+195,
"height" : 295+26+30,
"children" :
(
{
"name" : "Board",
"type" : "board_with_titlebar",
"style" : ("attach",),
"x" : 0,
"y" : 0,
"width" : 184*2-15+195,
"height" : 295+26+30,
"title" : localeInfo.OFFLINE_SHOP_TITLE,
"children" :
(
{
"name" : "MainWindow",
"type" : "thinboard",
"x" : 10,
"y" : 30,
"width" : 184*2-15+175,
"height" : 295+15,
"children" :
(
{
"name" : "NameSlot",
"type" : "slotbar",
"x" : 5,
"y" : 5,
"width" : 250,
"height" : 25,
"children" :
(
{
"name" : "NameLine",
"type" : "editline",
"x" : 3,
"y" : 5,
"width" : 250,
"height" : 20,
"input_limit" : 35,
"text" : "....",
},
),
},
{
"name" : "Money_Slot",
"type" : "slotbar",
"x" : 5+250+10,
"y" : 5,
"width" : 90 + 97,
"height" : 25,
"children" :
(
{
"name":"Money_Icon",
"type":"image",
"x":3,
"y":3,
"image":"d:/ymir work/ui/game/windows/money_icon.tga",
},
{
"name" : "Money",
"type" : "text",
"x" : 3,
"y" : 5,
"horizontal_align" : "right",
"text_horizontal_align" : "right",
"text" : "0",
"fontname" : "Tahoma:15",
},
),
},
{
"name" : "FirstButton",
"type" : "button",
"x" : 5+250+10+90+97+40,
"y": 5,
"width" : 61,
"height" : 21,
"default_image" : ROOT+"decoration_0.tga",
"over_image" : ROOT+"decoration_0.tga",
"down_image" : ROOT+"decoration_1.tga",
#"default_image" : ROOT+"ok_0.tga",
#"over_image" : ROOT+"ok_1.tga",
#"down_image" : ROOT+"ok_0.tga",
"tooltip_text" : localeInfo.OK,
},
{
"name" : "SecondButton",
"type" : "button",
"x" : 5+250+10+90+97+5,
"y": 5,
"width" : 61,
"height" : 21,
"default_image" : ROOT+"close_shop_0.tga",
"over_image" : ROOT+"close_shop_0.tga",
"down_image" : ROOT+"close_shop_1.tga",
#"default_image" : ROOT+"cancel_0.tga",
#"over_image" : ROOT+"cancel_1.tga",
#"down_image" : ROOT+"cancel_0.tga",
"tooltip_text" : localeInfo.CANCEL,
},
{
"name" : "RenderTarget",
"type" : "render_target",
"x" : 10,
"y" : 34 + 30-20,
"width" : 196,
"height" : 8*32, #306
"index" : 1,
"children" :
(
{
"name" : "title_back_btn",
"type" : "button",
"x" : 5,
"y" : 30,
"default_image" : ROOT_PRIVATESHOP + "private_first_prev_btn_01.sub",
"over_image" : ROOT_PRIVATESHOP + "private_first_prev_btn_02.sub",
"down_image" : ROOT_PRIVATESHOP + "private_first_prev_btn_01.sub",
#"default_image" : ROOT+"left_direction_0.tga",
#"over_image" : ROOT+"left_direction_1.tga",
#"down_image" : ROOT+"left_direction_0.tga",
},
{
"name" : "title_next_btn",
"type" : "button",
"x" : 175,
"y" : 32,
"default_image" : ROOT_PRIVATESHOP + "private_last_next_btn_01.sub",
"over_image" : ROOT_PRIVATESHOP + "private_last_next_btn_02.sub",
"down_image" : ROOT_PRIVATESHOP + "private_last_next_btn_01.sub",
#"default_image" : ROOT+"right_direction_0.tga",
#"over_image" : ROOT+"right_direction_1.tga",
#"down_image" : ROOT+"right_direction_0.tga",
},
{
"name" : "shop_back_btn",
"type" : "button",
"x" : 10,
"y" : 150,
"default_image" : ROOT_PRIVATESHOP + "private_first_prev_btn_01.sub",
"over_image" : ROOT_PRIVATESHOP + "private_first_prev_btn_02.sub",
"down_image" : ROOT_PRIVATESHOP + "private_first_prev_btn_01.sub",
#"default_image" : ROOT+"left_direction_0.tga",
#"over_image" : ROOT+"left_direction_1.tga",
#"down_image" : ROOT+"left_direction_0.tga",
},
{
"name" : "shop_next_btn",
"type" : "button",
"x" : 165,
"y" : 150,
"default_image" : ROOT_PRIVATESHOP + "private_last_next_btn_01.sub",
"over_image" : ROOT_PRIVATESHOP + "private_last_next_btn_02.sub",
"down_image" : ROOT_PRIVATESHOP + "private_last_next_btn_01.sub",
#"default_image" : ROOT+"right_direction_0.tga",
#"over_image" : ROOT+"right_direction_1.tga",
#"down_image" : ROOT+"right_direction_0.tga",
},
),
},
{
"name" : "ItemSlot",
"type" : "grid_table",
"x" : 5+196,
"y" : 34 + 25-20,
"start_index" : 0,
"x_count" : 5,
"y_count" : 8,
"x_step" : 32,
"y_step" : 32,
"image" : "d:/ymir work/ui/public/Slot_Base.sub",
},
{
"name" : "ItemSlot2",
"type" : "grid_table",
"x" : 5+196+(32*5),
"y" : 34 + 25-20,
"start_index" : 0,
"x_count" : 5,
"y_count" : 8,
"x_step" : 32,
"y_step" : 32,
"image" : "d:/ymir work/ui/public/Slot_Base.sub",
},
),
},
),
},
),
}
@@ -0,0 +1,148 @@
import localeInfo
ROOT = "d:/ymir work/ui/game/offlineshop/"
ROOT_PRIVATESHOP = "d:/ymir work/ui/game/privatesearch/"
window = {
"name" : "OfflineShopDialog",
"x" : 0,
"y" : 0,
"style" : ("float","movable", "animate",),
"width" : 184*2-15+195,
"height" : 295+26+30,
"children" :
(
{
"name" : "Board",
"type" : "board_with_titlebar",
"style" : ("attach",),
"x" : 0,
"y" : 0,
"width" : 184*2-15+195,
"height" : 295+26+30,
"title" : localeInfo.OFFLINE_SHOP_TITLE,
"children" :
(
{
"name" : "MainWindow",
"type" : "thinboard",
"x" : 10,
"y" : 30,
"width" : 184*2-15+175,
"height" : 295+15,
"children" :
(
{
"name" : "RenderTarget",
"type" : "render_target",
"x" : 5,
"y" : 5,
"width" : 196,
"height" : 8*32,
"index" : 1,
},
## Item Slot
{
"name" : "ItemSlot",
"type" : "grid_table",
"x" : 5+196,
"y" : 5,
"start_index" : 0,
"x_count" : 5,
"y_count" : 8,
"x_step" : 32,
"y_step" : 32,
"image" : "d:/ymir work/ui/public/Slot_Base.sub",
},
{
"name" : "ItemSlot2",
"type" : "grid_table",
"x" : 5+196+(32*5),
"y" : 5,
"start_index" : 0,
"x_count" : 5,
"y_count" : 8,
"x_step" : 32,
"y_step" : 32,
"image" : "d:/ymir work/ui/public/Slot_Base.sub",
},
{
"name" : "See_Slot",
"type" : "slotbar",
"x" : 120,
"y" : 270,
"width" : 300,
"height" : 25,
"children" :
(
{
"name":"see_icon",
"type":"image",
"x":3,
"y":3,
"image":"d:/ymir work/ui/game/offlineshop/eyes.tga",
},
{
"name" : "see",
"type" : "text",
"x" : 23,
"y" : 5,
"horizontal_align" : "center",
"text_horizontal_align" : "center",
"text" : "0",
"fontname" : "Tahoma:15",
},
),
},
#{
# "name" : "slot",
# "type" : "image",
# "x" : 130,
# "y" : 263,
# "image" : ROOT+"slot.tga",
# "children":
# (
# {
# "name" : "real_time_image",
# "type" : "image",
# "x" : 50,
# "y" : 7,
# "image" : ROOT+"real_time.tga",
# },
#
# {
# "name" : "see",
# "type" : "text",
# "x" : 80,
# "y" : 2,
# "text" : "3432",
# "fontname" : "Tahoma:32",
# },
#
# {
# "name" : "all_count_image",
# "type" : "image",
# "x" : 150,
# "y" : 10,
# "image" : ROOT+"eyes.tga",
# },
#
# {
# "name" : "see_all",
# "type" : "text",
# "x" : 185,
# "y" : 2,
# "text" : "3432",
# "fontname" : "Tahoma:32",
# },
#
# ),
#},
),
},
),
},
),
}
@@ -0,0 +1,92 @@
import localeInfo
window = {
"name" : "OfflineShopInputDialog",
"x" : 0,
"y" : 0,
"style" : ("movable", "float", "animate",),
"width" : 300,
"height" : 90,
"children" :
(
# board
{
"name" : "board",
"type" : "board_with_titlebar",
"style" : ("attach",),
"x" : 0,
"y" : 0,
"width" : 300,
"height" : 90,
"title" : localeInfo.OFFLINESHOP_INPUT_DIALOG_TITLE,
"children":
(
{
"name" : "InputSlot",
"type" : "slotbar",
"x" : -3,
"y" : 35,
"width" : 235,
"height" : 15,
"horizontal_align" : "center",
"children" :
(
{
"name" : "InputValue",
"type" : "editline",
"x" : 1,
"y" : 1,
"width" : 235,
"height" : 15,
"input_limit" : 32,
},
),
},
{
"name" : "AgreeButton",
"type" : "button",
"x" : 79,
"y" : 55,
"default_image" : "d:/ymir work/ui/public/middle_button_01.sub",
"over_image" : "d:/ymir work/ui/public/middle_button_02.sub",
"down_image" : "d:/ymir work/ui/public/middle_button_03.sub",
"text" : localeInfo.OFFLINESHOP_ACCEPT,
},
{
"name" : "CancelButton",
"type" : "button",
"x" : 156,
"y" : 55,
"default_image" : "d:/ymir work/ui/public/middle_button_01.sub",
"over_image" : "d:/ymir work/ui/public/middle_button_02.sub",
"down_image" : "d:/ymir work/ui/public/middle_button_03.sub",
"text" : localeInfo.OFFLINESHOP_CANCEL,
},
),
},
),
}
@@ -0,0 +1,420 @@
import localeInfo
ROOT = "d:/ymir work/ui/game/offlineshop/"
ROOT_PRIVATESHOP = "d:/ymir work/ui/game/privatesearch/"
window = {
"name" : "OfflineShopBuilder",
"x" : 0,
"y" : 0,
"style" : ("movable", "float", "animate",),
"width" : 184*2-15+209,
"height" : 295+26+20+60,
"children" :
(
{
"name" : "Board",
"type" : "board_with_titlebar",
"style" : ("attach",),
"x" : 0,
"y" : 0,
"width" : 184*2-15+209,
"height" : 295+26+20+60,
"title" : localeInfo.OFFLINE_SHOP_TITLE,
"children" :
(
{
"name" : "MainWindow",
"type" : "thinboard",
"x" : 10,
"y" : 30,
"width" : 184*2-15+191,
"height" : 295+26+20+20,
"children" :
(
{
"name" : "ItemSlot",
"type" : "grid_table",
"x" : 196+17,
"y" : 34 + 30-20,
"start_index" : 0,
"x_count" : 5,
"y_count" : 8,
"x_step" : 32,
"y_step" : 32,
"image" : "d:/ymir work/ui/public/Slot_Base.sub",
},
{
"name" : "ItemSlot2",
"type" : "grid_table",
"x" : 196+17+(32*5),
"y" : 34 + 30-20,
"start_index" : 0,
"x_count" : 5,
"y_count" : 8,
"x_step" : 32,
"y_step" : 32,
"image" : "d:/ymir work/ui/public/Slot_Base.sub",
},
{
"name" : "RenderTarget",
"type" : "render_target",
"x" : 10,
"y" : 34 + 30-20,
"width" : 196,
"height" : 8*32, #306
"index" : 1,
"children" :
(
{
"name" : "title_back_btn",
"type" : "button",
"x" : 5,
"y" : 30,
"default_image" : ROOT_PRIVATESHOP + "private_first_prev_btn_01.sub",
"over_image" : ROOT_PRIVATESHOP + "private_first_prev_btn_02.sub",
"down_image" : ROOT_PRIVATESHOP + "private_first_prev_btn_01.sub",
#"default_image" : ROOT+"left_direction_0.tga",
#"over_image" : ROOT+"left_direction_1.tga",
#"down_image" : ROOT+"left_direction_0.tga",
},
{
"name" : "title_next_btn",
"type" : "button",
"x" : 175,
"y" : 32,
#"default_image" : ROOT+"right_direction_0.tga",
#"over_image" : ROOT+"right_direction_1.tga",
#"down_image" : ROOT+"right_direction_0.tga",
"default_image" : ROOT_PRIVATESHOP + "private_last_next_btn_01.sub",
"over_image" : ROOT_PRIVATESHOP + "private_last_next_btn_02.sub",
"down_image" : ROOT_PRIVATESHOP + "private_last_next_btn_01.sub",
},
{
"name" : "shop_back_btn",
"type" : "button",
"x" : 10,
"y" : 150,
"default_image" : ROOT_PRIVATESHOP + "private_first_prev_btn_01.sub",
"over_image" : ROOT_PRIVATESHOP + "private_first_prev_btn_02.sub",
"down_image" : ROOT_PRIVATESHOP + "private_first_prev_btn_01.sub",
#"default_image" : ROOT+"left_direction_0.tga",
#"over_image" : ROOT+"left_direction_1.tga",
#"down_image" : ROOT+"left_direction_0.tga",
},
{
"name" : "shop_next_btn",
"type" : "button",
"x" : 165,
"y" : 150,
#"default_image" : ROOT+"right_direction_0.tga",
#"over_image" : ROOT+"right_direction_1.tga",
#"down_image" : ROOT+"right_direction_0.tga",
"default_image" : ROOT_PRIVATESHOP + "private_last_next_btn_01.sub",
"over_image" : ROOT_PRIVATESHOP + "private_last_next_btn_02.sub",
"down_image" : ROOT_PRIVATESHOP + "private_last_next_btn_01.sub",
},
{
"name" : "refresh_render",
"type" : "button",
"x" : 155,
"y": 210,
"default_image" : "d:/ymir work/ui/gemshop/gemshop_refreshbutton_up.sub",
"over_image" : "d:/ymir work/ui/gemshop/gemshop_refreshbutton_over.sub",
"down_image" : "d:/ymir work/ui/gemshop/gemshop_refreshbutton_down.sub",
#"default_image" : ROOT+"refresh_big_0.tga",
#"over_image" : ROOT+"refresh_big_1.tga",
#"down_image" : ROOT+"refresh_big_0.tga",
},
),
},
{
"name" : "time_slot",
"type" : "slotbar",
"x" : 10+300+10,
"y" : 315,
"width" : 200,
"height" : 25,
"children" :
(
{
"name" : "time_icon",
"type" : "image",
"x" : 5,
"y": 5,
"image" : ROOT+"time.tga",
#"default_image" : ROOT+"refresh_big_0.tga",
#"over_image" : ROOT+"refresh_big_1.tga",
#"down_image" : ROOT+"refresh_big_0.tga",
},
{
"name" : "time_btn",
"type" : "button",
"x" : 25,
"y": 5,
"default_image" : ROOT+"time_0.tga",
"over_image" : ROOT+"time_1.tga",
"down_image" : ROOT+"time_2.tga",
#"default_image" : ROOT+"refresh_big_0.tga",
#"over_image" : ROOT+"refresh_big_1.tga",
#"down_image" : ROOT+"refresh_big_0.tga",
},
{
"name" : "time",
"type" : "text",
"x" : 30,
"y" : 5,
"horizontal_align" : "center",
"text_horizontal_align" : "center",
"text" : "0",
"fontname" : "Tahoma:15",
},
),
},
{
"name" : "See_Slot",
"type" : "slotbar",
"x" : 10,
"y" : 315,
"width" : 300,
"height" : 25,
"children" :
(
{
"name":"see_icon",
"type":"image",
"x":3,
"y":3,
"image":"d:/ymir work/ui/game/offlineshop/eyes.tga",
},
{
"name" : "see",
"type" : "text",
"x" : 23,
"y" : 5,
"horizontal_align" : "center",
"text_horizontal_align" : "center",
"text" : "0",
"fontname" : "Tahoma:15",
},
),
},
#{
# "name" : "slot",
# "type" : "image",
# "x" : 10,
# "y" : 310,
# "image" : ROOT+"slot.tga",
# "children":
# (
# {
# "name" : "real_time_image",
# "type" : "image",
# "x" : 50,
# "y" : 7,
# "image" : ROOT+"real_time.tga",
# },
#
# {
# "name" : "see",
# "type" : "text",
# "x" : 80,
# "y" : 2,
# "text" : "3432",
# "fontname" : "Tahoma:32",
# },
#
# {
# "name" : "all_count_image",
# "type" : "image",
# "x" : 150,
# "y" : 10,
# "image" : ROOT+"eyes.tga",
# },
#
# {
# "name" : "see_all",
# "type" : "text",
# "x" : 185,
# "y" : 2,
# "text" : "3432",
# "fontname" : "Tahoma:32",
# },
#
# ),
#},
),
},
{
"name" : "LogsWindow",
"type" : "window",
"x" : 5,
"y" : 40,
"width" : 545,
"height" : 295+26+20+50,
"children" :
(
#{
# "name" : "log_text_0",
# "type" : "text",
# "x" : 12+10,
# "y" : 25,
# "text" : localeInfo.OFFLINESHOP_ITEM_NAME+" - "+localeInfo.OFFLINESHOP_YANG+" - "+localeInfo.OFFLINESHOP_RECEIVER+" - "+localeInfo.OFFLINESHOP_HISTORY+" - Whisper",
#},
{
"name" : "ListBox",
"type" : "listboxex",
"x" : 5,
"y" : 43,
"width" : 184*2-15,
"height" : 38*40,
"viewcount" : 10,
},
{
"name" : "ScrollBar",
"type" : "scrollbar_new",
"x" : 12+520,
"y" : 35,
"size" : 315,
},
),
},
{
"name" : "NameSlot",
"type" : "slotbar",
"x" : 17,
"y" : 35,
"width" : 280,
"height" : 25,
"children" :
(
{
"name" : "NameLine",
"type" : "editline",
"x" : 3,
"y" : 5,
"width" : 280,
"height" : 20,
"input_limit" : 35,
"text" : "NULL",
},
{
"name" : "refresh_title",
"type" : "button",
"x" : 90+67+96,
"y": 3,
"default_image" : "d:/ymir work/ui/gemshop/gemshop_refreshbutton_up.sub",
"over_image" : "d:/ymir work/ui/gemshop/gemshop_refreshbutton_over.sub",
"down_image" : "d:/ymir work/ui/gemshop/gemshop_refreshbutton_down.sub",
#"default_image" : ROOT+"refresh_0.tga",
#"over_image" : ROOT+"refresh_1.tga",
#"down_image" : ROOT+"refresh_0.tga",
},
),
},
{
"name" : "Money_Slot",
"type" : "slotbar",
"x" : 17+280+5,
"y" : 35,
"width" : 90 + 75,
"height" : 25,
"children" :
(
{
"name":"Money_Icon",
"type":"image",
"x":3,
"y":3,
"image":"d:/ymir work/ui/game/windows/money_icon.tga",
},
{
"name" : "refresh_yang",
"type" : "button",
"x" : 27,
"y": 3,
"default_image" : "d:/ymir work/ui/gemshop/gemshop_refreshbutton_up.sub",
"over_image" : "d:/ymir work/ui/gemshop/gemshop_refreshbutton_over.sub",
"down_image" : "d:/ymir work/ui/gemshop/gemshop_refreshbutton_down.sub",
#"default_image" : ROOT+"refresh_0.tga",
#"over_image" : ROOT+"refresh_1.tga",
#"down_image" : ROOT+"refresh_0.tga",
},
{
"name" : "Money",
"type" : "text",
"x" : 3,
"y" : 5,
"horizontal_align" : "right",
"text_horizontal_align" : "right",
"text" : "0",
"fontname" : "Tahoma:15",
},
),
},
{
"name" : "FirstButton",
"type" : "button",
"x" : 50+90+67+307-35,
"y": 35,
"width" : 61,
"height" : 21,
"default_image" : ROOT+"close_shop_0.tga",
"over_image" : ROOT+"close_shop_0.tga",
"down_image" : ROOT+"close_shop_1.tga",
#"default_image" : ROOT+"close_0.tga",
#"over_image" : ROOT+"close_1.tga",
#"down_image" : ROOT+"close_0.tga",
"tooltip_text" : localeInfo.OFFLINESHOP_CLOSE,
},
{
"name" : "SecondButton",
"type" : "button",
"x" : 50+90+67+307,
"y": 35,
"width" : 61,
"height" : 21,
"default_image" : ROOT+"history_shop_0.tga",
"over_image" : ROOT+"history_shop_0.tga",
"down_image" : ROOT+"history_shop_1.tga",
#"default_image" : ROOT+"log_open_0.tga",
#"over_image" : ROOT+"log_open_1.tga",
#"down_image" : ROOT+"log_open_0.tga",
"tooltip_text" : localeInfo.OFFLINESHOP_LOGS,
},
),
},
),
}
@@ -0,0 +1,192 @@
import localeInfo
ROOT = "d:/ymir work/ui/game/privatesearch/"
IMG_DIR = "d:/ymir work/ui/game/privatesearch/"
TEXT_Y_DIFFERENCE = -5
window = {
"name" : "PrivateShopSearchDialog",
"x" : 0,
"y" : 0,
"style" : ("movable", "float","animate",),
"width" : 841,
"height" : 492,
"children" :
(
{
"name" : "board",
"type" : "image",
"style" : ("attach", "movable",),
"x" : 0,
"y" : 0,
"image":IMG_DIR+"bg.tga",
"children":
(
{"name" : "close","type" : "button","x" : 806,"y" : 4,"default_image" : IMG_DIR+"close_0.tga", "over_image" : IMG_DIR+"close_1.tga", "down_image" : IMG_DIR+"close_2.tga", },
{"name" : "title","type" : "text","x" : 0,"y" : 14+TEXT_Y_DIFFERENCE ,"text" : localeInfo.PRIVATESHOPSEARCH_SEARCH_BAR,"horizontal_align" : "center",},
{"name" : "class_text","type" : "text","x" : 85,"y" : 50+TEXT_Y_DIFFERENCE ,"text" : localeInfo.SHOPSEARCH_CLASS,},
{"name" : "itemNameText","type" : "text","x" : 295,"y" : 50+TEXT_Y_DIFFERENCE ,"text" : localeInfo.PRIVATESHOPSEARCH_ITEMNAME,},
{"name" : "sellerText","type" : "text","x" : 438,"y" : 50+TEXT_Y_DIFFERENCE,"text" : localeInfo.PRIVATESHOPSEARCH_SELLER,},
{"name" : "countText","type" : "text","x" : 530,"y" : 50+TEXT_Y_DIFFERENCE,"text" : localeInfo.PRIVATESHOPSEARCH_COUNT,},
{"name" : "rightpriceText","type" : "text","x" : 650,"y" : 50+TEXT_Y_DIFFERENCE,"text" : localeInfo.SHOPSEARCH_PRICE,},
{"name" : "objectsText","type" : "text","x" : 81,"y" : 117+TEXT_Y_DIFFERENCE,"text" : localeInfo.SHOPSEARCH_OBJECTS,},
{"name" : "min-maxText","type" : "text","x" : 51,"y" : 209+TEXT_Y_DIFFERENCE,"text" : localeInfo.SHOPSEARCH_FILTERS,},
{"name" : "leftpriceText","type" : "text","x" : 86,"y" : 301+TEXT_Y_DIFFERENCE,"text" : localeInfo.SHOPSEARCH_PRICE,},
{"name" : "leftpriceText","type" : "text","x" : 63,"y" : 396+TEXT_Y_DIFFERENCE,"text" :localeInfo.SHOPSEARCH_SEARCH_TEXT,},
{"name" : "first~","type" : "text","x" : 97,"y" : 241+TEXT_Y_DIFFERENCE,"text" : "~",},
{"name" : "second~","type" : "text","x" : 97,"y" : 271+TEXT_Y_DIFFERENCE,"text" : "~",},
{
"name" : "editLineWnd",
"type" : "window",
"style" : ("not_pick",),
"x" : 4,
"y" : 226,
"width" : 196,
"height" : 220,
"children":
(
{
"name" : "minLevel",
"type" : "editline",
"x" : 5+30,
"y" : 2+7,
"width" : 194,
"height" : 26,
"input_limit" : 3,
"only_number" : 1,
"horizontal_align" : "center",
"text":"",
"info_msg": "1",
},
{
"name" : "maxLevel",
"type" : "editline",
"x" : 5+105+30,
"y" : 2+7,
"width" : 194,
"height" : 26,
"input_limit" : 3,
"only_number" : 1,
"horizontal_align" : "center",
"text":"",
"info_msg": "120",
},
{
"name" : "minRefine",
"type" : "editline",
"x" : 5+30,
"y" : 26+11,
"width" : 194,
"height" : 26,
"input_limit" : 3,
"only_number" : 1,
"horizontal_align" : "center",
"text":"",
"info_msg": "+0",
},
{
"name" : "maxRefine",
"type" : "editline",
"x" : 5+105+30,
"y" : 26+11,
"width" : 194,
"height" : 26,
"input_limit" : 3,
"only_number" : 1,
"horizontal_align" : "center",
"text":"",
"info_msg": "+9",
},
{
"name" : "minYang",
"type" : "editline",
"x" : 5+1,
"y" : 94+11,
"width" : 194,
"height" : 26,
"input_limit" : 16,
"only_number" : 1,
"horizontal_align" : "center",
"text":"",
"info_msg": "0 Yang",
},
{
"name" : "maxYang",
"type" : "editline",
"x" : 5+1,
"y" : 123+11,
"width" : 194,
"height" : 26,
"input_limit" : 16,
"only_number" : 1,
"horizontal_align" : "center",
"text":"",
"info_msg": "999.999.999.999.999",
},
{
"name" : "searchItemName",
"type" : "editline",
"x" : 5+1,
"y" : 193 + 6,
"width" : 194,
"height" : 26,
"input_limit" : 35,
"horizontal_align" : "center",
"text":"",
"info_msg": localeInfo.PRIVATESHOPSEARCH_ITEMNAME,
"children":
(
{
"name" : "searchClearBtn",
"type" : "button",
"x" : 194-25,
"y" : 1,
"default_image" : ROOT+"clear_button_1.tga",
"over_image" : ROOT+"clear_button_2.tga",
"down_image" : ROOT+"clear_button_1.tga",
},
),
},
),
},
{
"name" : "ListBox",
"type" : "listbox_new",
"style" : ("attach",),
"x" : 207,
"y" : 75,
"width" : 638,
"height" : 418,
"viewcount" : 10,
"children":
(
{"name" : "listboxText","type" : "text", "x" : 0, "y" : 0, "text" : "", "all_align":1,},
),
},
{"name" : "searchBtn","type" : "button","x" : 31,"y" : 456,"text" : localeInfo.SHOPSEARCH_SEARCH_BTN,"default_image" : IMG_DIR+"search_0.tga","over_image" : IMG_DIR+"search_1.tga","down_image" : IMG_DIR+"search_2.tga",},
{"name" : "buyBtn","type" : "button","x" : 685,"y" : 460,"text" : localeInfo.SHOPSEARCH_BUY_BTN,"default_image" : IMG_DIR+"search_0.tga","over_image" : IMG_DIR+"search_1.tga","down_image" : IMG_DIR+"search_2.tga",},
{"name" : "first_prev_button", "type" : "button","x" : 370, "y" : 469,"default_image" : IMG_DIR+"first_page_0.tga","over_image" : IMG_DIR+"first_page_1.tga","down_image" : IMG_DIR+"first_page_1.tga",},
{"name" : "prev_button", "type" : "button","x" : 386, "y" : 469,"default_image" : IMG_DIR+"back_page_0.tga","over_image" : IMG_DIR+"back_page_1.tga","down_image" : IMG_DIR+"back_page_2.tga",},
{"name" : "next_button", "type" : "button","x" : 554, "y" : 469,"default_image" : IMG_DIR+"next_page_0.tga","over_image" : IMG_DIR+"next_page_1.tga","down_image" : IMG_DIR+"next_page_1.tga",},
{"name" : "last_next_button", "type" : "button","x" : 566, "y" : 469,"default_image" : IMG_DIR+"last_page_0.tga","over_image" : IMG_DIR+"last_page_1.tga","down_image" : IMG_DIR+"last_page_1.tga",},
{"name" : "page1_button", "type" : "radio_button","x" : 403 + (29 * 0), "y" : 461,"text" : "1","default_image" : IMG_DIR+"page_box_0.tga","over_image" : IMG_DIR+"page_box_1.tga","down_image" : IMG_DIR+"page_box_1.tga",},
{"name" : "page2_button", "type" : "radio_button","x" : 403 + (29 * 1), "y" : 461,"text" : "2","default_image" : IMG_DIR+"page_box_0.tga","over_image" : IMG_DIR+"page_box_1.tga","down_image" : IMG_DIR+"page_box_1.tga",},
{"name" : "page3_button", "type" : "radio_button","x" : 403 + (29 * 2), "y" : 461,"text" : "3","default_image" : IMG_DIR+"page_box_0.tga","over_image" : IMG_DIR+"page_box_1.tga","down_image" : IMG_DIR+"page_box_1.tga",},
{"name" : "page4_button", "type" : "radio_button","x" : 403 + (29 * 3), "y" : 461,"text" : "4","default_image" : IMG_DIR+"page_box_0.tga","over_image" : IMG_DIR+"page_box_1.tga","down_image" : IMG_DIR+"page_box_1.tga",},
{"name" : "page5_button", "type" : "radio_button","x" : 403 + (29 * 4), "y" : 461,"text" : "5","default_image" : IMG_DIR+"page_box_0.tga","over_image" : IMG_DIR+"page_box_1.tga","down_image" : IMG_DIR+"page_box_1.tga",},
),
},
),
}
@@ -0,0 +1,395 @@
import localeInfo
import app
GOLD_COLOR = 0xFFFEE3AE
ROOT = "d:/ymir work/ui/game/privatesearch/"
if app.ENABLE_SHOP_SEARCH_SYSTEM:
BOARD_WIDTH = 810
BOARD_HEIGHT = 400
window = {
"name" : "PrivateShopSearchDialog",
"x" : 0,
"y" : 0,
"style" : ("movable", "float", "animate",),
"width" : BOARD_WIDTH,
"height" : BOARD_HEIGHT,
"children" :
(
{
"name" : "board",
"type" : "board_with_titlebar",
"x" : 0,
"y" : 0,
"width" : BOARD_WIDTH,
"height" : BOARD_HEIGHT,
"title" : localeInfo.PRIVATESHOPSEARCH_SEARCH_BAR,
"children":
(
## ItemNameEditLine
{
"name" : "ItemNameSlot",
"type" : "image",
"x" : 12,
"y" : 35,
"image" : ROOT + "name_slot.dds",
"children" :
(
{
"name" : "itemNameSearchText",
"type" : "text",
"x" : 2,
"y" : 3,
"text" : "",
"color" : 0xff075102,
},
{
"name" : "ItemNameValue",
"type" : "editline",
"x" : 2,
"y" : 3,
"width" : 136,
"height" : 15,
"input_limit" : 35,
"text" : "",
"outline":1,
},
{
"name" : "Clearbutton",
"type" : "button",
"x" : 185-30,
"y" : 5,
"default_image" : ROOT+"clear_button_1.tga",
"over_image" : ROOT+"clear_button_2.tga",
"down_image" : ROOT+"clear_button_1.tga",
},
),
},
{
"name" : "ListBox",
"type" : "listbox_new",
"x" : 200,
"y" : 58,
"width" : 600,
"height" : BOARD_HEIGHT-50,
"viewcount" : 21,
},
####################################################################################################
####################################################################################################
####################################################################################################
## tab_menu_01
{
"name" : "ItemTypeImg",
"type" : "expanded_image",
"x" : 200,
"y" : 34,
"width" : 10,
"image" : "d:/ymir work/ui/tab_menu_02.tga",
"x_scale" : 1.22,
#"y_scale" : 1.0,
"children" :
(
## Text
{ "name" : "ResultNameText1", "type" : "text", "x" : 115, "y" : 4, "text" : localeInfo.PRIVATESHOPSEARCH_ITEMNAME, },
{ "name" : "ResultNameText2", "type" : "text", "x" : 250, "y" : 4, "text" : localeInfo.PRIVATESHOPSEARCH_SELLER, },
{ "name" : "ResultNameText3", "type" : "text", "x" : 315, "y" : 4, "text" : localeInfo.PRIVATESHOPSEARCH_COUNT, },
{
"name" : "reverse_count", "type" : "button",
"x" : 315+30, "y" : 4,
"default_image" : ROOT + "down_1.tga",
"over_image" : ROOT + "down_0.tga",
"down_image" : ROOT + "down_1.tga",
},
{ "name" : "ResultNameText5", "type" : "text", "x" : 400, "y" : 4, "text" : "Price", },
{ "name" : "ResultNameText6", "type" : "text", "x" : 470, "y" : 4, "text" : "Wiki/Shop/Whisper", },
),
},
{
"name" : "first_prev_button", "type" : "button",
"x" : 230+100, "y" : BOARD_HEIGHT-28,
"default_image" : ROOT + "private_first_prev_btn_01.sub",
"over_image" : ROOT + "private_first_prev_btn_02.sub",
"down_image" : ROOT + "private_first_prev_btn_01.sub",
},
{
"name" : "prev_button", "type" : "button",
"x" : 260+100, "y" : BOARD_HEIGHT-28,
"default_image" : ROOT + "private_prev_btn_01.sub",
"over_image" : ROOT + "private_prev_btn_02.sub",
"down_image" : ROOT + "private_prev_btn_01.sub",
},
{
"name" : "page1_button", "type" : "radio_button",
"x" : 275+110, "y" : BOARD_HEIGHT-30,
"text" : "10000",
"default_image" : ROOT + "private_pagenumber_00.sub",
"over_image" : ROOT + "private_pagenumber_01.sub",
"down_image" : ROOT + "private_pagenumber_02.sub",
},
{
"name" : "page2_button", "type" : "radio_button",
"x" : 310+110, "y" : BOARD_HEIGHT-30,
"text" : "2000",
"default_image" : ROOT + "private_pagenumber_00.sub",
"over_image" : ROOT + "private_pagenumber_01.sub",
"down_image" : ROOT + "private_pagenumber_02.sub",
},
{
"name" : "page3_button", "type" : "radio_button",
"x" : 345+110, "y" : BOARD_HEIGHT-30,
"text" : "300",
"default_image" : ROOT + "private_pagenumber_00.sub",
"over_image" : ROOT + "private_pagenumber_01.sub",
"down_image" : ROOT + "private_pagenumber_02.sub",
},
{
"name" : "page4_button", "type" : "radio_button",
"x" : 380+110, "y" : BOARD_HEIGHT-30,
"text" : "4",
"default_image" : ROOT + "private_pagenumber_00.sub",
"over_image" : ROOT + "private_pagenumber_01.sub",
"down_image" : ROOT + "private_pagenumber_02.sub",
},
{
"name" : "page5_button", "type" : "radio_button",
"x" : 415+110, "y" : BOARD_HEIGHT-30,
"text" : "50000",
"default_image" : ROOT + "private_pagenumber_00.sub",
"over_image" : ROOT + "private_pagenumber_01.sub",
"down_image" : ROOT + "private_pagenumber_02.sub",
},
{
"name" : "next_button", "type" : "button",
"x" : 453+120, "y" : BOARD_HEIGHT-28,
"default_image" : ROOT + "private_next_btn_01.sub",
"over_image" : ROOT + "private_next_btn_02.sub",
"down_image" : ROOT + "private_next_btn_01.sub",
},
{
"name" : "last_next_button", "type" : "button",
"x" : 483+120, "y" : BOARD_HEIGHT-28,
"default_image" : ROOT + "private_last_next_btn_01.sub",
"over_image" : ROOT + "private_last_next_btn_02.sub",
"down_image" : ROOT + "private_last_next_btn_01.sub",
},
{
"name" : "FilterButton",
"type" : "button",
"x" : 200,
"y" : 35,
"default_image" : ROOT+"filter_01.tga",
"over_image" : ROOT+"filter_02.tga",
"down_image" : ROOT+"filter_03.tga",
},
),
},
{
"name" : "new_table",
"type" : "board_with_titlebar",
"x" : 220,
"y" : 35,
"width" : 200,
"height" : 380,
"title" : "Filter",
"children":
(
{
"name" : "input_image_3",
"type" : "expanded_image",
"x" : 10,
"y" : 45,
"image": ROOT+"filter_input.tga",
"children":
(
{
"name" : "editline2", "type" : "editline","x" : 3, "y" : 5,
"input_limit" : 3, "only_number" : 1, "width" : 90, "height" : 20,
},
),
},
{
"name" : "input_image_4",
"type" : "expanded_image",
"x" : 105,
"y" : 45,
"image": ROOT+"filter_input.tga",
"children":
(
{
"name" : "editline3", "type" : "editline","x" : 3, "y" : 5,
"input_limit" : 3, "only_number" : 1, "width" : 90, "height" : 20,
},
),
},
{
"name" : "input_image_5",
"type" : "expanded_image",
"x" : 10,
"y" : 45+(35*1),
"image": ROOT+"filter_input.tga",
"children":
(
{
"name" : "editline4", "type" : "editline","x" : 3, "y" : 5,
"input_limit" : 3, "only_number" : 1, "width" : 90, "height" : 20,
},
),
},
{
"name" : "input_image_6",
"type" : "expanded_image",
"x" : 105,
"y" : 45+(35*1),
"image": ROOT+"filter_input.tga",
"children":
(
{
"name" : "editline5", "type" : "editline","x" : 3, "y" : 5,
"input_limit" : 3, "only_number" : 1, "width" : 90, "height" : 20,
},
),
},
{
"name" : "input_image_7",
"type" : "expanded_image",
"x" : 10,
"y" : 45+(35*2),
"image": ROOT+"filter_input.tga",
"children":
(
{
"name" : "editline6", "type" : "editline","x" : 3, "y" : 5,
"input_limit" : 3, "only_number" : 1, "width" : 90, "height" : 20,
},
),
},
{
"name" : "input_image_8",
"type" : "expanded_image",
"x" : 105,
"y" : 45+(35*2),
"image": ROOT+"filter_input.tga",
"children":
(
{
"name" : "editline7", "type" : "editline","x" : 3, "y" : 5,
"input_limit" : 3, "only_number" : 1, "width" : 90, "height" : 20,
},
),
},
{
"name" : "input_image_9",
"type" : "expanded_image",
"x" : 10,
"y" : 45+(35*3),
"image": ROOT+"filter_input.tga",
"children":
(
{
"name" : "editline8", "type" : "editline","x" : 3, "y" : 5,
"input_limit" : 3, "only_number" : 1, "width" : 90, "height" : 20,
},
),
},
{
"name" : "input_image_10",
"type" : "expanded_image",
"x" : 105,
"y" : 45+(35*3),
"image": ROOT+"filter_input.tga",
"children":
(
{
"name" : "editline9", "type" : "editline","x" : 3, "y" : 5,
"input_limit" : 3, "only_number" : 1, "width" : 90, "height" : 20,
},
),
},
{
"name" : "input_image_11",
"type" : "expanded_image",
"x" : 10,
"y" : 45+(35*4),
"image": ROOT+"filter_input.tga",
"children":
(
{
"name" : "editline10", "type" : "editline","x" : 3, "y" : 5,
"input_limit" : 3, "only_number" : 1, "width" : 90, "height" : 20,
},
),
},
{
"name" : "input_image_12",
"type" : "expanded_image",
"x" : 105,
"y" : 45+(35*4),
"image": ROOT+"filter_input.tga",
"children":
(
{
"name" : "editline11", "type" : "editline","x" : 3, "y" : 5,
"input_limit" : 3, "only_number" : 1, "width" : 90, "height" : 20,
},
),
},
{
"name" : "class_image_2",
"type" : "expanded_image",
"x" : 10,
"y" : 45+(35*5),
"image": ROOT+"class_image.tga",
},
{
"name" : "class_image_3",
"type" : "expanded_image",
"x" : 10,
"y" : 45+(35*6),
"image": ROOT+"class_image.tga",
},
{
"name" : "class_image_4",
"type" : "expanded_image",
"x" : 10,
"y" : 45+(35*7),
"image": ROOT+"class_image.tga",
},
{
"name" : "class_image_5",
"type" : "expanded_image",
"x" : 10,
"y" : 45+(35*8),
"image": ROOT+"class_image.tga",
},
),
},
),
}