ACE3/addons/vector/functions/fnc_showText.sqf

170 lines
8.1 KiB
Plaintext
Raw Normal View History

#include "script_component.hpp"
/*
* 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;
private _dlgVector = GETUVAR(ACE_dlgVector,displayNull);
2015-01-21 20:15:51 +00:00
switch (_this select 0) do {
case ("config"): {
(_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"): {
(_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"): {
(_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"): {
(_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"): {
(_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"): {
(_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"): {
(_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"): {
(_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"): {
(_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"): {
(_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"): {
(_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"): {
(_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"): {
(_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"): {
(_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"): {
(_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"): {
(_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
};
};
[GVAR(illuminate)] call FUNC(illuminate);