Johnson11B2P 3 Posted April 26, 2015 (edited) So I've created my G.U.I and I want to know if there is any way to change the color of the text in the list box I selected? Should I handle this in the sqf file that handles the selection of the list box? Update: So I found lbSetColor. So my code is 1547 lbSetColor [0,[0,1,0,0.5]]; which does nothing. class PN_Range_Select { idd=0; movingenable=true; onLoad = "_startUp = [] spawn loadRangeGUI;"; objects[] = {}; class controls { //////////////////////////////////////////////////////// // GUI EDITOR OUTPUT START (by Rex, v1.063, #Luxale) //////////////////////////////////////////////////////// class PN_Frame: RscFrame { idc = 1800; text = "Range Select"; //--- ToDo: Localize; x = 0.298906 * safezoneW + safezoneX; y = 0.236 * safezoneH + safezoneY; w = 0.402187 * safezoneW; h = 0.528 * safezoneH; }; class PN_ListBox_Ranges: RscListbox { idc = 1547; text = "Select Range"; //--- ToDo: Localize; x = 0.329844 * safezoneW + safezoneX; y = 0.324 * safezoneH + safezoneY; w = 0.345469 * safezoneW; h = 0.308 * safezoneH; }; class PN_Picture_Logo: RscPicture { idc = 1200; text = "Images\logo.paa"; x = 0.329844 * safezoneW + safezoneX; y = 0.258 * safezoneH + safezoneY; w = 0.04125 * safezoneW; h = 0.055 * safezoneH; tooltip = "Project Nova"; //--- ToDo: Localize; }; class RscStructuredText_1100: RscStructuredText { idc = 1100; x = 0.386562 * safezoneW + safezoneX; y = 0.258 * safezoneH + safezoneY; w = 0.278437 * safezoneW; h = 0.055 * safezoneH; text = "Project Nova Range Selector"; }; class PN_Button_OK: RscButton { idc = 1600; text = "Select"; //--- ToDo: Localize; x = 0.396875 * safezoneW + safezoneX; y = 0.665 * safezoneH + safezoneY; w = 0.04125 * safezoneW; h = 0.055 * safezoneH; action = "null = execVM ""Range Scripts\RangeSelectResult.sqf"";"; }; class PN_Button_Cancel: RscButton { idc = 1601; text = "Cancel"; //--- ToDo: Localize; x = 0.567031 * safezoneW + safezoneX; y = 0.665 * safezoneH + safezoneY; w = 0.04125 * safezoneW; h = 0.055 * safezoneH; action = "closeDialog 0"; }; //////////////////////////////////////////////////////// // GUI EDITOR OUTPUT END //////////////////////////////////////////////////////// }; }; Edited April 26, 2015 by Johnson11B2P Tried something and failed. Share this post Link to post Share on other sites
treoctone 10 Posted April 29, 2015 (edited) Have you tried adding colorText[] = {} to your class? { idc = 1547; text = "Select Range"; //--- ToDo: Localize; x = 0.329844 * safezoneW + safezoneX; y = 0.324 * safezoneH + safezoneY; w = 0.345469 * safezoneW; h = 0.308 * safezoneH; colorText[] = {0, 1, 0, 0.5}; }; Edited April 29, 2015 by Treoctone Share this post Link to post Share on other sites