Skip to content
Snippets Groups Projects
Commit 5bd0b9be authored by dg's avatar dg
Browse files

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
parent 96d7fb04
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment