1535 {
1536 ButtonWidget wb;
1538 {
1539 if (wb.GetName() == "ButtonHide")
1540 {
1541 ImageWidget iw = ImageWidget.Cast(wb.FindAnyWidget(wb.GetName() + "Icon"));
1542 iw.SetColor(
ARGB(255, 255, 255, 255));
1543 }
1544 else
1545 {
1546 wb.SetTextColor(
ARGB(255, 255, 255, 255));
1547 }
1548 }
1549 }
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)