Missing Expansion  Check-in [3f2ece1340]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:clamp newScale to engine-accepted range
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:3f2ece1340843cb6d43314f84c5239552c919a1d
User & Date: pollen 2019-06-27 01:15:54
Context
2019-06-27
23:48
add remark about scale console command Leaf check-in: 3665d21915 user: pollen tags: trunk
01:15
clamp newScale to engine-accepted range check-in: 3f2ece1340 user: pollen tags: trunk
01:12
0.4.0, add GUI scaling check-in: 1a313bbfd4 user: pollen tags: trunk
Changes

Changes to scripts/menu/options_menu.as.

1056
1057
1058
1059
1060
1061
1062

1063
1064
1065
1066
1067
1068
1069
1070
DescBox@ camera_options;
DescBox@ keybind_options;
DescBox@ audio_options;

class ResetScale : ConsoleCommand {
	void execute(const string& args) {
		double newScale = toDouble(args);

		if (newScale == 0.0) newScale = 1.0;
		setSettingDouble("dGUIScale", newScale);
		uiScale = newScale;
	}
}

void init() {
	@options_menu = OptionsMenu();







>
|







1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
DescBox@ camera_options;
DescBox@ keybind_options;
DescBox@ audio_options;

class ResetScale : ConsoleCommand {
	void execute(const string& args) {
		double newScale = toDouble(args);
		if (newScale < 0.1) newScale = 1.0;
		if (newScale > 10.0) newScale = 1.0;
		setSettingDouble("dGUIScale", newScale);
		uiScale = newScale;
	}
}

void init() {
	@options_menu = OptionsMenu();