From 438941ff0e2f94d7fe263ebc4f66f0a7d4b0db08 Mon Sep 17 00:00:00 2001 From: Brett Date: Sun, 9 Jun 2019 02:04:43 -0600 Subject: [PATCH] some commy suggestions --- addons/units/functions/fnc_onAltLoad.sqf | 2 +- addons/units/functions/fnc_onSpeedLoad.sqf | 2 +- addons/units/stringtable.xml | 16 ++++++++++++++-- 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/addons/units/functions/fnc_onAltLoad.sqf b/addons/units/functions/fnc_onAltLoad.sqf index b2113826da..d3e659cb7b 100644 --- a/addons/units/functions/fnc_onAltLoad.sqf +++ b/addons/units/functions/fnc_onAltLoad.sqf @@ -32,7 +32,7 @@ private _settingEH = ["CBA_SettingChanged", { if (_altValue < 10) then { _altValue = _altValue toFixed 1; } else { - _altValue = str round _altValue; + _altValue = _altValue toFixed 0; }; _alt ctrlSetText _altValue; }, 0, [_ctrl, _alt, _settingEH]] call CBA_fnc_addPerFrameHandler; diff --git a/addons/units/functions/fnc_onSpeedLoad.sqf b/addons/units/functions/fnc_onSpeedLoad.sqf index 2f903d59ba..f9ba3572c8 100644 --- a/addons/units/functions/fnc_onSpeedLoad.sqf +++ b/addons/units/functions/fnc_onSpeedLoad.sqf @@ -28,5 +28,5 @@ private _settingEH = ["CBA_SettingChanged", { }; _ctrl ctrlSetFade 1; _ctrl ctrlCommit 0; - _speed ctrlSetText str (round (speed vehicle ace_player / GVAR(speedRatio))); + _speed ctrlSetText ((speed vehicle ace_player / GVAR(speedRatio)) toFixed 0); }, 0, [_ctrl, _speed, _settingEH]] call CBA_fnc_addPerFrameHandler; diff --git a/addons/units/stringtable.xml b/addons/units/stringtable.xml index 771575d0ab..956ea31e14 100644 --- a/addons/units/stringtable.xml +++ b/addons/units/stringtable.xml @@ -3,44 +3,56 @@ Units + Maßeinheiten Speed + Geschwindigkeit - Units used to display Speed + Units used to display Speed. + Maßeinheit, um Geschwindigkeit darzustellen. Altitude + Flughöhe - Units used to display Altitude + Units used to display Altitude. + Maßeinheit, um Flughöhe darzustellen. Land Vehicles + Bodenfahrzeuge km/h + km/h mph + mph kn + kn m/s + m/s Meters + Meter Feet + Fuß