From 1f853b000fb0bd9573fdc2653f9f4a5f31d5b6be Mon Sep 17 00:00:00 2001 From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54> Date: Thu, 30 May 2013 08:01:25 +0000 Subject: [PATCH] New hook "UISet:Classic:Resources" git-svn-id: http://svn.net-core.org/repos/t-engine4@6801 51575b47-30f0-44d4-a5cc-537603b46e54 --- game/modules/tome/class/PlayerDisplay.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/game/modules/tome/class/PlayerDisplay.lua b/game/modules/tome/class/PlayerDisplay.lua index edf0733c01..7bcf18287a 100644 --- a/game/modules/tome/class/PlayerDisplay.lua +++ b/game/modules/tome/class/PlayerDisplay.lua @@ -380,6 +380,12 @@ function _M:display() )) h = h + self.font_h end + -- Any hooks + local hd = {"UISet:Classic:Resources", player=player, x=x, y=y} + if self:triggerHook(hd) then + x, y = hd.x, hd.y + end + local quiver = player:getInven("QUIVER") local ammo = quiver and quiver[1] if ammo then -- GitLab