libsdl-org / SDL

Simple Directmedia Layer
https://libsdl.org
zlib License
9.42k stars 1.75k forks source link

[Feature Request] Add update progress bar ? #7901

Open aymen157 opened 1 year ago

aymen157 commented 1 year ago

Pretty useful in game updates / downloads ... and pretty simple to implement image Maybe something like SDL_SetTaskbarIconProgress(int percent)

possible use cases: not having to constantly alt-tab between game/whatever doing to check update progress. also can be used for in-game things such as map loading, mod loading, ... or for multiplayer games as screen loader (like the one in league of legends) or a death-timer etc..

icculus commented 1 year ago

Does anything but Windows offer this?

aymen157 commented 1 year ago

Yes. Mac os has many in fact image image and more.

i don't know about linux, but pretty sure it does. either way these two dominate over 90% of desktop games

Semphriss commented 1 year ago

For information, a similar bar is possible on Ubuntu 22.04. It's observable by copying a large file from the file manager: image This is Gnome; I did not check if other desktop environments support it.

ritalat commented 1 year ago

KDE also seems to support this. Screenshot_20230710_185335

slouken commented 1 year ago

Sure, this sounds like a great feature for SDL 3.0. Feel free to submit a PR for it.