Option: Don't Stretch/Shrink Game Window

Sets gameMapPanel to size 480 x 352
Prevents resizing.
This commit is contained in:
Samuel
2012-10-10 01:25:50 +02:00
parent 95e46dbbaf
commit 478e796dbd
5 changed files with 25 additions and 3 deletions

View File

@@ -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