Pagina de bonusuri arata asa
Sa incepem:
Cod: Selectaţi tot
> root> uiinventory.py
Cauti : self.costumeButton = self.GetChild2("CostumeButton")
Sub pui :
##BonusPageDialog
self.GetChild("Sword_def_Value").SetText(str(player.GetStatus(69)))
self.GetChild("Twohand_def_Value").SetText(str(player.GetStatus(70)))
self.GetChild("Knife_def_Value").SetText(str(player.GetStatus(71)))
self.GetChild("Bow_def_Value").SetText(str(player.GetStatus(74)))
self.GetChild("Bell_def_Value").SetText(str(player.GetStatus(72)))
self.GetChild("Fan_def_Value").SetText(str(player.GetStatus(73)))
self.GetChild("Magic_def_Value").SetText(str(player.GetStatus(77)))
self.GetChild("Poison_def_Value").SetText(str(player.GetStatus(81)))
self.GetChild("Warrior_def_Value").SetText(str(player.GetStatus(59)))
self.GetChild("Assassin_def_Value").SetText(str(player.GetStatus(60)))
self.GetChild("Sura_def_Value").SetText(str(player.GetStatus(61)))
self.GetChild("Mage_def_Value").SetText(str(player.GetStatus(62)))
self.GetChild("Crit_Value").SetText(str(player.GetStatus(40)))
self.GetChild("Pierce_Value").SetText(str(player.GetStatus(41)))
self.GetChild("Hitdmg_Value").SetText(str(player.GetStatus(122)))
self.GetChild("Skilldmg_Value").SetText(str(player.GetStatus(121)))
self.GetChild("Halfhuman_Value").SetText(str(player.GetStatus(43)))
self.GetChild("Undead_Value").SetText(str(player.GetStatus(47)))
self.GetChild("Devil_Value").SetText(str(player.GetStatus(48)))
self.GetChild("Warrior_str_Value").SetText(str(player.GetStatus(54)))
self.GetChild("Assassin_str_Value").SetText(str(player.GetStatus(55)))
self.GetChild("Sura_str_Value").SetText(str(player.GetStatus(56)))
self.GetChild("Mage_str_Value").SetText(str(player.GetStatus(57)))
##BonusPageDialog
Cauti : self.RefreshStatus()
Sub pui :
self.RefreshBonus()
Cauti : def __InventoryLocalSlotPosToGlobalSlotPos(self, local):
Sub pui :
##BonusPageDialog
def __LoadRefreshBonus(self):
self.RefreshBonus()
def RefreshBonus(self):
try:
self.GetChild("Sword_def_Value").SetText(str(player.GetStatus(69)))
self.GetChild("Twohand_def_Value").SetText(str(player.GetStatus(70)))
self.GetChild("Knife_def_Value").SetText(str(player.GetStatus(71)))
self.GetChild("Bow_def_Value").SetText(str(player.GetStatus(74)))
self.GetChild("Bell_def_Value").SetText(str(player.GetStatus(72)))
self.GetChild("Fan_def_Value").SetText(str(player.GetStatus(73)))
self.GetChild("Magic_def_Value").SetText(str(player.GetStatus(77)))
self.GetChild("Poison_def_Value").SetText(str(player.GetStatus(81)))
self.GetChild("Warrior_def_Value").SetText(str(player.GetStatus(59)))
self.GetChild("Assassin_def_Value").SetText(str(player.GetStatus(60)))
self.GetChild("Sura_def_Value").SetText(str(player.GetStatus(61)))
self.GetChild("Mage_def_Value").SetText(str(player.GetStatus(62)))
self.GetChild("Crit_Value").SetText(str(player.GetStatus(40)))
self.GetChild("Pierce_Value").SetText(str(player.GetStatus(41)))
self.GetChild("Hitdmg_Value").SetText(str(player.GetStatus(122)))
self.GetChild("Skilldmg_Value").SetText(str(player.GetStatus(121)))
self.GetChild("Halfhuman_Value").SetText(str(player.GetStatus(43)))
self.GetChild("Undead_Value").SetText(str(player.GetStatus(47)))
self.GetChild("Devil_Value").SetText(str(player.GetStatus(48)))
self.GetChild("Warrior_str_Value").SetText(str(player.GetStatus(54)))
self.GetChild("Assassin_str_Value").SetText(str(player.GetStatus(55)))
self.GetChild("Sura_str_Value").SetText(str(player.GetStatus(56)))
self.GetChild("Mage_str_Value").SetText(str(player.GetStatus(57)))
except:
import exception
exception.Abort("InventoryWindow.RefreshBonus.BindObject")
##BonusPageDialog
####### pui la final ###########
##BonusPageDialog
def OnUpdate(self):
if self.isLoaded == 1:
self.__LoadRefreshBonus()
##BonusPageDialog
> root> inventorywindow.py
pui la inceput
MIDDLE_VALUE_FILE = "d:/ymir work/ui/public/Parameter_Slot_01.sub"
Deasupra la :
{
"name" : "Inventory_Tab_01",
"type" : "radio_button",
"x" : 10,
"y" : 33 + 191,
"default_image" : "d:/ymir work/ui/game/windows/tab_button_large_01.sub",
"over_image" : "d:/ymir work/ui/game/windows/tab_button_large_02.sub",
"down_image" : "d:/ymir work/ui/game/windows/tab_button_large_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",
},
),
},
Pui:::-----
##BonusPageDialog
{
"name" : "Bonus_Page",
"type" : "window",
"x" : 166,
"y" : 34,
"width" : 124,
"height" : 565-24,
"children" :
(
{
"name" : "BonusBase1",
"type" : "horizontalbar",
"x" : 4,
"y" : 0,
"width" : 120,
"children" :
(
{
"name" : "bonus_text_1",
"type" : "text",
"x" : 0,
"y" : 0,
"all_align" : "center",
"text" : "Aparari",
},
),
},
{
"name" : "Sword_defence",
"type" : "text",
"x" : 5,
"y" : 1*18,
"text" : "Sabie:"
},
{
"name" : "Sword_def",
"type" : "window",
"x" : 72,
"y" : 1*18,
"width" : 53,
"height" : 19,
"children" :
(
{
"name" : "Sword_def_Slot",
"type" : "image",
"x" : 0,
"y" : 0,
"image" : MIDDLE_VALUE_FILE
},
{
"name" : "Sword_def_Value",
"type" : "text",
"x" : 26,
"y" : 3,
"text" : "999",
"r" : 1.0,
"g" : 1.0,
"b" : 1.0,
"a" : 1.0,
"text_horizontal_align":"center"
},
),
},
{
"name" : "Twohand_defence",
"type" : "text",
"x" : 5,
"y" : 2*18,
"text" : "Doua Maini:"
},
{
"name" : "Twohand_def",
"type" : "window",
"x" : 72,
"y" : 2*18,
"width" : 53,
"height" : 19,
"children" :
(
{
"name" : "Twohand_def_Slot",
"type" : "image",
"x" : 0,
"y" : 0,
"image" : MIDDLE_VALUE_FILE
},
{
"name" : "Twohand_def_Value",
"type" : "text",
"x" : 26,
"y" : 3,
"text" : "999",
"r" : 1.0,
"g" : 1.0,
"b" : 1.0,
"a" : 1.0,
"text_horizontal_align":"center"
},
),
},
{
"name" : "Knife_defence",
"type" : "text",
"x" : 5,
"y" : 3*18,
"text" : "Pumnal:"
},
{
"name" : "Knife_def",
"type" : "window",
"x" : 72,
"y" : 3*18,
"width" : 53,
"height" : 19,
"children" :
(
{
"name" : "Knife_def_Slot",
"type" : "image",
"x" : 0,
"y" : 0,
"image" : MIDDLE_VALUE_FILE
},
{
"name" : "Knife_def_Value",
"type" : "text",
"x" : 26,
"y" : 3,
"text" : "999",
"r" : 1.0,
"g" : 1.0,
"b" : 1.0,
"a" : 1.0,
"text_horizontal_align":"center"
},
),
},
{
"name" : "Bow_defence",
"type" : "text",
"x" : 5,
"y" : 4*18,
"text" : "Sageti:"
},
{
"name" : "Bow_def",
"type" : "window",
"x" : 72,
"y" : 4*18,
"width" : 53,
"height" : 19,
"children" :
(
{
"name" : "Bow_def_Slot",
"type" : "image",
"x" : 0,
"y" : 0,
"image" : MIDDLE_VALUE_FILE
},
{
"name" : "Bow_def_Value",
"type" : "text",
"x" : 26,
"y" : 3,
"text" : "999",
"r" : 1.0,
"g" : 1.0,
"b" : 1.0,
"a" : 1.0,
"text_horizontal_align":"center"
},
),
},
{
"name" : "Bell_defence",
"type" : "text",
"x" : 5,
"y" : 5*18,
"text" : "Clopot:"
},
{
"name" : "Bell_def",
"type" : "window",
"x" : 72,
"y" : 5*18,
"width" : 53,
"height" : 19,
"children" :
(
{
"name" : "Bell_def_Slot",
"type" : "image",
"x" : 0,
"y" : 0,
"image" : MIDDLE_VALUE_FILE
},
{
"name" : "Bell_def_Value",
"type" : "text",
"x" : 26,
"y" : 3,
"text" : "999",
"r" : 1.0,
"g" : 1.0,
"b" : 1.0,
"a" : 1.0,
"text_horizontal_align":"center"
},
),
},
{
"name" : "Fan_defence",
"type" : "text",
"x" : 5,
"y" : 6*18,
"text" : "Evantai:"
},
{
"name" : "Fan_def",
"type" : "window",
"x" : 72,
"y" : 6*18,
"width" : 53,
"height" : 19,
"children" :
(
{
"name" : "Fan_def_Slot",
"type" : "image",
"x" : 0,
"y" : 0,
"image" : MIDDLE_VALUE_FILE
},
{
"name" : "Fan_def_Value",
"type" : "text",
"x" : 26,
"y" : 3,
"text" : "999",
"r" : 1.0,
"g" : 1.0,
"b" : 1.0,
"a" : 1.0,
"text_horizontal_align":"center"
},
),
},
{
"name" : "Magic_defence",
"type" : "text",
"x" : 5,
"y" : 7*18,
"text" : "Magie:"
},
{
"name" : "Magic_def",
"type" : "window",
"x" : 72,
"y" : 7*18,
"width" : 53,
"height" : 19,
"children" :
(
{
"name" : "Magic_def_Slot",
"type" : "image",
"x" : 0,
"y" : 0,
"image" : MIDDLE_VALUE_FILE
},
{
"name" : "Magic_def_Value",
"type" : "text",
"x" : 26,
"y" : 3,
"text" : "999",
"r" : 1.0,
"g" : 1.0,
"b" : 1.0,
"a" : 1.0,
"text_horizontal_align":"center"
},
),
},
{
"name" : "Poison_defence",
"type" : "text",
"x" : 5,
"y" : 8*18,
"text" : "Otrava:"
},
{
"name" : "Poison_def",
"type" : "window",
"x" : 72,
"y" : 8*18,
"width" : 53,
"height" : 19,
"children" :
(
{
"name" : "Poison_def_Slot",
"type" : "image",
"x" : 0,
"y" : 0,
"image" : MIDDLE_VALUE_FILE
},
{
"name" : "Poison_def_Value",
"type" : "text",
"x" : 26,
"y" : 3,
"text" : "999",
"r" : 1.0,
"g" : 1.0,
"b" : 1.0,
"a" : 1.0,
"text_horizontal_align":"center"
},
),
},
{
"name" : "Warrior_defence",
"type" : "text",
"x" : 5,
"y" : 9*18,
"text" : "Razboinic:"
},
{
"name" : "Warrior_def",
"type" : "window",
"x" : 72,
"y" : 9*18,
"width" : 53,
"height" : 19,
"children" :
(
{
"name" : "Warrior_def_Slot",
"type" : "image",
"x" : 0,
"y" : 0,
"image" : MIDDLE_VALUE_FILE
},
{
"name" : "Warrior_def_Value",
"type" : "text",
"x" : 26,
"y" : 3,
"text" : "999",
"r" : 1.0,
"g" : 1.0,
"b" : 1.0,
"a" : 1.0,
"text_horizontal_align":"center"
},
),
},
{
"name" : "Assassin_defence",
"type" : "text",
"x" : 5,
"y" : 10*18,
"text" : "Ninja:"
},
{
"name" : "Assassin_def",
"type" : "window",
"x" : 72,
"y" : 10*18,
"width" : 53,
"height" : 19,
"children" :
(
{
"name" : "Assassin_def_Slot",
"type" : "image",
"x" : 0,
"y" : 0,
"image" : MIDDLE_VALUE_FILE
},
{
"name" : "Assassin_def_Value",
"type" : "text",
"x" : 26,
"y" : 3,
"text" : "999",
"r" : 1.0,
"g" : 1.0,
"b" : 1.0,
"a" : 1.0,
"text_horizontal_align":"center"
},
),
},
{
"name" : "Sura_defence",
"type" : "text",
"x" : 5,
"y" : 11*18,
"text" : "Sura:"
},
{
"name" : "Sura_def",
"type" : "window",
"x" : 72,
"y" : 11*18,
"width" : 53,
"height" : 19,
"children" :
(
{
"name" : "Sura_def_Slot",
"type" : "image",
"x" : 0,
"y" : 0,
"image" : MIDDLE_VALUE_FILE
},
{
"name" : "Sura_def_Value",
"type" : "text",
"x" : 26,
"y" : 3,
"text" : "999",
"r" : 1.0,
"g" : 1.0,
"b" : 1.0,
"a" : 1.0,
"text_horizontal_align":"center"
},
),
},
{
"name" : "Mage_defence",
"type" : "text",
"x" : 5,
"y" : 12*18,
"text" : "Shaman:"
},
{
"name" : "Mage_def",
"type" : "window",
"x" : 72,
"y" : 12*18,
"width" : 53,
"height" : 19,
"children" :
(
{
"name" : "Mage_def_Slot",
"type" : "image",
"x" : 0,
"y" : 0,
"image" : MIDDLE_VALUE_FILE
},
{
"name" : "Mage_def_Value",
"type" : "text",
"x" : 26,
"y" : 3,
"text" : "999",
"r" : 1.0,
"g" : 1.0,
"b" : 1.0,
"a" : 1.0,
"text_horizontal_align":"center"
},
),
},
{
"name" : "BonusBase2",
"type" : "horizontalbar",
"x" : 4,
"y" : 235,
"width" : 120,
"children" :
(
{
"name" : "bonus_text_1",
"type" : "text",
"x" : 0,
"y" : 0,
"all_align" : "center",
"text" : "Atac",
},
),
},
{
"name" : "Critical_chance",
"type" : "text",
"x" : 5,
"y" : 235+(1*18),
"text" : "Critica:"
},
{
"name" : "Crit",
"type" : "window",
"x" : 72,
"y" : 235+(1*18),
"width" : 53,
"height" : 19,
"children" :
(
{
"name" : "Crit_Slot",
"type" : "image",
"x" : 0,
"y" : 0,
"image" : MIDDLE_VALUE_FILE
},
{
"name" : "Crit_Value",
"type" : "text",
"x" : 26,
"y" : 3,
"text" : "999",
"r" : 1.0,
"g" : 1.0,
"b" : 1.0,
"a" : 1.0,
"text_horizontal_align":"center"
},
),
},
{
"name" : "Pierce_chance",
"type" : "text",
"x" : 5,
"y" : 235+(2*18),
"text" : "Patrunzatoare:"
},
{
"name" : "Pierce",
"type" : "window",
"x" : 72,
"y" : 235+(2*18),
"width" : 53,
"height" : 19,
"children" :
(
{
"name" : "Pierce_Slot",
"type" : "image",
"x" : 0,
"y" : 0,
"image" : MIDDLE_VALUE_FILE
},
{
"name" : "Pierce_Value",
"type" : "text",
"x" : 26,
"y" : 3,
"text" : "999",
"r" : 1.0,
"g" : 1.0,
"b" : 1.0,
"a" : 1.0,
"text_horizontal_align":"center"
},
),
},
{
"name" : "Hit_damage",
"type" : "text",
"x" : 5,
"y" : 235+(3*18),
"text" : "Paguba medie:"
},
{
"name" : "Hitdmg",
"type" : "window",
"x" : 72,
"y" : 235+(3*18),
"width" : 53,
"height" : 19,
"children" :
(
{
"name" : "Hitdmg_Slot",
"type" : "image",
"x" : 0,
"y" : 0,
"image" : MIDDLE_VALUE_FILE
},
{
"name" : "Hitdmg_Value",
"type" : "text",
"x" : 26,
"y" : 3,
"text" : "999",
"r" : 1.0,
"g" : 1.0,
"b" : 1.0,
"a" : 1.0,
"text_horizontal_align":"center"
},
),
},
{
"name" : "Skill_damage",
"type" : "text",
"x" : 5,
"y" : 235+(4*18),
"text" : "Paguba Competentei:"
},
{
"name" : "Skilldmg",
"type" : "window",
"x" : 72,
"y" : 235+(4*18),
"width" : 53,
"height" : 19,
"children" :
(
{
"name" : "Skilldmg_Slot",
"type" : "image",
"x" : 0,
"y" : 0,
"image" : MIDDLE_VALUE_FILE
},
{
"name" : "Skilldmg_Value",
"type" : "text",
"x" : 26,
"y" : 3,
"text" : "999",
"r" : 1.0,
"g" : 1.0,
"b" : 1.0,
"a" : 1.0,
"text_horizontal_align":"center"
},
),
},
{
"name" : "Halfhumans",
"type" : "text",
"x" : 5,
"y" : 235+(5*18),
"text" : "Semi-om:"
},
{
"name" : "Halfhuman",
"type" : "window",
"x" : 72,
"y" : 235+(5*18),
"width" : 53,
"height" : 19,
"children" :
(
{
"name" : "Halfhuman_Slot",
"type" : "image",
"x" : 0,
"y" : 0,
"image" : MIDDLE_VALUE_FILE
},
{
"name" : "Halfhuman_Value",
"type" : "text",
"x" : 26,
"y" : 3,
"text" : "999",
"r" : 1.0,
"g" : 1.0,
"b" : 1.0,
"a" : 1.0,
"text_horizontal_align":"center"
},
),
},
{
"name" : "Undeads",
"type" : "text",
"x" : 5,
"y" : 235+(6*18),
"text" : "Vampiri:"
},
{
"name" : "Undead",
"type" : "window",
"x" : 72,
"y" : 235+(6*18),
"width" : 53,
"height" : 19,
"children" :
(
{
"name" : "Undead_Slot",
"type" : "image",
"x" : 0,
"y" : 0,
"image" : MIDDLE_VALUE_FILE
},
{
"name" : "Undead_Value",
"type" : "text",
"x" : 26,
"y" : 3,
"text" : "999",
"r" : 1.0,
"g" : 1.0,
"b" : 1.0,
"a" : 1.0,
"text_horizontal_align":"center"
},
),
},
{
"name" : "Devil_gegen",
"type" : "text",
"x" : 5,
"y" : 235+(7*18),
"text" : "Diavol:"
},
{
"name" : "Devil",
"type" : "window",
"x" : 72,
"y" : 235+(7*18),
"width" : 53,
"height" : 19,
"children" :
(
{
"name" : "Devil_Slot",
"type" : "image",
"x" : 0,
"y" : 0,
"image" : MIDDLE_VALUE_FILE
},
{
"name" : "Devil_Value",
"type" : "text",
"x" : 26,
"y" : 3,
"text" : "999",
"r" : 1.0,
"g" : 1.0,
"b" : 1.0,
"a" : 1.0,
"text_horizontal_align":"center"
},
),
},
{
"name" : "Warrior_gegen",
"type" : "text",
"x" : 5,
"y" : 235+(8*18),
"text" : "Razboinic:"
},
{
"name" : "Warrior_str",
"type" : "window",
"x" : 72,
"y" : 235+(8*18),
"width" : 53,
"height" : 19,
"children" :
(
{
"name" : "Warrior_str_Slot",
"type" : "image",
"x" : 0,
"y" : 0,
"image" : MIDDLE_VALUE_FILE
},
{
"name" : "Warrior_str_Value",
"type" : "text",
"x" : 26,
"y" : 3,
"text" : "999",
"r" : 1.0,
"g" : 1.0,
"b" : 1.0,
"a" : 1.0,
"text_horizontal_align":"center"
},
),
},
{
"name" : "Assassin_gegen",
"type" : "text",
"x" : 5,
"y" : 235+(9*18),
"text" : "Ninja:"
},
{
"name" : "Assassin_str",
"type" : "window",
"x" : 72,
"y" : 235+(9*18),
"width" : 53,
"height" : 19,
"children" :
(
{
"name" : "Assassin_str_Slot",
"type" : "image",
"x" : 0,
"y" : 0,
"image" : MIDDLE_VALUE_FILE
},
{
"name" : "Assassin_str_Value",
"type" : "text",
"x" : 26,
"y" : 3,
"text" : "999",
"r" : 1.0,
"g" : 1.0,
"b" : 1.0,
"a" : 1.0,
"text_horizontal_align":"center"
},
),
},
{
"name" : "Sura_gegen",
"type" : "text",
"x" : 5,
"y" : 235+(10*18),
"text" : "Sura:"
},
{
"name" : "Assassin_str",
"type" : "window",
"x" : 72,
"y" : 235+(10*18),
"width" : 53,
"height" : 19,
"children" :
(
{
"name" : "Sura_str_Slot",
"type" : "image",
"x" : 0,
"y" : 0,
"image" : MIDDLE_VALUE_FILE
},
{
"name" : "Sura_str_Value",
"type" : "text",
"x" : 26,
"y" : 3,
"text" : "999",
"r" : 1.0,
"g" : 1.0,
"b" : 1.0,
"a" : 1.0,
"text_horizontal_align":"center"
},
),
},
{
"name" : "Mage_gegen",
"type" : "text",
"x" : 5,
"y" : 235+(11*18),
"text" : "Shaman:"
},
{
"name" : "Mage_str",
"type" : "window",
"x" : 72,
"y" : 235+(11*18),
"width" : 53,
"height" : 19,
"children" :
(
{
"name" : "Mage_str_Slot",
"type" : "image",
"x" : 0,
"y" : 0,
"image" : MIDDLE_VALUE_FILE
},
{
"name" : "Mage_str_Value",
"type" : "text",
"x" : 26,
"y" : 3,
"text" : "999",
"r" : 1.0,
"g" : 1.0,
"b" : 1.0,
"a" : 1.0,
"text_horizontal_align":"center"
},
),
},
{
"name" : "CopyRight",
"type" : "horizontalbar",
"x" : 4,
"y" : 470,
"width" : 120,
"children" :
(
{
"name" : "(C)",
"type" : "text",
"x" : 0,
"y" : 0,
"all_align" : "center",
"text" : "PlayMouth PVP",
"r" : 1.0,
"g" : 0.0,
"b" : 0.0,
"a" : 1.0,
},
),
},
),
},
La inceput
schimbi cu astea
"x" : SCREEN_WIDTH - 124 - 176,
"y" : SCREEN_HEIGHT - 37 - 565,
"style" : ("movable", "float",),
"width" : 176+124,
"height" : 565,
"x" : 0,
"y" : 0,
"width" : 176+124,
"height" : 565,
"name" : "TitleBar",
"type" : "titlebar",
"style" : ("attach",),
"x" : 8,
"y" : 7,
"width" : 161+124,
"color" : "yellow",
"name":"TitleName",
"type":"text",
"x":77+62,
"y":3,
"text":uiScriptLocale.INVENTORY_TITLE,
"text_horizontal_align":"center"
La final
"name":"Money_Slot",
"type":"button",
"x":8+20,
"y":28,
# "horizontal_align":"center",
"vertical_align":"bottom", 

