diff options
author | ubq323 <ubq323@ubq323.website> | 2023-08-27 00:03:21 +0100 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2023-08-27 00:03:21 +0100 |
commit | 00d6c715e8d71056274e22b3a7eae2e55d3840c1 (patch) | |
tree | b088a71de878a2d1b538e97fbc93d5bd411e5966 /client/util.lua | |
parent | 047d147e08a42c25d30efac93cda155fa51f9ed2 (diff) |
reëngineer inventories a bit
Diffstat (limited to 'client/util.lua')
-rw-r--r-- | client/util.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/client/util.lua b/client/util.lua index a1c4b35..ebfad6c 100644 --- a/client/util.lua +++ b/client/util.lua @@ -7,6 +7,8 @@ local function print_good(str,x,y) local W,H = love.graphics.getDimensions() if x == "center" then x = (W/2)-(w/2) end if y == "center" then y = (H/2)-(h/2) end + if x == "end" then x = W-w end + if y == "end" then y = H-h end love.graphics.setColor(0,0,0,0.8) love.graphics.rectangle("fill",x,y,w,h) love.graphics.setColor(1,1,1) |