Updated advernturer blessing inventory style to be more robust

master
TheSumm 9 年前
父節點 63f95317a2
當前提交 fc76ca4523

未顯示二進位檔案。

之後

寬度:  |  高度:  |  大小: 4.0 KiB

未顯示二進位檔案。

之後

寬度:  |  高度:  |  大小: 4.9 KiB

未顯示二進位檔案。

之後

寬度:  |  高度:  |  大小: 4.9 KiB

未顯示二進位檔案。

之後

寬度:  |  高度:  |  大小: 4.6 KiB

未顯示二進位檔案。

之後

寬度:  |  高度:  |  大小: 4.1 KiB

未顯示二進位檔案。

之後

寬度:  |  高度:  |  大小: 4.4 KiB

未顯示二進位檔案。

之後

寬度:  |  高度:  |  大小: 4.5 KiB

未顯示二進位檔案。

之後

寬度:  |  高度:  |  大小: 4.6 KiB

未顯示二進位檔案。

之後

寬度:  |  高度:  |  大小: 4.3 KiB

未顯示二進位檔案。

之後

寬度:  |  高度:  |  大小: 5.0 KiB

未顯示二進位檔案。

之後

寬度:  |  高度:  |  大小: 3.1 KiB

@ -62,13 +62,7 @@ function toggleAdventurerStyle(hasBlessing)
for slot = InventorySlotFirst, InventorySlotLast do
local itemWidget = inventoryPanel:getChildById('slot' .. slot)
if itemWidget then
if hasBlessing then
itemWidget:setBorderWidth(1)
itemWidget:setBorderColor('#F7C80C')
else
itemWidget:setBorderWidth(0)
itemWidget:setBorderColor('white')
end
itemWidget:setOn(hasBlessing)
end
end
end
@ -114,7 +108,7 @@ function onInventoryChange(player, slot, item, oldItem)
local itemWidget = inventoryPanel:getChildById('slot' .. slot)
if item then
itemWidget:setStyle('Item')
itemWidget:setStyle('InventoryItem')
itemWidget:setItem(item)
else
itemWidget:setStyle(InventorySlotStyles[slot])

@ -1,54 +1,76 @@
InventoryItem < Item
$on:
image-source: /images/ui/item-blessed
HeadSlot < InventoryItem
id: slot1
image-source: /images/game/slots/head
&position: {x=65535, y=1, z=0}
$on:
image-source: /images/game/slots/head-blessed
BodySlot < InventoryItem
id: slot4
image-source: /images/game/slots/body
&position: {x=65535, y=4, z=0}
$on:
image-source: /images/game/slots/body-blessed
LegSlot < InventoryItem
id: slot7
image-source: /images/game/slots/legs
&position: {x=65535, y=7, z=0}
$on:
image-source: /images/game/slots/legs-blessed
FeetSlot < InventoryItem
id: slot8
image-source: /images/game/slots/feet
&position: {x=65535, y=8, z=0}
$on:
image-source: /images/game/slots/feet-blessed
NeckSlot < InventoryItem
id: slot2
image-source: /images/game/slots/neck
&position: {x=65535, y=2, z=0}
$on:
image-source: /images/game/slots/neck-blessed
LeftSlot < InventoryItem
id: slot6
image-source: /images/game/slots/left-hand
&position: {x=65535, y=6, z=0}
$on:
image-source: /images/game/slots/left-hand-blessed
FingerSlot < InventoryItem
id: slot9
image-source: /images/game/slots/finger
&position: {x=65535, y=9, z=0}
$on:
image-source: /images/game/slots/finger-blessed
BackSlot < InventoryItem
id: slot3
image-source: /images/game/slots/back
&position: {x=65535, y=3, z=0}
$on:
image-source: /images/game/slots/back-blessed
RightSlot < InventoryItem
id: slot5
image-source: /images/game/slots/right-hand
&position: {x=65535, y=5, z=0}
$on:
image-source: /images/game/slots/right-hand-blessed
AmmoSlot < InventoryItem
id: slot10
image-source: /images/game/slots/ammo
&position: {x=65535, y=10, z=0}
$on:
image-source: /images/game/slots/ammo-blessed
PurseButton < Button
id: purseButton

@ -705,6 +705,7 @@ void Creature::setBaseSpeed(double baseSpeed)
callLuaField("onBaseSpeedChange", baseSpeed, oldBaseSpeed);
}
}
void Creature::setSkull(uint8 skull)
{
m_skull = skull;

載入中…
取消
儲存