Oath speech in the deep warrior voice, cinematic camera, crowd calls your name
Stand von main 730ac6a2. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -65,9 +65,10 @@ namespace GladiatorIdle.Arena
|
||||
/// Getippte Zeichen (vom Fenster) für den Namen.
|
||||
public void OnText(char c, Keys key)
|
||||
{
|
||||
if (key == Keys.Back) { if (Name.Length > 0) Name = Name[..^1]; return; }
|
||||
if (key == Keys.Back) { if (Name.Length > 0) Name = Name[..^1]; _typedAt = _t; return; }
|
||||
if (key == Keys.Enter) return;
|
||||
if (!char.IsControl(c) && Name.Length < 18) Name += c;
|
||||
_typedAt = _t;
|
||||
}
|
||||
|
||||
// ── Takt ────────────────────────────────────────────────────
|
||||
@@ -168,8 +169,13 @@ namespace GladiatorIdle.Arena
|
||||
_thumbClass = Class; _thumbTint = Tint; _thumbsDirty = false;
|
||||
}
|
||||
|
||||
double _typedAt = -1;
|
||||
|
||||
void DrawNameField(SpriteBatch sb)
|
||||
{
|
||||
// nach ~1 s Tipp-Pause: Stimme für Name und Schwur im Hintergrund vorbereiten
|
||||
if (_typedAt >= 0 && _t - _typedAt > 1.0 && Name.Trim().Length > 0) { NameVoice.Prepare(Name); _typedAt = -1; }
|
||||
|
||||
var r = new RectangleF(170, 968, 600, 68);
|
||||
D.Text(sb, Assets.SansBold, 20, L.t("create.name"), new Vector2(r.X, r.Y - 22), D.Sand);
|
||||
Ui.Panel(sb, r, D.Gold);
|
||||
|
||||
Reference in New Issue
Block a user