#36: prompts in touch words
Prompts (game/scripts/prompts.gd) holds every key-naming prompt: on a phone (MobilePort.active()) it says each in touch words, elsewhere exactly the old string. World labels drop the key (Gather, Repair, Upgrade to, Upgrades, Shop), the build ghost says Place / Dismantle, the build bar's line is "Place · Rotate · Dismantle · Done" and its slots drop the number keys, the cutscenes say "Hold to skip" / "Tap to skip", the tip footer says "× hides tips", and the tutorial's tips and the first morning's sign name the thumbs (sides from TouchSticks), Use, Build, Place, Fear, Bomb, Patch, the hotbar, and the backpack. MobilePort gains the `forced` test override. game/tests/mobile/prompts_test.gd checks every phone string and that the desktop strings are byte for byte as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
f0291133fd
commit
9f4a1895bd
14 changed files with 368 additions and 16 deletions
|
|
@ -12,6 +12,8 @@ extends Control
|
|||
## them.
|
||||
## None show while a talking-head conversation or the opening intro is up.
|
||||
|
||||
## The tips as the desktop shows them. Phones say the ones that name a control in touch words
|
||||
## (Prompts.TOUCH_TIPS); Prompts.tip() picks.
|
||||
const TEXT := {
|
||||
"move": "Move with [W A S D] or the left stick. You're the scarecrow: keep the farm safe until the farmers are back.",
|
||||
"gather": "Hold [E / X] at a dead tree, the haystacks, or the scrap heap to gather wood, straw, and scrap.",
|
||||
|
|
@ -81,7 +83,7 @@ func _ready() -> void:
|
|||
_text.add_theme_font_size_override("font_size", 24)
|
||||
col.add_child(_text)
|
||||
_hint = Label.new()
|
||||
_hint.text = "Tip · [Backspace / Back] hide tips"
|
||||
_hint.text = Prompts.tip_footer()
|
||||
_hint.horizontal_alignment = HORIZONTAL_ALIGNMENT_CENTER
|
||||
_hint.add_theme_font_size_override("font_size", 16)
|
||||
_hint.add_theme_color_override("font_color", Color(0.7, 0.72, 0.65))
|
||||
|
|
@ -166,7 +168,7 @@ func _show(id: String) -> void:
|
|||
_box.visible = id != ""
|
||||
if id == "":
|
||||
return
|
||||
_text.text = TEXT[id]
|
||||
_text.text = Prompts.tip(id)
|
||||
_text.remove_theme_color_override("font_color")
|
||||
_box.reset_size()
|
||||
_box.position = Vector2((size.x - _box.size.x) * 0.5, size.y - 250.0 - _box.size.y)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue