示例#1
0
 void InitOverlays()
 {
     UsernameTextField = InstantiateChild <LMS_GuiBaseTextField>(new LMS_GuiConfig
     {
         Rect = new Rect(120f, 80f, 461f, 150f)
     }, 1);
     UsernameTextField.SetTexture((int)E_Texture.IDLE, m_Skin.textField.normal.background);
     UsernameTextField.OnTextChanged += (text) => UsernameRenderer.Config.Text = UsernameTextField.TextToRender;
     PasswordTextField = InstantiateChild <LMS_GuiBaseTextField>(new LMS_GuiConfig
     {
         Rect = new Rect(120f, 120f, 461f, 150f)
     }, 1);
     PasswordTextField.SetTexture((int)E_Texture.IDLE, m_Skin.textField.normal.background);
     PasswordTextField.OnTextChanged += (text) => PasswordRenderer.Config.Text = PasswordTextField.TextToRender;
     PasswordTextField.Password       = true;
 }