OnFill() public method

Draw the label.
public OnFill ( BetterList verts, BetterList uvs, BetterList cols ) : void
verts BetterList
uvs BetterList
cols BetterList
return void
Esempio n. 1
0
    static int OnFill(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 4);
        UILabel obj = (UILabel)LuaScriptMgr.GetUnityObjectSelf(L, 1, "UILabel");
        BetterList <Vector3> arg0 = (BetterList <Vector3>)LuaScriptMgr.GetNetObject(L, 2, typeof(BetterList <Vector3>));
        BetterList <Vector2> arg1 = (BetterList <Vector2>)LuaScriptMgr.GetNetObject(L, 3, typeof(BetterList <Vector2>));
        BetterList <Color32> arg2 = (BetterList <Color32>)LuaScriptMgr.GetNetObject(L, 4, typeof(BetterList <Color32>));

        obj.OnFill(arg0, arg1, arg2);
        return(0);
    }
Esempio n. 2
0
	static int OnFill(IntPtr L)
	{
		try
		{
			ToLua.CheckArgsCount(L, 4);
			UILabel obj = (UILabel)ToLua.CheckObject<UILabel>(L, 1);
			BetterList<UnityEngine.Vector3> arg0 = (BetterList<UnityEngine.Vector3>)ToLua.CheckObject<BetterList<UnityEngine.Vector3>>(L, 2);
			BetterList<UnityEngine.Vector2> arg1 = (BetterList<UnityEngine.Vector2>)ToLua.CheckObject<BetterList<UnityEngine.Vector2>>(L, 3);
			BetterList<UnityEngine.Color32> arg2 = (BetterList<UnityEngine.Color32>)ToLua.CheckObject<BetterList<UnityEngine.Color32>>(L, 4);
			obj.OnFill(arg0, arg1, arg2);
			return 0;
		}
		catch (Exception e)
		{
			return LuaDLL.toluaL_exception(L, e);
		}
	}
Esempio n. 3
0
 static public int OnFill(IntPtr l)
 {
     try {
         UILabel self = (UILabel)checkSelf(l);
         BetterList <UnityEngine.Vector3> a1;
         checkType(l, 2, out a1);
         BetterList <UnityEngine.Vector2> a2;
         checkType(l, 3, out a2);
         BetterList <UnityEngine.Color32> a3;
         checkType(l, 4, out a3);
         self.OnFill(a1, a2, a3);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Esempio n. 4
0
        public UIDrawCallForShaderMat GetDrawCall(UILabel uilabel)
        {
            GameObject obj = new GameObject();

            obj.transform.localScale = new Vector3(0.004f, 0.004f, 0.004f);
            UIDrawCallForShaderMat dc = obj.AddComponent <UIDrawCallForShaderMat>();

            //obj.layer = LayerMask.NameToLayer("2D");
            BetterList <Vector3> verts = new BetterList <Vector3>();
            BetterList <Vector2> uvs   = new BetterList <Vector2>();
            BetterList <Color32> cols  = new BetterList <Color32>();

            dc.material = uilabel.material;
            uilabel.Update();
            uilabel.OnFill(verts, uvs, cols);
            dc.Set(verts, null, null, uvs, cols);

            return(dc);
        }
Esempio n. 5
0
    public static int OnFill(IntPtr l)
    {
        int result;

        try
        {
            UILabel uILabel = (UILabel)LuaObject.checkSelf(l);
            BetterList <Vector3> verts;
            LuaObject.checkType <BetterList <Vector3> >(l, 2, out verts);
            BetterList <Vector2> uvs;
            LuaObject.checkType <BetterList <Vector2> >(l, 3, out uvs);
            BetterList <Color32> cols;
            LuaObject.checkType <BetterList <Color32> >(l, 4, out cols);
            uILabel.OnFill(verts, uvs, cols);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }