diff --git a/game/engines/default/engine/dialogs/ShowEquipInven.lua b/game/engines/default/engine/dialogs/ShowEquipInven.lua index 1cd6ad3d3e98267f69ac8219197a77ddd15c4e9d..64f8374b6cede48e22ac4e69f920f4ba398b3dc9 100644 --- a/game/engines/default/engine/dialogs/ShowEquipInven.lua +++ b/game/engines/default/engine/dialogs/ShowEquipInven.lua @@ -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() diff --git a/game/engines/default/engine/dialogs/ShowEquipment.lua b/game/engines/default/engine/dialogs/ShowEquipment.lua index 56bd4d28daad54bdf4b6d238eb1fd7197a4c217c..cbea8ed08fe726c93eb8aebc79e40a4c66dd1f94 100644 --- a/game/engines/default/engine/dialogs/ShowEquipment.lua +++ b/game/engines/default/engine/dialogs/ShowEquipment.lua @@ -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} diff --git a/game/engines/default/engine/dialogs/ShowInventory.lua b/game/engines/default/engine/dialogs/ShowInventory.lua index 88180a54ac82ed5172e0cb841b94c28b6fa3c742..972e397b29ca8a9b1f0820e8eb094980b74cc131 100644 --- a/game/engines/default/engine/dialogs/ShowInventory.lua +++ b/game/engines/default/engine/dialogs/ShowInventory.lua @@ -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} diff --git a/game/engines/default/engine/dialogs/ShowPickupFloor.lua b/game/engines/default/engine/dialogs/ShowPickupFloor.lua index af3739df795e0f085573cbcadd4c3774dfe308ad..426447929f7e066f9908dae8d755e1607c74de43 100644 --- a/game/engines/default/engine/dialogs/ShowPickupFloor.lua +++ b/game/engines/default/engine/dialogs/ShowPickupFloor.lua @@ -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} diff --git a/game/engines/default/engine/dialogs/ShowStore.lua b/game/engines/default/engine/dialogs/ShowStore.lua index 4a3188c6501da8b883882e798aed864655fa2ad3..ff6839f628d2b329ca5934b109042d6829da7d60 100644 --- a/game/engines/default/engine/dialogs/ShowStore.lua +++ b/game/engines/default/engine/dialogs/ShowStore.lua @@ -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()