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