1345 {
1346 ButtonWidget wb;
1348 {
1349 if (wb.GetName() == "ButtonHide")
1350 {
1351 ImageWidget iw = ImageWidget.Cast(wb.FindAnyWidget(wb.GetName() + "Icon"));
1352 iw.SetColor(
ARGB(255, 0, 0, 0));
1353 }
1354 else
1355 {
1356 wb.SetTextColor(
ARGB(255, 0, 0, 0));
1357 }
1358 }
1359 }
Super root of all classes in Enforce script.
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.
int ARGB(int a, int r, int g, int b)