Page MenuHomeFeedback Tracker

CT_STRUCTURED_TEXT inheritance from color attribut doesn't work
Closed, ResolvedPublic

Description

The textcolor from CT_STRUCTURED_TEXT controls is not correct, when the color attribute inherits from the base class.
If the color attribute is set directly, the color is correct.

The config-viewer shows the correct inherited color attribute, but the color is not correct.

Details

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

Base class

class DT_Text {
	type = CT_STRUCTURED_TEXT;
	style = ST_LEFT;

	colorBackground[] = {0,0,0,0};

	lineSpacing = 0.01;
	text = "";
	size = 0.03;

	POSITION(0,0,0,0)

	class Attributes {
		font = "RobotoCondensed";
		color = "#000000";
		align = "left";
		valign = "top";
	}
}

This works great and the color is red.

class DT_TitleText: DT_Text {
	// idc and position removed for readability
	size = 0.04;

	class Attributes: Attributes {
		color = "#ff0000";
		valign = "middle";
	}
}

This is not working, the color is white.

class DT_TextInfo: DT_Text {
	// idc and position removed for readability
	size = 0.035;

	class Attributes: Attributes {
		valign = "middle";
	}
}

Event Timeline

Henne created this task.Jun 10 2021, 7:30 PM
R3vo added a subscriber: R3vo.Jun 10 2021, 7:45 PM
BIS_fnc_KK added a subscriber: BIS_fnc_KK.EditedJun 11 2021, 11:12 AM

Nice find and it is not just color, however too risky to fix now as it may break layouts in older configs. I guess wiki note is the best we can do at this point @R3vo ?

BIS_fnc_KK closed this task as Resolved.Jun 11 2021, 11:12 AM
BIS_fnc_KK changed Resolution from Open to Not Fixable.