*Problemă/Întrebare:Cum pot schimba inventarul mai exact toata interfata acestuia?
Tipologie server:PVM-PVP
*Resursă folosită:ServerFiles Kapa3a
*ServerFiles utilizat:ServerFiles Kapa3a
*Syserr:-
Poză: https://gyazo.com/69ddfb17ac5210d21cdb328fbfaff4ff
*Detalii suplimentare: As vrea un inventar mai simplu(cel clasic)
Intrebare: cum pot schimba inventarul...?
- .Duh
-

- Mesaje: 435
- Membru din: 06 Dec 2015, 22:22
- Regat: Shinsoo
- Aprecieri: 262
- Mulţumiri: 302
- Discord: Copiază ID
import uiScriptLocale, item, net
EQUIPMENT_START_INDEX = 180
LOL = 14
NAVARIA = 33
race = net.GetMainActorRace()
if race == 1 or race == 3 or race == 4 or race == 6:
Sex = "interface/inventory/equipement/female.tga"
else:
Sex = "interface/inventory/equipement/male.tga"
window = {
"name" : "InventoryWindow",
"x" : SCREEN_WIDTH - 235,
"y" : SCREEN_HEIGHT - 37 - 613,
"style" : ("movable", "float",),
"width" : 225,
"height" : 643,
"children" :
(
{
"name" : "button_packet",
"type" : "board",
"x" : 0,
"y" : 172-16,
"width" : 80,
"height" : 180+33,
"children" :
(
{
"name" : "switchbutton",
"type" : "button",
"x" : 14,
"y" : 8,
"tooltip_text" : "Switch Bot",
"tooltip_x" : -75,
"tooltip_y" : 6,
"default_image" : "interface/inventory/bs_normal.tga",
"over_image" : "interface/inventory/bs_light.tga",
"down_image" : "interface/inventory/bs_push.tga",
},
{
"name" : "listabonusuri",
"type" : "button",
"x" : 14,
"y" : 8+NAVARIA,
"tooltip_text" : "Lista Bonusurilor",
"tooltip_x" : -50,
"tooltip_y" : 6,
"default_image" : "interface/inventory/frakcja_normal.tga",
"over_image" : "interface/inventory/frakcja_light.tga",
"down_image" : "interface/inventory/frakcja_push.tga",
},
{
"name" : "Iselep",
"type" : "button",
"x" : 14,
"y" : 8+NAVARIA+NAVARIA,
"tooltip_text" : "Item Shop",
"tooltip_x" : -80,
"tooltip_y" : 6,
"default_image" : "interface/inventory/is_normal.tga",
"over_image" : "interface/inventory/is_light.tga",
"down_image" : "interface/inventory/is_push.tga",
},
{
"name" : "OfflineShopButton",
"type" : "button",
"x" : 14,
"y" : 8+NAVARIA+NAVARIA+NAVARIA,
"tooltip_text" : "Offline Shop",
"tooltip_x" : -80,
"tooltip_y" : 6,
"default_image" : "locale/tr/offlineshop/new_button.tga",
"over_image" : "locale/tr/offlineshop/new_button2.tga",
"down_image" : "locale/tr/offlineshop/new_button3.tga",
},
{
"name" : "Telep",
"type" : "button",
"x" : 14,
"y" : 8+NAVARIA+NAVARIA+NAVARIA+NAVARIA,
"tooltip_text" : "Teleportare",
"tooltip_x" : -61,
"tooltip_y" : 6,
"default_image" : "interface/inventory/teleport_normal.tga",
"over_image" : "interface/inventory/teleport_light.tga",
"down_image" : "interface/inventory/teleport_normal.tga",
},
{
"name" : "Delep",
"type" : "button",
"x" : 14,
"y" : 8+NAVARIA+NAVARIA+NAVARIA+NAVARIA+NAVARIA,
"tooltip_text" : "Depozit",
"tooltip_x" : -57,
"tooltip_y" : 6,
"default_image" : "interface/inventory/depo_normal.tga",
"over_image" : "interface/inventory/depo_light.tga",
"down_image" : "interface/inventory/depo_push.tga",
},
),
},
## Inventory, Equipment Slots
{
"name" : "board",
"type" : "board",
"style" : ("attach",),
"x" : 46,
"y" : 0,
"width" : 203-15,
"height" : 600,
"children" :
(
## Title
{
"name" : "TitleBar",
"type" : "titlebar",
"style" : ("attach",),
"x" : 8,
"y" : 7,
"width" : 203-14-15,
"color" : "yellow",
"children" :
(
{ "name":"TitleName", "type":"text", "x":-7, "y":3, "text": "Inventar", "color" : 0xfff8d090, "text_horizontal_align":"center", "horizontal_align":"center" },
),
},
## Equipment Slot
{
"name" : "Equipment_Base",
"type" : "image",
"x" : 13,
"y" : 33,
"image" : Sex,
"children" :
(
{
"name" : "EquipmentSlot",
"type" : "slot",
"x" : 3,
"y" : 3,
"width" : 150,
"height" : 182,
"slot" : (
{"index":EQUIPMENT_START_INDEX+0, "x":43, "y":37, "width":32, "height":64},
{"index":EQUIPMENT_START_INDEX+1, "x":43, "y":2, "width":32, "height":32},
{"index":EQUIPMENT_START_INDEX+2, "x":43, "y":148, "width":32, "height":32},
{"index":EQUIPMENT_START_INDEX+3, "x":81, "y":72, "width":32, "height":32},#bratara
{"index":EQUIPMENT_START_INDEX+4, "x":3, "y":3, "width":32, "height":96},
{"index":EQUIPMENT_START_INDEX+5, "x":119, "y":73, "width":32, "height":32},#colier
{"index":EQUIPMENT_START_INDEX+6, "x":116, "y":43, "width":32, "height":32}, #Cercei
{"index":EQUIPMENT_START_INDEX+7, "x":5, "y":148, "width":32, "height":32},#ring1
{"index":EQUIPMENT_START_INDEX+8, "x":77, "y":148, "width":32, "height":32},#ring2
{"index":EQUIPMENT_START_INDEX+9, "x":114, "y":2, "width":32, "height":32}, #S?geti
{"index":EQUIPMENT_START_INDEX+10, "x":82, "y":42, "width":32, "height":32}, #Scut
{"index":item.EQUIPMENT_RING1, "x":117, "y":109, "width":32, "height":32}, #Inel special 1
{"index":item.EQUIPMENT_RING2, "x":118, "y":148, "width":32, "height":32}, #Inel special 2
{"index":item.EQUIPMENT_BELT, "x":81, "y":103, "width":32, "height":32}, #Curea
#{"index":SLOT_ACCE_ILLUMINA+2, "x":81, "y":3, "width":32, "height":32}, # Slot Acce Illumina
),
},
{
"name" : "InventoryLockBtn",
"type" : "button",
"x" : 10,
"y" : 111,
# "text" : "Blocare",
# "default_image" : "locale/tr/ui/inventory_button/inventory_button_open_01.tga",
# "over_image" : "locale/tr/ui/inventory_button/inventory_button_open_02.tga",
# "down_image" : "locale/tr/ui/inventory_button/inventory_button_open_03.tga",
},
# Unlock Button
{
"name" : "InventoryUnlockBtn",
"type" : "button",
"x" : 10,
"y" : 111,
# "text" : "Deblocare",
# "default_image" : "locale/tr/ui/inventory_button/inventory_button_close_01.tga",
# "over_image" : "locale/tr/ui/inventory_button/inventory_button_close_02.tga",
# "down_image" : "locale/tr/ui/inventory_button/inventory_button_close_03.tga",
},
## CostumeButton
{
"name" : "CostumeButton",
"type" : "button",
"x" : 84,
"y" : 7,
"tooltip_text" : uiScriptLocale.COSTUME_TITLE,
"default_image" : "interface/inventory/costume_normal.tga",
"over_image" : "interface/inventory/costume_light.tga",
"down_image" : "interface/inventory/costume_push.tga",
},
{
"name" : "Equipment_Tab_01",
"type" : "radio_button",
"x" : 86,
"y" : 161,
"default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
"over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
"down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
"children" :
(
{
"name" : "Equipment_Tab_01_Print",
"type" : "text",
"x" : 0,
"y" : 0,
"all_align" : "center",
"text" : "I",
},
),
},
{
"name" : "Equipment_Tab_02",
"type" : "radio_button",
"x" : 86 + 32,
"y" : 161,
"default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
"over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
"down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
"children" :
(
{
"name" : "Equipment_Tab_02_Print",
"type" : "text",
"x" : 0,
"y" : 0,
"all_align" : "center",
"text" : "II",
},
),
},
),
},
##Inventory Board
{
"name" : "inv_board",
"type" : "new_board",
"x" : 9,
"y" : 258,
"width" : 200,
"height" : 398,
},
{
"name" : "Inventory_Tab_01",
"type" : "radio_button",
"x" : 13,
"y" : 33 + 195,
"default_image" : "d:/ymir work/interface/tab_buttons/tab_normal.tga",
"over_image" : "d:/ymir work/interface/tab_buttons/tab_hover.tga",
"down_image" : "d:/ymir work/interface/tab_buttons/tab_active.tga",
"tooltip_text" : "1. Inventar",
"children" :
(
{
"name" : "Inventory_Tab_01_Print",
"type" : "text",
"x" : 0,
"y" : 0,
"all_align" : "center",
"text" : "",
"color" : 0xfff8d090,
},
),
},
{
"name" : "Inventory_Tab_02",
"type" : "radio_button",
"x" : 13 + 39,
"y" : 33 + 195,
"default_image" : "d:/ymir work/interface/tab_buttons/tab_normal.tga",
"over_image" : "d:/ymir work/interface/tab_buttons/tab_hover.tga",
"down_image" : "d:/ymir work/interface/tab_buttons/tab_active.tga",
"tooltip_text" : "2. Inventar",
"children" :
(
{
"name" : "Inventory_Tab_02_Print",
"type" : "text",
"x" : 0,
"y" : 0,
"all_align" : "center",
"text" : "",
"color" : 0xfff8d090,
},
),
},
{
"name" : "Inventory_Tab_03",
"type" : "radio_button",
"x" : 13 + 78,
"y" : 33 + 195,
"default_image" : "d:/ymir work/interface/tab_buttons/tab_normal.tga",
"over_image" : "d:/ymir work/interface/tab_buttons/tab_hover.tga",
"down_image" : "d:/ymir work/interface/tab_buttons/tab_active.tga",
"tooltip_text" : "3.Inventar",
"children" :
(
{
"name" : "Inventory_Tab_03_Print",
"type" : "text",
"x" : 0,
"y" : 0,
"all_align" : "center",
"text" : "",
"color" : 0xfff8d090,
},
),
},
{
"name" : "Inventory_Tab_04",
"type" : "radio_button",
"x" : 13 + 117,
"y" : 33 + 195,
"default_image" : "d:/ymir work/interface/tab_buttons/tab_normal.tga",
"over_image" : "d:/ymir work/interface/tab_buttons/tab_hover.tga",
"down_image" : "d:/ymir work/interface/tab_buttons/tab_active.tga",
"tooltip_text" : "4.Inventar",
"children" :
(
{
"name" : "Inventory_Tab_04_Print",
"type" : "text",
"x" : 0,
"y" : 0,
"all_align" : "center",
"text" : "",
"color" : 0xfff8d090,
},
),
},
## Yang Board
{
"name" : "Yang_board",
"type" : "new_board",
"x" : 9,
"y" : 552+5,
"width" : 169,
"height" : 0,
},
## Item Slot
{
"name" : "ItemSlot",
"type" : "grid_table",
"x" : 12,
"y" : 258+5,
"start_index" : 0,
"x_count" : 5,
"y_count" : 9,
"x_step" : 32,
"y_step" : 32,
"image" : "interface/inventory/slot.tga"
},
## Print
{
"name":"Money_Slot",
"type":"button",
"x":18,
"y":22*2,
"horizontal_align":"center",
"vertical_align":"bottom",
"default_image" : "interface/inventory/chenar_yang.tga",
"over_image" : "interface/inventory/chenar_yang.tga",
"down_image" : "interface/inventory/chenar_yang.tga",
"children" :
(
{
"name":"Money_Icon",
"type":"image",
"x":-9*4,
"y":0,
"image":"interface/inventory/yang.tga",
},
{
"name" : "Money",
"type" : "text",
"x" : 6,
"y" : 6,
"horizontal_align" : "right",
"text_horizontal_align" : "right",
"color" : 0xfff8d090,
"text" : "123456789",
},
),
},
),
},
),
} - .Duh
-

