Jump to content
Sign in to follow this  
sjolinder

Edit SHORTCUTBUTTON with script

Recommended Posts

Hello!

 

Im having some issues with Dialog Buttons.

 

I want to edit the following things with a script:

 

            animTextureDefault = " ";
            animTextureDisabled = " ";
            animTextureFocused = " ";
            animTextureNormal = "";
            animTextureOver = " ";
            animTexturePressed =  " ";

 

So let say i have a shortcutbutton with the idc 5040, is there a way to tell a script to change these attributes on the button?

 

Kind Regards

Sjolinder

Share this post


Link to post
Share on other sites

an addaction with a custom keymap perhaps?

 

1. goto controls and custom controls and select 'User 1', and add a spare key (I use '?' for example)

2. create below script named whatever.sqf and activate it in init (execvm whatever.sqf)

3. in game you press '?' button.

 

Quote

player addAction ["My Action",
    {

hint "Stuff has changed!"; /// remove this once finished testing.
            animTextureDefault = " ";
            animTextureDisabled = " ";
            animTextureFocused = " ";
            animTextureNormal = " ";
            animTextureOver = " ";
            animTexturePressed =  " ";
    },nil,1.5,false,false,"User1"
];

 

is this what you need?

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  

×