Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

fix(play): give the war portal's walk-up prompt its own row in the contextual-action stack

nirholas8dca9e235db8
diff --git a/src/game/play-systems.css b/src/game/play-systems.css
index de719d12a..5f834bb74 100644
--- a/src/game/play-systems.css
+++ b/src/game/play-systems.css
@@ -147,14 +147,15 @@
}
/* Contextual-action stacking contract. Three independent systems mount a
`.ps-action` button at the same fixed spot: play-systems (fish/equip rod),
- play-activities (`.pa-action`: chop/mine/cook/gather) and wheel-station
- (`.wh-action`: spin). Standing where two are in range used to render them
- pixel-perfectly on top of each other, so only the last-appended one was
- clickable. Each modifier claims its own row, bottom-up, in the order a player
- is most likely to want them. Keep the 52px step in sync with the mobile
- overrides at the bottom of this file. */
+ play-activities (`.pa-action`: chop/mine/cook/gather), wheel-station
+ (`.wh-action`: spin) and war-portal (`.wp-action`: enter the war). Standing
+ where two are in range used to render them pixel-perfectly on top of each
+ other, so only the last-appended one was clickable. Each modifier claims its
+ own row, bottom-up, in the order a player is most likely to want them. Keep
+ the 52px step in sync with the mobile overrides at the bottom of this file. */
.ps-action.pa-action { bottom: 184px; }
.ps-action.wh-action { bottom: 236px; }
+.ps-action.wp-action { bottom: 288px; }
.ps-action:hover { filter: brightness(0.9); transform: translateX(-50%) translateY(-2px); }
.ps-action:active { transform: translateX(-50%) scale(0.97); }
.ps-action.is-disabled {
@@ -494,6 +495,7 @@
mobile origin so the joystick and hotbar still clear all three. */
.ps-action.pa-action { bottom: 260px; }
.ps-action.wh-action { bottom: 312px; }
+ .ps-action.wp-action { bottom: 364px; }
.ps-rail { top: auto; bottom: 232px; transform: none; right: 10px; }
.ps-panel { right: 10px; left: 10px; width: auto; max-width: none; }
}
diff --git a/src/game/war-portal.css b/src/game/war-portal.css
index 2d7476b21..c007407a7 100644
--- a/src/game/war-portal.css
+++ b/src/game/war-portal.css
@@ -6,10 +6,14 @@
* to be distinguishable at a glance without relying on colour alone (every one
* also carries a text tag). */
+/* The walk-up prompt inherits the shared .ps-action chip. Its position comes from
+ * the stacking contract in play-systems.css (`.ps-action.wp-action`), which is
+ * where every contextual prompt claims its row; only the tint is set here, so the
+ * war prompt is distinguishable from cast/chop/spin at a glance while staying the
+ * same shape and size as the rest. */
.wp-action {
- /* Inherits the shared .ps-action prompt chip; only the accent differs so the
- * war prompt is distinguishable from fish/chop/spin at the same glance. */
- --ps-accent: #8fd0ff;
+ background: linear-gradient(180deg, #eaf6ff, #cfe9ff);
+ border-color: #eaf6ff;
}
/* ── overlay ─────────────────────────────────────────────────────────────── */