Skip to content
Snippets Groups Projects
Commit 6c457fa6 authored by DarkGod's avatar DarkGod
Browse files

Store dialog should fit better on small screens

parent d78072a4
No related branches found
No related tags found
No related merge requests found
......@@ -37,7 +37,7 @@ function _M:init(title, store_inven, actor_inven, store_filter, actor_filter, ac
self.actor_filter = actor_filter
self.actor_actor = actor_actor
self.base_title = title or "Store"
Dialog.init(self, self:getStoreTitle(), math.max(800, game.w * 0.8), math.max(600, game.h * 0.8))
Dialog.init(self, self:getStoreTitle(), game.w * 0.8, game.h * 0.8)
if store_actor.faction then
local i = Map.tiles:loadImage("faction/"..store_actor.faction..".png")
......
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