public MainMenuForm(Game Game, BaseBeloteScene ParentScene, BeloteFormAction CloseAction, BaseBeloteForm ParentForm) : base(Game, ParentScene, CloseAction, ParentForm) { DaylyBonusForm = null; CreationTableForm = null; TablesSelectOptionsForm = null; }
// Конструтор: игровой объект, родительская сцена, событие завершения, родительская форма public BaseBeloteForm(Game Game, BaseBeloteScene ParentScene, BeloteFormAction CloseAction, BaseBeloteForm ParentForm) { this.Game = Game; this.ParentScene = ParentScene; this.CloseAction = CloseAction; this.Parent = ParentForm; if (Parent != null) BaseZPosition = Parent.BaseZPosition + 10; else BaseZPosition = 0; Controls = new List<BaseBeloteControl> (); }
public AuthorizationForm(Game Game, BaseBeloteScene ParentScene, BeloteFormAction CloseAction, BaseBeloteForm ParentForm) : base(Game, ParentScene, CloseAction, ParentForm) { PasswordRemindForm = null; }
public override void ShowView(BaseBeloteScene Scene) { base.ShowView (Scene); }
public TablesSelectOptionsForm(Game Game, BaseBeloteScene ParentScene, BeloteFormAction CloseAction, BaseBeloteForm ParentForm) : base(Game, ParentScene, CloseAction, ParentForm) { }
public PasswordRemindForm(Game Game, BaseBeloteScene ParentScene, BeloteFormAction CloseAction, BaseBeloteForm ParentForm) : base(Game, ParentScene, CloseAction, ParentForm) { }
//********************************************************************************************************************************************************************************** // Методы отображения графики //********************************************************************************************************************************************************************************** // Отображение гостевого экрана public void ShowGuestScreen() { Scene = SKNode.FromFile<GuestScene> ("GuestScene"); Scene.Initialize (Game); GameView.ShowsFPS = true; GameView.ShowsNodeCount = true; GameView.ShowsDrawCount = true; Scene.ScaleMode = SKSceneScaleMode.Fill; //Scene.AnchorPoint = new CoreGraphics.CGPoint (0, 1); GameView.PresentScene (Scene); }
public BaseBelotePopupForm(Game Game, BaseBeloteScene ParentScene, BeloteFormAction CloseAction, BaseBeloteForm ParentForm) : base(Game, ParentScene, CloseAction, ParentForm) { }
// Показ компонентов отображение public virtual void ShowView(BaseBeloteScene Scene) { }
public DaylyBonusForm(Game Game, BaseBeloteScene ParentScene, BeloteFormAction CloseAction, BaseBeloteForm ParentForm) : base(Game, ParentScene, CloseAction, ParentForm) { }
public override void ShowView(BaseBeloteScene Scene) { base.ShowView (Scene); CGPoint sceneCoordinates; if (Sprite.Parent.Frame.X == 0) sceneCoordinates = new CGPoint (Math.Abs(Sprite.Parent.Frame.X) + X, Math.Abs(Sprite.Parent.Frame.Y) + Y); else sceneCoordinates = new CGPoint (Math.Abs(Sprite.Parent.Frame.X) + X, Math.Abs(Sprite.Parent.Frame.Y)); UITextField textField = new UITextField (CoordinatesTransmitor.ConvertRectFromSceneToView(Scene.View, (float)Scene.Frame.Width, (float)Scene.Frame.Height, Width, Height, (float)sceneCoordinates.X, (float)sceneCoordinates.Y)); textField.BorderStyle = UITextBorderStyle.None; textField.Font = Font; textField.Text = this.Text; textField.SecureTextEntry = SecureText; textField.EditingChanged += EndEditing; textField.BackgroundColor = UIColor.Clear; this.TextField = textField; Scene.View.AddSubview (TextField); }