mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Parachute - Add Seconds Indicator to Altimeter Watch (#9834)
This commit is contained in:
parent
d54ba4ddcf
commit
dd32190dfa
@ -39,10 +39,10 @@ class RscTitles {
|
|||||||
};
|
};
|
||||||
class TimeText: RscText {
|
class TimeText: RscText {
|
||||||
idc = 1001;
|
idc = 1001;
|
||||||
text = "00:00";
|
text = "00:00:00";
|
||||||
x = "0.206094 * safezoneW + safezoneX";
|
x = "0.202094 * safezoneW + safezoneX";
|
||||||
y = "0.819 * safezoneH + safezoneY";
|
y = "0.819 * safezoneH + safezoneY";
|
||||||
w = "0.0309375 * safezoneW";
|
w = "0.0380375 * safezoneW";
|
||||||
h = "0.022 * safezoneH";
|
h = "0.022 * safezoneH";
|
||||||
colorText[] = {0,0,0,1};
|
colorText[] = {0,0,0,1};
|
||||||
};
|
};
|
||||||
|
@ -40,8 +40,10 @@ private _TimeText = _display displayCtrl 1001;
|
|||||||
_pfhID call CBA_fnc_removePerFrameHandler;
|
_pfhID call CBA_fnc_removePerFrameHandler;
|
||||||
};
|
};
|
||||||
|
|
||||||
private _hour = floor daytime;
|
private _daytime = dayTime;
|
||||||
private _minute = floor ((daytime - _hour) * 60);
|
private _hour = floor _daytime;
|
||||||
|
private _minute = floor ((_daytime - _hour) * 60);
|
||||||
|
private _seconds = floor ((((_daytime - _hour) * 60) - _minute) * 60);
|
||||||
private _curTime = CBA_missionTime;
|
private _curTime = CBA_missionTime;
|
||||||
private _timeDiff = _curTime - _prevTime;
|
private _timeDiff = _curTime - _prevTime;
|
||||||
|
|
||||||
@ -52,7 +54,7 @@ private _TimeText = _display displayCtrl 1001;
|
|||||||
0
|
0
|
||||||
};
|
};
|
||||||
|
|
||||||
_TimeText ctrlSetText (format ["%1:%2", [_hour, 2] call CBA_fnc_formatNumber, [_minute, 2] call CBA_fnc_formatNumber]);
|
_TimeText ctrlSetText (format ["%1:%2:%3", [_hour, 2] call CBA_fnc_formatNumber, [_minute, 2] call CBA_fnc_formatNumber, [_seconds, 2] call CBA_fnc_formatNumber]);
|
||||||
_HeightText ctrlSetText str floor _height;
|
_HeightText ctrlSetText str floor _height;
|
||||||
_DecendRate ctrlSetText str (_descentRate max 0);
|
_DecendRate ctrlSetText str (_descentRate max 0);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user