private void onMultiplayer() { if (api.State.Value != APIState.Online) { notifications?.Post(new SimpleNotification { Text = "You gotta be online to multi 'yo!", Icon = FontAwesome.Solid.Globe, Activated = () => { loginOverlay?.Show(); return(true); } }); return; } // disabled until the underlying runtime issue is resolved, see https://github.com/mono/mono/issues/20805. if (RuntimeInfo.OS == RuntimeInfo.Platform.iOS) { notifications?.Post(new SimpleNotification { Text = "Multiplayer is temporarily unavailable on iOS as we figure out some low level issues.", Icon = FontAwesome.Solid.AppleAlt, }); return; } OnMultiplayer?.Invoke(); }
private void onMultiplayer() { if (api.State.Value != APIState.Online) { loginOverlay?.Show(); return; } OnMultiplayer?.Invoke(); }
private void onMultiplayer() { if (api.State.Value != APIState.Online) { notifications?.Post(new SimpleNotification { Text = "You gotta be online to multi 'yo!", Icon = FontAwesome.Solid.Globe, Activated = () => { loginOverlay?.Show(); return(true); } }); return; } OnMultiplayer?.Invoke(); }
private void onMultiplayer() { if (!api.IsLoggedIn) { notifications?.Post(new SimpleNotification { Text = "You gotta be logged in to multi 'yo!", Icon = FontAwesome.Solid.Globe, Activated = () => { loginOverlay?.Show(); return(true); } }); return; } OnMultiplayer?.Invoke(); }
private void onMulti() { if (!api.IsLoggedIn) { notifications?.Post(new SimpleNotification { Text = "Чтобы играть с кем-то надо в акк зайти.", Icon = FontAwesome.Solid.Globe, Activated = () => { loginOverlay?.Show(); return(true); } }); return; } OnMulti?.Invoke(); }
private void onMulti() { if (!api.IsLoggedIn) { notifications?.Post(new SimpleNotification { Text = "你必须登入才能进行多人游戏oAo!", Icon = FontAwesome.Solid.Globe, Activated = () => { loginOverlay?.Show(); return(true); } }); return; } OnMulti?.Invoke(); }
private void load(TextureStore textures) { RelativeSizeAxes = Axes.Both; InternalChildren = new Drawable[] { new Box { RelativeSizeAxes = Axes.Both, Colour = new Colour4(106, 100, 104, 255) }, new GridContainer { RelativeSizeAxes = Axes.Both, RowDimensions = new [] { new Dimension(GridSizeMode.Relative, .5f), new Dimension(GridSizeMode.Relative, .25f), new Dimension() }, ColumnDimensions = new[] { new Dimension() }, Content = new [] { new Drawable[] { new CircularContainer { Anchor = Anchor.Centre, Origin = Anchor.Centre, BorderColour = Colour4.Black, BorderThickness = 3.5f, Masking = true, Size = new Vector2(600, 600), Child = new Sprite { RelativeSizeAxes = Axes.Both, Texture = textures.Get("Images/gtg") } } }, new Drawable[] { new Container { RelativeSizeAxes = Axes.Both, Child = loginButton = new GamesToGoButton { Anchor = Anchor.BottomCentre, Origin = Anchor.BottomCentre, Height = 150, Width = 800, Text = "Iniciar Sesión", Action = () => loginOverlay.Show() } } }, new Drawable[] { new Container { RelativeSizeAxes = Axes.Both, Child = registerButton = new GamesToGoButton { Anchor = Anchor.Centre, Origin = Anchor.Centre, Height = 150, Width = 800, Text = "Registrarse", Action = () => registerOverlay.Show() }, }, }, }, }, loginOverlay = new LoginOverlay(loginIntoServer), registerOverlay = new RegisterOverlay(), }; loginButton.SpriteText.Font = new FontUsage(size: 60); registerButton.SpriteText.Font = new FontUsage(size: 60); }