Commit graph

67 commits

Author SHA1 Message Date
Zed A. Shaw
d6dd68bcef Version bump. 2026-04-09 00:16:32 -04:00
Zed A. Shaw
6aa1a877c9 Brought the UIStack over from the previous game to use here. 2026-04-08 23:01:05 -04:00
Zed A. Shaw
25e3935170 I need a way to ask if a cell exists for more dynamic layouts. 2026-04-04 14:50:15 -04:00
Zed A. Shaw
aff0fb839c Fix the build to work with new meson. 2026-03-31 13:04:11 -04:00
Zed A. Shaw
31adf011ef Same problem with background. 2026-03-11 07:56:05 -04:00
Zed A. Shaw
e88179b788 Small mistake. Didn't maintain the texture pointer in the sprite so it could go out of scope and crash with use after free. 2026-03-11 07:39:50 -04:00
Zed A. Shaw
516f20124f Fix a few little bugs. 2026-03-10 23:01:15 -04:00
Zed A. Shaw
3e9047177c Include the .wrap that I'm using. 2025-10-31 11:06:54 -04:00
Zed A. Shaw
e8c178db6f Changing from RenderWindow to RenderTarget so the GUI can be rendered into a texture for zooming/saving. 2025-10-31 11:05:29 -04:00
Zed A. Shaw
070244269e class enums are just jank when trying to work with a bitset. 2025-08-14 13:59:36 -04:00
Zed A. Shaw
41d568ab25 Bring back the convenience method to click on a cell by name. 2025-08-14 13:01:27 -04:00
Zed A. Shaw
4b4992185f Needed a default of no Modifiers to click_on since that's a very common operation. Also a constant to represent that. 2025-08-14 12:54:16 -04:00
Zed A. Shaw
5d0d8b16fc Removed hover on guecs::UI::mouse and now use a generic 16 bit modifier bitset. Also finally fixed Clickable so it just a simple callback with only the modifiers. 2025-08-14 12:35:25 -04:00
Zed A. Shaw
4c019048d0 Making Icons a thing again since it's convenient. 2025-07-23 13:49:16 -04:00
Zed A. Shaw
7e64879f78 Forgot to set the position on rectangle so just added the center helper. 2025-07-23 13:30:42 -04:00
Zed A. Shaw
0d91c554c6 Fix the clicker demo. 2025-07-23 12:51:51 -04:00
Zed A. Shaw
6837192583 Version bump. 2025-07-23 12:48:56 -04:00
Zed A. Shaw
9e9b9620c9 Major refactoring but now centering text and sprites works. See Issue #16 for why only those and not anything else yet. 2025-07-23 12:48:29 -04:00
Zed A. Shaw
2c22da022f Text can be centered wither with the centered attribute on a class or with = in the spec. 2025-07-23 00:25:00 -04:00
Zed A. Shaw
3752522597 Fixed Icon vs. Sprite and now Icon is just a subclass of Sprite. Closes #12. 2025-07-22 17:11:02 -04:00
Zed A. Shaw
a22342cd7e Now Sprite can do either aspect_ratio scaling or stretching and Icon is just a subclass. 2025-07-22 16:22:05 -04:00
Zed A. Shaw
b7cfa4db2d Icons now scale via aspect ratio, but it's still not as robust as it should be. I also think that Sprite should just work this way or stretch if an option is given, which would make Icon kind of pointless. 2025-07-22 15:55:05 -04:00
Zed A. Shaw
e128de3244 Bump the version number. 2025-07-22 13:01:59 -04:00
Zed A. Shaw
5a7c096b52 Fix up the backend so it has sane names like get_sprite and get_icon, then implemented a guecs::Icon for icons. Those don't scale and typically have other properties different from a Sprite. 2025-07-22 12:59:10 -04:00
Zed A. Shaw
31a02505aa Version bump. 2025-07-07 10:56:34 -04:00
Zed A. Shaw
ad78c186c6 Implement a way to map entities to their names, which comes up often enough. 2025-07-07 10:54:23 -04:00
Zed A. Shaw
e1d61dc2c1 You can now set a sprite as a background in Background which will simplify a lot of games that just place sprites over a single image. 2025-06-01 22:52:54 -04:00
Zed A. Shaw
6fb20c5085 Need to disable werror so that builds with release aren't triggering unused variables. 2025-05-23 10:12:11 -04:00
Zed A. Shaw
715c95a3ff Meson build was using the wrong sfml_main on windows. 2025-05-16 23:41:01 -04:00
Zed A. Shaw
b7c49711b6 Make the sfml parts a separate dependency so you can use them if you want. 2025-05-16 10:31:04 -04:00
Zed A. Shaw
de0d957c66 Updated the SFML support stuff to use the Config that can be oriented at a BASE_DIR to find stuff relative to the config file. 2025-05-13 02:02:47 -04:00
Zed A. Shaw
4d71f552aa Refactoring the GUECS UI::render and the components so that it's just calling a .render on each one. This will then let me allow registering any components people want. 2025-05-12 00:09:21 -04:00
Zed A. Shaw
a9e219ea96 Clicker now moves when you click him. 2025-05-11 16:08:55 -04:00
Zed A. Shaw
9a4b0adc1f Clicker has a bark now. 2025-05-11 00:44:35 -04:00
Zed A. Shaw
04f6fef921 Started a tiny idle clicker demo called 'Clicker the Dog'. No idea what that means. 2025-05-11 00:15:09 -04:00
Zed A. Shaw
cf3da32681 Fixed two bugs in Effect. 1. The shaders weren't being applied to everything, only shapes. 2. The Textual components were getting a not-shape shader but should be shapes. 2025-05-10 12:54:11 -04:00
Zed A. Shaw
adc192c6dc Removed dbc and replaced with plain asserts everywhere. 2025-05-10 10:53:53 -04:00
Zed A. Shaw
767147c301 Forgot the include file for the theme. 2025-05-09 11:30:35 -04:00
Zed A. Shaw
a18d60dcb0 Added direct theme support and will slowly move more things into this struct for configuring the look. 2025-05-09 11:20:22 -04:00
Zed A. Shaw
b9deb3a0de Update README with new layout. 2025-05-08 13:25:40 -04:00
Zed A. Shaw
3bc05ad164 Move everything under the guecs/ directory in src/ so that it meshes better with other projects. 2025-05-08 11:20:00 -04:00
Zed A. Shaw
f520f0bade Try to trim down what libs are actually needed. 2025-05-08 02:47:49 -04:00
Zed A. Shaw
06ca57e5da Had to rename sfml to sfmlbackend because on Windows the filesystem is case insensitive so include <SFML/*> was accidentally including _my_ <sfml/config.hpp> file. 2025-05-08 02:27:02 -04:00
Zed A. Shaw
f3f2e90cd2 [BROKEN] This build is totally broken. DONOT USE. 2025-05-08 01:12:12 -04:00
Zed A. Shaw
8dc70ad1ed Meson will complain on linux that libraries are not compiled with -fpic but then ignore options to enable -fpic by default, also despite detecting this Meson will not add it on Linux. Because of this I have to only build static libraries. CMake might be on the table now. 2025-05-07 12:53:44 -04:00
Zed A. Shaw
838f54a4f4 Moved everything around to let meson build the libraries, but I suspect I have too much SFML support gear for it to be useable. 2025-05-07 12:21:34 -04:00
Zed A. Shaw
560f506733 Added a delete function that lets you delete numbers entered. 2025-05-07 00:55:16 -04:00
Zed A. Shaw
576de347b9 README now has more information on GUECS but still needs more tips, tricks, and demos. 2025-05-06 23:36:15 -04:00
Zed A. Shaw
589373bf22 FSM is no longer needed but it may be back. 2025-05-06 23:35:54 -04:00
Zed A. Shaw
87149af4c7 Make the LEL layout look perty. 2025-05-06 23:10:52 -04:00