public override void Show(float Width, float Height, float X, float Y) { base.Show (Width, Height, X, Y); SendPasswordButton = new BeloteButton ("SendPasswordButton", 400, 65, (Width / 2) - 200, (Height / 2) - 100, OnSendPasswordButtonClick, null, SKTexture.FromImageNamed("Textures/ActiveButton.png"), SKTexture.FromImageNamed("Textures/UnactiveButton.png"), "Отправить пароль на E-mail", 25); SendPasswordButton.Enabled = false; EmailRemindEdit = new BeloteEdit ("EmailRemindEdit", 400, 65, (Width / 2) - 200, (Height / 2), SKTexture.FromImageNamed("Textures/TextField.png"), "", false, OnEmailEndEditing); AddChildControl (SendPasswordButton); AddChildControl (EmailRemindEdit); EmailRemindEdit.TextField.BecomeFirstResponder (); this.AnimateWindow (); }
public override void Show(float Width, float Height, float X, float Y) { base.Show (Width, Height, X, Y); DrawBackground ("Textures/woodbg.png", "AuthBackground"); SKTexture textEditTexture = SKTexture.FromImageNamed ("Textures/TextField.png"); SKTexture activeButtonTexture = SKTexture.FromImageNamed ("Textures/ActiveButton.png"); SKTexture unactiveButtonTexture = SKTexture.FromImageNamed ("Textures/UnactiveButton.png"); VKButton = new BeloteButton ("VKButton", 225, 225, (Width / 2) - 325, 378, OnVKButtonClick, null, SKTexture.FromImageNamed("Textures/GuestScreen/VKButton.png"), null); FBButton = new BeloteButton ("FBButton", 225, 225, (Width / 2) + (325 - 225), 378, OnFBButtonClick, null, SKTexture.FromImageNamed("Textures/GuestScreen/FacebookButton.png"), null); EmailEdit = new BeloteEdit ("Email", 650, 65, (Width / 2) - 325, 300, textEditTexture, "", false, OnEmailEndEditing); PasswordEdit = new BeloteEdit ("Password", 650, 65, (Width / 2) - 325, 225, textEditTexture, "", true, OnPasswordEndEditing); EnterButton = new BeloteButton ("EnterButton", 320, 65, (Width / 2) - 325, 150, OnEnterButtonClick, null, activeButtonTexture, unactiveButtonTexture, "Войти", 20); EnterButton.Enabled = false; RemindPasswordButton = new BeloteButton ("RemindButton", 320, 65, (Width / 2) + 5, 150, OnRemindPasswordButtonClick, null, activeButtonTexture, unactiveButtonTexture, "Напомнить пароль", 20); EnterLabel = new BeloteLabel ("EnterLabel", (Width / 2), 630, "Войти через: " + ParentScene.View.Frame.Width.ToString() + " " + ParentScene.View.Frame.Height.ToString(), UIColor.White, 30, "Roboto"); AddChildControl (VKButton); AddChildControl (FBButton); AddChildControl (EmailEdit); AddChildControl (PasswordEdit); AddChildControl (EnterButton); AddChildControl (RemindPasswordButton); AddChildControl (EnterLabel); }