kayler-renslow / arma-dialog-creator

A dialog/GUI creation tool for Arma 3.
MIT License
76 stars 12 forks source link

Allow String as IDC #46

Open xetra11 opened 5 years ago

xetra11 commented 5 years ago

I am used to define global vars for my IDC so I can easily refactor the numbers if needed. Therefore my IDC look like that:

class CoopR_TaskBoard_Document_Recon: ctrlButtonPictureOnly
        {
            idc = GUI_ID_RECON_DOCUMENT;
            x = safeZoneX + safeZoneW * 0.35375;
            y = safeZoneY + safeZoneH * 0.20444445;
            w = safeZoneW * 0.3375;
            h = safeZoneH * 0.55;
            text = "x\coopr\addons\tasks\data\images\taskboard_combat.paa";
        };

Can you make the idc field in ADC allow strings so it's possible to have this already done by export?

kayler-renslow commented 5 years ago

Set idc to Raw and you can put anything you want

kayler-renslow commented 5 years ago

https://github.com/kayler-renslow/arma-dialog-creator/wiki/Control-Properties-Editor#raw

https://github.com/kayler-renslow/arma-dialog-creator/wiki/Architecture-Overview#raw

xetra11 commented 5 years ago

Ok sorry didnt know

xetra11 commented 5 years ago

Edit: Restatet Question

Now found that IDD is not possible to set as String/Global

https://imgur.com/a/vhpi3le

kayler-renslow commented 5 years ago

The display properties are pretty limited. This will be resolved in a future version. For now, I guess you'll just have to edit the exported text to your liking.