45 Commits

Author SHA1 Message Date
Quentin Bazin
8ecd91715e No longer using string to represent vertex attr. 2021-05-22 16:14:47 +02:00
Quentin Bazin
ca27a8823c [MenuWidget] Now using std::deque instead of std::vector.
Fixed a crash when triggering fullscreen mode while in Settings -> Graphics
I was keeping a TextButton pointer, but only std::deque ensures pointer validity

This bug only appeared with Visual Studio 2019
2020-08-01 17:04:09 +02:00
Quentin Bazin
d558cc1a08 [MenuWidget] Now stops event handling if button/slider list changed. 2020-07-30 15:23:48 +02:00
Pedro Gimeno
180123c0b7 Change calls to rotate() to calls to rotateX/Y/Z
Mostly cosmetic, but will also optimize some operations if the compiler is not smart enough.

Also fix a typo in a comment.
2020-07-29 17:28:06 +02:00
Quentin Bazin
d38946e097 [mods/creative_inventory] Fixed a few bugs with search bar.
[mods/default] 'Shears' added.
2020-07-28 19:57:17 +02:00
Quentin Bazin
ef5ac1d818 [LuaGUI] Text input definition added.
[creative_inventory] Now has a search bar!
2020-07-28 19:10:02 +02:00
Quentin Bazin
3c3d323e6f Small fixes. 2020-07-20 16:06:49 +02:00
Quentin Bazin
64ddacd08f [mods/default] 'Torch' added.
[BlockState] 'isCollidable' attribute added.
[TextButton] Now rounding position.
2020-07-20 15:31:43 +02:00
Quentin Bazin
5d6b9e808a [TextButton] Now rounding to position to the nearest integer. 2020-07-20 13:49:43 +02:00
Quentin Bazin
521bf85ea2 [MouseItemWidget] Now possible to destroy items by throwing them in creative inventory. 2020-07-18 04:29:47 +02:00
Quentin Bazin
73b3fbf216 [MouseItemWidget] Fixed small issue related to item duplication. Fixes #144. 2020-07-18 02:01:41 +02:00
Quentin Bazin
fae51bceb5 [EngineConfig] Added BLOCK_AIR for air string ID. 2020-07-18 01:53:22 +02:00
Quentin Bazin
a4dfd7a7aa Item stack limit added (server global + per block/item definition). 2020-07-18 01:35:59 +02:00
Quentin Bazin
072c3b2942 [ItemWidget] Fixed item rendering after a texture pack switch. [GameConfig] 'texturePack' moved to 'Config' ans is now saved on client close. 2020-07-17 20:41:43 +02:00
Quentin Bazin
5a32ffcae3 [ItemWidget] Now updates images when the texture pack changes. 2020-07-14 23:49:50 +02:00
Quentin Bazin
7f8f732dbe [TexturePackSelectionState] Added. 2020-07-14 23:30:40 +02:00
Quentin Bazin
bd5174ba27 [ItemWidget] Fixed items taking green tint after switching with grass. 2020-07-11 03:12:11 +02:00
Quentin Bazin
7750154b22 [BlockState] Added. First stop of block states. 2020-07-10 22:43:50 +02:00
Quentin Bazin
0d7b1fa160 [MenuWidget] Fixed a small issue by processing slider events first. 2020-07-08 19:17:15 +02:00
Quentin Bazin
18d0fa8cb1 [SettingsMenuState] Now using sliders for some settings. 2020-07-08 11:59:25 +02:00
Quentin Bazin
c9b7990c3c First step of SDL2 migration. 2020-07-08 00:12:22 +02:00
Quentin Bazin
21edf6816c [TitleScreenState] Now displaying version. 2020-06-26 19:06:51 +02:00
Quentin Bazin
29e2ccc91c [TextButton] Small fix. 2020-06-26 18:22:35 +02:00
Quentin Bazin
4e7e294527 [WorldSelectionState] Improved button position. 2020-06-26 16:16:41 +02:00
Quentin Bazin
d71bc9e947 [WorldCreationState] Added placeholder for text input. 2020-06-26 15:28:41 +02:00
Quentin Bazin
377ff452e2 [WorldMenuState] Removed. Buttons moved to WorldSelectionState. 2020-06-26 15:23:05 +02:00
Quentin Bazin
b35a70fce8 [ScrollableList] Fixed cursor and element spacing. [TitleScreenState] Update widget position when GUI scale is changed. 2020-06-26 14:20:11 +02:00
Quentin Bazin
4850b68379 [MenuWidget] No longer centered by default. [WorldSelectionState] Improved button rendering. 2020-06-26 14:11:27 +02:00
Quentin Bazin
31e0747eb4 [ScrollableList] Added. [WorldSelectionState] Now using ScrollableList. 2020-06-26 13:47:45 +02:00
Quentin Bazin
93a396e926 [ServerConnectState] Text input added to select an username. 2020-06-26 06:14:46 +02:00
Quentin Bazin
365a9b0d49 [Text] Small fix. 2020-06-23 19:12:15 +02:00
Quentin Bazin
1f7d83bebc [Text|TextInput] 'm_text' renamed to 'm_string'. 2020-06-20 01:24:06 +02:00
Quentin Bazin
3f2908a6b3 [CMakeLists.txt] Improved 'sol2' integration. 2020-05-22 20:55:17 +02:00
Quentin Bazin
333222e2a7 First step of SFML migration. 2020-05-15 00:27:12 +02:00
Quentin Bazin
f926f4f919 [InventoryCube] Faces have different shading when used as entity. 2020-05-04 11:32:38 +02:00
Quentin Bazin
6435595762 [InventoryCube] Small fix. 2020-04-29 21:17:28 +02:00
Quentin Bazin
fbbeae5f7f [InventoryCube] Texture rendering fixed. 2020-04-29 21:17:28 +02:00
Quentin Bazin
4a9007fc49 [Scene] Test item drop entity almost working. 2020-04-29 21:17:28 +02:00
Quentin Bazin
15218e2214 Adapted to dynamic attributes commit in GameKit. 2020-04-03 04:04:19 +02:00
Quentin Bazin
218eddb7e4 Furnace output inventory is now read-only. 2020-03-30 03:17:18 +02:00
Quentin Bazin
2ecef2ded9 Door block added. 2020-03-29 19:25:40 +02:00
Quentin Bazin
266e4b7453 Groups can now be used in recipes. 2020-03-29 15:37:49 +02:00
Quentin Bazin
786aaff198 Groups can now be used for filtering in InventoryWidget. 2020-03-29 15:37:49 +02:00
Quentin Bazin
1347f81619 Item groups added. Now used instead of 'is_fuel' and 'burn_time'. 2020-03-29 15:37:49 +02:00
Quentin Bazin
bc3226eedc Folders reorganized. 2020-03-17 22:22:22 +01:00