From 5bd0b9be4749e47fd1f1afe105936af7bf30c8d7 Mon Sep 17 00:00:00 2001
From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54>
Date: Fri, 14 Dec 2012 03:09:15 +0000
Subject: [PATCH] New hook UISet:Minimalist:Resources to display a new resource

git-svn-id: http://svn.net-core.org/repos/t-engine4@6073 51575b47-30f0-44d4-a5cc-537603b46e54
---
 game/modules/tome/class/uiset/Minimalist.lua | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/game/modules/tome/class/uiset/Minimalist.lua b/game/modules/tome/class/uiset/Minimalist.lua
index 59314981f8..592512f43a 100644
--- a/game/modules/tome/class/uiset/Minimalist.lua
+++ b/game/modules/tome/class/uiset/Minimalist.lua
@@ -1050,6 +1050,11 @@ function _M:displayResources(scale, bx, by, a)
 			x, y = self:resourceOrientStep(orient, bx, by, scale, x, y, fshat[6], fshat[7])
 		elseif game.mouse:getZone("res:fortress") then game.mouse:unregisterZone("res:fortress") end
 
+		-- Any hooks
+		local hd = {"UISet:Minimalist:Resources", a=a, player=player, x=x, y=y, bx=bx, by=by, orient=orient, scale=scale}
+		if self:triggerHook(hd) then 
+			x, y = hd.x, hd.y
+		end
 
 		-----------------------------------------------------------------------------------
 		-- Ammo
-- 
GitLab