2018-06-22 19:41:43 +00:00
|
|
|
class GVAR(timerUI) {
|
|
|
|
idd = -1;
|
|
|
|
movingEnable = 1;
|
|
|
|
enableSimulation = 1;
|
|
|
|
onLoad = QUOTE(uiNamespace setVariable [ARR_2(QQGVAR(timerDisplay), _this select 0)]);
|
|
|
|
class controlsBackground {
|
|
|
|
class Header: RscText {
|
|
|
|
idc = -1;
|
|
|
|
text = CSTRING(ExplosiveTimer);
|
2023-02-02 05:28:55 +00:00
|
|
|
x = QUOTE(13.5 * GUI_GRID_W + GUI_GRID_CENTER_X);
|
|
|
|
y = QUOTE(5 * GUI_GRID_H + GUI_GRID_CENTER_Y);
|
|
|
|
w = QUOTE(13 * GUI_GRID_W);
|
|
|
|
h = QUOTE(GUI_GRID_H);
|
2018-06-22 19:41:43 +00:00
|
|
|
colorBackground[] = GUI_BCG_COLOR;
|
|
|
|
moving = 1;
|
|
|
|
};
|
|
|
|
class Background: RscText {
|
|
|
|
idd = -1;
|
2023-02-02 05:28:55 +00:00
|
|
|
x = QUOTE(13.5 * GUI_GRID_W + GUI_GRID_CENTER_X);
|
|
|
|
y = QUOTE(6.1 * GUI_GRID_H + GUI_GRID_CENTER_Y);
|
|
|
|
w = QUOTE(13 * GUI_GRID_W);
|
|
|
|
h = QUOTE(6.5 * GUI_GRID_H);
|
2018-06-22 19:41:43 +00:00
|
|
|
colorBackground[] = {0, 0, 0, 0.8};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
class controls {
|
|
|
|
class DigitBackground_1: RscPicture {
|
|
|
|
idc = -1;
|
|
|
|
text = QPATHTOF(UI\seven_segment_8.paa);
|
2023-02-02 05:28:55 +00:00
|
|
|
x = QUOTE(14 * GUI_GRID_W + GUI_GRID_CENTER_X);
|
|
|
|
y = QUOTE(6.6 * GUI_GRID_H + GUI_GRID_CENTER_Y);
|
|
|
|
w = QUOTE(4 * GUI_GRID_W);
|
|
|
|
h = QUOTE(4 * GUI_GRID_H);
|
2018-06-22 19:41:43 +00:00
|
|
|
colorText[] = {0.3, 0.3, 0.3, 0.5};
|
|
|
|
};
|
|
|
|
class DigitBackground_2: DigitBackground_1 {
|
2023-02-02 05:28:55 +00:00
|
|
|
x = QUOTE(16.4 * GUI_GRID_W + GUI_GRID_CENTER_X);
|
2018-06-22 19:41:43 +00:00
|
|
|
};
|
|
|
|
class DigitBackground_3: DigitBackground_1 {
|
2023-02-02 05:28:55 +00:00
|
|
|
x = QUOTE(19.7 * GUI_GRID_W + GUI_GRID_CENTER_X);
|
2018-06-22 19:41:43 +00:00
|
|
|
};
|
|
|
|
class DigitBackground_4: DigitBackground_1 {
|
2023-02-02 05:28:55 +00:00
|
|
|
x = QUOTE(22.1 * GUI_GRID_W + GUI_GRID_CENTER_X);
|
2018-06-22 19:41:43 +00:00
|
|
|
};
|
|
|
|
class DigitSeparator: DigitBackground_1 {
|
|
|
|
text = QPATHTOF(UI\seven_segment_separator.paa);
|
2023-02-02 05:28:55 +00:00
|
|
|
x = QUOTE(18.025 * GUI_GRID_W + GUI_GRID_CENTER_X);
|
2018-06-22 19:41:43 +00:00
|
|
|
colorText[] = {1, 0.05, 0.05, 1};
|
|
|
|
};
|
|
|
|
class Digit_1: DigitBackground_1 {
|
|
|
|
idc = IDC_TIMER_DIGIT_1;
|
|
|
|
text = QPATHTOF(UI\seven_segment_0.paa);
|
|
|
|
colorText[] = {1, 0.05, 0.05, 1};
|
|
|
|
};
|
|
|
|
class Digit_2: Digit_1 {
|
|
|
|
idc = IDC_TIMER_DIGIT_2;
|
2023-02-02 05:28:55 +00:00
|
|
|
x = QUOTE(16.4 * GUI_GRID_W + GUI_GRID_CENTER_X);
|
2018-06-22 19:41:43 +00:00
|
|
|
};
|
|
|
|
class Digit_3: Digit_1 {
|
|
|
|
idc = IDC_TIMER_DIGIT_3;
|
2023-02-02 05:28:55 +00:00
|
|
|
x = QUOTE(19.7 * GUI_GRID_W + GUI_GRID_CENTER_X);
|
2018-06-22 19:41:43 +00:00
|
|
|
};
|
|
|
|
class Digit_4: Digit_1 {
|
|
|
|
idc = IDC_TIMER_DIGIT_4;
|
2023-02-02 05:28:55 +00:00
|
|
|
x = QUOTE(22.1 * GUI_GRID_W + GUI_GRID_CENTER_X);
|
2018-06-22 19:41:43 +00:00
|
|
|
};
|
|
|
|
class Slider: ctrlXSliderH {
|
|
|
|
idc = IDC_TIMER_SLIDER;
|
2023-02-02 05:28:55 +00:00
|
|
|
x = QUOTE(14 * GUI_GRID_W + GUI_GRID_CENTER_X);
|
|
|
|
y = QUOTE(11.1 * GUI_GRID_H + GUI_GRID_CENTER_Y);
|
|
|
|
w = QUOTE(12 * GUI_GRID_W);
|
|
|
|
h = QUOTE(GUI_GRID_H);
|
2018-06-22 19:41:43 +00:00
|
|
|
color[] = {0.3, 0.3, 0.3, 0.7};
|
|
|
|
colorActive[] = {0.3, 0.3, 0.3, 0.7};
|
|
|
|
sliderRange[] = {TIMER_VALUE_MIN, TIMER_VALUE_MAX};
|
|
|
|
sliderPosition = TIMER_VALUE_DEFAULT;
|
|
|
|
};
|
|
|
|
class CancelButton: RscButton {
|
|
|
|
idc = -1;
|
|
|
|
text = CSTRING(Cancel);
|
|
|
|
onButtonClick = QUOTE(closeDialog 0);
|
2023-02-02 05:28:55 +00:00
|
|
|
x = QUOTE(13.5 * GUI_GRID_W + GUI_GRID_CENTER_X);
|
|
|
|
y = QUOTE(12.7 * GUI_GRID_H + GUI_GRID_CENTER_Y);
|
|
|
|
w = QUOTE(5 * GUI_GRID_W);
|
|
|
|
h = QUOTE(GUI_GRID_H);
|
2018-06-22 19:41:43 +00:00
|
|
|
colorActive[] = {0, 0, 0, 1};
|
|
|
|
colorBackground[] = {0, 0, 0, 0.8};
|
|
|
|
colorFocused[] = {0, 0, 0, 0.8};
|
|
|
|
};
|
|
|
|
class ConfirmButton: CancelButton {
|
|
|
|
idc = IDC_TIMER_CONFIRM;
|
|
|
|
text = CSTRING(SetTime);
|
|
|
|
onButtonClick = "";
|
2023-02-02 05:28:55 +00:00
|
|
|
x = QUOTE(21.5 * GUI_GRID_W + GUI_GRID_CENTER_X);
|
2018-06-22 19:41:43 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|