ddnet/src/game/client
bors[bot] 05ddfba954
Merge #6755
6755: Remove individual RGBA sliders from editor color picker, add shift+rightclick/leftclick to copy/paste color in editor r=Jupeyy a=Robyt3

Remove the individual RGBA sliders for editor color pickers and only show one button that opens the color picker popup instead.

Decrease size of layer and point popups that previously had color properties which need less space now.

Support shift-rightclicking color picker buttons to copy the color to the clipboard in RRGGBBAA hex format.

Support shift-leftclicking color picker buttons to paste a color from the clipboard in RGB, RGBA, RRGGBB or RRGGBBAA format with optional leading `#` or `$`.

Screenshots:
- Before:
![screenshot_2023-06-20_20-39-43](https://github.com/ddnet/ddnet/assets/23437060/4a8b230c-a66b-4e2a-9744-cb5f80f6a799)
- After:
![screenshot_2023-06-20_20-40-00](https://github.com/ddnet/ddnet/assets/23437060/517f90cf-06a5-4332-9eb8-6a87cbc91b32)
- After (color picker open):
![screenshot_2023-06-25_17-35-55](https://github.com/ddnet/ddnet/assets/23437060/30320b56-e4cb-4e93-bf7b-8cfc8d96620b)


Suggested by `@HiRavie` in https://github.com/ddnet/ddnet/pull/6743#issuecomment-1593886873, though it was easier and also looks better to me when the color picker button has exactly the same size as the other value selectors.

## 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-06-27 19:29:43 +00:00
..
components Remove dead code 2023-06-26 22:40:40 +02:00
prediction Add dragger prediction 2023-06-03 20:39:06 +02:00
animstate.cpp Minor refactoring of CAnimState and tee rendering functions 2023-06-10 13:10:26 +02:00
animstate.h Minor refactoring of CAnimState and tee rendering functions 2023-06-10 13:10:26 +02:00
component.cpp Allow multiple addresses per server in the serverbrowser 2022-07-10 16:52:07 +02:00
component.h Use const reference to pass CEvent objects 2023-04-21 18:44:48 +02:00
gameclient.cpp Don't predict other players in solo 2023-05-29 15:01:38 +02:00
gameclient.h Only call onresize events if actual size changed 2023-02-25 16:02:38 +01:00
laser_data.cpp Add net netobjs for projectile and pickup, extend ddnetlaser, remove EntityEx server-side 2023-05-04 23:43:05 +02:00
laser_data.h Add net netobjs for projectile and pickup, extend ddnetlaser, remove EntityEx server-side 2023-05-04 23:43:05 +02:00
lineinput.cpp Fix uninitialized CLineInput member variables 2023-06-16 17:39:44 +02:00
lineinput.h Add CLineInputNumber::GetInteger64/SetInteger64, add prefix 2023-06-05 21:09:22 +02:00
pickup_data.cpp Add net netobjs for projectile and pickup, extend ddnetlaser, remove EntityEx server-side 2023-05-04 23:43:05 +02:00
pickup_data.h Add net netobjs for projectile and pickup, extend ddnetlaser, remove EntityEx server-side 2023-05-04 23:43:05 +02:00
projectile_data.cpp Add net netobjs for projectile and pickup, extend ddnetlaser, remove EntityEx server-side 2023-05-04 23:43:05 +02:00
projectile_data.h Add net netobjs for projectile and pickup, extend ddnetlaser, remove EntityEx server-side 2023-05-04 23:43:05 +02:00
race.cpp Move index check before usage, use std::size 2022-11-29 23:32:31 +01:00
race.h Organize game-client includes 2022-05-29 21:24:43 +02:00
render.cpp Minor refactoring of CAnimState and tee rendering functions 2023-06-10 13:10:26 +02:00
render.h Minor refactoring of CAnimState and tee rendering functions 2023-06-10 13:10:26 +02:00
render_map.cpp Don't render switch number and delay for tiles where they are unused 2023-04-26 19:04:56 +02:00
skin.h Minor refactoring of CAnimState and tee rendering functions 2023-06-10 13:10:26 +02:00
ui.cpp Add color4_base::PackAlphaLast and UnpackAlphaLast 2023-06-20 23:22:33 +02:00
ui.h Refactor UI color picker 2023-06-14 20:17:27 +02:00
ui_listbox.cpp Simplify list box activation handling 2023-06-07 20:46:10 +02:00
ui_listbox.h Simplify list box activation handling 2023-06-07 20:46:10 +02:00
ui_rect.cpp Move CRenderTools::DrawUIRect/4 to CUIRect::Draw/4 2022-08-12 19:37:08 +02:00
ui_rect.h Move CRenderTools::DrawUIRect/4 to CUIRect::Draw/4 2022-08-12 19:37:08 +02:00
ui_scrollregion.cpp Add scroll region parameter to disable right margin 2023-06-08 12:52:35 +02:00
ui_scrollregion.h Add scroll region parameter to disable right margin 2023-06-08 12:52:35 +02:00