1368 {
1369 ButtonWidget wb;
1371 {
1372 if (wb.GetName() == "ButtonHide")
1373 {
1374 ImageWidget iw = ImageWidget.Cast(wb.FindAnyWidget(wb.GetName() + "Icon"));
1375 iw.SetColor(
ARGB(255, 0, 0, 0));
1376 }
1377 else
1378 {
1379 wb.SetTextColor(
ARGB(255, 0, 0, 0));
1380 }
1381 }
1382 }
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)