- Mesaje: 435
- Membru din: 06 Dec 2015, 22:22
- Regat: Shinsoo
- Aprecieri: 262
- Mulţumiri: 302
- Discord: Copiază ID
Vezi ce zice. Dacă nu, caută-mă pe discord..
import uiScriptLocale, item, net
EQUIPMENT_START_INDEX = 180
LOL = 14
NAVARIA = 33
race = net.GetMainActorRace()
if race == 1 or race == 3 or race == 4 or race == 6:
Sex = "interface/inventory/equipement/female.tga"
else:
Sex = "interface/inventory/equipement/male.tga"
window = {
"name" : "InventoryWindow",
"x" : SCREEN_WIDTH - 235,
"y" : SCREEN_HEIGHT - 37 - 613,
"style" : ("movable", "float",),
"width" : 225,
"height" : 643,
"children" :
(
{
"name" : "button_packet",
"type" : "board",
"x" : 0,
"y" : 172-16,
"width" : 80,
"height" : 180+33,
"children" :
(
{
"name" : "switchbutton",
"type" : "button",
"x" : 14,
"y" : 8,
"tooltip_text" : "Switch Bot",
"tooltip_x" : -75,
"tooltip_y" : 6,
"default_image" : "interface/inventory/bs_normal.tga",
"over_image" : "interface/inventory/bs_light.tga",
"down_image" : "interface/inventory/bs_push.tga",
},
{
"name" : "listabonusuri",
"type" : "button",
"x" : 14,
"y" : 8+NAVARIA,
"tooltip_text" : "Lista Bonusurilor",
"tooltip_x" : -50,
"tooltip_y" : 6,
"default_image" : "interface/inventory/frakcja_normal.tga",
"over_image" : "interface/inventory/frakcja_light.tga",
"down_image" : "interface/inventory/frakcja_push.tga",
},
{
"name" : "Iselep",
"type" : "button",
"x" : 14,
"y" : 8+NAVARIA+NAVARIA,
"tooltip_text" : "Item Shop",
"tooltip_x" : -80,
"tooltip_y" : 6,
"default_image" : "interface/inventory/is_normal.tga",
"over_image" : "interface/inventory/is_light.tga",
"down_image" : "interface/inventory/is_push.tga",
},
{
"name" : "OfflineShopButton",
"type" : "button",
"x" : 14,
"y" : 8+NAVARIA+NAVARIA+NAVARIA,
"tooltip_text" : "Offline Shop",
"tooltip_x" : -80,
"tooltip_y" : 6,
"default_image" : "locale/tr/offlineshop/new_button.tga",
"over_image" : "locale/tr/offlineshop/new_button2.tga",
"down_image" : "locale/tr/offlineshop/new_button3.tga",
},
{
"name" : "Telep",
"type" : "button",
"x" : 14,
"y" : 8+NAVARIA+NAVARIA+NAVARIA+NAVARIA,
"tooltip_text" : "Teleportare",
"tooltip_x" : -61,
"tooltip_y" : 6,
"default_image" : "interface/inventory/teleport_normal.tga",
"over_image" : "interface/inventory/teleport_light.tga",
"down_image" : "interface/inventory/teleport_normal.tga",
},
{
"name" : "Delep",
"type" : "button",
"x" : 14,
"y" : 8+NAVARIA+NAVARIA+NAVARIA+NAVARIA+NAVARIA,
"tooltip_text" : "Depozit",
"tooltip_x" : -57,
"tooltip_y" : 6,
"default_image" : "interface/inventory/depo_normal.tga",
"over_image" : "interface/inventory/depo_light.tga",
"down_image" : "interface/inventory/depo_push.tga",
},
),
},
## Inventory, Equipment Slots
{
"name" : "board",
"type" : "board",
"style" : ("attach",),
"x" : 46,
"y" : 0,
"width" : 203-15,
"height" : 600,
"children" :
(
## Title
{
"name" : "TitleBar",
"type" : "titlebar",
"style" : ("attach",),
"x" : 8,
"y" : 7,
"width" : 203-14-15,
"color" : "yellow",
"children" :
(
{ "name":"TitleName", "type":"text", "x":-7, "y":3, "text": "Inventar", "color" : 0xfff8d090, "text_horizontal_align":"center", "horizontal_align":"center" },
),
},
## Equipment Slot
{
"name" : "Equipment_Base",
"type" : "image",
"x" : 13,
"y" : 33,
"image" : Sex,
"children" :
(
{
"name" : "EquipmentSlot",
"type" : "slot",
"x" : 3,
"y" : 3,
"width" : 150,
"height" : 182,
"slot" : (
{"index":EQUIPMENT_START_INDEX+0, "x":43, "y":37, "width":32, "height":64},
{"index":EQUIPMENT_START_INDEX+1, "x":43, "y":2, "width":32, "height":32},
{"index":EQUIPMENT_START_INDEX+2, "x":43, "y":148, "width":32, "height":32},
{"index":EQUIPMENT_START_INDEX+3, "x":81, "y":72, "width":32, "height":32},#bratara
{"index":EQUIPMENT_START_INDEX+4, "x":3, "y":3, "width":32, "height":96},
{"index":EQUIPMENT_START_INDEX+5, "x":119, "y":73, "width":32, "height":32},#colier
{"index":EQUIPMENT_START_INDEX+6, "x":116, "y":43, "width":32, "height":32}, #Cercei
{"index":EQUIPMENT_START_INDEX+7, "x":5, "y":148, "width":32, "height":32},#ring1
{"index":EQUIPMENT_START_INDEX+8, "x":77, "y":148, "width":32, "height":32},#ring2
{"index":EQUIPMENT_START_INDEX+9, "x":114, "y":2, "width":32, "height":32}, #S?geti
{"index":EQUIPMENT_START_INDEX+10, "x":82, "y":42, "width":32, "height":32}, #Scut
{"index":item.EQUIPMENT_RING1, "x":117, "y":109, "width":32, "height":32}, #Inel special 1
{"index":item.EQUIPMENT_RING2, "x":118, "y":148, "width":32, "height":32}, #Inel special 2
{"index":item.EQUIPMENT_BELT, "x":81, "y":103, "width":32, "height":32}, #Curea
#{"index":SLOT_ACCE_ILLUMINA+2, "x":81, "y":3, "width":32, "height":32}, # Slot Acce Illumina
),
},
{
"name" : "InventoryLockBtn",
"type" : "button",
"x" : 10,
"y" : 111,
# "text" : "Blocare",
# "default_image" : "locale/tr/ui/inventory_button/inventory_button_open_01.tga",
# "over_image" : "locale/tr/ui/inventory_button/inventory_button_open_02.tga",
# "down_image" : "locale/tr/ui/inventory_button/inventory_button_open_03.tga",
},
# Unlock Button
{
"name" : "InventoryUnlockBtn",
"type" : "button",
"x" : 10,
"y" : 111,
# "text" : "Deblocare",
# "default_image" : "locale/tr/ui/inventory_button/inventory_button_close_01.tga",
# "over_image" : "locale/tr/ui/inventory_button/inventory_button_close_02.tga",
# "down_image" : "locale/tr/ui/inventory_button/inventory_button_close_03.tga",
},
## CostumeButton
{
"name" : "CostumeButton",
"type" : "button",
"x" : 84,
"y" : 7,
"tooltip_text" : uiScriptLocale.COSTUME_TITLE,
"default_image" : "d:/ymir work/ui/game/taskbar/costume_Button_01.tga",
"over_image" : "d:/ymir work/ui/game/taskbar/costume_Button_02.tga",
"down_image" : "d:/ymir work/ui/game/taskbar/costume_Button_03.tga",
},
{
"name" : "Equipment_Tab_01",
"type" : "radio_button",
"x" : 86,
"y" : 161,
"default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
"over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
"down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
"children" :
(
{
"name" : "Equipment_Tab_01_Print",
"type" : "text",
"x" : 0,
"y" : 0,
"all_align" : "center",
"text" : "I",
},
),
},
{
"name" : "Equipment_Tab_02",
"type" : "radio_button",
"x" : 86 + 32,
"y" : 161,
"default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
"over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
"down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
"children" :
(
{
"name" : "Equipment_Tab_02_Print",
"type" : "text",
"x" : 0,
"y" : 0,
"all_align" : "center",
"text" : "II",
},
),
},
),
},
##Inventory Board
{
"name" : "inv_board",
"type" : "new_board",
"x" : 9,
"y" : 258,
"width" : 200,
"height" : 398,
},
{
"name" : "Equipment_Tab_01",
"type" : "radio_button",
"x" : 86,
"y" : 161,
"default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
"over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
"down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
"children" :
(
{
"name" : "Equipment_Tab_01_Print",
"type" : "text",
"x" : 0,
"y" : 0,
"all_align" : "center",
"text" : "I",
},
),
},
{
"name" : "Equipment_Tab_02",
"type" : "radio_button",
"x" : 86 + 32,
"y" : 161,
"default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
"over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
"down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
"children" :
(
{
"name" : "Equipment_Tab_02_Print",
"type" : "text",
"x" : 0,
"y" : 0,
"all_align" : "center",
"text" : "II",
},
),
},
{
"name" : "Equipment_Tab_03",
"type" : "radio_button",
"x" : 86 + 32,
"y" : 161,
"default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
"over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
"down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
"children" :
(
{
"name" : "Equipment_Tab_03_Print",
"type" : "text",
"x" : 0,
"y" : 0,
"all_align" : "center",
"text" : "III",
},
),
},
{
"name" : "Equipment_Tab_04",
"type" : "radio_button",
"x" : 86 + 32,
"y" : 161,
"default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
"over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
"down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
"children" :
(
{
"name" : "Equipment_Tab_04_Print",
"type" : "text",
"x" : 0,
"y" : 0,
"all_align" : "center",
"text" : "IV",
},
),
},
),
},
{
"name" : "Inventory_Tab_01",
"type" : "radio_button",
"x" : 11,
"y" : 33 + 191,
"default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
"over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
"down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
"tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_1,
"children" :
(
{
"name" : "Inventory_Tab_01_Print",
"type" : "text",
"x" : 0,
"y" : 0,
"all_align" : "center",
"text" : "I",
},
),
},
{
"name" : "Inventory_Tab_02",
"type" : "radio_button",
"x" : 13 + 37,
"y" : 33 + 191,
"default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
"over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
"down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
"tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_2,
"children" :
(
{
"name" : "Inventory_Tab_02_Print",
"type" : "text",
"x" : 0,
"y" : 0,
"all_align" : "center",
"text" : "II",
},
),
},
{
"name" : "Inventory_Tab_03",
"type" : "radio_button",
"x" : 13 + 77,
"y" : 33 + 191,
"default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
"over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
"down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
"tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_3,
"children" :
(
{
"name" : "Inventory_Tab_03_Print",
"type" : "text",
"x" : 0,
"y" : 0,
"all_align" : "center",
"text" : "III",
},
),
},
{
"name" : "Inventory_Tab_04",
"type" : "radio_button",
"x" : 14 + 116,
"y" : 33 + 191,
"default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
"over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
"down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
"tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_4,
"children" :
(
{
"name" : "Inventory_Tab_04_Print",
"type" : "text",
"x" : 0,
"y" : 0,
"all_align" : "center",
"text" : "IV",
},
),
},
## Yang Board
{
"name" : "Yang_board",
"type" : "new_board",
"x" : 9,
"y" : 552+5,
"width" : 169,
"height" : 0,
},
## Item Slot
{
"name" : "ItemSlot",
"type" : "grid_table",
"x" : 8,
"y" : 246,
"start_index" : 0,
"x_count" : 5,
"y_count" : 9,
"x_step" : 32,
"y_step" : 32,
"image" : "d:/ymir work/ui/public/Slot_Base.sub"
},
## Print
{
"name":"Money_Slot",
"type":"button",
"x":8,
"y":28,
"horizontal_align":"center",
"vertical_align":"bottom",
"default_image" : "d:/ymir work/ui/public/parameter_slot_05.sub",
"over_image" : "d:/ymir work/ui/public/parameter_slot_05.sub",
"down_image" : "d:/ymir work/ui/public/parameter_slot_05.sub",
"children" :
(
{
"name":"Money_Icon",
"type":"image",
"x":-18,
"y":2,
"image":"d:/ymir work/ui/game/windows/money_icon.sub",
},
{
"name" : "Money",
"type" : "text",
"x" : 3,
"y" : 3,
"horizontal_align" : "right",
"text_horizontal_align" : "right",
"text" : "123456789",
},
),
},
),
},
),
} Ti-am dat cerere pe Discord..Duh scrie: ↑28 Feb 2023, 19:05 Vezi ce zice. Dacă nu, caută-mă pe discord..import uiScriptLocale, item, net EQUIPMENT_START_INDEX = 180 LOL = 14 NAVARIA = 33 race = net.GetMainActorRace() if race == 1 or race == 3 or race == 4 or race == 6: Sex = "interface/inventory/equipement/female.tga" else: Sex = "interface/inventory/equipement/male.tga" window = { "name" : "InventoryWindow", "x" : SCREEN_WIDTH - 235, "y" : SCREEN_HEIGHT - 37 - 613, "style" : ("movable", "float",), "width" : 225, "height" : 643, "children" : ( { "name" : "button_packet", "type" : "board", "x" : 0, "y" : 172-16, "width" : 80, "height" : 180+33, "children" : ( { "name" : "switchbutton", "type" : "button", "x" : 14, "y" : 8, "tooltip_text" : "Switch Bot", "tooltip_x" : -75, "tooltip_y" : 6, "default_image" : "interface/inventory/bs_normal.tga", "over_image" : "interface/inventory/bs_light.tga", "down_image" : "interface/inventory/bs_push.tga", }, { "name" : "listabonusuri", "type" : "button", "x" : 14, "y" : 8+NAVARIA, "tooltip_text" : "Lista Bonusurilor", "tooltip_x" : -50, "tooltip_y" : 6, "default_image" : "interface/inventory/frakcja_normal.tga", "over_image" : "interface/inventory/frakcja_light.tga", "down_image" : "interface/inventory/frakcja_push.tga", }, { "name" : "Iselep", "type" : "button", "x" : 14, "y" : 8+NAVARIA+NAVARIA, "tooltip_text" : "Item Shop", "tooltip_x" : -80, "tooltip_y" : 6, "default_image" : "interface/inventory/is_normal.tga", "over_image" : "interface/inventory/is_light.tga", "down_image" : "interface/inventory/is_push.tga", }, { "name" : "OfflineShopButton", "type" : "button", "x" : 14, "y" : 8+NAVARIA+NAVARIA+NAVARIA, "tooltip_text" : "Offline Shop", "tooltip_x" : -80, "tooltip_y" : 6, "default_image" : "locale/tr/offlineshop/new_button.tga", "over_image" : "locale/tr/offlineshop/new_button2.tga", "down_image" : "locale/tr/offlineshop/new_button3.tga", }, { "name" : "Telep", "type" : "button", "x" : 14, "y" : 8+NAVARIA+NAVARIA+NAVARIA+NAVARIA, "tooltip_text" : "Teleportare", "tooltip_x" : -61, "tooltip_y" : 6, "default_image" : "interface/inventory/teleport_normal.tga", "over_image" : "interface/inventory/teleport_light.tga", "down_image" : "interface/inventory/teleport_normal.tga", }, { "name" : "Delep", "type" : "button", "x" : 14, "y" : 8+NAVARIA+NAVARIA+NAVARIA+NAVARIA+NAVARIA, "tooltip_text" : "Depozit", "tooltip_x" : -57, "tooltip_y" : 6, "default_image" : "interface/inventory/depo_normal.tga", "over_image" : "interface/inventory/depo_light.tga", "down_image" : "interface/inventory/depo_push.tga", }, ), }, ## Inventory, Equipment Slots { "name" : "board", "type" : "board", "style" : ("attach",), "x" : 46, "y" : 0, "width" : 203-15, "height" : 600, "children" : ( ## Title { "name" : "TitleBar", "type" : "titlebar", "style" : ("attach",), "x" : 8, "y" : 7, "width" : 203-14-15, "color" : "yellow", "children" : ( { "name":"TitleName", "type":"text", "x":-7, "y":3, "text": "Inventar", "color" : 0xfff8d090, "text_horizontal_align":"center", "horizontal_align":"center" }, ), }, ## Equipment Slot { "name" : "Equipment_Base", "type" : "image", "x" : 13, "y" : 33, "image" : Sex, "children" : ( { "name" : "EquipmentSlot", "type" : "slot", "x" : 3, "y" : 3, "width" : 150, "height" : 182, "slot" : ( {"index":EQUIPMENT_START_INDEX+0, "x":43, "y":37, "width":32, "height":64}, {"index":EQUIPMENT_START_INDEX+1, "x":43, "y":2, "width":32, "height":32}, {"index":EQUIPMENT_START_INDEX+2, "x":43, "y":148, "width":32, "height":32}, {"index":EQUIPMENT_START_INDEX+3, "x":81, "y":72, "width":32, "height":32},#bratara {"index":EQUIPMENT_START_INDEX+4, "x":3, "y":3, "width":32, "height":96}, {"index":EQUIPMENT_START_INDEX+5, "x":119, "y":73, "width":32, "height":32},#colier {"index":EQUIPMENT_START_INDEX+6, "x":116, "y":43, "width":32, "height":32}, #Cercei {"index":EQUIPMENT_START_INDEX+7, "x":5, "y":148, "width":32, "height":32},#ring1 {"index":EQUIPMENT_START_INDEX+8, "x":77, "y":148, "width":32, "height":32},#ring2 {"index":EQUIPMENT_START_INDEX+9, "x":114, "y":2, "width":32, "height":32}, #S?geti {"index":EQUIPMENT_START_INDEX+10, "x":82, "y":42, "width":32, "height":32}, #Scut {"index":item.EQUIPMENT_RING1, "x":117, "y":109, "width":32, "height":32}, #Inel special 1 {"index":item.EQUIPMENT_RING2, "x":118, "y":148, "width":32, "height":32}, #Inel special 2 {"index":item.EQUIPMENT_BELT, "x":81, "y":103, "width":32, "height":32}, #Curea #{"index":SLOT_ACCE_ILLUMINA+2, "x":81, "y":3, "width":32, "height":32}, # Slot Acce Illumina ), }, { "name" : "InventoryLockBtn", "type" : "button", "x" : 10, "y" : 111, # "text" : "Blocare", # "default_image" : "locale/tr/ui/inventory_button/inventory_button_open_01.tga", # "over_image" : "locale/tr/ui/inventory_button/inventory_button_open_02.tga", # "down_image" : "locale/tr/ui/inventory_button/inventory_button_open_03.tga", }, # Unlock Button { "name" : "InventoryUnlockBtn", "type" : "button", "x" : 10, "y" : 111, # "text" : "Deblocare", # "default_image" : "locale/tr/ui/inventory_button/inventory_button_close_01.tga", # "over_image" : "locale/tr/ui/inventory_button/inventory_button_close_02.tga", # "down_image" : "locale/tr/ui/inventory_button/inventory_button_close_03.tga", }, ## CostumeButton { "name" : "CostumeButton", "type" : "button", "x" : 84, "y" : 7, "tooltip_text" : uiScriptLocale.COSTUME_TITLE, "default_image" : "d:/ymir work/ui/game/taskbar/costume_Button_01.tga", "over_image" : "d:/ymir work/ui/game/taskbar/costume_Button_02.tga", "down_image" : "d:/ymir work/ui/game/taskbar/costume_Button_03.tga", }, { "name" : "Equipment_Tab_01", "type" : "radio_button", "x" : 86, "y" : 161, "default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub", "over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub", "down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub", "children" : ( { "name" : "Equipment_Tab_01_Print", "type" : "text", "x" : 0, "y" : 0, "all_align" : "center", "text" : "I", }, ), }, { "name" : "Equipment_Tab_02", "type" : "radio_button", "x" : 86 + 32, "y" : 161, "default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub", "over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub", "down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub", "children" : ( { "name" : "Equipment_Tab_02_Print", "type" : "text", "x" : 0, "y" : 0, "all_align" : "center", "text" : "II", }, ), }, ), }, ##Inventory Board { "name" : "inv_board", "type" : "new_board", "x" : 9, "y" : 258, "width" : 200, "height" : 398, }, { "name" : "Equipment_Tab_01", "type" : "radio_button", "x" : 86, "y" : 161, "default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub", "over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub", "down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub", "children" : ( { "name" : "Equipment_Tab_01_Print", "type" : "text", "x" : 0, "y" : 0, "all_align" : "center", "text" : "I", }, ), }, { "name" : "Equipment_Tab_02", "type" : "radio_button", "x" : 86 + 32, "y" : 161, "default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub", "over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub", "down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub", "children" : ( { "name" : "Equipment_Tab_02_Print", "type" : "text", "x" : 0, "y" : 0, "all_align" : "center", "text" : "II", }, ), }, { "name" : "Equipment_Tab_03", "type" : "radio_button", "x" : 86 + 32, "y" : 161, "default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub", "over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub", "down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub", "children" : ( { "name" : "Equipment_Tab_03_Print", "type" : "text", "x" : 0, "y" : 0, "all_align" : "center", "text" : "III", }, ), }, { "name" : "Equipment_Tab_04", "type" : "radio_button", "x" : 86 + 32, "y" : 161, "default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub", "over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub", "down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub", "children" : ( { "name" : "Equipment_Tab_04_Print", "type" : "text", "x" : 0, "y" : 0, "all_align" : "center", "text" : "IV", }, ), }, ), }, { "name" : "Inventory_Tab_01", "type" : "radio_button", "x" : 11, "y" : 33 + 191, "default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub", "over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub", "down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub", "tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_1, "children" : ( { "name" : "Inventory_Tab_01_Print", "type" : "text", "x" : 0, "y" : 0, "all_align" : "center", "text" : "I", }, ), }, { "name" : "Inventory_Tab_02", "type" : "radio_button", "x" : 13 + 37, "y" : 33 + 191, "default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub", "over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub", "down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub", "tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_2, "children" : ( { "name" : "Inventory_Tab_02_Print", "type" : "text", "x" : 0, "y" : 0, "all_align" : "center", "text" : "II", }, ), }, { "name" : "Inventory_Tab_03", "type" : "radio_button", "x" : 13 + 77, "y" : 33 + 191, "default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub", "over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub", "down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub", "tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_3, "children" : ( { "name" : "Inventory_Tab_03_Print", "type" : "text", "x" : 0, "y" : 0, "all_align" : "center", "text" : "III", }, ), }, { "name" : "Inventory_Tab_04", "type" : "radio_button", "x" : 14 + 116, "y" : 33 + 191, "default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub", "over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub", "down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub", "tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_4, "children" : ( { "name" : "Inventory_Tab_04_Print", "type" : "text", "x" : 0, "y" : 0, "all_align" : "center", "text" : "IV", }, ), }, ## Yang Board { "name" : "Yang_board", "type" : "new_board", "x" : 9, "y" : 552+5, "width" : 169, "height" : 0, }, ## Item Slot { "name" : "ItemSlot", "type" : "grid_table", "x" : 8, "y" : 246, "start_index" : 0, "x_count" : 5, "y_count" : 9, "x_step" : 32, "y_step" : 32, "image" : "d:/ymir work/ui/public/Slot_Base.sub" }, ## Print { "name":"Money_Slot", "type":"button", "x":8, "y":28, "horizontal_align":"center", "vertical_align":"bottom", "default_image" : "d:/ymir work/ui/public/parameter_slot_05.sub", "over_image" : "d:/ymir work/ui/public/parameter_slot_05.sub", "down_image" : "d:/ymir work/ui/public/parameter_slot_05.sub", "children" : ( { "name":"Money_Icon", "type":"image", "x":-18, "y":2, "image":"d:/ymir work/ui/game/windows/money_icon.sub", }, { "name" : "Money", "type" : "text", "x" : 3, "y" : 3, "horizontal_align" : "right", "text_horizontal_align" : "right", "text" : "123456789", }, ), }, ), }, ), }
syserr:
0228 09:17:14451 :: CMapOutdoor::Load - LoadMonsterAreaInfo ERROR
0228 09:18:54910 :: Failed to load script file : locale/tr/ui/InventoryWindow.py
0228 09:18:54911 ::
ui.py(line:3583) LoadScriptFile
system.py(line:192) execfile
system.py(line:161) Run
system.py(line:177) __LoadTextFile__
LoadScriptFile!!!!!!!!!!!!!! - <type 'exceptions.IndentationError'>:unexpected indent (locale/tr/ui/InventoryWindow.py, line 587)
0228 09:18:54911 :: ============================================================================================================
0228 09:18:54911 :: Abort!!!!
0228 09:18:54912 ::
uiInventory.py(line:170) __LoadWindow
ui.py(line:3600) LoadScriptFile
exception.py(line:36) Abort
InventoryWindow.LoadWindow.LoadObject - <type 'exceptions.SystemExit'>:
0228 09:18:54912 :: ============================================================================================================
0228 09:18:54912 :: Abort!!!!
-
- Informaţie
-
Cine este conectat
Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 225 vizitatori



