5 protected ref array<ref SCR_BaseFormatParam> m_aParams;
8 override bool SetNameTo(TextWidget textWidget)
14 textWidget.SetTextFormat(
GetName(), Param(0), Param(1), Param(2), Param(3), Param(4), Param(5), Param(6), Param(7), Param(8));
21 override bool SetDescriptionTo(TextWidget textWidget)
27 textWidget.SetTextFormat(GetDescription(), Param(0), Param(1), Param(2), Param(3), Param(4), Param(5), Param(6), Param(7), Param(8));
29 textWidget.SetText(GetDescription());
38 protected string Param(
int index)
48 class SCR_BaseFormatParam
58 protected string m_sActionName;
64 override string GetParam()
67 Color sRGBA = Color.FromIntSRGB(
UIColors.CONTRAST_COLOR.PackToInt());
73 int colorR = sRGBA.R() * 255;
74 int colorG = sRGBA.G() * 255;
75 int colorB = sRGBA.B() * 255;
76 int colorA = sRGBA.A() * 255;
78 return string.Format(
"<color rgba='%2,%3,%4,%5'><action name='%1' scale='1.25'/></color>",
m_sActionName, colorR, colorG, colorB, colorA);
83 class SCR_ImageSetFormatParam : SCR_BaseFormatParam