check() public static method

public static check ( Lua L, int narg ) : LWF.LWF
L Lua
narg int
return LWF.LWF
Exemplo n.º 1
0
    public static int _bind_gotoAndPlayMovie_overload_2(Lua.lua_State L)
    {
        LWF.LWF self         = Luna_LWF_LWF.check(L, 1);
        string  instanceName = Lua.lua_tostring(L, 2).ToString();
        string  label        = Lua.lua_tostring(L, 3).ToString();

        try {
            self.GotoAndPlayMovie(instanceName, label);
        } catch (Exception e) { Lua.luaL_error(L, new Lua.CharPtr(e.ToString())); }
        return(0);
    }
Exemplo n.º 2
0
    public static int _bind_gotoAndStopMovie_overload_1(Lua.lua_State L)
    {
        LWF.LWF self         = Luna_LWF_LWF.check(L, 1);
        string  instanceName = Lua.lua_tostring(L, 2).ToString();
        int     frameNo      = (int)Lua.lua_tonumber(L, 3);

        try {
            self.GotoAndStopMovie(instanceName, frameNo);
        } catch (Exception e) { Lua.luaL_error(L, new Lua.CharPtr(e.ToString())); }
        return(0);
    }
Exemplo n.º 3
0
    public static int addButtonEventListener(Lua.lua_State L)
    {
        if (Lua.lua_gettop(L) != 3 ||
            Luna.get_uniqueid(L, 1) != LunaTraits_LWF_LWF.uniqueID ||
            Lua.lua_isstring(L, 2) == 0 || !Lua.lua_istable(L, 3))
        {
            Luna.printStack(L);
            Lua.luaL_error(L, "luna typecheck failed: LWF.addButtonEventListener");
        }

        LWF.LWF a = Luna_LWF_LWF.check(L, 1);
        return(a.AddButtonEventHandlerLua());
    }
Exemplo n.º 4
0
    public static int _bind_get_root(Lua.lua_State L)
    {
        if (Lua.lua_gettop(L) != 1 ||
            Luna.get_uniqueid(L, 1) != LunaTraits_LWF_LWF.uniqueID)
        {
            Luna.printStack(L);
            Lua.luaL_error(L, "luna typecheck failed: LWF.LWF._root");
        }

        LWF.LWF a = Luna_LWF_LWF.check(L, 1);
        Luna_LWF_Movie.push(L, a._root, false);
        return(1);
    }
Exemplo n.º 5
0
 public static int _bind_getPointY(Lua.lua_State L)
 {
     if (Lua.lua_gettop(L) != 1 ||
         Luna.get_uniqueid(L, 1) != 7105034)
     {
         Luna.printStack(L); Lua.luaL_error(L, "luna typecheck failed:getPointY(LWF.LWF self ...)");
     }
     LWF.LWF o = Luna_LWF_LWF.check(L, 1);
     try {
         float ret = getPointY(o);
         Lua.lua_pushnumber(L, ret);
     } catch (Exception e) { Lua.luaL_error(L, new Lua.CharPtr(e.ToString())); }
     return(1);
 }
Exemplo n.º 6
0
    public static int _bind_setColorTransformMovie_overload_1(Lua.lua_State L)
    {
        LWF.LWF self         = Luna_LWF_LWF.check(L, 1);
        string  instanceName = Lua.lua_tostring(L, 2).ToString();
        float   vr           = (float)Lua.lua_tonumber(L, 3);
        float   vg           = (float)Lua.lua_tonumber(L, 4);
        float   vb           = (float)Lua.lua_tonumber(L, 5);
        float   va           = (float)Lua.lua_tonumber(L, 6);

        try {
            self.SetColorTransformMovie(instanceName, vr, vg, vb, va);
        } catch (Exception e) { Lua.luaL_error(L, new Lua.CharPtr(e.ToString())); }
        return(0);
    }
