SetFormat() public method

public SetFormat ( TextFormat format, float fontSizeScale ) : void
format TextFormat
fontSizeScale float
return void
 static public int SetFormat(IntPtr l)
 {
     try {
         FairyGUI.DynamicFont self = (FairyGUI.DynamicFont)checkSelf(l);
         FairyGUI.TextFormat  a1;
         checkType(l, 2, out a1);
         self.SetFormat(a1);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Esempio n. 2
0
 static int SetFormat(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         FairyGUI.DynamicFont obj  = (FairyGUI.DynamicFont)ToLua.CheckObject <FairyGUI.DynamicFont>(L, 1);
         FairyGUI.TextFormat  arg0 = (FairyGUI.TextFormat)ToLua.CheckObject <FairyGUI.TextFormat>(L, 2);
         float arg1 = (float)LuaDLL.luaL_checknumber(L, 3);
         obj.SetFormat(arg0, arg1);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }