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:
2026-11-08 14:53:03 +01:00
parent bdcf9a4a2c
commit 62bc7cc8b3
13 changed files with 751 additions and 31 deletions

View File

@@ -15,7 +15,7 @@ namespace GladiatorIdle.Arena
/// </summary>
internal sealed partial class HubScene
{
enum Drawer { None, Gladiator, Ludus, Forum, Skills, Hall }
enum Drawer { None, Gladiator, Ludus, Forum, Skills, Hall, Expedition }
readonly GameState _game;
readonly Ui _ui = new();
@@ -72,6 +72,7 @@ namespace GladiatorIdle.Arena
_ui.Begin(input, ui);
_game.Tick(dt); // Training, Einnahmen, Erholung
_hero.Update(dt, dt, _dummy, 0, AppSettings.ReduceMotion);
UpdateAdventure();
_crowd.Update(dt);
_fx.Motes(AppSettings.ReduceMotion ? 0 : 50, Camera.W, Camera.H);
_fx.Update(dt);
@@ -136,10 +137,15 @@ namespace GladiatorIdle.Arena
sb.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, SamplerState.LinearClamp, null, null, null, ui);
DrawTopBar(sb);
if (_drawerK < 0.98f) DrawOffers(sb);
DrawDrawerButtons(sb);
DrawToast(sb);
if (_drawerK > 0.01f) DrawDrawer(sb);
DrawBuffs(sb);
if (Modal) DrawModal(sb); // Bericht oder Ereignis: darunter nichts anklickbar
else
{
if (_drawerK < 0.98f) { if (_game.Away is { } away) DrawAwayCard(sb, away); else DrawOffers(sb); }
DrawDrawerButtons(sb);
DrawToast(sb);
if (_drawerK > 0.01f) DrawDrawer(sb);
}
sb.End();
}
@@ -299,6 +305,10 @@ namespace GladiatorIdle.Arena
if (_ui.Button(sb, new RectangleF(1024, y, 230, 60), string.Format(L.t("hall.button"), _game.Legends.Count), selected: _drawer == Drawer.Hall,
size: 22, accent: open > 0 || _game.GodFavor > 0 ? D.Purple : null))
_drawer = _drawer == Drawer.Hall ? Drawer.None : Drawer.Hall;
string ex = _game.Away != null ? $"{L.t("exp.button")} · {NumberFormat.Duration(_game.Away.Left)}" : L.t("exp.button"); // i18n-ok
if (_ui.Button(sb, new RectangleF(1270, y, 300, 60), ex, selected: _drawer == Drawer.Expedition, size: 22,
accent: _game.Away != null ? D.Gold : null))
_drawer = _drawer == Drawer.Expedition ? Drawer.None : Drawer.Expedition;
}
void DrawDrawer(SpriteBatch sb)
@@ -311,6 +321,7 @@ namespace GladiatorIdle.Arena
else if (_drawer == Drawer.Forum) DrawForum(sb, r);
else if (_drawer == Drawer.Skills) DrawSkills(sb, r);
else if (_drawer == Drawer.Hall) DrawHall(sb, r);
else if (_drawer == Drawer.Expedition) DrawExpeditions(sb, r);
}
static float Ease(float k) => 1 - (1 - k) * (1 - k);