Ilias, вам никто не запрещает включить эти файлы в своей проект через include и тем самым все будет определено
в смысле координаты в ручную выводить
Posted 27 June 2016 - 04:57
сделал заново на absolute чтобы просто ~нормально было,
<-------------------------------------|да buttons маловаты немного ) (в ручную координаты для всех | было бы выводить .. ) )
Edited by Ilias, 27 June 2016 - 04:58.
Posted 09 November 2016 - 15:00
можно ли создать group с controls и добавить её в display с содержимым одной командой?
Posted 10 November 2016 - 04:32
*с содержим в display
(можно ли:
adi.hpp
class controls{ class g: RscControlsGroup{ idc = 0; x = 0.885188 * safezoneW + safezoneX; y = 0.717 * safezoneH + safezoneY; w = 0.107 * safezoneW; h = 0.232 * safezoneH; class controlsbackground{ class st: RscStructuredText{ idc = -1; text="Step:<br/>= - +5degree<br/>- - -5degree<br/>q - tyrn left<br/>e - tyrn right<br/>pageup - move up<br/>pagedown - move down<br/>8(num) - tyrn front<br/>5(num) - tyrn back<br/>space - drop|pick up<br/>f = place"; x = 0.886188 * safezoneW + safezoneX; y = 0.708 * safezoneH + safezoneY; w = 0.105 * safezoneW; h = 0.21 * safezoneH; }; }; class controls{ class at: RscText{ idc = 1; text="5"; x = 0.958375 * safezoneW + safezoneX; y = 0.708 * safezoneH + safezoneY; w = 0.02625 * safezoneW; h = 0.028 * safezoneH; }; }; }; };
initplayerlocal.sqf
finddisplay 46 crtlcreate['g',0];
)
Edited by Ilias, 10 November 2016 - 04:40.
Posted 18 March 2018 - 05:22
Не подскажите, как сделать так чтобы кнопка (class RscButton) не мигала?
class RscButton { access = 0; //same as above idc = -1; //ID number type = CT_BUTTON; //type of the control text = "BUTTON"; //text field colorText[] = {1,1,1,1}; //color of the text (currently white) colorDisabled[] = {-1,-1,-1,-1}; //color when disabled (currently gray) {0.4,0.4,0.4,0} colorBackground[] = {0,0,1,1}; //background color (currently blue) colorBackgroundDisabled[] = {-1,-1,-1,-1}; //background color when disabled (currently light gray) {0.9,0.9.0.9,0} colorBackgroundActive[] = {-1,-1,-1,-1}; //background color when active (selected, or hovered over) (currently red) {1,0,0,1} colorFocused[] = {-1,-1,-1,-1}; //bakcground color when focused (selected) (currently green) {0,1,0,1} colorShadow[] = {-1,-1,-1,-1}; //shadow color (currently dark gray) {0.023529,0,0.0313725,0} colorBorder[] = {-1,-1,-1,-1}; //border color (currently dark gray) soundEnter[] = {"",0.09,1}; //sound upon hovering over the control (sound, volume, pitch) soundPush[] = {"",0,0}; //sound upon pushing the button (sound, volume, pitch) soundClick[] = {"",0.07,1}; //sound upon clicking the button (sound, volume, pitch) soundEscape[] = {"",0.09,1}; //sound upon releasing the pushed button (sound, volume, pitch) x = 0.5; //position on X axis (0-1) y = 0.8; //position on Y axis (0-1) w = 0.2; //width (0-1) h = 0.1; //height (0-1) style = 2; //style of the control shadow = 2; //above font = GUI_FONT_BOLD; //font type sizeEx = 0.05; //font size offsetX = 0; //offset when not pressed on X axis offsetY = 0; //offset when not pressed on Y axis offsetPressedX = 0.003; //offset when pressed on X axis offsetPressedY = 0.003; //offset when pressed on Y axis borderSize = 0; //border size (duh) action = "closedialog 0"; //action executed upon clicking the button (currently closes the dialog itself) }; //end: RscButton class
Edited by Blackburn, 18 March 2018 - 05:30.
Posted 18 March 2018 - 14:22
{-1,-1,-1,-1}
где вы такой цвет видели?
colorDisabled[] = {0,0,1,1}; //color when disabled (currently gray) {0.4,0.4,0.4,0} colorBackground[] = {0,0,1,1}; //background color (currently blue) colorBackgroundDisabled[] = {0,0,1,1}; //background color when disabled (currently light gray) {0.9,0.9.0.9,0} colorBackgroundActive[] = {0,0,1,1}; //background color when active (selected, or hovered over) (currently red) {1,0,0,1} colorFocused[] = {0,0,1,1};
Posted 18 March 2018 - 15:59
{-1,-1,-1,-1}где вы такой цвет видели?
colorDisabled[] = {0,0,1,1}; //color when disabled (currently gray) {0.4,0.4,0.4,0} colorBackground[] = {0,0,1,1}; //background color (currently blue) colorBackgroundDisabled[] = {0,0,1,1}; //background color when disabled (currently light gray) {0.9,0.9.0.9,0} colorBackgroundActive[] = {0,0,1,1}; //background color when active (selected, or hovered over) (currently red) {1,0,0,1} colorFocused[] = {0,0,1,1};
это я пробовал менять все подряд в надежде что мигание пропадет
Сделай кнопку из Image
а возможно ли картинке задать экшен по нажатию?
зы: разобрался с миганием
Edited by Blackburn, 18 March 2018 - 17:03.