Jump to content
pattoh

Changing ListBox Visible text?

Recommended Posts

Is lbAdd the only way to change the visible text for a standard Listbox? lbSetText and lbSetTextRight doesn't seem to work for me, or is not related to it.

 

Quote

            
            _catData = lbData [ 2100, ( lbCurSel 2100 ) ];
            
            if (_catData == "Primary Weapons") then {
                
                _wastedPrimWeaponData = lbData [ 1503, (lbCurSel 1503) ];
               //_primWepDisName = getText(configFile >> "CfgWeapons" >> _wastedPrimWeaponData >> "DisplayName");
        
                lbSetData [1501,0, _wastedPrimWeaponData];
                lbSetPicture [1501,0, getText(configFile >> "CfgWeapons" >> _wastedPrimWeaponData >> "picture")];
            };

 

My current setup, lbAdd is called before the above to reserve ListBox index's, the goal is use the above to merge different gear to one big ListBox that is the current picked loadout for the player.

 

Any help would be appreciated, or different ways to approach this would be cool to hear.

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

×