CalculateFinalAlpha() public method

Widget's final alpha, after taking the panel's alpha into account.
public CalculateFinalAlpha ( int frameID ) : float
frameID int
return float
示例#1
0
 static public int CalculateFinalAlpha(IntPtr l)
 {
     try {
         UIPanel      self = (UIPanel)checkSelf(l);
         System.Int32 a1;
         checkType(l, 2, out a1);
         var ret = self.CalculateFinalAlpha(a1);
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
示例#2
0
 static int CalculateFinalAlpha(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         UIPanel obj  = (UIPanel)ToLua.CheckObject <UIPanel>(L, 1);
         int     arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
         float   o    = obj.CalculateFinalAlpha(arg0);
         LuaDLL.lua_pushnumber(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }