[ArmA3] Add button to Esc menu example
with uiNamespace do
{
ctrl = findDisplay 49 ctrlCreate ["RscButton", -1];
ctrl ctrlSetPosition [safezoneX, safezoneY, safezoneW * 0.1, safezoneH * 0.1];
ctrl ctrlSetBackgroundColor [0, 0, 0, 0];
ctrl ctrlSetText "Test";
ctrl ctrlCommit 0;
ctrl ctrlAddEventHandler ["ButtonDown",
{
hint "NaM";
}];
};
Comments
0 B
|👍
/👎
0 B
|👍
/👎