Search the Community
Showing results for tags 'RscListbox'.
Found 2 results
-
i want to load all players names to my rsclistbox then click on a player and select it and by pressing the button just hint the selected players name. My next step is to teleport the target to me. Trying to learn for a small admin panel. why does this not work? heres what i got: _display = findDisplay 46 createDisplay "RscDisplayEmpty"; _playerlist = _display ctrlCreate ["RscListbox", 1500]; _playerlist ctrlSetPosition [-0.3,0.02,0.48793,0.744756]; _playerlist ctrlCommit 0.26; _playerlist ctrlSetFontHeight 0.028; _playerlist ctrlsetFont "PuristaLight"; _playerlist ctrlSetTextColor [1,1,1,1]; lbClear _playerlist; { _index = lbAdd [ 1500, name _x ]; lbSetData [ 1500, _index, name _x ]; } forEach playableUnits; button = _display ctrlCreate ["RscButton", -1]; button ctrlSetPosition [0.625,0.2,0.423497,0.276817]; button ctrlsetFont "PuristaLight"; button ctrlSetText "hint selected!"; button ctrlSetFontHeight 0.03; button ctrlCommit 0.26; button buttonSetAction " _data = lbData [ 1500, ( lbCurSel 1500 ) ]; HINT FORMAT ['%1',_data]; ";
- 11 replies
-
- rsclistbox
- listbox
-
(and 1 more)
Tagged with:
-
RESOURCE: Gui Rsc Base classes & Colours
terox posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
I googled for a premade base class definition for the Gui configs and didn't get a decent hit, so for anyone else wanting base definitions for their GUI projects, I hope you find this useful BASE DEFINITIONS Correct as for A3 v1.50 It's a bit messy, was quickly done but should get you up and running Just mass edit the "MyTag_" and replace it with your own tag and your good to start inheriting from and define your own default colours COLOUR DEFINITIONS I also found this in my archives, I have no idea who made this, which is a shame because it must have taken a while to enter all these values and it would have been nice to pass on the credits. Hopefully someone will find this useful