ddnet/src/engine
bors[bot] d433a2fd1d
Merge #6677
6677: Use icons for refresh and connect buttons, refactor `DoButtonMenu` r=def- a=Robyt3

Use less space for refresh and connect buttons to improve layout with 5:4 and 4:3 resolutions. Closes #5605. Closes #5878.

The "Refreshing..." text is replaced with combined refresh and ellipsis icons.

Alpha and saturation of the green color of the connect button are increased.

Move `CMenus::DoButtonMenu` to `CUI::DoButton_Menu`. Simplify usage by adding `SMenuButtonProperties` parameter object for all optional arguments. Remove unused `ColorHot` parameter.

Screenshots:
- Before:
![screenshot_2023-05-27_19-52-37](https://github.com/ddnet/ddnet/assets/23437060/3bf27f53-b034-4147-97ee-5c24a5b68457)
- After:
![screenshot_2023-05-27_19-51-07](https://github.com/ddnet/ddnet/assets/23437060/702a9c1c-be07-4cd6-94b5-b4b0fd9b4fa1)
- After (when refreshing):
![screenshot_2023-05-27_19-56-15](https://github.com/ddnet/ddnet/assets/23437060/0a456467-6550-4ce7-b756-56e3bbbc4f43)


## Checklist

- [x] Tested the change ingame
- [x] Provided screenshots if it is a visual change
- [ ] Tested in combination with possibly related configuration options
- [ ] Written a unit test (especially base/) or added coverage to integration test
- [ ] Considered possible null pointers and out of bounds array indexing
- [ ] Changed no physics that affect existing maps
- [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#using-addresssanitizer--undefinedbehavioursanitizer-or-valgrinds-memcheck) (optional)


Co-authored-by: Robert Müller <robytemueller@gmail.com>
2023-05-27 19:53:09 +00:00
..
client Merge #6673 #6676 2023-05-27 09:01:26 +00:00
docs Merge #5918 2022-10-09 13:53:05 +00:00
external Update zlib to version 1.2.13 2022-10-14 14:53:24 +02:00
gfx Replace usages of C math functions 2023-03-01 19:26:53 +01:00
server clean time score handling, with positive time values 2023-05-22 16:36:46 +02:00
shared Fix undefined behavior in CSnapshotDelta::DiffItem 2023-05-27 20:57:05 +02:00
antibot.h Forgot to add target here 2021-07-22 00:22:12 +02:00
Cargo.toml Add support for Rust code in DDNet 2022-10-19 23:46:06 +02:00
client.h Show GPU info (if available) in assert 2023-05-27 09:51:22 +02:00
config.h Implement "reset" command 2021-12-27 01:13:11 +01:00
console.h Quit client when existing config file cannot be loaded 2023-05-10 21:04:02 +02:00
console.rs Support 4 and 8 digit RGBA color values in console 2023-02-24 20:32:44 +01:00
demo.h Use sizeof(int32_t) instead of 4 2023-02-11 13:59:08 +01:00
discord.h Only announce servers using Steam/Discord integration which are registered 2022-10-09 16:16:54 +02:00
editor.h Use bool for Load, Save, Append result, true on success 2022-11-03 20:17:06 +01:00
engine.h Clean up CServerLogger (fixes #6598) 2023-05-17 01:04:06 +02:00
favorites.h Allow multiple addresses per server in the serverbrowser 2022-07-10 16:52:07 +02:00
friends.h Bump friends limit from 1024 to 4096 (fixes #6096) 2022-12-06 10:31:43 +01:00
ghost.h Organize engine-shared includes 2022-05-29 20:02:22 +02:00
graphics.h Show GPU info (if available) in assert 2023-05-27 09:51:22 +02:00
input.h Port line input and IME support from 0.7 2023-04-23 15:00:29 +02:00
kernel.h Fix misspellings 2022-10-25 13:51:56 -03:00
keys.h Handle ordinal joystick hat keys as combined cardinal hat keys 2022-12-17 17:18:01 +01:00
lib.rs Add support for Rust code in DDNet 2022-10-19 23:46:06 +02:00
map.h Add missing CMap::NumData delegate function 2023-05-15 20:47:59 +02:00
message.h Add a simpler IServer::SnapNewItem() API based on some more generated data 2023-02-10 23:12:24 +03:00
rust.h Add support for Rust code in DDNet 2022-10-19 23:46:06 +02:00
server.h clean time score handling, with positive time values 2023-05-22 16:36:46 +02:00
serverbrowser.h fix conflicts 2023-05-14 11:22:06 +02:00
sound.h Let CKernel clean-up. Use unused CSound::Shutdown 2022-09-16 16:50:19 +02:00
sqlite.h Remove useless typedef in c++ 2022-06-25 21:05:54 +02:00
steam.h Only announce servers using Steam/Discord integration which are registered 2022-10-09 16:16:54 +02:00
storage.h Add IStorage::RemoveFolder 2023-03-25 16:58:51 +01:00
textrender.h Use icons for refresh and connect buttons, refactor DoButtonMenu 2023-05-27 19:48:32 +02:00
updater.h Overhauled job system 2017-11-23 15:47:38 +01:00
uuid.h Make sure headers compile standalone 2020-09-26 21:50:27 +02:00
warning.h Add block list for drivers 2020-11-05 21:07:14 +01:00