Page MenuHomeFeedback Tracker

Right text in ListNBox is not visible
Closed, ResolvedPublic

Description

I would like to use right text in ListNBox but the text is not visible.

I set the color direct and inherited.
I created the columns with columns[] and with lnbAddColumn.
lnbTextRight shows the right text.

Details

Severity
None
Resolution
Open
Reproducibility
Always
Operating System
Windows 7
Category
Ingame UI
Steps To Reproduce

Base ListNBox class:

#define COLOR_LIST_SELECT               {0.984, 0.922, 0.250, 0.500}
#define COLOR_LIST_DISABLE              {0.250, 0.250, 0.250, 0.500}
#define COLOR_LIST_TEXT                 {1.000, 1.000, 1.000, 1.000}
#define COLOR_LIST_PICTURE              {1.000, 1.000, 1.000, 1.000}
#define COLOR_LIST_SCROLLBAR            {1.000, 1.000, 1.000, 1.000}
class DT_ListNBox {
	type = CT_LISTNBOX;
	style = ST_LEFT + LB_TEXTURES;

	colorSelectBackground[] = COLOR_LIST_SELECT;
	colorSelectBackground2[] = COLOR_LIST_SELECT;
	colorSelect[] = COLOR_LIST_TEXT;
	colorDisabled[] = COLOR_LIST_DISABLE;
	colorText[] = COLOR_LIST_TEXT;
	colorTextRight[] = COLOR_LIST_TEXT;
	colorPicture[] = COLOR_LIST_PICTURE;
	colorPictureSelected[] = COLOR_LIST_PICTURE;

	period = 0;
	blinkingPeriod = 0;
	rowHeight = 0.035;
	sizeEx = 0.035;
	maxHistoryDelay = 0;
	drawSideArrows = 0;
	idcLeft = -1;
	idcRight = -1;

	SoundSelect[] = {"a3\ui_f\data\Sound\RscButtonMenu\soundClick", 1.00, 1};

	font = "RobotoCondensed";

	class ListScrollBar {
		arrowEmpty = "a3\ui_f\data\GUI\Cfg\Scrollbar\arrowEmpty_ca.paa";
		arrowFull = "a3\ui_f\data\GUI\Cfg\Scrollbar\arrowFull_ca.paa";
		border = "a3\ui_f\data\GUI\Cfg\Scrollbar\border_ca.paa";
		thumb = "a3\ui_f\data\GUI\Cfg\Scrollbar\thumb_ca.paa";

		color[] = COLOR_LIST_SCROLLBAR;
	}
}

ListNBox in dialog:

class list: DT_ListNBox {
	idc = 11102;
// The x, y, w, h values are calculated with PreProcessor-Commands, here are only the results
	x = 0.005;
	y = 0.0066667;
	w = 0.591;
	h = 0.516;
	columns[] = {-0.005, 0.3219, 0.3989, 0.486};
}

Event Timeline

Henne created this task.Jun 11 2021, 7:35 PM
Henne updated the task description. (Show Details)Jun 11 2021, 7:51 PM
BIS_fnc_KK removed BIS_fnc_KK as the assignee of this task.Jun 12 2021, 10:45 PM
BIS_fnc_KK changed the task status from New to Feedback.
Henne added a comment.Oct 15 2021, 5:03 PM

It works the text is now visible, thanks.

BIS_fnc_KK closed this task as Resolved.Oct 15 2021, 9:58 PM