Search the Community
Showing results for tags 'multi column'.
Found 1 result
-
Hi, Is there a good tutorial out there that explains how to build a multi column listbox? I want to display the unit type in the first column and its cost in the 2nd column Unit | Cost ____________|_________ Rifleman | 100 Grenadier | 150 Marksman | 200 I am using the CT_LISTNBOX and lbAddRow but for some reason it is putting two entries next to each other in 1 row instead of below each other, see screenshot here: https://imgur.com/a/woZPgV6 class listboxUnitSelection: RscListNBox { idc = 1501; type = CT_LISTNBOX; onLBSelChanged = "[_this] execVM 'displayUnitDetails.sqf'"; x = 0.35 * safezoneW + safezoneX; y = 0.36 * safezoneH + safezoneY; w = 0.2749206 * safezoneW; h = 0.2 * safezoneH; columns[] = {0.3, 0.6}; colorDisabled[] = {1,1,1,0.3}; disableOverflow = true; idcLeft = -1; idcRight = -1; class ListScrollBar : ScrollBar //ListScrollBar is class name required for Arma 3 { color[] = {1,1,1,0.6}; colorActive[] = {1,1,1,1}; colorDisabled[] = {1,1,1,0.3}; thumb = "#(argb,8,8,3)color(1,1,1,1)"; arrowEmpty = "#(argb,8,8,3)color(1,1,1,1)"; arrowFull = "#(argb,8,8,3)color(1,1,1,1)"; border = "#(argb,8,8,3)color(1,1,1,1)"; shadow = 0; }; }; and here my lbAddRow { hint format ["_x: \n%1", _x]; //_ctrlUnitListBox lbAdd (_x select 1); _ctrlUnitListBox lnbAddRow [(_x select 1),"COL2"]; } forEach availableUnitsList;