diff options
| author | in1tiate <32779090+in1tiate@users.noreply.github.com> | 2024-05-14 11:02:32 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-14 18:02:32 +0200 |
| commit | c9eabf35dafa22f7ad7f012c23f63f1605a47668 (patch) | |
| tree | d64919dae244228a136a445cc64510f24ba7dfe4 /src/packet_distribution.cpp | |
| parent | 951766666621fa77e257e6b5616fe4ab1eb2a52f (diff) | |
Add [Options] override for blips and shownames for parity with 2.5 (#953)
* split get_blips into two functions
Because otherwise it would always return only what was read from char.ini, and we want it to be able to read our custom QLineEdit too, right?
* include new function, rewrite description
* check for custom blips support in packet
* add custom blips enabled bool
* increase MS_MAXIMUM, add custom blips QLineEdit
* add BLIPNAME to chat message
* introducing custom blips
* introducing custom blips I said
* unfold if
* unfold other if
* retool custom blips code, add ini parser
* remove extraneous debug calls
* fix incorrect default value on get_showname
* restructure ini format
* fix parser again
---------
Co-authored-by: Lernos <lernoskey@gmail.com>
Co-authored-by: stonedDiscord <Tukz@gmx.de>
Diffstat (limited to 'src/packet_distribution.cpp')
| -rw-r--r-- | src/packet_distribution.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/packet_distribution.cpp b/src/packet_distribution.cpp index 9bd4d8f6..e5a17d27 100644 --- a/src/packet_distribution.cpp +++ b/src/packet_distribution.cpp @@ -53,9 +53,10 @@ void AOApplication::server_packet_received(AOPacket *p_packet) casing_alerts_supported = false; modcall_reason_supported = false; looping_sfx_supported = false; - additive_text_supported = false; + additive_supported = false; effects_supported = false; y_offset_supported = false; + custom_blips_supported = false; QString f_hdid; f_hdid = get_hdid(); @@ -101,10 +102,13 @@ void AOApplication::server_packet_received(AOPacket *p_packet) casing_alerts_supported = false; modcall_reason_supported = false; looping_sfx_supported = false; - additive_text_supported = false; + additive_supported = false; effects_supported = false; expanded_desk_mods_supported = false; auth_packet_supported = false; + custom_blips_supported = false; + log_to_demo = false; + if (f_packet.contains("yellowtext", Qt::CaseInsensitive)) yellow_text_supported = true; if (f_packet.contains("prezoom", Qt::CaseInsensitive)) @@ -128,7 +132,7 @@ void AOApplication::server_packet_received(AOPacket *p_packet) if (f_packet.contains("looping_sfx", Qt::CaseInsensitive)) looping_sfx_supported = true; if (f_packet.contains("additive", Qt::CaseInsensitive)) - additive_text_supported = true; + additive_supported = true; if (f_packet.contains("effects", Qt::CaseInsensitive)) effects_supported = true; if (f_packet.contains("y_offset", Qt::CaseInsensitive)) @@ -137,7 +141,8 @@ void AOApplication::server_packet_received(AOPacket *p_packet) expanded_desk_mods_supported = true; if (f_packet.contains("auth_packet", Qt::CaseInsensitive)) auth_packet_supported = true; - log_to_demo = false; + if (f_packet.contains("custom_blips", Qt::CaseInsensitive)) + custom_blips_supported = true; } else if (header == "PN") { if (!lobby_constructed || f_contents.size() < 2) |
