Jump to content
POLPOX

Custom expression in conditionShow of Context Menu of Eden Editor

Recommended Posts

The goal:

  • Add a button in the Context Menu of Eden Editor
  • That only appears if you opened on certain object type

Tried to do something on conditionShow, but looks no luck.

 

Something I wish to do (Not actual config):

class CfgVehicles
{
    class ObjectA
    {
        CustomConditionVariable = 0;
    };
    class ObjectB
    {
        CustomConditionVariable = 1;
    };
};

class ctrlMenu;
class Display3DEN
{
    class ContextMenu: ctrlMenu
    {
        class Items
        {
            class Transform
            {
                items[] +=
                {
                    "Something"
                };
            };
            class Something
            {
                text = *Title*;
                action = *Some action* ;
                conditionShow = "selectedObject * (1 - CustomConditionVariable)";
            };
        };
    };
};

And if you open the Context Menu on typeOf == ObjectA, the button appears.

 

Is there anyway to add variables to the Simple Experssion?

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

×