GOGUI.LazyLoadImage MakeLazyLoadImage(UnityEngine.UI.Image img, string path) { GameObject go = img.gameObject; Color color = img.color; Material mat = img.material; bool rt = img.raycastTarget; bool pa = img.preserveAspect; UnityEngine.UI.Image.Type type = img.type; bool clockwise = img.fillClockwise; bool fc = img.fillCenter; float fa = img.fillAmount; UnityEngine.UI.Image.FillMethod fm = img.fillMethod; int fo = img.fillOrigin; GameObject.DestroyImmediate(img); GOGUI.LazyLoadImage li = go.AddComponent <GOGUI.LazyLoadImage>(); li.SpriteName = path; li.color = color; li.material = mat; li.raycastTarget = rt; li.type = type; li.preserveAspect = pa; li.fillClockwise = clockwise; li.fillCenter = fc; li.fillAmount = fa; li.fillMethod = fm; li.fillOrigin = fo; return(li); }
static int IntToEnum(IntPtr L) { int arg0 = (int)LuaDLL.lua_tonumber(L, 1); UnityEngine.UI.Image.FillMethod o = (UnityEngine.UI.Image.FillMethod)arg0; ToLua.Push(L, o); return(1); }
static int QPYX_set_fillMethod_YXQP(IntPtr L_YXQP) { object QPYX_o_YXQP = null; try { QPYX_o_YXQP = ToLua.ToObject(L_YXQP, 1); UnityEngine.UI.Image QPYX_obj_YXQP = (UnityEngine.UI.Image)QPYX_o_YXQP; UnityEngine.UI.Image.FillMethod QPYX_arg0_YXQP = (UnityEngine.UI.Image.FillMethod)ToLua.CheckObject(L_YXQP, 2, typeof(UnityEngine.UI.Image.FillMethod)); QPYX_obj_YXQP.fillMethod = QPYX_arg0_YXQP; return(0); } catch (Exception QPYX_e_YXQP) { return(LuaDLL.toluaL_exception(L_YXQP, QPYX_e_YXQP, QPYX_o_YXQP, "attempt to index fillMethod on a nil value")); } }
static int QPYX_get_fillMethod_YXQP(IntPtr L_YXQP) { object QPYX_o_YXQP = null; try { QPYX_o_YXQP = ToLua.ToObject(L_YXQP, 1); UnityEngine.UI.Image QPYX_obj_YXQP = (UnityEngine.UI.Image)QPYX_o_YXQP; UnityEngine.UI.Image.FillMethod QPYX_ret_YXQP = QPYX_obj_YXQP.fillMethod; ToLua.Push(L_YXQP, QPYX_ret_YXQP); return(1); } catch (Exception QPYX_e_YXQP) { return(LuaDLL.toluaL_exception(L_YXQP, QPYX_e_YXQP, QPYX_o_YXQP, "attempt to index fillMethod on a nil value")); } }
public ImageData(Image image) { sourceImagePath = UnityEditor.AssetDatabase.GetAssetPath(image.sprite); //Debug.Log("Path of image:" + sourceImagePath); alphaHitTestMinimumThreshold = image.alphaHitTestMinimumThreshold; fillAmount = image.fillAmount; fillCenter = image.fillCenter; fillClockwise = image.fillClockwise; fillMethod = image.fillMethod; fillOrigin = image.fillOrigin; preserveAspect = image.preserveAspect; type = image.type; color = image.color; }
static int set_fillMethod(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.UI.Image obj = (UnityEngine.UI.Image)o; UnityEngine.UI.Image.FillMethod arg0 = (UnityEngine.UI.Image.FillMethod)LuaDLL.luaL_checknumber(L, 2); obj.fillMethod = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index fillMethod on a nil value")); } }
static int get_fillMethod(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.UI.Image obj = (UnityEngine.UI.Image)o; UnityEngine.UI.Image.FillMethod ret = obj.fillMethod; LuaDLL.lua_pushinteger(L, (int)ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index fillMethod on a nil value")); } }
static int set_fillMethod(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.UI.Image obj = (UnityEngine.UI.Image)o; UnityEngine.UI.Image.FillMethod arg0 = (UnityEngine.UI.Image.FillMethod)ToLua.CheckObject(L, 2, typeof(UnityEngine.UI.Image.FillMethod)); obj.fillMethod = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index fillMethod on a nil value" : e.Message)); } }
static int get_fillMethod(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.UI.Image obj = (UnityEngine.UI.Image)o; UnityEngine.UI.Image.FillMethod ret = obj.fillMethod; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index fillMethod on a nil value" : e.Message)); } }
static StackObject *set_fillMethod_12(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *ptr_of_this_method; StackObject *__ret = ILIntepreter.Minus(__esp, 2); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); UnityEngine.UI.Image.FillMethod @value = (UnityEngine.UI.Image.FillMethod) typeof(UnityEngine.UI.Image.FillMethod).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 2); UnityEngine.UI.Image instance_of_this_method = (UnityEngine.UI.Image) typeof(UnityEngine.UI.Image).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); instance_of_this_method.fillMethod = value; return(__ret); }
static void Push(IntPtr L, UnityEngine.UI.Image.FillMethod arg) { ToLua.Push(L, arg); }