Commit Graph

41 Commits

Author SHA1 Message Date
otavepto
21cce304e8 * revert the changes to the notifications heights + calculate all notifications heights dynamically
* added a new button to the overlay `"Test achievement"` which triggeres a test achievement
* added a new overlay appearance option `Achievement_Unlock_Datetime_Format` which allows changing the date/time format of the unlocked achievements
* removed the condition which disabled the overlay sounds when it is shown
2024-04-25 03:17:36 +02:00
otavepto
82ba66fbe7 removed the warning for using force_xxx.txt from the overlay 2024-04-20 00:49:28 +02:00
otavepto
75b2423a25 * corrected Turkish translation by [Clompress]
* updated changelog
2024-04-13 10:08:45 +02:00
otavepto
159c1d1d9e proper attribution for the author of the ingame overlay project (why wasn't this done long time ago?!) 2024-04-12 04:25:50 +02:00
otavepto
7a3c1b82f6 updated Turkish translation by [Clompress] + updated changelog 2024-04-11 21:56:13 +02:00
otavepto
4c116de627 Turkish translation for the overlay by [Clompress] 2024-04-11 14:41:22 +02:00
otavepto
138123b1be load overlay audio from subfolder sounds + example files 2024-04-11 00:09:18 +02:00
otavepto
9fe55f2e81 for the overlay:
* reduce code duplication
* avoid bypassing local_storage when loading sounds
* avoid alloating sound buffers via new-delete, use std::vector
* clear/reset all global objects on destroy
2024-04-10 11:05:26 +02:00
otavepto
22fc5038a2 don't bypass local_storage in steam_overlay class 2024-04-10 11:05:26 +02:00
otavepto
b8d9b25a79 load achievements strings before creating fonts, so that their glyphs ranges are taken into consideration 2024-04-04 02:56:18 +02:00
detiam
574e7a7781 add tchinese translation 2024-03-31 19:40:52 +02:00
detiam
a97ec56ea3 add schinese translation 2024-03-31 19:40:52 +02:00
otavepto
166e7db122 more logging 2024-03-20 00:25:54 +02:00
otavepto
af237639d5 * initially attempt to load the icons of all achievements, this will slow things down at startup,
but avoids having to load the achievement icon during gameplay which causes micro-stutter
2024-03-15 00:03:41 +02:00
otavepto
0b86464374 * load the icons of a single achievement each overlay callback invokation, will slow things down during startup
but this avoids having to load the achievement icon during gameplay which causes micro-stutter

* avoid loading and resizing the achievement icon each time it's unlocked

* Local_Storage: avoid allocating buffers unless `stbi_load()` was successfull
2024-03-15 00:03:41 +02:00
otavepto
37426bac82 allow notifications of these types to steal input focus:
notification_type_message
notification_type_invite
2024-03-15 00:03:41 +02:00
otavepto
4d2e14be3f manage overlay cursor input/clipping and internal frame processing in a better way 2024-03-15 00:03:41 +02:00
otavepto
c96b8f9935 don't show notifications or run overlay callbacks when it's not ready + refactor a private function 2024-03-09 04:19:38 +02:00
otavepto
5447940ed1 revert back the original behavior of starting the detector immediately when the renderer detector initial delay = 0 2024-03-08 22:10:04 +02:00
otavepto
3b5fea61f3 disable char8_t to be able to use u8"" strings in a normal manner for overlay translations 2024-03-08 18:13:29 +02:00
otavepto
b66555afbd use u8"" strings for overlay translations 2024-03-08 18:13:29 +02:00
otavepto
827f8a472a refactoring + make fonts variables static 2024-03-08 18:13:29 +02:00
otavepto
d3c4026447 fix default notification height + a potential crash when creating notification table during exit 2024-03-08 18:13:29 +02:00
otavepto
99d689118e central function to take care of frame/input processing 2024-03-08 18:13:29 +02:00
otavepto
9a73720825 * check for ImGui context before initializing it, otherwise it might crash some games like Antichamber when you alt+tab during initialization
* ignore all overlay requests if it's not ready
* when unlocking an achievement, only load it's icon if that was specified in the json
* restore the code for ImGui font builder, this is needed to load the glyphs for all languages
* revert the code which loads the achievements info even if the overlay wasn't ready
2024-03-08 18:13:29 +02:00
otavepto
c19fc81e84 * revert the previous change and force-display a mouse cursor inside the overlay, Truberbrook and others won't show a cursor in the overlay by default
* attempt to fix the crash when closing the app, use global object with bigger life time and avoid local states

* attempt to fix usage of invalid/outdated window size when displaying notifications

* lock overlay mutex everywhere to avoid sync problems

* lock global emu mutex in the relevant places when using client APIs

* only change the ImGui ini and round corner settings once
2024-03-08 18:13:29 +02:00
otavepto
88ab37d78f * proper fix for the window resizing problem, thanks to Nemirtingas
* remove the code which adds custom Windows fonts but keep scaling

* only attempt to load achievements images when hook is ready

* cleanup overlay images on unhook

* free the detector when we get a renderer hook instance

* lock everywhere!

* prefix the debug messages for a cleaner debug log
2024-03-08 18:13:29 +02:00
otavepto
74a85fb38c * update the steam_overlay.c/.h code to accommodate the changes in the ImGui lib & the ingame overlay project/dependency
* remove the now non-compiling (and awful) code which locks the cursor inside the overlay

* workaround for the deprecated ImGui function BeginListBox()

* formatting
2024-03-08 18:13:29 +02:00
otavepto
4aa0f58199 remove the source files of the ingame overlay project, now it's a dependency 2024-03-08 18:13:29 +02:00
otavepto
0af025ea5d don't load images forever to avoid a never ending slowdown 2024-02-09 20:39:01 +02:00
otavepto
7c1f7dc4ab updated updated translations for Czech by Olivander 2024-02-04 22:26:46 +02:00
otavepto
e3b80fe072 updated translations for Brazilian Portuguese by Vlxst 2024-02-04 22:23:53 +02:00
otavepto
1bba2c09b0 * allow setting the achievements notifications via config file
* fixed a mistake when discarding ut8 bom marker
2024-01-26 14:37:17 +02:00
otavepto
5ec61403f5 don't spam loading achievements forever on failure 2024-01-24 22:57:32 +02:00
otavepto
b8e305bc41 allow copying own id and a friend's ID 2024-01-24 22:57:32 +02:00
otavepto
9eee49d6af add a button to invite all friends playing same game 2024-01-24 22:57:32 +02:00
otavepto
a98baef856 fixed a casting mistake when displaying friend ID 2024-01-24 22:57:32 +02:00
otavepto
21545509fd new type of notification when the auto accept config file is used 2024-01-24 22:57:32 +02:00
otavepto
9d533cd945 new string to translate! 2024-01-24 22:57:32 +02:00
otavepto
0b8e5cb283 use the new flags in the overlay 2024-01-24 22:57:32 +02:00
otavepto
541d809364 relocate overlay .h files 2023-12-28 01:30:46 +02:00