18 Commits

Author SHA1 Message Date
Aaron Suen
7fa3d405cd Merge multiline handling into nc_api_hud.
Most of the complexity of touchtip multiline handling
is now done in the unified HUD API.
2019-12-31 09:51:07 -05:00
Aaron Suen
83c394dcdd Fix node stack names not translating. 2019-12-29 10:22:55 -05:00
Aaron Suen
2c023da125 Simplify wear gauge appearance. 2019-12-27 12:13:11 -05:00
Aaron Suen
124ac24792 Add wear gauge to tool descriptions too. 2019-12-27 11:57:10 -05:00
Aaron Suen
045a9fc5b3 Don't show count estimate for inventory stacks.
This is redundant and silly considering that we have
the exact count in the hotbar.
2019-12-27 11:30:03 -05:00
Aaron Suen
a9a2315932 Rough count of stacks in touchtip.
Player can count up to 9 items exactly, and can
estimate to nearest 10 up to 100.  Stacks still need to
be picked up for an exact count.
2019-12-27 11:27:47 -05:00
Aaron Suen
ae3b150814 One more TouchTip fix... 2019-12-05 22:57:52 -05:00
Aaron Suen
40f724a86d Nil guard touchtips. 2019-12-05 22:50:38 -05:00
Aaron Suen
20b5b25e0c Debounce touchtips.
- Defer update until tick, coalesce updates from same tick.
- Behaves more stably when pulling items from shelves.
- Prevents flicker.
- Wield changes supersede node touch (esp shelves).
2019-12-05 22:41:47 -05:00
Aaron Suen
658100cd7e TouchTip overhaul.
- Support centered multiline descriptions.
- Automatically include visinv stack descriptions.
- Translations per-line.
- API for custom TouchTips.
2019-12-05 22:26:44 -05:00
Aaron Suen
4f7a31dbd9 Tiniest formatting fix. 2019-09-12 20:05:05 -04:00
Aaron Suen
0c9544d6b5 Some scaling/particle cleanup, make scaling particles distinct. 2019-09-07 09:32:36 -04:00
Aaron Suen
f0b4a9a686 Fix touchtip showing "Air" in client/server race.
Reported by MagikEh.
https://discordapp.com/channels/507234450615042048/530756875839340574/618628052066238495
2019-09-04 18:23:30 -04:00
Aaron Suen
12b580ade0 Fix touchtip translations to cover ALL text. 2019-08-25 18:53:22 -04:00
Aaron Suen
28108e1e40 Add translation support, esp. for TouchTips.
Translations are currently by holistic strings, i.e.
no parameterization.  This may create some busy
work for translators, but gives them more freedom
to account for differences between languages.

A translation template file is written out to the world
path on game start, so translators have a seed to
work from.
2019-08-23 20:40:33 -04:00
Aaron Suen
9607bcc6a6 Start working on sounds, plus minor refinements.
- Clean up registered_* usage patterns.
- Reduce tendancy of leaves to create stack nodes.
  Now they tend to stack up properly in-world more often.
- Tweak damage system to create "headroom" where minor
  damage doesn't cost inv slots immediately.
- Make player hand skin color match model skin.
- Cleanup/unify grass abm logic.
- Start installing new sounds by MagikEh

Sound source:
  https://github.com/MagikEh/SoundsOfWarr
2019-03-13 23:51:59 -04:00
Aaron Suen
e6cbc33e1c More reasonable positioning on non-pathological screens. 2019-03-06 14:00:35 -05:00
Aaron Suen
3be4f221ff Completely different approach to the item name tip thing.
Can't get HUDs to align right on high-DPI/android at all.  Give up
on the combination breath/wield bar, switch back to a much earlier
version of the code for that.

For wield names, add a new tooltip to the center of the screen, and
show it transiently so that it doesn't disrupt all gameplay.

As a bonus, this is also a logical place to put a "what am I
touching" display, so hook this up for punching.  Now you can
tell what you're touching even when you can't dig it.  This is
like a WAILA mod, but doesn't require tracing.
2019-03-06 13:50:54 -05:00