jts_2009 96 Posted February 8, 2015 (edited) Im writing my script and im stuck on this thing. My combobox: class JTS_GroupCombo { style = 0x10 + 0x200; access = ReadAndWrite; type = JTS_CT_COMBO; maxHistoryDelay = 1; wholeHeight = 0.44 * SafeZoneH; font = JTS_FontM; sizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)"; colorSelect[] = {0,0,0,1}; colorText[] = {1,1,1,1}; colorBackground[] = {0,0,0,1}; colorSelectBackground[] = {1,1,1,0.7}; colorActive[] = {1,0,0,1}; colorDisabled[] = {1,1,1,0.25}; tooltipColorText[] = {1,1,1,1}; tooltipColorBox[] = {1,1,1,1}; tooltipColorShade[] = {0,0,0,0.65}; soundSelect[] = {"\A3\ui_f\data\sound\RscCombo\soundSelect",0.1,1}; soundExpand[] = {"\A3\ui_f\data\sound\RscCombo\soundExpand",0.1,1}; soundCollapse[] = {"\A3\ui_f\data\sound\RscCombo\soundCollapse",0.1,1}; arrowEmpty = "\A3\ui_f\data\GUI\RscCommon\rsccombo\arrow_combo_ca.paa"; arrowFull = "\A3\ui_f\data\GUI\RscCommon\rsccombo\arrow_combo_active_ca.paa"; class ComboScrollBar { color[] = {1,1,1,1}; autoScrollEnabled = 1; colorActive[] = {1, 1, 1, 1}; colorDisabled[] = {1, 1, 1, 0.3}; thumb = "\A3\ui_f\data\gui\cfg\scrollbar\thumb_ca.paa"; arrowFull = "\A3\ui_f\data\gui\cfg\scrollbar\arrowFull_ca.paa"; arrowEmpty = "\A3\ui_f\data\gui\cfg\scrollbar\arrowEmpty_ca.paa"; border = "\A3\ui_f\data\gui\cfg\scrollbar\border_ca.paa"; }; }; If I use 'lbsetpicture' command, it adds picture, yes... But they have always black color. I tried to change colors in the combobox-definition (because I was hopeless) - but it brings nothing. 'lbsetpicturecolor' doesn't help too. The pictures are always black! No matter what format or size the picture has. Anyone know the solution..? :confused: Edited February 8, 2015 by JTS_2009 Share this post Link to post Share on other sites
dreadedentity 278 Posted February 8, 2015 Hello! Use the command lbSetPictureColor, it's pretty new Share this post Link to post Share on other sites
Ed! 13 Posted February 8, 2015 Hello! Use the command lbSetPictureColor, it's pretty new I used this as a workaround for the same issue. But the selected data (cursel) go black again. Share this post Link to post Share on other sites
jts_2009 96 Posted February 8, 2015 Hello! Use the command lbSetPictureColor, it's pretty new I noticed this in my first post that I used it. But nothing happens. Share this post Link to post Share on other sites
dreadedentity 278 Posted February 8, 2015 (edited) I used this as a workaround for the same issue. But the selected data (cursel) go black again. Hello Ed, use the command lbSetPictureColorSelected. I noticed this in my first post that I used it. But nothing happens. Strange, it's working fine for me. Remember that colors are in format [red, green, blue, alpha (transparency)], from 0 to 1, where 0 is no color and 1 is maximum color. Transparency works slightly different, 0 for completely transparent 1 for completely opaque. EDIT: Some examples: [color="#FF0000"]Completely red[/color]: [1, 0, 0, 1] [color="#00FF00"]Completely green[/color]: [0, 1, 0, 1] [color="#0000FF"]See-through blue[/color]: [0, 0, 1, 0.5] [color="#FFFF00"]Yellow[/color]: [1, 1, 0, 1] Hope that helps you guys Edited February 8, 2015 by DreadedEntity Share this post Link to post Share on other sites
jts_2009 96 Posted February 8, 2015 Hello Ed, use the command lbSetPictureColorSelected.Strange, it's working fine for me. Remember that colors are in format [red, green, blue, alpha (transparency)], from 0 to 1, where 0 is no color and 1 is maximum color. Transparency works slightly different, 0 for completely transparent 1 for completely opaque. EDIT: Some examples: [color="#FF0000"]Completely red[/color]: [1, 0, 0, 1] [color="#00FF00"]Completely green[/color]: [0, 1, 0, 1] [color="#0000FF"]See-through blue[/color]: [0, 0, 1, 0.5] [color="#FFFF00"]Yellow[/color]: [1, 1, 0, 1] Hope that helps you guys lbSetPictureColorSelected works. Thanks :) Share this post Link to post Share on other sites
jts_2009 96 Posted February 9, 2015 (edited) But you have to use both commands: lbsetpicturecolor and lbsetpicturecolorselected, because by lbsetpicturecolorselected the picture changes its color only if element with picture is SELECTED. lbsetpicturecolor sets the color if item in the combobox, which is NOT SELECTED Edited February 10, 2015 by JTS_2009 Share this post Link to post Share on other sites
MrPineapple 11 Posted February 10, 2015 Add this to your combobox: colorPicture[] = {1,1,1,1}; colorPictureSelected[] = {1,1,1,1}; colorPictureDisabled[] = {1,1,1,1}; colorPictudeDisabled[] = {1,1,1,0.25}; I had a problem with black pictures and adding those lines fixed it. The picture color in listboxes/comboboxes seems to have been recently added. Share this post Link to post Share on other sites
Ed! 13 Posted February 10, 2015 Add this to your combobox: colorPicture[] = {1,1,1,1}; colorPictureSelected[] = {1,1,1,1}; colorPictureDisabled[] = {1,1,1,1}; colorPictudeDisabled[] = {1,1,1,0.25}; I had a problem with black pictures and adding those lines fixed it. The picture color in listboxes/comboboxes seems to have been recently added. I see those commands are listed in a spotrep. If this is the case, what does the following do? (Obsolete?) pictureColor[] = {1,1,1,1}; pictureColorSelect[] = {1,1,1,1}; pictureColorDisabled[] = {1,1,1,1}; Will the updates be added to the wiki? Share this post Link to post Share on other sites