mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-18 20:15:35 -04:00
Reorganise save level screen.
This commit is contained in:
parent
dfde526675
commit
d74dc198e9
@ -54,11 +54,13 @@ namespace ClassicalSharp.Gui {
|
|||||||
regularFont = new Font( game.FontName, 16, FontStyle.Regular );
|
regularFont = new Font( game.FontName, 16, FontStyle.Regular );
|
||||||
|
|
||||||
inputWidget = MenuInputWidget.Create(
|
inputWidget = MenuInputWidget.Create(
|
||||||
game, -30, 50, 500, 30, "", Anchor.Centre, Anchor.Centre,
|
game, 0, 0, 500, 30, "", Anchor.Centre, Anchor.Centre,
|
||||||
regularFont, titleFont, new PathValidator() );
|
regularFont, titleFont, new PathValidator() );
|
||||||
|
|
||||||
widgets = new [] {
|
widgets = new Widget[] {
|
||||||
ButtonWidget.Create( game, 260, 50, 60, 30, "Save", Anchor.Centre,
|
ChatTextWidget.Create( game, 0, -70, "Save level",
|
||||||
|
Anchor.Centre, Anchor.Centre, titleFont ),
|
||||||
|
ButtonWidget.Create( game, 0, 50, 201, 40, "Save", Anchor.Centre,
|
||||||
Anchor.Centre, titleFont, OkButtonClick ),
|
Anchor.Centre, titleFont, OkButtonClick ),
|
||||||
null,
|
null,
|
||||||
MakeBack( false, titleFont,
|
MakeBack( false, titleFont,
|
||||||
|
@ -109,7 +109,7 @@ namespace ClassicalSharp.Gui {
|
|||||||
public sealed class PathValidator : MenuInputValidator {
|
public sealed class PathValidator : MenuInputValidator {
|
||||||
|
|
||||||
public PathValidator() {
|
public PathValidator() {
|
||||||
Range = "&7(Enter filename)";
|
Range = "&7(Enter name)";
|
||||||
}
|
}
|
||||||
|
|
||||||
public override bool IsValidChar( char c ) {
|
public override bool IsValidChar( char c ) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user