2023-09-12 18:58:10 +00:00
|
|
|
#include "..\script_component.hpp"
|
2017-06-08 13:31:51 +00:00
|
|
|
/*
|
|
|
|
* Author: commy2
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: String <STRING>
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* ["5"] call ace_vector_fnc_showText
|
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
2015-01-21 20:15:51 +00:00
|
|
|
disableSerialization;
|
2016-09-04 14:44:22 +00:00
|
|
|
private _dlgVector = GETUVAR(ACE_dlgVector,displayNull);
|
2015-01-21 20:15:51 +00:00
|
|
|
|
|
|
|
switch (_this select 0) do {
|
|
|
|
case ("config"): {
|
2019-05-27 15:46:07 +00:00
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_5) ctrlSetText "";
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_6) ctrlSetText "";
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_7) ctrlSetText QPATHTOF(rsc\vector_c.paa);
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_8) ctrlSetText QPATHTOF(rsc\vector_o.paa);
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_9) ctrlSetText QPATHTOF(rsc\vector_n.paa);
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_0) ctrlSetText QPATHTOF(rsc\vector_f.paa);
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_1) ctrlSetText QPATHTOF(rsc\vector_i.paa);
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_2) ctrlSetText QPATHTOF(rsc\vector_g.paa);
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_3) ctrlSetText "";
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_4) ctrlSetText "";
|
2015-01-21 20:15:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
case ("settings"): {
|
2019-05-27 15:46:07 +00:00
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_5) ctrlSetText "";
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_6) ctrlSetText QPATHTOF(rsc\vector_u.paa);
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_7) ctrlSetText QPATHTOF(rsc\vector_n.paa);
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_8) ctrlSetText QPATHTOF(rsc\vector_i.paa);
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_9) ctrlSetText QPATHTOF(rsc\vector_t.paa);
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_0) ctrlSetText QPATHTOF(rsc\vector_5.paa);
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_1) ctrlSetText QPATHTOF(rsc\vector_e.paa);
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_2) ctrlSetText QPATHTOF(rsc\vector_t.paa);
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_3) ctrlSetText QPATHTOF(rsc\vector_t.paa);
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_4) ctrlSetText "";
|
2015-01-21 20:15:51 +00:00
|
|
|
};
|
|
|
|
|
2015-01-21 21:52:39 +00:00
|
|
|
case ("nigt"): {
|
2019-05-27 15:46:07 +00:00
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_5) ctrlSetText "";
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_6) ctrlSetText QPATHTOF(rsc\vector_n.paa);
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_7) ctrlSetText QPATHTOF(rsc\vector_i.paa);
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_8) ctrlSetText QPATHTOF(rsc\vector_g.paa);
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_9) ctrlSetText QPATHTOF(rsc\vector_t.paa);
|
2015-01-21 20:15:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
case ("eret"): {
|
2019-05-27 15:46:07 +00:00
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_5) ctrlSetText "";
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_6) ctrlSetText QPATHTOF(rsc\vector_e.paa);
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_7) ctrlSetText QPATHTOF(rsc\vector_r.paa);
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_8) ctrlSetText QPATHTOF(rsc\vector_e.paa);
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_9) ctrlSetText QPATHTOF(rsc\vector_t.paa);
|
2015-01-21 20:15:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
case ("on"): {
|
2019-05-27 15:46:07 +00:00
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_0) ctrlSetText QPATHTOF(rsc\vector_o.paa);
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_1) ctrlSetText QPATHTOF(rsc\vector_n.paa);
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_2) ctrlSetText "";
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_3) ctrlSetText "";
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_4) ctrlSetText "";
|
2015-01-21 20:15:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
case ("off"): {
|
2019-05-27 15:46:07 +00:00
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_0) ctrlSetText QPATHTOF(rsc\vector_o.paa);
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_1) ctrlSetText QPATHTOF(rsc\vector_f.paa);
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_2) ctrlSetText QPATHTOF(rsc\vector_f.paa);
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_3) ctrlSetText "";
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_4) ctrlSetText "";
|
2015-01-21 20:15:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
case ("deg"): {
|
2019-05-27 15:46:07 +00:00
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_5) ctrlSetText "";
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_6) ctrlSetText QPATHTOF(rsc\vector_3.paa);
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_7) ctrlSetText QPATHTOF(rsc\vector_6.paa);
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_8) ctrlSetText QPATHTOF(rsc\vector_0.paa);
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_9) ctrlSetText QPATHTOF(rsc\vector_degree.paa);
|
2015-01-21 20:15:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
case ("mil"): {
|
2019-05-27 15:46:07 +00:00
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_5) ctrlSetText "";
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_6) ctrlSetText QPATHTOF(rsc\vector_6.paa);
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_7) ctrlSetText QPATHTOF(rsc\vector_4.paa);
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_8) ctrlSetText QPATHTOF(rsc\vector_0.paa);
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_9) ctrlSetText QPATHTOF(rsc\vector_0.paa);
|
2015-01-21 20:15:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
case ("meter"): {
|
2019-05-27 15:46:07 +00:00
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_0) ctrlSetText QPATHTOF(rsc\vector_5.paa);
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_1) ctrlSetText QPATHTOF(rsc\vector_1.paa);
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_2) ctrlSetText QPATHTOF(rsc\vector_minus.paa);
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_3) ctrlSetText QPATHTOF(rsc\vector_u.paa);
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_4) ctrlSetText "";
|
2015-01-21 20:15:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
case ("feet"): {
|
2019-05-27 15:46:07 +00:00
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_0) ctrlSetText QPATHTOF(rsc\vector_f.paa);
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_1) ctrlSetText QPATHTOF(rsc\vector_e.paa);
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_2) ctrlSetText QPATHTOF(rsc\vector_e.paa);
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_3) ctrlSetText QPATHTOF(rsc\vector_t.paa);
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_4) ctrlSetText "";
|
2015-01-21 20:15:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
case ("stor"): {
|
2019-05-27 15:46:07 +00:00
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_E1) ctrlSetText QPATHTOF(rsc\vector_5.paa);
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_E2) ctrlSetText QPATHTOF(rsc\vector_t.paa);
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_E3) ctrlSetText QPATHTOF(rsc\vector_o.paa);
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_E4) ctrlSetText QPATHTOF(rsc\vector_r.paa);
|
2015-01-21 20:15:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
case ("old_config"): {
|
2019-05-27 15:46:07 +00:00
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_5) ctrlSetText "";
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_6) ctrlSetText "";
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_7) ctrlSetText QPATHTOF(rsc\vector_o.paa);
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_8) ctrlSetText QPATHTOF(rsc\vector_1.paa);
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_9) ctrlSetText QPATHTOF(rsc\vector_d.paa);
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_0) ctrlSetText QPATHTOF(rsc\vector_c.paa);
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_1) ctrlSetText QPATHTOF(rsc\vector_o.paa);
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_2) ctrlSetText QPATHTOF(rsc\vector_n.paa);
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_3) ctrlSetText QPATHTOF(rsc\vector_f.paa);
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_4) ctrlSetText "";
|
2015-01-21 20:15:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
case ("old_settings"): {
|
2019-05-27 15:46:07 +00:00
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_5) ctrlSetText "";
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_6) ctrlSetText "";
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_7) ctrlSetText QPATHTOF(rsc\vector_o.paa);
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_8) ctrlSetText QPATHTOF(rsc\vector_1.paa);
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_9) ctrlSetText QPATHTOF(rsc\vector_d.paa);
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_0) ctrlSetText QPATHTOF(rsc\vector_u.paa);
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_1) ctrlSetText QPATHTOF(rsc\vector_n.paa);
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_2) ctrlSetText QPATHTOF(rsc\vector_i.paa);
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_3) ctrlSetText QPATHTOF(rsc\vector_t.paa);
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_4) ctrlSetText "";
|
2015-01-21 20:15:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
case ("clear_left"): {
|
2019-05-27 15:46:07 +00:00
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_5) ctrlSetText "";
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_6) ctrlSetText "";
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_7) ctrlSetText "";
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_8) ctrlSetText "";
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_9) ctrlSetText "";
|
2015-01-21 20:15:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
case ("clear_right"): {
|
2019-05-27 15:46:07 +00:00
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_0) ctrlSetText "";
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_1) ctrlSetText "";
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_2) ctrlSetText "";
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_3) ctrlSetText "";
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_4) ctrlSetText "";
|
2015-01-21 20:15:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
case ("clear_stor"): {
|
2019-05-27 15:46:07 +00:00
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_E1) ctrlSetText "";
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_E2) ctrlSetText "";
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_E3) ctrlSetText "";
|
|
|
|
(_dlgVector displayCtrl IDC_DIGIT_E4) ctrlSetText "";
|
2015-01-21 20:15:51 +00:00
|
|
|
};
|
|
|
|
};
|
2015-04-12 11:56:01 +00:00
|
|
|
|
|
|
|
[GVAR(illuminate)] call FUNC(illuminate);
|