1
0
mirror of synced 2024-11-28 09:30:51 +01:00

fix: Rename scaling setting to avoid old values being interpreted wrongly

This commit is contained in:
WerWolv 2023-12-08 14:36:42 +01:00
parent f1b40d0500
commit 6df3a9243f
11 changed files with 11 additions and 44 deletions

View File

@ -537,12 +537,8 @@
"hex.builtin.setting.interface.fps.native": "",
"hex.builtin.setting.interface.language": "Sprache",
"hex.builtin.setting.interface.multi_windows": "Multi-Window-Unterstützung aktivieren",
"hex.builtin.setting.interface.scaling": "Skalierung",
"hex.builtin.setting.interface.scaling_factor": "Skalierung",
"hex.builtin.setting.interface.scaling.native": "Nativ",
"hex.builtin.setting.interface.scaling.x0_5": "x0.5",
"hex.builtin.setting.interface.scaling.x1_0": "x1.0",
"hex.builtin.setting.interface.scaling.x1_5": "x1.5",
"hex.builtin.setting.interface.scaling.x2_0": "x2.0",
"hex.builtin.setting.interface.wiki_explain_language": "Wikipedia Sprache",
"hex.builtin.setting.interface.restore_window_pos": "",
"hex.builtin.setting.proxy": "Proxy",

View File

@ -595,7 +595,7 @@
"hex.builtin.setting.interface.fps.native": "Native",
"hex.builtin.setting.interface.language": "Language",
"hex.builtin.setting.interface.multi_windows": "Enable Multi Window support",
"hex.builtin.setting.interface.scaling": "Scaling",
"hex.builtin.setting.interface.scaling_factor": "Scaling",
"hex.builtin.setting.interface.scaling.native": "Native",
"hex.builtin.setting.interface.style": "Styling",
"hex.builtin.setting.interface.window": "Window",

View File

@ -537,12 +537,8 @@
"hex.builtin.setting.interface.fps.native": "Nativo",
"hex.builtin.setting.interface.language": "Idioma",
"hex.builtin.setting.interface.multi_windows": "Activar soporte de ventanas múltiples",
"hex.builtin.setting.interface.scaling": "Escalado",
"hex.builtin.setting.interface.scaling_factor": "Escalado",
"hex.builtin.setting.interface.scaling.native": "Nativo",
"hex.builtin.setting.interface.scaling.x0_5": "",
"hex.builtin.setting.interface.scaling.x1_0": "",
"hex.builtin.setting.interface.scaling.x1_5": "",
"hex.builtin.setting.interface.scaling.x2_0": "",
"hex.builtin.setting.interface.wiki_explain_language": "Idioma de Wikipedia",
"hex.builtin.setting.interface.restore_window_pos": "",
"hex.builtin.setting.proxy": "",

View File

@ -537,12 +537,8 @@
"hex.builtin.setting.interface.fps.native": "",
"hex.builtin.setting.interface.language": "Lingua",
"hex.builtin.setting.interface.multi_windows": "",
"hex.builtin.setting.interface.scaling": "Scale",
"hex.builtin.setting.interface.scaling_factor": "Scale",
"hex.builtin.setting.interface.scaling.native": "Nativo",
"hex.builtin.setting.interface.scaling.x0_5": "x0.5",
"hex.builtin.setting.interface.scaling.x1_0": "x1.0",
"hex.builtin.setting.interface.scaling.x1_5": "x1.5",
"hex.builtin.setting.interface.scaling.x2_0": "x2.0",
"hex.builtin.setting.interface.wiki_explain_language": "",
"hex.builtin.setting.interface.restore_window_pos": "",
"hex.builtin.setting.proxy": "",

View File

@ -537,12 +537,8 @@
"hex.builtin.setting.interface.fps.native": "",
"hex.builtin.setting.interface.language": "言語",
"hex.builtin.setting.interface.multi_windows": "",
"hex.builtin.setting.interface.scaling": "スケーリング",
"hex.builtin.setting.interface.scaling_factor": "スケーリング",
"hex.builtin.setting.interface.scaling.native": "ネイティブ",
"hex.builtin.setting.interface.scaling.x0_5": "x0.5",
"hex.builtin.setting.interface.scaling.x1_0": "x1.0",
"hex.builtin.setting.interface.scaling.x1_5": "x1.5",
"hex.builtin.setting.interface.scaling.x2_0": "x2.0",
"hex.builtin.setting.interface.wiki_explain_language": "",
"hex.builtin.setting.interface.restore_window_pos": "",
"hex.builtin.setting.proxy": "プロキシ",

View File

@ -551,12 +551,8 @@
"hex.builtin.setting.interface.fps.native": "기본",
"hex.builtin.setting.interface.language": "언어",
"hex.builtin.setting.interface.multi_windows": "다중 창 지원 사용",
"hex.builtin.setting.interface.scaling": "배율",
"hex.builtin.setting.interface.scaling_factor": "배율",
"hex.builtin.setting.interface.scaling.native": "기본",
"hex.builtin.setting.interface.scaling.x0_5": "x0.5",
"hex.builtin.setting.interface.scaling.x1_0": "x1.0",
"hex.builtin.setting.interface.scaling.x1_5": "x1.5",
"hex.builtin.setting.interface.scaling.x2_0": "x2.0",
"hex.builtin.setting.interface.wiki_explain_language": "위키백과 언어",
"hex.builtin.setting.interface.restore_window_pos": "창 위치 복원",
"hex.builtin.setting.proxy": "프록시",

