Exemple #1
0
 protected void SetCurrentState()
 {
     if (this.grayed && _buttonController != null && _buttonController.HasPage(GButton.DISABLED))
     {
         SetState(GButton.DISABLED);
     }
     else
     {
         SetState(_over ? GButton.OVER : GButton.UP);
     }
 }
Exemple #2
0
 protected void SetCurrentState()
 {
     if (this.grayed && _buttonController != null && _buttonController.HasPage(DISABLED))
     {
         if (_selected)
         {
             SetState(SELECTED_DISABLED);
         }
         else
         {
             SetState(DISABLED);
         }
     }
     else
     {
         if (_selected)
         {
             SetState(_over ? SELECTED_OVER : DOWN);
         }
         else
         {
             SetState(_over ? OVER : UP);
         }
     }
 }
 static public int HasPage(IntPtr l)
 {
     try {
         FairyGUI.Controller self = (FairyGUI.Controller)checkSelf(l);
         System.String       a1;
         checkType(l, 2, out a1);
         var ret = self.HasPage(a1);
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static int HasPage(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         FairyGUI.Controller obj = (FairyGUI.Controller)ToLua.CheckObject <FairyGUI.Controller>(L, 1);
         string arg0             = ToLua.CheckString(L, 2);
         bool   o = obj.HasPage(arg0);
         LuaDLL.lua_pushboolean(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }