Classic dialog boxes, round one... fight!
Aha! It speaks!
There's a lot of good dialog managers out there for Unity, but they tend to be really heavy, and since my logic and data is going to be in Clojure, I figured I'd just get that old-timey text box action working on my own. Oddly enough, it actually worked out the way I expected.
Anyway, this takes an arbitrary string and cuts it up by spaces (will need to tweak that logic for languages that don't use spaces), figures out when there should be a newline and adds it, and stops before it overruns the text box. This panel will need an indicator that there's more text and, obviously, the ability to wait for input and display the rest. Not tonight, though.
There's a separate panel that will display shorter messages on the top of the screen; that one will just pause before replacing the existing text, so that's slightly different.
No server component for this yet, but it's all IEnumerator goodness already anyway, so it's ready for queuing as soon as I teach the server to send messages. :D
Also, I haven't even made an effort to keep the various pixel sizes consistent. Which is eventually probably going to look silly, but that's yet another down-the-road-if-ever thing to worry about.
Vigilant Carnival
A WIP FFVI-like multiplayer-capable RPG (probably starting out as a roguelike/generic dungeon crawler).
Status | Prototype |
Author | internationalfish |
Genre | Role Playing |
Tags | 2D, clojure, Unity |
More posts
- Jumping back in with server-side improvements, and battle updates to comeOct 21, 2020
- Reimplementation of client has (already) startedApr 23, 2020
- Working ATB-sensitive active unit switching in battleApr 20, 2020
- The first UI indications of working server-side ATB timingApr 17, 2020
- SNES FF-style battle UI startedApr 10, 2020
- Menu refactoring and map reformattingApr 04, 2020
- Dynamic menu generation from JSON in C#!Mar 30, 2020
- Upgrades. Meh.Mar 19, 2020
- First menu action!Mar 16, 2020
- Dialog updates, scaling trouble, and starting menusMar 16, 2020
Leave a comment
Log in with itch.io to leave a comment.