mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
148 lines
9.5 KiB
C++
148 lines
9.5 KiB
C++
|
|
class RscPicture;
|
|
class RscText;
|
|
class RscStructuredText;
|
|
class RscButtonMenuOK;
|
|
class RscButtonMenuCancel;
|
|
class RscButtonMenu;
|
|
class RscEdit;
|
|
class RscCombo;
|
|
class RscSlider;
|
|
class RscXSliderH;
|
|
|
|
class RscDisplayInsertMarker {
|
|
onLoad = QUOTE(_this call DFUNC(initInsertMarker););
|
|
onUnload = QUOTE(_this call DFUNC(placeMarker););
|
|
idd = 54;
|
|
movingEnable = 1;
|
|
class controlsBackground {
|
|
class RscText_1000: RscText {
|
|
idc = 1000;
|
|
/*x = "0 * GUI_GRID_INSERTMARKER_W + GUI_GRID_INSERTMARKER_X";
|
|
y = "0 * GUI_GRID_INSERTMARKER_H + GUI_GRID_INSERTMARKER_Y";
|
|
w = "8 * GUI_GRID_INSERTMARKER_W";
|
|
h = "2.5 * GUI_GRID_INSERTMARKER_H";
|
|
colorBackground[] = {0,0,0,0.5};*/
|
|
};
|
|
class Description: RscStructuredText {
|
|
colorBackground[] = {0,0,0,0.7};
|
|
idc = 1100;
|
|
x = "14 * ( ((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX)";
|
|
y = "9.5 * ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + safezoneH - ( ((safezoneW / safezoneH) min 1.2) / 1.2))";
|
|
w = "10 * ( ((safezoneW / safezoneH) min 1.2) / 40)";
|
|
h = "1 * ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
|
|
};
|
|
};
|
|
class controls {
|
|
//delete ButtonOK;
|
|
class ButtonMenuOK: RscButtonMenuOK {
|
|
x = "14 * ( ((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX)";
|
|
y = "15.5 * ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + safezoneH - ( ((safezoneW / safezoneH) min 1.2) / 1.2))";
|
|
w = "8.9 * ( ((safezoneW / safezoneH) min 1.2) / 40)";
|
|
h = "1 * ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
|
|
// size = "0.85 * ( ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
|
|
// sizeEx = "0.85 * ( ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
|
|
text = "";
|
|
};
|
|
class ButtonMenuCancel: RscButtonMenuCancel {
|
|
x = "23 * ( ((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX)";
|
|
y = "15.5 * ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + safezoneH - ( ((safezoneW / safezoneH) min 1.2) / 1.2))";
|
|
w = "1.1 * ( ((safezoneW / safezoneH) min 1.2) / 40)";
|
|
h = "1 * ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
|
|
|
|
text = "X";
|
|
colorBackground[] = {0.75,0,0,0.5};
|
|
colorBackgroundFocused[] = {0.75,0,0,0.5};
|
|
colorBackground2[] = {1,0,0,0.5};
|
|
};
|
|
/*class ButtonMenuInfo: RscButtonMenu {
|
|
idc = 2400;
|
|
text = "$STR_A3_RscDisplayInsertMarker_ButtonMenuInfo";
|
|
x = "14 * ( ((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX)";
|
|
y = "13.5 * ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + safezoneH - ( ((safezoneW / safezoneH) min 1.2) / 1.2))";
|
|
w = "10 * ( ((safezoneW / safezoneH) min 1.2) / 40)";
|
|
h = "1 * ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
|
|
};*/
|
|
delete ButtonMenuInfo;
|
|
class Title: RscText {
|
|
moving = 1;
|
|
colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.69])","(profilenamespace getvariable ['GUI_BCG_RGB_G',0.75])","(profilenamespace getvariable ['GUI_BCG_RGB_B',0.5])","(profilenamespace getvariable ['GUI_BCG_RGB_A',0.8])"};
|
|
idc = 1001;
|
|
text = "$STR_A3_RscDisplayInsertMarker_Title";
|
|
x = "14 * ( ((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX)";
|
|
y = "8.5 * ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + safezoneH - ( ((safezoneW / safezoneH) min 1.2) / 1.2))";
|
|
w = "10 * ( ((safezoneW / safezoneH) min 1.2) / 40)";
|
|
h = "1 * ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
|
|
};
|
|
delete Description;
|
|
/*class Info: RscStructuredText {
|
|
colorBackground[] = {0,0,0,0.7};
|
|
idc = 1101;
|
|
x = "14 * ( ((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX)";
|
|
y = "11.5 * ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + safezoneH - ( ((safezoneW / safezoneH) min 1.2) / 1.2))";
|
|
w = "10 * ( ((safezoneW / safezoneH) min 1.2) / 40)";
|
|
h = "1 * ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
|
|
};*/
|
|
delete Info;
|
|
class Picture: RscPicture {
|
|
idc = 102;
|
|
x = 0.259984;
|
|
y = 0.4;
|
|
w = 0.05;
|
|
h = 0.0666667;
|
|
};
|
|
class Text: RscEdit {
|
|
idc = 101;
|
|
x = "14 * ( ((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX)";
|
|
y = "10.5 * ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + safezoneH - ( ((safezoneW / safezoneH) min 1.2) / 1.2))";
|
|
w = "10 * ( ((safezoneW / safezoneH) min 1.2) / 40)";
|
|
h = "1 * ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
|
|
};
|
|
/*class SizeX: RscEdit {
|
|
idc = 1200;
|
|
text = "10";
|
|
x = "14 * ( ((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX)";
|
|
y = "12.5 * ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + safezoneH - ( ((safezoneW / safezoneH) min 1.2) / 1.2))";
|
|
w = "5 * ( ((safezoneW / safezoneH) min 1.2) / 40)";
|
|
h = "1 * ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
|
|
};
|
|
class SizeY: RscEdit {
|
|
idc = 1201;
|
|
text = "10";
|
|
x = "19 * ( ((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX)";
|
|
y = "12.5 * ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + safezoneH - ( ((safezoneW / safezoneH) min 1.2) / 1.2))";
|
|
w = "5 * ( ((safezoneW / safezoneH) min 1.2) / 40)";
|
|
h = "1 * ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
|
|
};*/
|
|
class MarkerShape: RscCombo {
|
|
idc = 1210;
|
|
x = "14 * ( ((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX)";
|
|
y = "11.5 * ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + safezoneH - ( ((safezoneW / safezoneH) min 1.2) / 1.2))";
|
|
w = "10 * ( ((safezoneW / safezoneH) min 1.2) / 40)";
|
|
h = "1 * ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
|
|
};
|
|
class MarkerColor: RscCombo {
|
|
idc = 1211;
|
|
x = "14 * ( ((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX)";
|
|
y = "12.5 * ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + safezoneH - ( ((safezoneW / safezoneH) min 1.2) / 1.2))";
|
|
w = "10 * ( ((safezoneW / safezoneH) min 1.2) / 40)";
|
|
h = "1 * ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
|
|
};
|
|
class MarkerAngle: RscXSliderH {
|
|
idc = 1220;
|
|
text = "10";
|
|
x = "14 * ( ((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX)";
|
|
y = "13.5 * ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + safezoneH - ( ((safezoneW / safezoneH) min 1.2) / 1.2))";
|
|
w = "10 * ( ((safezoneW / safezoneH) min 1.2) / 40)";
|
|
h = "1 * ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
|
|
};
|
|
class MarkerAngleText: RscText {
|
|
idc = 1221;
|
|
x = "14 * ( ((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX)";
|
|
y = "14.5 * ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + safezoneH - ( ((safezoneW / safezoneH) min 1.2) / 1.2))";
|
|
w = "10 * ( ((safezoneW / safezoneH) min 1.2) / 40)";
|
|
h = "1 * ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
|
|
};
|
|
};
|
|
};
|