Skip to content

Commit

Permalink
v0.6.4
Browse files Browse the repository at this point in the history
- fix for interface scale. Thanks to StranikS-Scan
  • Loading branch information
fusi0n committed Sep 11, 2024
1 parent 425934a commit 07a9e15
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
"author": "gambiter",
"name": "GUIFlash",
"description": "Flash components for use in python mods.",
"version": "0.6.3"
"version": "0.6.4"
}
}
2 changes: 1 addition & 1 deletion res/scripts/client/gui/mods/gambiter/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from flash import GUIFlash

GUIFLASH_VERSION = '0.6.3'
GUIFLASH_VERSION = '0.6.4'


def getVersion():
Expand Down
3 changes: 2 additions & 1 deletion res/scripts/client/gui/mods/gambiter/flash.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@ def delete(self, alias):
def resize(self):
if self.ui is not None:
width, height = GUI.screenResolution()
self.ui.as_resizeS(width, height)
scale = float(ServicesLocator.settingsCore.interfaceScale.get())
self.ui.as_resizeS(int(width / scale), int(height / scale))

def cursor(self, isShow):
if self.ui is not None:
Expand Down

0 comments on commit 07a9e15

Please sign in to comment.