PHP код:
def inventory = xdat.windows["InventoryWnd"]
inventory.size_absolute_width = 410
[
"BtnRotateRight",
"BtnRotateLeft",
"ObjectViewport",
"ObjectViewportDispatchMsg",
"EquipBg",
"TalismanAllow",
].each { rem ->
inventory.children.removeIf({ el ->
el.name == rem
})
}
[
EquipSlotBg : [anchor_x: 4.0, anchor_y: 32.0, size_absolute_width: 124, size_absolute_height: 356, unk100: 'OldInventory.IconSlot'],
EquipItem_Underwear: [anchor_x: 10.0, anchor_y: 76.0],
EquipItem_Head : [anchor_x: 49.0, anchor_y: 38.0],
EquipItem_Hair : [anchor_x: 10.0, anchor_y: 38.0],
EquipItem_Hair2 : [anchor_x: 88.0, anchor_y: 38.0],
EquipItem_Chest : [anchor_x: 49.0, anchor_y: 76.0],
EquipItem_Cloak : [anchor_x: 88.0, anchor_y: 76.0],
CloakSlot_Disable : [anchor_x: 88.0, anchor_y: 76.0],
EquipItem_Gloves : [anchor_x: 10.0, anchor_y: 114.0],
EquipItem_Legs : [anchor_x: 49.0, anchor_y: 114.0],
EquipItem_Feet : [anchor_x: 88.0, anchor_y: 114.0],
EquipItem_RHand : [anchor_x: 10.0, anchor_y: 163.0],
EquipItem_Waist : [anchor_x: 49.0, anchor_y: 163.0],
EquipItem_LHand : [anchor_x: 88.0, anchor_y: 163.0],
EquipItem_REar : [anchor_x: 88.0, anchor_y: 212.0],
EquipItem_Neck : [anchor_x: 49.0, anchor_y: 212.0],
EquipItem_LEar : [anchor_x: 10.0, anchor_y: 212.0],
EquipItem_LFinger : [anchor_x: 88.0, anchor_y: 250.0],
EquipItem_LBracelet: [anchor_x: 49.0, anchor_y: 250.0],
EquipItem_RFinger : [anchor_x: 10.0, anchor_y: 250.0],
EquipItem_RBracelet: [anchor_x: 10.0, anchor_y: 302.0],
EquipItem_Talisman1: [anchor_x: 64.0, anchor_y: 300.0],
EquipItem_Talisman2: [anchor_x: 84.0, anchor_y: 300.0],
EquipItem_Talisman3: [anchor_x: 104.0, anchor_y: 300.0],
EquipItem_Talisman4: [anchor_x: 64.0, anchor_y: 320.0],
EquipItem_Talisman5: [anchor_x: 84.0, anchor_y: 320.0],
EquipItem_Talisman6: [anchor_x: 104.0, anchor_y: 320.0],
Talisman1_Disable : [anchor_x: 65.0, anchor_y: 301.0],
Talisman2_Disable : [anchor_x: 85.0, anchor_y: 301.0],
Talisman3_Disable : [anchor_x: 105.0, anchor_y: 301.0],
Talisman4_Disable : [anchor_x: 65.0, anchor_y: 321.0],
Talisman5_Disable : [anchor_x: 85.0, anchor_y: 321.0],
Talisman6_Disable : [anchor_x: 105.0, anchor_y: 321.0],
HennaItem : [anchor_x: 25.0, anchor_y: 355.0, size_absolute_width: 84, size_absolute_height: 26, cols: 3, rows: 1, spacing_horizontal: 4, spacing_vertical: 0, cellWidth: 24, cellHeight: 24],
InventoryItembkg : [anchor_x: 136.0, size_absolute_width: 252],
InventoryItem : [anchor_x: 137.0, size_absolute_width: 267, cols: 7],
QuestItem : [anchor_x: 137.0, size_absolute_width: 267, cols: 7],
InventoryTab : [anchor_x: 139.0]
].each { k, ps ->
def element = inventory.children[k]
ps.each { p, v ->
element."$p" = v
}
}
inventory.children.each { el ->
if (el.name == "tabbkg") {
el.anchor_x -= 73
el.size_absolute_width += 36
}
}
inventory.children["CrystallizeButton"].anchor_x -= 72
[
"TrashButton",
"adenabk",
"AdenaText",
"AdenaIcon",
"WeightIcon",
"InvenWeight"
].each { name ->
def element = inventory.children[name]
element.anchor_x -= 37
}