def getScaleOptions(): """ Return list of scales for the current resolution. This list does not depend on what is set in SettingsWindow. :return: list of scales, for example: ['auto', 'x1', ...] """ return graphics.getInterfaceScalesList(BigWorld.screenSize())
def onUpdateStage(self): width, height = GUI.screenResolution() scaleLength = len(graphics.getInterfaceScalesList([width, height])) self._displayRoot.updateStage(width, height, scaleLength - 1)
def getScaleOptions(): return graphics.getInterfaceScalesList(BigWorld.screenSize())
def _updateStage(self): width, height = GUI.screenResolution() scaleLength = len(graphics.getInterfaceScalesList([width, height])) self.as_updateStageS(width, height, scaleLength - 1)