Skip to content
Snippets Groups Projects
Commit 2fe83ade authored by dg's avatar dg
Browse files

Inventory/equipment/store dialogs will hav a minimun size of 800x600

git-svn-id: http://svn.net-core.org/repos/t-engine4@1484 51575b47-30f0-44d4-a5cc-537603b46e54
parent c38ef317
No related branches found
No related tags found
No related merge requests found
......@@ -31,7 +31,7 @@ function _M:init(title, actor, filter, action)
self.filter = filter
self.actor = actor
Dialog.init(self, title or "Inventory", game.w * 0.8, game.h * 0.8)
Dialog.init(self, title or "Inventory", math.max(800, game.w * 0.8), math.max(600, game.h * 0.8))
self:maxH()
......
......@@ -30,7 +30,7 @@ function _M:init(title, actor, filter, action)
self.actor = actor
self.filter = filter
self.action = action
Dialog.init(self, title or "Equipment", game.w * 0.8, game.h * 0.8)
Dialog.init(self, title or "Equipment", math.max(800, game.w * 0.8), math.max(600, game.h * 0.8))
self.c_desc = TextzoneList.new{width=math.floor(self.iw / 2 - 10), height=self.ih, no_color_bleed=true}
......
......@@ -31,7 +31,7 @@ function _M:init(title, inven, filter, action, actor)
self.filter = filter
self.action = action
self.actor = actor
Dialog.init(self, title or "Inventory", game.w * 0.8, game.h * 0.8)
Dialog.init(self, title or "Inventory", math.max(800, game.w * 0.8), math.max(600, game.h * 0.8))
self.c_desc = TextzoneList.new{width=math.floor(self.iw / 2 - 10), height=self.ih, no_color_bleed=true}
......
......@@ -31,7 +31,7 @@ function _M:init(title, x, y, filter, action)
self.x, self.y = x, y
self.filter = filter
self.action = action
Dialog.init(self, title or "Pickup", game.w * 0.8, game.h * 0.8)
Dialog.init(self, title or "Pickup", math.max(800, game.w * 0.8), math.max(600, game.h * 0.8))
local takeall = Button.new{text="(*) Take all", width=self.iw - 40, fct=function() self:takeAll() end}
......
......@@ -34,7 +34,7 @@ function _M:init(title, store_inven, actor_inven, store_filter, actor_filter, ac
self.actor_inven = actor_inven
self.store_filter = store_filter
self.actor_filter = actor_filter
Dialog.init(self, title or "Store", game.w * 0.8, game.h * 0.8)
Dialog.init(self, title or "Store", math.max(800, game.w * 0.8), math.max(600, game.h * 0.8))
self:maxH()
......
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