Commit Graph

68 Commits

Author SHA1 Message Date
Unknown W. Brackets
f16a6b8abd MsgDialog: Show better error messages.
I think the PSP really did just show error codes, but that's not a reason
to keep that confusion going.  For common save errors, let's show the
messages.

Some games, for example, simply show the no data found error when you play
for the first time and trigger anything to check for data.
2020-07-13 18:24:05 -07:00
Unknown W. Brackets
3daf536e3c MsgDialog: Allow text to be wider.
Our font is a bit different, let's add a bit more as long as the spacing
looks okay.  Reduce scale if there's a lot of non-ASCII, since the PSP's
font seemed to use smaller glyphs than ours for those chars.
2020-07-13 18:24:05 -07:00
Unknown W. Brackets
b181a93e5e MsgDialog: Add scrollbar when message is long.
Some games hard wrap their messages, and PSP firmware also showed a
scrollbar.  Let's do the same.

One intentional difference: trying to ensure we always show part of a
hidden line to make it clear to the user that there's more text.
2020-07-13 18:24:05 -07:00
Unknown W. Brackets
143ba22097 PPGe: Handle text shadows more consistently.
Don't really want them wrapping differently or etc.  Let's handle
centrally so we can make them consistent and better.
2020-07-13 18:20:57 -07:00
Unknown W. Brackets
4f586f9567 PPGe: Left align messages in dialogs.
It was previously left aligned, but the TextDrawer was being told to
center.  These are meant to just center the enclosing box of text, not the
individual lines within.

Makes Final Fantasy 3 look a lot better.
2020-05-23 19:59:56 -07:00
Unknown W. Brackets
dbc78b437e PPGe: Fix dialog button positioning.
The measure was previously the line height, but always ultimately used
as the full text height.  This just makes it always full height.
2020-03-23 18:23:35 -07:00
Henrik Rydgård
e97e3c4218 THe proposed Hive Sweeper fix in #11025 looks right, let's just commit it.
Probably helps #11025.
2020-03-10 00:01:28 +01:00
Henrik Rydgård
45d94c4877 Switch all images to dynamic lookup in the atlas by string ID.
SLN fix

It works, but with the wrong images and the wrong characters!

Fix another bug in atlastool's binary output

Get Android building again.

Oops, didn't mean to disable this permanently.

Error checking

Minor cleanup

Gotta tweak my git ignores...

Regenerate metadata
2020-03-01 12:06:47 +01:00
Unknown W. Brackets
5009698cc0 Core: Use a shared_ptr for i18n categories.
This does not make them thread safe, but it reduces the chances of a crash
a bit (see #12594.)
2020-02-09 07:35:16 -08:00
Henrik Rydgård
bd71af24db Fix some minor things found looking at Valgrind output 2019-02-27 13:42:00 +01:00
Unknown W. Brackets
9a5fbe5ea5 Savedata: Truncate detail if it's too long.
We could add scrolling later, but this makes it more usable without ugly
text overlap, at least.

Fixes #11711.
2019-02-16 14:52:01 -08:00
Henrik Rydgård
21fe73c8e7 Switch strncpy to truncate_cpy in a bunch of places. 2017-05-26 19:04:08 +02:00
vnctdj
d7eba2061e Consistently use *di for the Dialog i18n category 2015-07-01 23:26:55 +02:00
Unknown W. Brackets
2450724be2 Make Memory::Memcpy() execute memchecks directly.
This makes it easier to handle breakpoints in HLE.
2015-04-05 18:09:20 -07:00
Unknown W. Brackets
00491bb33b Process msgdialog abort on Update().
Matches tests.
2014-09-27 00:13:11 -07:00
Unknown W. Brackets
bdf94a8909 Delay init/shutdown for msgdialogs as well. 2014-02-08 17:44:13 -08:00
Unknown W. Brackets
77acd0729f Use the latch in dialogs throughout.
This makes it so that rapid fire works for them as well.
2014-02-02 15:48:29 -08:00
sum2012
b08cef4353 Fix logic 2014-01-31 17:18:53 +08:00
sum2012
ee5912bc5c Fix formating 2014-01-31 15:58:22 +08:00
sum2012
4c4d7c7a14 Move to PSPMSgDialog 2014-01-31 15:00:05 +08:00
Unknown W. Brackets
05ad9721d9 Allow msgdialog override of ok/cancel button text.
Per tests, and hints from JPCSP.
2014-01-23 01:02:41 -08:00
Unknown W. Brackets
bcdcd528b2 Validate options in MsgDialog v3 per tests. 2014-01-23 00:41:42 -08:00
Unknown W. Brackets
fa1c5e0f87 Oops, only reset MsgDialog result on success. 2014-01-23 00:41:26 -08:00
Unknown W. Brackets
278359b208 Set msgdialog result to 0 after displayed.
This might fix anything checking the result code without zeroing it first.
2014-01-22 08:18:56 -08:00
Unknown W. Brackets
f74e29977f Abort on a message dialog just moves to finished.
Still need to shutdown.  Fixes #5177.
2014-01-22 08:17:21 -08:00