Bestenliste, Expeditionen, Ereignisse, Dreizack und Netz, aufrechte Schilde, dunkle Haut
Stand von main 82292b5c. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -12,7 +12,7 @@ namespace GladiatorIdle.Arena
|
||||
/// </summary>
|
||||
internal sealed class MenuScene
|
||||
{
|
||||
public enum Choice { None, Continue, New, Intro, Settings, Quit }
|
||||
public enum Choice { None, Continue, New, Intro, Leaderboard, Settings, Quit }
|
||||
|
||||
readonly Ui _ui = new();
|
||||
readonly Particles _fx = new();
|
||||
@@ -67,24 +67,26 @@ namespace GladiatorIdle.Arena
|
||||
D.Text(sb, Assets.Serif, 120, L.t("app.title").ToUpperInvariant(), new Vector2(Camera.W / 2, 220), D.Gold * appear, Align.Center, 1.06f - 0.06f * appear);
|
||||
D.Text(sb, Assets.Serif, 32, L.t("start.subtitle"), new Vector2(Camera.W / 2, 320), D.Sand * appear, Align.Center);
|
||||
|
||||
float w = 520, h = 74, x = (Camera.W - w) / 2, y = 430;
|
||||
float w = 520, h = 66, x = (Camera.W - w) / 2, y = 410;
|
||||
if (_hasSave && _ui.Button(sb, new RectangleF(x, y, w, h), L.t("menu.continue"), selected: true, size: 30)) Picked = Choice.Continue;
|
||||
if (_hasSave) y += h + 18;
|
||||
if (_hasSave) y += h + 14;
|
||||
string newText = _armNew > 0 ? L.t("menu.new.confirm") : L.t("menu.new");
|
||||
if (_ui.Button(sb, new RectangleF(x, y, w, h), newText, selected: !_hasSave, size: _armNew > 0 ? 18 : 28, accent: _armNew > 0 ? D.Red : null))
|
||||
{
|
||||
if (!_hasSave || _armNew > 0) Picked = Choice.New;
|
||||
else _armNew = 4; // zweiter Klick innerhalb von 4 s
|
||||
}
|
||||
y += h + 18;
|
||||
y += h + 14;
|
||||
if (_ui.Button(sb, new RectangleF(x, y, w, h), L.t("menu.intro"), size: 26)) Picked = Choice.Intro;
|
||||
y += h + 18;
|
||||
y += h + 14;
|
||||
if (_ui.Button(sb, new RectangleF(x, y, w, h), L.t("menu.leaderboard"), size: 26, accent: D.Gold)) Picked = Choice.Leaderboard;
|
||||
y += h + 14;
|
||||
if (_ui.Button(sb, new RectangleF(x, y, w, h), L.t("main.settings"), size: 26)) Picked = Choice.Settings;
|
||||
y += h + 18;
|
||||
y += h + 14;
|
||||
if (_ui.Button(sb, new RectangleF(x, y, w, h), L.t("main.quit"), size: 26)) Picked = Choice.Quit;
|
||||
|
||||
if (_freedoms > 0)
|
||||
D.Text(sb, Assets.Serif, 22, string.Format(L.t("menu.freedoms"), _freedoms), new Vector2(Camera.W / 2, y + h + 50), D.Gold, Align.Center);
|
||||
D.Text(sb, Assets.Serif, 22, string.Format(L.t("menu.freedoms"), _freedoms), new Vector2(Camera.W / 2, y + h + 36), D.Gold, Align.Center);
|
||||
D.Text(sb, Assets.Sans, 16, $"{Credits.COPYRIGHT} · {Credits.DISCORD}", new Vector2(Camera.W / 2, Camera.H - 30), D.Dim, Align.Center); // i18n-ok
|
||||
sb.End();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user