View File

@ -537,12 +537,8 @@
"hex.builtin.setting.interface.fps.native": "",
"hex.builtin.setting.interface.language": "Idioma",
"hex.builtin.setting.interface.multi_windows": "",
"hex.builtin.setting.interface.scaling": "Scaling",
"hex.builtin.setting.interface.scaling_factor": "Scaling",
"hex.builtin.setting.interface.scaling.native": "Nativo",
"hex.builtin.setting.interface.scaling.x0_5": "x0.5",
"hex.builtin.setting.interface.scaling.x1_0": "x1.0",
"hex.builtin.setting.interface.scaling.x1_5": "x1.5",
"hex.builtin.setting.interface.scaling.x2_0": "x2.0",
"hex.builtin.setting.interface.wiki_explain_language": "Idioma do Wikipedia",
"hex.builtin.setting.interface.restore_window_pos": "",
"hex.builtin.setting.proxy": "",

View File

@ -551,12 +551,8 @@
"hex.builtin.setting.interface.fps.native": "系统",
"hex.builtin.setting.interface.language": "语言",
"hex.builtin.setting.interface.multi_windows": "启用多窗口支持",
"hex.builtin.setting.interface.scaling": "缩放",
"hex.builtin.setting.interface.scaling_factor": "缩放",
"hex.builtin.setting.interface.scaling.native": "本地默认",
"hex.builtin.setting.interface.scaling.x0_5": "x0.5",
"hex.builtin.setting.interface.scaling.x1_0": "x1.0",
"hex.builtin.setting.interface.scaling.x1_5": "x1.5",
"hex.builtin.setting.interface.scaling.x2_0": "x2.0",
"hex.builtin.setting.interface.wiki_explain_language": "维基百科使用语言",
"hex.builtin.setting.interface.restore_window_pos": "恢复窗口位置",
"hex.builtin.setting.proxy": "网络代理",

View File

@ -551,12 +551,8 @@
"hex.builtin.setting.interface.fps.native": "原生",
"hex.builtin.setting.interface.language": "語言",
"hex.builtin.setting.interface.multi_windows": "啟用多視窗支援",
"hex.builtin.setting.interface.scaling": "縮放",
"hex.builtin.setting.interface.scaling_factor": "縮放",
"hex.builtin.setting.interface.scaling.native": "原生",
"hex.builtin.setting.interface.scaling.x0_5": "x0.5",
"hex.builtin.setting.interface.scaling.x1_0": "x1.0",
"hex.builtin.setting.interface.scaling.x1_5": "x1.5",
"hex.builtin.setting.interface.scaling.x2_0": "x2.0",
"hex.builtin.setting.interface.wiki_explain_language": "維基百科語言",
"hex.builtin.setting.interface.restore_window_pos": "Restore window position",
"hex.builtin.setting.proxy": "Proxy",

View File

@ -107,7 +107,7 @@ namespace hex::plugin::builtin {
}
bool configureUIScale() {
int interfaceScaleSetting = int(ContentRegistry::Settings::read("hex.builtin.setting.interface", "hex.builtin.setting.interface.scaling", 0.0F).get<float>() * 10.0F);
int interfaceScaleSetting = int(ContentRegistry::Settings::read("hex.builtin.setting.interface", "hex.builtin.setting.interface.scaling_factor", 0.0F).get<float>() * 10.0F);
float interfaceScaling;
if (interfaceScaleSetting == 0)

View File

@ -367,7 +367,7 @@ namespace hex::plugin::builtin {
}
});
ContentRegistry::Settings::add<ScalingWidget>("hex.builtin.setting.interface", "hex.builtin.setting.interface.style", "hex.builtin.setting.interface.scaling").requiresRestart();
ContentRegistry::Settings::add<ScalingWidget>("hex.builtin.setting.interface", "hex.builtin.setting.interface.style", "hex.builtin.setting.interface.scaling_factor").requiresRestart();
ContentRegistry::Settings::add<Widgets::Checkbox>("hex.builtin.setting.interface", "hex.builtin.setting.interface.style", "hex.builtin.setting.interface.pattern_data_row_bg", false);
@ -392,7 +392,6 @@ namespace hex::plugin::builtin {
ContentRegistry::Settings::add<Widgets::Checkbox>("hex.builtin.setting.interface", "hex.builtin.setting.interface.window", "hex.builtin.setting.interface.multi_windows", MultiWindowSupportEnabledDefault).requiresRestart();
ContentRegistry::Settings::add<Widgets::Checkbox>("hex.builtin.setting.interface", "hex.builtin.setting.interface.window", "hex.builtin.setting.interface.restore_window_pos", false);
ContentRegistry::Settings::add<Widgets::Checkbox>("hex.builtin.setting.interface", "hex.builtin.setting.interface.window", "hex.builtin.setting.interface.simplified_welcome_screen", false);
ContentRegistry::Settings::add<Widgets::ColorPicker>("hex.builtin.setting.hex_editor", "", "hex.builtin.setting.hex_editor.highlight_color", ImColor(0x80, 0x80, 0xC0, 0x60));
ContentRegistry::Settings::add<Widgets::Checkbox>("hex.builtin.setting.hex_editor", "", "hex.builtin.setting.hex_editor.sync_scrolling", false);