You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fast and easy way to add stuff to arsenal is to draw controls using Arsenal display. Code below may be be plugged into some loop (e.g. eachFrame) or handler may be attached
if ( isNull ( uinamespace getvariable "RSCDisplayArsenal") ) exitWith {}; // No arseanl display
private _display = uinamespace getvariable "RSCDisplayArsenal";
// Adds new button control to arsenal UI
private _ctrl = _display ctrlCreate ["RscButton", -1];
_ctrl ctrlSetText "MY BUTTON";
_ctrl ctrlSetPosition [0.375,1,0.25,0.05];
_ctrl ctrlCommit 0;
_ctrl ctrlAddEventHandler ["ButtonClick", {
params ["_control"];
/* Do stuff, call some functions to move selected headgear to belt */
}];
Similar to BackpackOnChest, have a button that allows the user to sling the helmet and then select another headgear.
The text was updated successfully, but these errors were encountered: