Jump to content
Sign in to follow this  
ShadowRanger24

3DEN Dialog Background Input

Recommended Posts

So I've been stuck with this issue for a while. I've tried asking different people but I haven't been able to find anyone who knows how to do this. Basically what I'm trying to replicate is Eden menus (e.g attribute menus) blocking input to background dialogs when their opened. For example, when you open an overlay display in the Eden editor, you will only be able to interact with that display, and any input to background ones are disabled. I have looked into the Eden editor dialog classes, and I can see that they all use "ctrlStaticBackgroundDisable" for this by the looks of it. I have tried to replicate it, but it just doesn't work.

 

Dialog file: https://pastebin.com/3niigADA

Creation of the dialog:

private _mainDisplay = [] call BIS_fnc_displayMission;
private _display = _mainDisplay createDisplay "SR_RscDisplayTest";

Any help would be much appreciated. Thanks in advance.

Share this post


Link to post
Share on other sites
class Enh_Changelog
{
    idd = 70000;
    movingEnable = true;
    class Controls
    {
        class Background: Enh_IGUIBack
        {
            x = 0.2375 * safezoneW + safezoneX;
            y = 0.178 * safezoneH + safezoneY;
            w = 0.525 * safezoneW;
            h = 0.672 * safezoneH;
        };
        class Header: Enh_RscText
        {
            text = $STR_ENH_changelog_header;
            x = 0.2375 * safezoneW + safezoneX;
            y = 0.15 * safezoneH + safezoneY;
            w = 0.511875 * safezoneW;
            h = 0.028 * safezoneH;
               colorBackground[] = COLOUR_USER_PRESET;
        };
        class Close: Enh_RscButton
        {
            text = "X";
            x = 0.749375 * safezoneW + safezoneX;
            y = 0.15 * safezoneH + safezoneY;
            w = 0.013125 * safezoneW;
            h = 0.028 * safezoneH;
            action = "(findDisplay 70000) closeDisplay 0";
        };
        class ControlsGroup: Enh_RscControlsGroup
        {
            x = 0.2375 * safezoneW + safezoneX;
            y = 0.178 * safezoneH + safezoneY;
            w = 0.525 * safezoneW;
            h = 0.672 * safezoneH;
            class Controls
            {
                class Changelog: Enh_RscHTML
                {
                    x = 0 * safezoneW;
                    y = 0 * safezoneH;
                    w = 1.5;        //Scrolling Width
                    h = 14;            //Scrolling Height
                    onLoad = "(_this select 0) htmlLoad '\3denEnhanced\changelog.html'";
                };
            };
        };
    };
};
(findDisplay 313) createDisplay 'Enh_Changelog'

 

A simple dialog opened with createDisplay works fine for me.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×