mirror of
https://github.com/OTCv8/otclientv8.git
synced 2025-10-19 22:23:28 +02:00
Version 2.5.4 - http://otclient.net/showthread.php?tid=329
This commit is contained in:
@@ -188,6 +188,7 @@ GameSendIdentifiers = 103
|
||||
GameWingsAndAura = 104
|
||||
GamePlayerStateU32 = 105
|
||||
GameOutfitShaders = 106
|
||||
GameForceAllowItemHotkeys = 107
|
||||
|
||||
GamePacketSizeU32 = 110
|
||||
GamePacketCompression = 111
|
||||
|
@@ -60,7 +60,7 @@ end
|
||||
|
||||
function UIItem:onHoverChange(hovered)
|
||||
UIWidget.onHoverChange(self, hovered)
|
||||
|
||||
|
||||
if self:isVirtual() or not self:isDraggable() then return end
|
||||
|
||||
local draggingWidget = g_ui.getDraggingWidget()
|
||||
@@ -126,4 +126,12 @@ function UIItem:onClick(mousePos)
|
||||
if modules.game_itemselector then
|
||||
modules.game_itemselector.show(self)
|
||||
end
|
||||
end
|
||||
|
||||
function UIItem:onItemChange()
|
||||
local tooltip = nil
|
||||
if self:getItem() and self:getItem():getTooltip():len() > 0 then
|
||||
tooltip = self:getItem():getTooltip()
|
||||
end
|
||||
self:setTooltip(tooltip)
|
||||
end
|
Reference in New Issue
Block a user