Feldzugkarte, Reise in 3D, Kampfstile der Gegner, Missio, inszenierte Heimkehr
Stand von main 8c62f0dd. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -45,45 +45,6 @@ namespace GladiatorIdle.Arena
|
||||
sb.Draw(tex, new Rectangle((int)r.X, (int)r.Y, (int)r.Width, (int)r.Height), src, Color.White * alpha);
|
||||
}
|
||||
|
||||
// ── Schublade: Regionen und Aufbruch ────────────────────────
|
||||
|
||||
void DrawExpeditions(SpriteBatch sb, RectangleF r)
|
||||
{
|
||||
float x = r.X + 30, w = r.Width - 60, y = r.Y + 40;
|
||||
D.Text(sb, Assets.Serif, 34, L.t("exp.title"), new Vector2(x, y), D.Gold);
|
||||
D.TextWrap(sb, Assets.Sans, 17, L.t("exp.intro"), new RectangleF(x, y + 26, w, 44), D.Sand);
|
||||
if (_game.Away == null && !_game.RegionOpen(RegionDef.Get(_expRegion)))
|
||||
_expRegion = RegionDef.All.Last(reg => _game.RegionOpen(reg)).Id;
|
||||
|
||||
const float GX = 20, GY = 18;
|
||||
float cw = (w - 2 * GX) / 3, ch = 250, y0 = y + 84;
|
||||
for (int i = 0; i < RegionDef.All.Length; i++)
|
||||
{
|
||||
var reg = RegionDef.All[i];
|
||||
var cr = new RectangleF(x + i % 3 * (cw + GX), y0 + i / 3 * (ch + GY), cw, ch);
|
||||
bool open = _game.RegionOpen(reg), sel = reg.Id == (_game.Away?.Region ?? _expRegion);
|
||||
D.Rect(sb, cr, new Color(24, 18, 12) * 0.95f);
|
||||
DrawPicture(sb, Picture(reg.Art), new RectangleF(cr.X + 5, cr.Y + 5, cr.Width - 10, ch - 80), open ? 1 : 0.3f);
|
||||
D.Text(sb, Assets.Serif, 22, L.t(reg.Key).ToUpperInvariant(), new Vector2(cr.X + 14, cr.Bottom - 54), open ? D.Gold : D.Dim);
|
||||
string info = open ? string.Format(L.t("exp.chance"), NumberFormat.Percent(_game.ExpeditionChance(reg)))
|
||||
: string.Format(L.t("exp.locked"), L.t(ArenaDef.All[reg.Unlock].Key));
|
||||
D.Text(sb, Assets.Sans, 16, info, new Vector2(cr.X + 14, cr.Bottom - 24), open ? ChanceColor(_game.ExpeditionChance(reg)) : D.Dim);
|
||||
D.Frame(sb, cr, sel ? D.Gold : D.Border, sel ? 4 : 2);
|
||||
if (open && _game.Away == null && _ui.Hover(cr) && _ui.Hit(cr)) { _expRegion = reg.Id; SoundManager.PlayClick(); }
|
||||
}
|
||||
|
||||
float by = y0 + 2 * (ch + GY) + 10;
|
||||
if (_game.Away is { } a) { DrawAwayStatus(sb, new RectangleF(x, by, w, 80), a); return; }
|
||||
float bw = 240;
|
||||
for (int d = 0; d < 3; d++)
|
||||
if (_ui.Button(sb, new RectangleF(x + d * (bw + 12), by + 6, bw, 60), string.Format(L.t("exp.duration"), DurationLabel(d), LootCount(d)),
|
||||
selected: _expDuration == d, size: 18))
|
||||
_expDuration = d;
|
||||
if (_ui.Button(sb, new RectangleF(x + w - 300, by + 6, 300, 60), L.t("exp.start"),
|
||||
_game.RegionOpen(RegionDef.Get(_expRegion)) && !_game.FreedomEarned, selected: true, size: 24, accent: D.Gold))
|
||||
if (_game.StartExpedition(_expRegion, _expDuration)) { SoundManager.PlayStart(); _drawer = Drawer.None; }
|
||||
}
|
||||
|
||||
void DrawAwayStatus(SpriteBatch sb, RectangleF r, Expedition a)
|
||||
{
|
||||
var reg = RegionDef.Get(a.Region);
|
||||
@@ -104,6 +65,10 @@ namespace GladiatorIdle.Arena
|
||||
Ui.Panel(sb, r, D.Gold, 0.92f);
|
||||
DrawPicture(sb, Picture(reg.Art), new RectangleF(r.X + 20, r.Y + 20, r.Width - 40, 430));
|
||||
DrawAwayStatus(sb, new RectangleF(r.X + 30, r.Y + 470, r.Width - 60, 90), a);
|
||||
// Reise in 3D ansehen / Karte
|
||||
if (_ui.Button(sb, new RectangleF(r.X + 30, r.Bottom - 70, (r.Width - 76) / 2, 54), L.t("exp.watch"), selected: true, size: 20, accent: D.Gold)) OpenJourney();
|
||||
if (_ui.Button(sb, new RectangleF(r.X + 46 + (r.Width - 76) / 2, r.Bottom - 70, (r.Width - 76) / 2, 54), L.t("exp.map"), size: 20))
|
||||
{ _overlay = Overlay.Map; SoundManager.PlayDrawer(); }
|
||||
}
|
||||
|
||||
// ── Segen ───────────────────────────────────────────────────
|
||||
@@ -123,6 +88,7 @@ namespace GladiatorIdle.Arena
|
||||
|
||||
void DrawModal(SpriteBatch sb)
|
||||
{
|
||||
if (Homecoming) { DrawHomecoming(sb, _game.ExpeditionResult!); return; } // Heimkehr als Szene
|
||||
D.Rect(sb, new RectangleF(0, 0, Camera.W, Camera.H), Color.Black * 0.65f);
|
||||
if (Welcome is { } w) DrawWelcome(sb, w);
|
||||
else if (_game.ExpeditionResult is { } rep) DrawReport(sb, rep);
|
||||
|
||||
Reference in New Issue
Block a user