static int IntToEnum(IntPtr L) { int arg0 = (int)LuaDLL.lua_tonumber(L, 1); UIInput.InputType o = (UIInput.InputType)arg0; ToLua.Push(L, o); return(1); }
static int set_inputType(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIInput obj = (UIInput)o; UIInput.InputType arg0 = (UIInput.InputType)ToLua.CheckObject(L, 2, typeof(UIInput.InputType)); obj.inputType = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index inputType on a nil value" : e.Message)); } }
static int get_inputType(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIInput obj = (UIInput)o; UIInput.InputType ret = obj.inputType; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index inputType on a nil value" : e.Message)); } }
private static int set_inputType(IntPtr L) { object obj = null; int result; try { obj = ToLua.ToObject(L, 1); UIInput uIInput = (UIInput)obj; UIInput.InputType inputType = (UIInput.InputType)((int)ToLua.CheckObject(L, 2, typeof(UIInput.InputType))); uIInput.inputType = inputType; result = 0; } catch (Exception ex) { result = LuaDLL.toluaL_exception(L, ex, (obj != null) ? ex.Message : "attempt to index inputType on a nil value"); } return(result); }
private static int get_inputType(IntPtr L) { object obj = null; int result; try { obj = ToLua.ToObject(L, 1); UIInput uIInput = (UIInput)obj; UIInput.InputType inputType = uIInput.inputType; ToLua.Push(L, inputType); result = 1; } catch (Exception ex) { result = LuaDLL.toluaL_exception(L, ex, (obj != null) ? ex.Message : "attempt to index inputType on a nil value"); } return(result); }
public static void UpdateInputLabel(this UIInput pInput, UIInput.InputType eInputType) { pInput.inputType = eInputType; pInput.UpdateLabel(); }