/** This is an automatically generated class by FairyGUI. Please do not modify it. **/ using FairyGUI; namespace UI.DressUp { public partial class UI_PhotographSaveUI { public GComponent target; public GGraph m_mask; public GImage m_imgRes; public GImage m_imgBorder; public GButton m_btnClose; public GButton m_btnSave; public GButton m_btnShare; public GButton m_btnShareWX; public GButton m_btnShareWB; public GButton m_btnSavePhoto; public const string URL = "ui://mbo439wbi3ix58"; public const string PACKAGE_NAME = "DressUp"; public const string RES_NAME = "PhotographSaveUI"; private static UI_PhotographSaveUI _proxy; public static UI_PhotographSaveUI Create(GObject gObject = null) { var ui = new UI_PhotographSaveUI(); if(gObject == null) ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME); else ui.target = (GComponent)gObject; ui.Init(ui.target); return ui; } public static UI_PhotographSaveUI Proxy(GObject gObject = null) { if(_proxy == null) { _proxy = new UI_PhotographSaveUI(); } var ui = _proxy; if(gObject == null) ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME); else ui.target = (GComponent)gObject; ui.Init(ui.target); return ui; } public static void ProxyEnd() { if (_proxy != null) { _proxy.Dispose(); } } public static void ClearProxy() { ProxyEnd(); _proxy = null; } private void Init(GComponent comp) { m_mask = (GGraph)comp.GetChild("mask"); m_imgRes = (GImage)comp.GetChild("imgRes"); m_imgBorder = (GImage)comp.GetChild("imgBorder"); m_btnClose = (GButton)comp.GetChild("btnClose"); m_btnSave = (GButton)comp.GetChild("btnSave"); m_btnShare = (GButton)comp.GetChild("btnShare"); m_btnShareWX = (GButton)comp.GetChild("btnShareWX"); m_btnShareWB = (GButton)comp.GetChild("btnShareWB"); m_btnSavePhoto = (GButton)comp.GetChild("btnSavePhoto"); } public void Dispose(bool disposeTarget = false) { m_mask = null; m_imgRes = null; m_imgBorder = null; m_btnClose = null; m_btnSave = null; m_btnShare = null; m_btnShareWX = null; m_btnShareWB = null; m_btnSavePhoto = null; if(disposeTarget && target != null) { target.RemoveFromParent(); target.Dispose(); } target = null; } } }