예제 #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");
            }
        }
예제 #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"));
            }
        }