Button Augment

xvitorx1

Vassal
Customer
Good afternoon, everyone. Is there a "native" way to open the augment function? I'm trying to create a button via the interface; the function opens, but when I try to add a weapon, I get the message THIS IS NOT A SUITABLE ITEM.
Code:
function HandleAugmentButton()
{
if ( !SettingSectorBool( "AUGMENT", "augment_button" ) ) return;
if ( IsShowWindow( "RefineryWnd" ) )
HideWindow( "RefineryWnd" );
else
ShowWindow( "RefineryWnd" );
}
 
Back
Top