Page MenuHomeFeedback Tracker

Request: "enabled" control property
Closed, ResolvedPublic

Description

Currently, the only way to disable a control directly in the config is through use of the onLoad UI Event Handler:

class MyDialog {
    ...
    class MyControl {
        ...
        onLoad = "(_this # 0) ctrlEnable false;";
        ...
    };
    ...
};

This is not ideal, instead, having the following available would be better:

class MyDialog {
    ...
    class MyControl {
        ...
        enabled = 0;
        ...
    };
    ...
};

As such, the introduction of an enabled = flag; control property would be appreciated.

@Terra found at least one occurence of enabled = 0; in the game files (configfile >> "RscDisplayArsenal" >> "Controls" >> "Info" >> "controls" >> "DLCIcon"), but we were unable to determine whether a common "enabled" control property already exists (and is not functional) or not.

Details

Severity
Feature
Resolution
Won't Fix
Reproducibility
N/A
Operating System
Windows 10 x64
Category
Visual-GUI
Additional Information

Version: 1.98.146373

Related Objects

Event Timeline

heyoxe added a subscriber: heyoxe.Aug 19 2020, 3:13 PM
dedmen changed the task status from New to Acknowledged.Aug 19 2020, 5:44 PM
dedmen set Ref Ticket to AIII-53220.

"enable" was enabled for a short time then reverted because it caused unspecified problems with handling of controls. ctrlEnable called from onLoad EH is safe however. A bit inconvinient but at this stage any deep engine changes are not possible. Won't fix.

BIS_fnc_KK closed this task as Resolved.Mon, Sep 7, 9:28 AM
BIS_fnc_KK changed Resolution from Open to Won't Fix.