Commit Graph

3315 Commits

Author SHA1 Message Date
db64b53cd2 Move ScaleAwareText to render_text.hpp 2025-05-11 10:49:41 -05:00
880d7bd1bf round final text render coordinates to int.
This didn't fix the main bug I'm struggling with, but someone
in SFML forums reported that float coordinates could cause
graphical bugs in text rendering.
2025-05-11 10:49:40 -05:00
048515bbc4 Mark non-previewable node types & unimplemented types 2025-05-11 10:49:40 -05:00
9b92cc2910 don't show empty preview dialog that the game would skip 2025-05-11 10:49:40 -05:00
31b425633a default preview for special node dialogs 2025-05-11 10:49:39 -05:00
52fa88b0a0 invert the default previewable value of node types 2025-05-11 10:49:39 -05:00
db11f2c20e comments 2025-05-11 10:49:39 -05:00
f491131201 When changing UI scale, fix blank text bar 2025-05-11 10:49:38 -05:00
aeaee9bbdb Debug action to fix the elusive font corruption bug 2025-05-11 10:49:38 -05:00
41f00ebf74 Darker baby hydra by Seb Galvez
fix #720

also fix 1-pixel offset of the monster next to baby hydra.
2025-05-11 10:49:37 -05:00
7c53c381bf base scenarios fix awkward yes/no positioning 2025-05-11 10:49:37 -05:00
20373acf68 pass parent to preview dialog 2025-05-11 10:49:37 -05:00
0911d35696 Fix preview town/outdoor dialog crash 2025-05-11 10:49:36 -05:00
21ad5fc19b Fix replay error when starting new game 2025-05-11 10:49:36 -05:00
e2e7907e1a example preview button for ONCE_DIALOG 2025-05-11 10:49:36 -05:00
bb4aae1285 move get_str and get_strs into universe (shared code) 2025-05-11 10:49:35 -05:00
fe57c10173 move custom_choice_dialog into shared code 2025-05-11 10:49:35 -05:00
203edc46f1 Scaffold for dialog previews in the scen editor 2025-05-11 10:49:35 -05:00
f83c49d073 Flip another awkward yes/no ordering in VoDT 2025-05-11 10:49:34 -05:00
22617273ee Fix showing errors from replaying dialogs 2025-05-11 10:49:34 -05:00
441e077455 canceling a toolbar click don't trigger other action on release 2025-05-11 10:49:34 -05:00
4aabc97c7b try fix button stuck down 2025-05-11 10:49:33 -05:00
9d66199d03 debug builds log buffer messages to console 2025-05-11 10:49:33 -05:00
973cd71627 Replay errors show line number of action
I would have done this FOREVER ago but every time I looked
in ticpp for a way to get element file positions I somehow
missed Row() and Column()
2025-05-11 10:49:33 -05:00
c0008e183a use at() to get exceptions
I encountered a new error from an out-of-bounds access on a
terrain array, which I wasn't able to record because it caused
a segfault, not throwing an exception. If the error happens again,
I want to catch and record it.
2025-05-11 10:49:32 -05:00
2724c1bd6a Overhaul the text buffer 2025-05-11 10:49:32 -05:00
bbbe8b2fed add line break to buffer message that won't fit 2025-05-11 10:49:32 -05:00
b3e67e32c9 Fix colored stripe in 1.5x spellcasting dialog. fix #698 2025-05-11 10:49:31 -05:00
07c15dc1e7 Fix window focus bugs for Windows 2025-05-11 10:49:31 -05:00
780e722076 Fix click events falling through handle_action 2025-05-11 10:49:31 -05:00
acee151bf2 Fix TODO note about too many wandering monsters 2025-05-11 10:49:30 -05:00
acc1b0d40a Fix empty wandering monster bug. Fix #723 2025-05-11 10:49:30 -05:00
bd13f2f75f Change & to && to resolve VS compiler warning 2025-05-11 10:49:30 -05:00
15b7a8dc92 VoDT replays 2025-05-11 10:49:29 -05:00
302d85a051 Fix VoDT GIFTS chief node jump to nowhere 2025-05-11 10:49:29 -05:00
e8665fcd45 Fix talk/shop mode key shortcuts 2025-05-11 10:49:29 -05:00
752c10988f Print number of out-of-range node request 2025-05-11 10:49:28 -05:00
8566b89826 Talk node don't line break before closing quote 2025-05-11 10:49:28 -05:00
0001efabb3 Fix textbar graphical bug in some reload cases 2025-05-11 10:49:28 -05:00
58107f1856 str("") is unsafe on its own for clearing stream 2025-05-11 10:49:27 -05:00
a2f4c8a903 Move anama check for spellcasting 2025-05-11 10:49:27 -05:00
7b8750d0ff Don't autosave if long wait interrupted by poison etc. 2025-05-11 10:49:26 -05:00
49b71b1600 Wait 100 moves was labeled incorrectly on mac
The code actually waits 80 moves, and other platform menus show this
2025-05-11 10:49:26 -05:00
be25934993 better key shortcuts for stair dialogs 2025-05-11 10:49:26 -05:00
e529c9273f make basicbutton no-key DRY 2025-05-11 10:49:25 -05:00
e30a5a6541 fix clip_rect for window modes that reposition the UI 2025-05-11 10:49:25 -05:00
d7c093fdeb bring back clip_rect in draw_targeting_line
This reverts commit 7c9b9ee255.
2025-05-11 10:49:25 -05:00
5d7f3088e9 move minimap logic out of dialog 2025-05-11 10:49:24 -05:00
704e724fe9 use doubles in rectangle scaling 2025-05-11 10:49:24 -05:00
daaca32e53 fix keyboard movement I broke & remove terrain_click array 2025-05-11 10:49:24 -05:00