mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-10-08 21:46:38 -04:00
27 lines
1.0 KiB
C#
27 lines
1.0 KiB
C#
using System;
|
|
using System.Drawing;
|
|
using OpenTK.Input;
|
|
|
|
namespace ClassicalSharp {
|
|
|
|
public class PauseScreen : MenuScreen {
|
|
|
|
public PauseScreen( Game game ) : base( game ) {
|
|
}
|
|
|
|
public override void Init() {
|
|
titleFont = new Font( "Arial", 16, FontStyle.Bold );
|
|
buttons = new ButtonWidget[] {
|
|
Make( 0, -50, "Options", Docking.Centre, g => g.SetNewScreen( new OptionsScreen( g ) ) ),
|
|
Make( 0, 0, "Environment settings", Docking.Centre, g => g.SetNewScreen( new EnvSettingsScreen( g ) ) ),
|
|
Make( 0, 50, "Key mappings", Docking.Centre, g => g.SetNewScreen( new OldPauseScreen( g ) ) ), // TODO: Temp fix
|
|
Make( 0, 55, "Back to game", Docking.BottomOrRight, g => g.SetNewScreen( new NormalScreen( g ) ) ),
|
|
Make( 0, 5, "Exit", Docking.BottomOrRight, g => g.Exit() ),
|
|
};
|
|
}
|
|
|
|
ButtonWidget Make( int x, int y, string text, Docking vDocking, Action<Game> onClick ) {
|
|
return ButtonWidget.Create( game, x, y, 240, 35, text, Docking.Centre, vDocking, titleFont, onClick );
|
|
}
|
|
}
|
|
} |