Search the Community
Showing results for tags 'dialog eden'.
Found 1 result
-
All, I'm trying to make a custom dialog box in Eden. I'm able to do so by creating standard dialogs, like so: class RscFrame; class IGUIBack; class RscText; class RscTitle; class RscXSliderH; class RscCheckBox; class RscButtonMenu; class RscButtonMenuCancel; class Eden_Extended_Objects_multiply_dialog { idd = 9150; movingEnable = 1; controlsBackground[] = { }; objects[] = { }; class controls { //////////////////////////////////////////////////////// // GUI EDITOR OUTPUT START (by _SCAR, v1.063, #Tiwyny) //////////////////////////////////////////////////////// class Eden_Extended_Objects_multiply_frame: RscFrame { idc = -1; x = 0.417187 * safezoneW + safezoneX; y = 0.357 * safezoneH + safezoneY; w = 0.165625 * safezoneW; h = 0.286 * safezoneH; }; class Eden_Extended_Objects_multiply_frame_background: IGUIBack { idc = -1; x = 0.417187 * safezoneW + safezoneX; y = 0.357 * safezoneH + safezoneY; w = 0.165625 * safezoneW; h = 0.286 * safezoneH; colorBackground[] = {0, 0, 0, 1}; }; class Eden_Extended_Objects_multiply_title: RscTitle { idc = -1; text = "Multiply"; x = 0.417187 * safezoneW + safezoneX; y = 0.357 * safezoneH + safezoneY; w = 0.165625 * safezoneW; h = 0.022 * safezoneH; colorBackground[] = {35, 135, 56, 1}; }; class Eden_Extended_Objects_multiply_button_ok: RscButtonMenu { idc = -1; text = "MULTIPLY"; x = 0.530937 * safezoneW + safezoneX; y = 0.61 * safezoneH + safezoneY; w = 0.0567187 * safezoneW; h = 0.022 * safezoneH; action = "closeDialog 0; [] execVM ""\Eden_Extended_Objects\scripts\multiply.sqf"";"; }; class RscButtonMenuCancel_2700: RscButtonMenuCancel { x = 0.412344 * safezoneW + safezoneX; y = 0.61 * safezoneH + safezoneY; w = 0.0567187 * safezoneW; h = 0.022 * safezoneH; }; class Eden_Extended_Objects_multiply_label_count: RscText { idc = -1; text = "Create count / selected object"; x = 0.417187 * safezoneW + safezoneX; y = 0.412 * safezoneH + safezoneY; w = 0.165625 * safezoneW; h = 0.022 * safezoneH; }; class Eden_Extended_Objects_multiply_slider_count: RscXSliderH { idc = 9151; x = 0.417187 * safezoneW + safezoneX; y = 0.445 * safezoneH + safezoneY; w = 0.165625 * safezoneW; h = 0.011 * safezoneH; onSliderPosChanged = "_control = (_this select 0); _newCount=round(sliderPosition _control); uiNamespace setVariable [""Eden_Extended_Objects_multiply_count"",_newCount]; _control ctrlSetTooltip str(_newCount);"; }; class Eden_Extended_Objects_multiply_label_spread: RscText { idc = -1; text = "Spread size (meters)"; x = 0.417187 * safezoneW + safezoneX; y = 0.467 * safezoneH + safezoneY; w = 0.165625 * safezoneW; h = 0.022 * safezoneH; }; class Eden_Extended_Objects_multiply_slider_spread: RscXSliderH { idc = 9152; x = 0.417187 * safezoneW + safezoneX; y = 0.5 * safezoneH + safezoneY; w = 0.165625 * safezoneW; h = 0.011 * safezoneH; onSliderPosChanged = "_control = (_this select 0); _newCount=round(sliderPosition _control); uiNamespace setVariable [""Eden_Extended_Objects_multiply_spread"",_newCount]; _control ctrlSetTooltip str(_newCount);"; }; class Eden_Extended_Objects_multiply_checkbox_randomize_pos: RscCheckBox { idc = 9153; x = 0.417187 * safezoneW + safezoneX; y = 0.533 * safezoneH + safezoneY; w = 0.0154688 * safezoneW; h = 0.022 * safezoneH; }; class Eden_Extended_Objects_multiply_checkbox_randomize_pos_label: RscText { idc = -1; text = "Randomize rotation on created objects"; x = 0.417187 * safezoneW + safezoneX; y = 0.533 * safezoneH + safezoneY; w = 0.155 * safezoneW; h = 0.022 * safezoneH; }; //////////////////////////////////////////////////////// // GUI EDITOR OUTPUT END //////////////////////////////////////////////////////// }; }; However, when doing so there are some problems. 1. I can't get it to look like anything on the original Eden windows: Instead of the familiar: 2. With my window open I can actually click on the objects BENEATH the window itself. See the "Ammo Bearer" tooltip there? I actually clicked on it with the window open. I can't find any tutorials on how to have a simple option window like this, can any kind soul point me to the right direction? Best, r.