Exemplo n.º 7
0
    public static int _bind_clearButtonEventListener(Lua.lua_State L)
    {
        if (Lua.lua_gettop(L) != 2 ||
            Luna.get_uniqueid(L, 1) != 7105034 ||
            Lua.lua_isstring(L, 2) == 0)
        {
            Luna.printStack(L); Lua.luaL_error(L, "luna typecheck failed:clearButtonEventListener(LWF.LWF self)");
        }

        LWF.LWF self         = Luna_LWF_LWF.check(L, 1);
        string  instanceName = Lua.lua_tostring(L, 2).ToString();

        try {
            self.ClearButtonEventHandler(instanceName);
        } catch (Exception e) { Lua.luaL_error(L, new Lua.CharPtr(e.ToString())); }
        return(0);
    }
Exemplo n.º 8
0
    public static int _bind_getText(Lua.lua_State L)
    {
        if (Lua.lua_gettop(L) != 2 ||
            Luna.get_uniqueid(L, 1) != 7105034 ||
            Lua.lua_isstring(L, 2) == 0)
        {
            Luna.printStack(L); Lua.luaL_error(L, "luna typecheck failed:getText(LWF.LWF self)");
        }

        LWF.LWF self     = Luna_LWF_LWF.check(L, 1);
        string  textName = Lua.lua_tostring(L, 2).ToString();

        try {
            string ret = self.GetText(textName);
            Lua.lua_pushstring(L, ret);
        } catch (Exception e) { Lua.luaL_error(L, new Lua.CharPtr(e.ToString())); }
        return(1);
    }
Exemplo n.º 9
0
    public static int _bind_removeMovieEventListener(Lua.lua_State L)
    {
        if (Lua.lua_gettop(L) != 3 ||
            Luna.get_uniqueid(L, 1) != 7105034 ||
            Lua.lua_isstring(L, 2) == 0 ||
            Lua.lua_isnumber(L, 3) == 0)
        {
            Luna.printStack(L); Lua.luaL_error(L, "luna typecheck failed:removeMovieEventListener(LWF.LWF self)");
        }

        LWF.LWF self         = Luna_LWF_LWF.check(L, 1);
        string  instanceName = Lua.lua_tostring(L, 2).ToString();
        int     id           = (int)Lua.lua_tonumber(L, 3);

        try {
            self.RemoveMovieEventHandler(instanceName, id);
        } catch (Exception e) { Lua.luaL_error(L, new Lua.CharPtr(e.ToString())); }
        return(0);
    }
Exemplo n.º 10
0
    public static int _bind_setAlphaMovie(Lua.lua_State L)
    {
        if (Lua.lua_gettop(L) != 3 ||
            Luna.get_uniqueid(L, 1) != 7105034 ||
            Lua.lua_isstring(L, 2) == 0 ||
            Lua.lua_isnumber(L, 3) == 0)
        {
            Luna.printStack(L); Lua.luaL_error(L, "luna typecheck failed:setAlphaMovie(LWF.LWF self)");
        }

        LWF.LWF self         = Luna_LWF_LWF.check(L, 1);
        string  instanceName = Lua.lua_tostring(L, 2).ToString();
        float   v            = (float)Lua.lua_tonumber(L, 3);

        try {
            self.SetAlphaMovie(instanceName, v);
        } catch (Exception e) { Lua.luaL_error(L, new Lua.CharPtr(e.ToString())); }
        return(0);
    }
Exemplo n.º 11
0
    public static int _bind_setVisibleMovie(Lua.lua_State L)
    {
        if (Lua.lua_gettop(L) != 3 ||
            Luna.get_uniqueid(L, 1) != 7105034 ||
            Lua.lua_isstring(L, 2) == 0 ||
            !Lua.lua_isboolean(L, 3))
        {
            Luna.printStack(L); Lua.luaL_error(L, "luna typecheck failed:setVisibleMovie(LWF.LWF self)");
        }

        LWF.LWF self         = Luna_LWF_LWF.check(L, 1);
        string  instanceName = Lua.lua_tostring(L, 2).ToString();
        bool    visible      = (Lua.lua_toboolean(L, 3) != 0);

        try {
            self.SetVisibleMovie(instanceName, visible);
        } catch (Exception e) { Lua.luaL_error(L, new Lua.CharPtr(e.ToString())); }
        return(0);
    }