Commit Graph

49 Commits

Author SHA1 Message Date
Nathan R
598fd4836a Fixed up: Move file-static RenderWindow and RenderTexture instances inside functions to fix GL race condition on startup (#682) 2025-03-06 19:40:40 -05:00
3689adcc12 Fix text bar flicker. Fix #602 2025-02-23 19:09:53 -05:00
9bfe8e3f12 -1 is supposed to be no face pic (#645)
Fix #74
2025-02-20 20:02:56 -05:00
dbf5822590 Add hotkey in top-left corner of shop item. Fix #624 (#630) 2025-02-18 20:40:36 -05:00
78d10987fe draw scale-aware text onto RenderTextures 2025-02-15 15:16:15 -06:00
8ab451f633 delete unused sf::Text 2025-02-15 15:12:17 -06:00
404f364053 recenter camera 1/2way into missile arc if sooner 2025-02-13 09:51:36 -06:00
ab0eada20d explosion anims clip within terrain screen 2025-02-13 09:50:13 -06:00
318f430917 clip missiles when they go beyond the ter screen 2025-02-13 09:49:59 -06:00
3188f2ed9b sensible camera handling for ranged attacks 2025-02-13 09:48:16 -06:00
f94abd3575 Make getting terrain screen rects DRY 2025-02-13 09:47:37 -06:00
7ac994f97f help button don't blink when i click a talk word 2025-02-06 08:44:38 -06:00
48089a95bf record and replay now-distinct shop click events 2025-02-04 12:43:58 -06:00
4c9a4b4fb2 fix done/help buttons disappearing 2025-02-04 12:39:02 -06:00
673de75c73 separate args to highlight text and item help button 2025-02-04 12:29:52 -06:00
2314e9e5b4 fix clip_rect when drawing pressed shop graphics 2025-02-04 12:09:26 -06:00
3ad647c700 Fit preset talk word click rects. Fix #566 2025-02-04 08:48:18 -06:00
df02f79ab8 fix explosions breaking old replays 2025-01-16 16:53:36 -06:00
34dd31cf51 Remove 3 obsolete settings 2024-12-03 09:44:40 -05:00
79c295127a fix ellipse alignment within visible tiles 2024-11-30 18:17:22 -05:00
dbdb1fc3f3 clean up comments and arithmetic 2024-11-30 18:17:22 -05:00
462d2d1e4a Fosnola's lighting adjustments
Co-authored-by: fosnola <osnola@users.sourceforge.net>
2024-11-30 18:17:22 -05:00
21afd4466d Fix word highlight (#484)
Quick fix #481
2024-11-23 14:08:01 -05:00
71a9d11cd0 Gather all alchemy info into a single place 2024-09-10 22:18:59 -04:00
846789df73 record and replay buying and info of shop items 2024-09-03 00:08:26 -04:00
7a5c865779 record and replay dialog choices 2024-09-03 00:08:26 -04:00
7791380a9a refactor dialogue word button on/off colors to constants 2024-09-03 00:08:26 -04:00
ALONSO Laurent
c02dde4925 talk: try to make "Go Back" and the keys work again,
shopping: try to make work again,
2023-01-21 22:21:52 -05:00
2d1bbe0058 Move get_item_interesting_string() into the cItem class 2023-01-19 09:32:07 -05:00
ALONSO Laurent
f2584f4133 try to remove some "flickering" by using setActive(false)/setActive() and adding
a glFlush...
2023-01-06 13:46:21 -05:00
5b2561d034 Disable header maps in Xcode 12 2022-07-12 20:35:41 -04:00
f14c99f14b Split out cContainer, cLed, and cLedGroup into their own files 2020-12-21 17:16:15 -05:00
259e4ac125 Adjust the hilited string rendering to be less reliant on mysterious magic numbers
It still adds a mysterious offset to all text, but the returned rectns are now perfectly aligned to redraw the hilited string.
2020-12-19 17:32:46 -05:00
19250e9b94 Remove an obsolete variable 2020-02-23 23:25:23 -05:00
x-qq
b4bb2dce13 restore click_shop_rect until a better functionality is available 2020-02-11 15:49:49 +02:00
x-qq
158de40ce3 Fix unclickable shop info icons 2020-02-11 11:35:14 +02:00
b8492a29b0 Extract shopping/talking colours to global constants
Adapted from patch by @clort81
2020-02-07 20:39:13 -05:00
37e10ed3ad Make missile animations slower
They were running at max frame rate, making them too fast to see on most modern machines.

Except the 5ms increment, this patch is from @x-qq
2020-02-04 00:20:55 -05:00
72bd8265fa Game modes cleanup
- Fix some cases where modes were still referenced by number
- Replace most cases of mode range-comparison with is_out(), is_town(), and/or is_combat()

There could be some minor errors in the replacements.
2020-02-04 00:02:08 -05:00
14e2597108 Expose the shared pointer instead of the raw pointer in the resource manager and rewrite the custom sheets list to use a vector instead of manual memory management
In particular, this should fix a segmentation fault in the sound system caused by the resource manager pulling a resource that's in use.
2020-01-26 15:10:57 -05:00
542c037342 Integrate a new resource manager which should have better performance 2020-01-26 11:53:19 -05:00
fb28a4da2e Fix Mac build 2020-01-12 13:19:32 -05:00
6f96222c37 Remove the 30-item limit in shops 2019-12-02 01:16:34 -05:00
3e6d3b9d5e Fix shop scrollbar not appearing if there are 9 items (when only 8 fit) 2019-11-24 20:28:53 -05:00
4f785e2650 Use enums for most of the rest of the game constants.
This adds an "enum map" type that allows safe usage of an enum to index an array.
(That is, it enforces that the index is of the enum type.)
2019-11-24 20:28:52 -05:00
e53056a132 Fix a couple of MSVC compiler warnings 2017-09-16 12:46:42 -04:00
9c69e006d8 Refactor rendering to use an SFML view for placing the main UI within the overall interface 2017-09-04 14:36:55 -04:00
c2ce2a2cd1 Split up the graphtool files 2017-04-14 15:43:07 -04:00
82abdab695 Major code reorganization
This commit only updates the XCode project for the changes.
A later commit each will update it for scons and MSVC.

A few actual changes are mixed in:
- Add a prefix header for a handful of common definitions
- Moved current_cursor into the Cursor class as a static member
- Removed the make_cursor_sword and make_cursor_watch functions
- Include tests in the All target
- Remove redundant -l flags for Common and Common-Party (since they're included in the Link phases anyway)
2017-04-14 00:24:29 -04:00