1518 {
1519 ButtonWidget wb;
1521 {
1522 if (wb.GetName() == "ButtonHide")
1523 {
1524 ImageWidget iw = ImageWidget.Cast(wb.FindAnyWidget(wb.GetName() + "Icon"));
1525 iw.SetColor(
ARGB(255, 0, 0, 0));
1526 }
1527 else
1528 {
1529 wb.SetTextColor(
ARGB(255, 0, 0, 0));
1530 }
1531 }
1532 }
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)