Leon Styhre
c35a297d9a
Large update to get the new theme engine up and running.
2022-01-29 18:41:22 +01:00
Leon Styhre
0ca2b62edf
Some minor code cleanup.
2022-01-29 18:16:30 +01:00
Leon Styhre
336ff3ea7c
Added an extra assert macro to GuiComponent.
2022-01-29 18:12:30 +01:00
Leon Styhre
4b1138ebc7
Fixed an issue where ScrollableContainer could round its size to zero.
...
Also added a sizing check to prevent application hangs on zero-sized containers.
2022-01-29 11:06:58 +01:00
Leon Styhre
24f65a2560
Prevented ImageComponent from attempting to render an empty texture.
2022-01-25 18:18:16 +01:00
Leon Styhre
dc20a9e21b
Cleaned up ThemeData a bit.
2022-01-23 20:03:50 +01:00
Leon Styhre
644f79ebec
Improved the theme loading error logging.
...
Also cleaned up the code a bit.
2022-01-23 17:50:51 +01:00
Leon Styhre
a147c87cea
Added a new getRatingValue function to RatingComponent.
2022-01-22 21:25:35 +01:00
Leon Styhre
487422454e
Added support for the 'metadata' element to TextComponent and DateTimeComponent.
2022-01-22 21:24:19 +01:00
Leon Styhre
6229592c74
Added two new 'metadata' and 'scrollHide' elements to ThemeData.
2022-01-22 21:21:13 +01:00
Leon Styhre
d04a49957c
Added a metadata field to GuiComponent.
...
Also did some general code cleanup of GuiComponent.
2022-01-22 21:17:28 +01:00
Leon Styhre
2aabe2eef3
Reduced CPU usage significantly when a menu is open.
2022-01-19 19:31:27 +01:00
Leon Styhre
a443f86235
Removed a huge amount of unnecessary Window* function arguments.
2022-01-19 18:01:54 +01:00
Leon Styhre
dfeddebc66
Removed a lot of unnecessary combinations of the virtual and override keywords.
2022-01-18 17:40:47 +01:00
Leon Styhre
1a2920c5fc
Some minor code cleanup in TextListComponent.h
2022-01-17 21:35:59 +01:00
Leon Styhre
2ebfb45bdf
Some minor code cleanup.
2022-01-17 20:47:30 +01:00
Leon Styhre
0c8efee8ad
General refactoring and code cleanup.
2022-01-16 18:18:28 +01:00
Leon Styhre
8a6652552f
Set the clang-format option SpaceBeforeCpp11BracedList to true.
2022-01-16 12:09:55 +01:00
Leon Styhre
5f2f439fc3
Moved the fan art scrape menu option to the bottom and set it as disabled by default.
2022-01-16 10:43:12 +01:00
Leon Styhre
89cf82b88e
When multi-scraping and scrolling a long name, the start position would sometimes not reset correctly.
2022-01-15 19:28:41 +01:00
Leon Styhre
c7964b7ebc
Renamed GameList to Gamelist throughout the codebase.
2022-01-15 13:38:09 +01:00
Leon Styhre
92f5284bf3
Added support for scraping fan art images.
...
Also added scraping of box back covers when using TheGamesDB.
2022-01-15 13:16:23 +01:00
Leon Styhre
dde456cbc8
Removed the unnecessary Renderer::getWindowFlags() function.
2022-01-14 18:23:51 +01:00
Leon Styhre
73beeeaeaf
Fixed two Emscripten compiler warnings.
2022-01-13 20:07:04 +01:00
Leon Styhre
8596aca68c
Added an OpenGL ES 2.0 renderer.
2022-01-13 19:39:49 +01:00
Leon Styhre
90fa63f91c
Removed support for supplying a separate format than internalFormat when creating OpenGL textures.
2022-01-12 22:25:41 +01:00
Leon Styhre
d85c966e49
Added logging of the display refresh rate on startup.
2022-01-12 21:26:43 +01:00
Leon Styhre
a233b96c2a
Removed some unnecessary typedefs and replaced the remaining ones with the more modern 'using' keyword.
...
Also harmonized the names of some user defined types and made some other minor cleanup.
2022-01-11 21:57:00 +01:00
Leon Styhre
d45a67eeab
(Windows) Fixed a few compiler errors and warnings.
2022-01-10 19:53:23 +01:00
Leon Styhre
b4e08ba92b
Renamed Platform to utils/PlatformUtil
2022-01-10 18:56:04 +01:00
Leon Styhre
2d149c5161
Moved all Platform functions to the utility namespace.
2022-01-10 18:43:17 +01:00
Leon Styhre
5a085c585e
Fixed a frame caching issue in LottieComponent.
2022-01-10 17:42:01 +01:00
Leon Styhre
c3dbdd431c
Fixed some potential segfaults on emergency shutdown.
2022-01-10 17:41:08 +01:00
Leon Styhre
f80658696c
Removed some unnecessary time measurement constants.
2022-01-09 23:50:08 +01:00
Leon Styhre
aeb0292a3e
Changed a variable to inline static in BadgeComponent.
2022-01-09 23:41:56 +01:00
Leon Styhre
5c07e29101
Fixed an issue where the cached background would sometimes miss some GUI elements.
2022-01-09 19:50:11 +01:00
Leon Styhre
f66bb91496
Decreased the background caching invalidation delay from 50 to 25 ms.
2022-01-09 19:48:29 +01:00
Leon Styhre
6ff91e89ca
Disabled debug mode in LottieComponent and fixed a small bug.
2022-01-09 19:26:42 +01:00
Leon Styhre
cd7cfe36ce
Added play direction support to LottieComponent.
...
Also fixed some bugs and cleaned up the code a bit.
2022-01-09 18:17:23 +01:00
Leon Styhre
e730d24da0
Added a small delay to the cached background invalidation to give components some time to render.
2022-01-09 17:56:17 +01:00
Leon Styhre
a1abaa7112
Increased the default per-file maximum Lottie cache size from 100 to 150 MiB.
2022-01-09 13:45:44 +01:00
Leon Styhre
b16ea29088
Added theme support and proper application integration for LottieComponent.
2022-01-09 13:43:42 +01:00
Leon Styhre
d45c690586
Some CMake configuration changes for building with rlottie.
2022-01-08 16:23:23 +01:00
Leon Styhre
b3421823a7
Added rudimentary frame caching support to LottieComponent.
2022-01-08 15:04:10 +01:00
Leon Styhre
3f629b6c1e
Created proper program structure for LottieComponent.
2022-01-08 11:25:29 +01:00
Leon Styhre
3ee4e4cb35
Added threading support and proper frame pacing to LottieComponent.
2022-01-07 19:09:07 +01:00
Leon Styhre
0c552dd8fb
Added a GLSL shader to convert the color model BGRA to RGBA.
...
Also added support for specifying a separate format as compared to internalFormat when creating textures, although the shader should be used primarily as this is not really supported by the OpenGL standard.
2022-01-07 18:54:52 +01:00
Leon Styhre
0021bee104
(Windows) Fixed two compiler warnings.
2022-01-07 00:30:31 +01:00
Leon Styhre
19147eee66
(Windows) CMake configuration changes to make rlottie build correctly.
2022-01-07 00:29:31 +01:00
Leon Styhre
998830181f
Added CMake configuration for the Lottie animation support.
2022-01-06 23:19:37 +01:00