mirror of
https://github.com/edubart/otclient.git
synced 2025-10-15 12:04:55 +02:00
Option: Don't Stretch/Shrink Game Window
Sets gameMapPanel to size 480 x 352 Prevents resizing.
This commit is contained in:
@@ -63,7 +63,7 @@ UIWidget
|
||||
anchors.bottom: parent.bottom
|
||||
relative-margin: bottom
|
||||
margin-bottom: 172
|
||||
@canUpdateMargin: function(self, newMargin) return math.max(math.min(newMargin, self:getParent():getHeight() - 300), 100) end
|
||||
@canUpdateMargin: function(self, newMargin) if Options.getOption('dontStretchShrink') then return self:getMarginBottom() end return math.max(math.min(newMargin, self:getParent():getHeight() - 300), 100) end
|
||||
@onGeometryChange: function(self) self:setMarginBottom(math.min(math.max(self:getParent():getHeight() - 300, 100), self:getMarginBottom())) end
|
||||
|
||||
UIWidget
|
||||
|
Reference in New Issue
Block a user