Exemplo n.º 1
0
        public void Awake(GObject go)
        {
            if (go == null)
            {
                return;
            }

            GObject = go;

            if (string.IsNullOrWhiteSpace(Name))
            {
                Name = Id.ToString();
            }

            self = (GComponent)go;

            self.Add(this);

            var com = go.asCom;

            if (com != null)
            {
                bg            = (GImage)com.GetChild("bg");
                contentBG     = (GImage)com.GetChild("contentBG");
                accountBg     = (GImage)com.GetChild("accountBg");
                accountInput  = (GTextInput)com.GetChild("accountInput");
                passwordBg    = (GImage)com.GetChild("passwordBg");
                passwordInput = (GTextInput)com.GetChild("passwordInput");
                loginButton   = FUITitleButton.Create(domain, com.GetChild("loginButton"));
                content       = (GGroup)com.GetChild("content");
            }
        }
Exemplo n.º 2
0
        public void Awake(GObject go)
        {
            if (go == null)
            {
                return;
            }

            GObject = go;

            if (string.IsNullOrWhiteSpace(Name))
            {
                Name = Id.ToString();
            }

            self = (GComponent)go;

            self.Add(this);

            var com = go.asCom;

            if (com != null)
            {
                bg          = (GImage)com.GetChild("bg");
                enterButton = FUITitleButton.Create(domain, com.GetChild("enterButton"));
            }
        }
Exemplo n.º 3
0
        public override void Dispose()
        {
            if (IsDisposed)
            {
                return;
            }

            base.Dispose();

            self.Remove();
            self = null;
            bg   = null;
            enterButton.Dispose();
            enterButton = null;
        }
Exemplo n.º 4
0
        public override void Dispose()
        {
            if (IsDisposed)
            {
                return;
            }

            base.Dispose();

            self.Remove();
            self          = null;
            bg            = null;
            contentBG     = null;
            accountBg     = null;
            accountInput  = null;
            passwordBg    = null;
            passwordInput = null;
            loginButton.Dispose();
            loginButton = null;
            content     = null;
        }