Compare commits

...

3 commits

Author SHA1 Message Date
+KZ 1409f9f4e5
Merge 3494958763 into 868c513c0c 2024-09-14 18:03:24 +03:00
Dennis Felsing 868c513c0c Version 18.5.1 2024-09-14 15:55:22 +02:00
+KZ 3494958763 Add more gametype colors 2024-09-10 11:24:38 -03:00
2 changed files with 11 additions and 4 deletions

View file

@ -55,11 +55,18 @@ static ColorRGBA GetPingTextColor(int Latency)
static ColorRGBA GetGametypeTextColor(const char *pGametype)
{
ColorHSLA HslaColor;
if(str_comp(pGametype, "DM") == 0 || str_comp(pGametype, "TDM") == 0 || str_comp(pGametype, "CTF") == 0)
if(str_comp(pGametype, "DM") == 0 || str_comp(pGametype, "TDM") == 0 || str_comp(pGametype, "CTF") == 0 || str_comp(pGametype, "LMS") == 0 || str_comp(pGametype, "LTS") == 0)
HslaColor = ColorHSLA(0.33f, 1.0f, 0.75f);
else if(str_find_nocase(pGametype, "catch"))
HslaColor = ColorHSLA(0.17f, 1.0f, 0.75f);
else if(str_find_nocase(pGametype, "idm") || str_find_nocase(pGametype, "itdm") || str_find_nocase(pGametype, "ictf") || str_find_nocase(pGametype, "f-ddrace"))
else if(str_find_nocase(pGametype, "dm") || str_find_nocase(pGametype, "tdm") || str_find_nocase(pGametype, "ctf") || str_find_nocase(pGametype, "lms") || str_find_nocase(pGametype, "lts"))
{
if(pGametype[0] == 'i' || pGametype[0] == 'g')
HslaColor = ColorHSLA(0.0f, 1.0f, 0.75f);
else
HslaColor = ColorHSLA(0.375f, 1.0f, 0.35f);
}
else if(str_find_nocase(pGametype, "f-ddrace") || str_find_nocase(pGametype, "freeze"))
HslaColor = ColorHSLA(0.0f, 1.0f, 0.75f);
else if(str_find_nocase(pGametype, "fng"))
HslaColor = ColorHSLA(0.83f, 1.0f, 0.75f);

View file

@ -3,7 +3,7 @@
#ifndef GAME_VERSION_H
#define GAME_VERSION_H
#ifndef GAME_RELEASE_VERSION
#define GAME_RELEASE_VERSION "18.5"
#define GAME_RELEASE_VERSION "18.5.1"
#endif
// teeworlds
@ -13,7 +13,7 @@
#define GAME_NETVERSION7 "0.7 802f1be60a05665f"
// ddnet
#define DDNET_VERSION_NUMBER 18050
#define DDNET_VERSION_NUMBER 18051
extern const char *GIT_SHORTREV_HASH;
#define GAME_NAME "DDNet"
#endif