ddnet/src/game/client/components
bors[bot] e3eeec762d
Merge #4997
4997: Add option to change default eyes when joining server r=def- a=sjrc6

Risky Feat suggested this idea to me, I also thought it was good so I implemented it. 

If you press one of the eyes in the settings it will change which eyes you get when you join a server.

It saves a separate variable for dummy/player.

It will also change your eyes anytime you press one of them, but only if you are playing as the same Tee whose eyes you are trying to change. If someone could figure out the best way to make it change the opposite Tees eyes as well that would be nice but I don't think it's necessary. 

It also changes the "Your Skin:" Tee eyes on the left if you have one selected. 

I had to change the cl_run_on_join code a bit, I tested and I don't think it should ever break anything but it might be good for someone to double check. 

![image](https://user-images.githubusercontent.com/22122579/163762410-ec7aa67d-6417-433d-8707-e21cda2bcd5f.png)



## Checklist

- [x] Tested the change ingame
- [x] Provided screenshots if it is a visual change
- [x] Tested in combination with possibly related configuration options
- [ ] Written a unit test if it works standalone, system.c especially
- [ ] 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: Tater <Mr.Potatooh@gmail.com>
2022-04-27 07:42:59 +00:00
..
background.cpp Move InitTilemapSkip to CLayers 2022-01-19 22:22:31 +01:00
background.h Add some checksum functions to the client 2022-01-31 21:31:26 +01:00
binds.cpp Merge #4678 2022-04-24 23:04:58 +00:00
binds.h Binds: Reorder modifiers according to the convention 2022-02-07 01:54:12 +03:00
broadcast.cpp Remove components pointers 2021-07-12 12:14:02 +02:00
broadcast.h Add some checksum functions to the client 2022-01-31 21:31:26 +01:00
camera.cpp Don't clamp "zoom" command, we already clamp in ChangeZoom 2022-01-26 12:54:19 +01:00
camera.h Add some checksum functions to the client 2022-01-31 21:31:26 +01:00
chat.cpp Fix styles 2022-03-29 17:39:16 -03:00
chat.h Use std::size instead of sizeof(a) / sizeof(a[0]) 2022-03-30 18:55:04 +02:00
console.cpp Rename ActCur, some "actual" → "current" 2022-04-23 00:42:37 +02:00
console.h Rename ActCur, some "actual" → "current" 2022-04-23 00:42:37 +02:00
controls.cpp allow freecam to center on world border 2022-04-09 15:24:57 +02:00
controls.h Format member variable's name correctly 2022-03-24 19:30:26 +01:00
countryflags.cpp Check pTexName for nullptr, fix wrongly height->width 2022-03-22 20:28:33 +01:00
countryflags.h Add some checksum functions to the client 2022-01-31 21:31:26 +01:00
damageind.cpp Small graphic refactoring 2021-09-14 00:21:17 +02:00
damageind.h Add some checksum functions to the client 2022-01-31 21:31:26 +01:00
debughud.cpp Use std::size instead of sizeof(a) / sizeof(a[0]) 2022-03-30 18:55:04 +02:00
debughud.h Add some checksum functions to the client 2022-01-31 21:31:26 +01:00
effects.cpp Enable -Wshadow=local 2022-03-20 13:24:34 +01:00
effects.h Add some checksum functions to the client 2022-01-31 21:31:26 +01:00
emoticon.cpp Enable -Wshadow=local 2022-03-20 13:24:34 +01:00
emoticon.h Add some checksum functions to the client 2022-01-31 21:31:26 +01:00
flow.cpp Fix all Multiplication type alerts by CodeQL 2020-10-05 19:03:54 +02:00
flow.h Add some checksum functions to the client 2022-01-31 21:31:26 +01:00
ghost.cpp fix color of ghost 2022-04-01 23:48:25 +02:00
ghost.h Add some checksum functions to the client 2022-01-31 21:31:26 +01:00
hud.cpp Cleanup backend a bit for vulkan 2022-03-20 18:03:25 +01:00
hud.h Add some checksum functions to the client 2022-01-31 21:31:26 +01:00
items.cpp Fixed some useless double promotion 2022-03-23 18:22:08 +01:00
items.h Add some checksum functions to the client 2022-01-31 21:31:26 +01:00
killmessages.cpp Reset text color after kill messages are created 2021-10-29 00:11:21 +02:00
killmessages.h Add some checksum functions to the client 2022-01-31 21:31:26 +01:00
mapimages.cpp Added external linkage instead of static const 2022-04-03 01:12:27 +02:00
mapimages.h Added external linkage instead of static const 2022-04-03 01:12:27 +02:00
maplayers.cpp Merge #4852 2022-03-25 18:29:02 +00:00
maplayers.h Format member variable's name correctly 2022-03-24 19:30:26 +01:00
mapsounds.cpp Some char array naming convention 2021-09-13 12:21:56 +02:00
mapsounds.h Add some checksum functions to the client 2022-01-31 21:31:26 +01:00
menu_background.cpp Keep DDNet window responsive for loading tasks 2022-04-02 17:03:23 +02:00
menu_background.h Keep DDNet window responsive for loading tasks 2022-04-02 17:03:23 +02:00
menus.cpp Rename ActCur, some "actual" → "current" 2022-04-23 00:42:37 +02:00
menus.h fix conflict 2022-04-07 09:46:02 +02:00
menus_browser.cpp Use std::size instead of sizeof(a) / sizeof(a[0]) 2022-03-30 18:55:04 +02:00
menus_demo.cpp Keep DDNet window responsive for loading tasks 2022-04-02 17:03:23 +02:00
menus_ingame.cpp Keep DDNet window responsive for loading tasks 2022-04-02 17:03:23 +02:00
menus_settings.cpp Add option for default eyes when joining server 2022-04-26 19:47:38 -05:00
menus_settings_assets.cpp Keep DDNet window responsive for loading tasks 2022-04-02 17:03:23 +02:00
menus_start.cpp Retry tutorial join after 5 seconds 2022-03-25 17:37:55 +01:00
motd.cpp More colors from chat in console 2021-03-08 01:20:28 +01:00
motd.h Add some checksum functions to the client 2022-01-31 21:31:26 +01:00
nameplates.cpp fix rendering of nameplates for spectating tees (bug introduced by #4870) 2022-04-12 23:30:26 +02:00
nameplates.h Show keystrokes in the nametag and new option cl_show_direction_below to show the keypresses below the players 2022-02-11 14:05:37 +01:00
particles.cpp Add Vulkan backend 2022-03-21 12:39:51 +01:00
particles.h Add some checksum functions to the client 2022-01-31 21:31:26 +01:00
players.cpp fix WalkTime for negativ positions 2022-04-26 09:58:31 +02:00
players.h Seperate hook collision line from player rendering 2022-03-22 19:19:44 -05:00
race_demo.cpp Keep DDNet window responsive for loading tasks 2022-04-02 17:03:23 +02:00
race_demo.h Keep DDNet window responsive for loading tasks 2022-04-02 17:03:23 +02:00
scoreboard.cpp Enable -Wshadow=local 2022-03-20 13:24:34 +01:00
scoreboard.h Add some checksum functions to the client 2022-01-31 21:31:26 +01:00
skins.cpp Keep DDNet window responsive for loading tasks 2022-04-02 17:03:23 +02:00
skins.h Keep DDNet window responsive for loading tasks 2022-04-02 17:03:23 +02:00
sounds.cpp Keep DDNet window responsive for loading tasks 2022-04-02 17:03:23 +02:00
sounds.h Add some checksum functions to the client 2022-01-31 21:31:26 +01:00
spectator.cpp make spectators team independent 2022-03-14 13:25:47 +01:00
spectator.h Add some checksum functions to the client 2022-01-31 21:31:26 +01:00
statboard.cpp Make use of IO_MAX_PATH_LENGTH 2021-09-13 12:14:50 +02:00
statboard.h Add some checksum functions to the client 2022-01-31 21:31:26 +01:00
tooltips.cpp Fix tooltip locations after window resize (fixes #5026) 2022-04-27 01:00:23 +02:00
tooltips.h Get rid of optional, not available on Debian9 build 2022-04-19 09:56:28 +02:00
voting.cpp Update voting.cpp 2022-04-15 18:16:28 +02:00
voting.h Add some checksum functions to the client 2022-01-31 21:31:26 +01:00