ddnet/src/game
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 Use icons for refresh and connect buttons, refactor DoButtonMenu 2023-05-27 19:48:32 +02:00
editor Merge #6639 2023-05-24 18:30:44 +00:00
server Fix incorrect swapping with draggers 2023-05-24 17:47:09 +02:00
collision.cpp Use bool for IsCheckTeleport and IsCheckEvilTeleport 2023-04-26 19:04:54 +02:00
collision.h Use bool for IsCheckTeleport and IsCheckEvilTeleport 2023-04-26 19:04:54 +02:00
ddracechat.h Add /unsolo and /undeep practice commands 2023-05-18 22:08:58 +03:00
ddracecommands.h Merge #6071 #6077 #6085 #6088 #6090 2022-12-05 16:12:05 +00:00
gamecore.cpp Replace usages of atan2f and atan2 with std::atan2 2023-05-09 22:38:44 +02:00
gamecore.h Running and AFK anim. states 2022-09-16 12:30:05 +02:00
layers.cpp Add default argument to CDataFileReader/IMap::GetItem 2023-05-14 16:39:46 +02:00
layers.h Parallax Zoom: use CMapItemGroupEx to store parallax value 2022-08-10 03:05:23 +01:00
localization.cpp Fix client hanging when default language cannot be determined 2023-05-08 14:04:22 +02:00
localization.h Select language on first start based on user locale 2023-03-21 21:17:40 +01:00
mapbugs.cpp Fix more unsafe define 2022-06-29 23:52:03 +02:00
mapbugs.h Remove code for CRC in most places, except where needed for net compat 2020-10-14 17:08:58 +02:00
mapbugs_list.h Revert "Add mapbug "stoppers-passthrough@ddnet.tw"" 2018-08-22 08:33:21 +02:00
mapitems.cpp Add IsSwitchTile(Flags|Number|Delay)Used functions 2023-04-26 19:04:56 +02:00
mapitems.h Add IsSwitchTile(Flags|Number|Delay)Used functions 2023-04-26 19:04:56 +02:00
mapitems_ex.cpp Parallax Zoom: use CMapItemGroupEx to store parallax value 2022-08-10 03:05:23 +01:00
mapitems_ex.h Parallax Zoom: use CMapItemGroupEx to store parallax value 2022-08-10 03:05:23 +01:00
mapitems_ex_types.h Parallax Zoom: use CMapItemGroupEx to store parallax value 2022-08-10 03:05:23 +01:00
prng.cpp Huge variable naming format 2022-07-08 18:01:29 +02:00
prng.h Replace all usages of C standard headers with C++ headers 2023-03-01 19:26:51 +01:00
teamscore.cpp Remove unnecessary include in protocol, move definitions to cpp file 2023-01-03 14:10:58 +01:00
teamscore.h Remove unnecessary include in protocol, move definitions to cpp file 2023-01-03 14:10:58 +01:00
tuning.h Add hammer_hit_fire_delay tune 2021-05-01 16:36:12 +02:00
variables.h Enable threaded sound loading per default again 2023-05-24 21:12:43 +02:00
version.h Version 17.0.1 2023-05-27 21:27:35 +02:00
voting.h Run clang-format 2020-09-26 21:50:15 +02:00