static int IntToEnum(IntPtr L) { int arg0 = (int)LuaDLL.lua_tonumber(L, 1); InputUIEventType o = (InputUIEventType)arg0; ToLua.Push(L, o); return(1); }
public InputUIEventBase(string UIName, string ComponentName, InputUIEventType type, string pram = null) : base() { m_name = UIName; m_compName = ComponentName; m_type = type; m_pram = pram; }
public InputUIEventBase(string UIName, string ComponentName, InputUIEventType type, string pram = null) : base() { m_name = UIName; m_compName = ComponentName; m_type = type; m_pram = pram; }
static int set_m_LongPressType(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); InputUILongPressEvent obj = (InputUILongPressEvent)o; InputUIEventType arg0 = (InputUIEventType)ToLua.CheckObject(L, 2, typeof(InputUIEventType)); obj.m_LongPressType = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index m_LongPressType on a nil value" : e.Message)); } }
static int get_m_LongPressType(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); InputUILongPressEvent obj = (InputUILongPressEvent)o; InputUIEventType ret = obj.m_LongPressType; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index m_LongPressType on a nil value" : e.Message)); } }
static int GetEventKey(IntPtr L) { try { ToLua.CheckArgsCount(L, 4); string arg0 = ToLua.CheckString(L, 1); string arg1 = ToLua.CheckString(L, 2); InputUIEventType arg2 = (InputUIEventType)ToLua.CheckObject(L, 3, typeof(InputUIEventType)); string arg3 = ToLua.CheckString(L, 4); string o = InputUIEventBase.GetEventKey(arg0, arg1, arg2, arg3); LuaDLL.lua_pushstring(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
public static void DispatchLongPressEvent(string UIName, string ComponentName, string parm, InputUIEventType type) { //只有允许输入时才派发事件 if (IsActive) { InputUILongPressEvent e = GetUIEvent <InputUILongPressEvent>(UIName, ComponentName, parm); e.m_LongPressType = type; e.EventKey = InputUILongPressEvent.GetEventKey(UIName, ComponentName, parm); InputManager.Dispatch("InputUILongPressEvent", e); } }
public static string GetEventKey(string UIName, string ComponentName, InputUIEventType type, string pram = null) { return(UIName + "." + ComponentName + "." + pram + "." + type.ToString()); }
public static string GetEventKey(string UIName, string ComponentName, InputUIEventType type, string pram = null) { return UIName + "." + ComponentName + "." + pram + "." + type.ToString(); }