Skip to content

Commit c32f1b2

Browse files
committed
Version 6.4.1
1 parent 8170c7e commit c32f1b2

File tree

85 files changed

+2128
-969
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+2128
-969
lines changed

ChatPlexSDK-BS

Modules/BeatSaberPlus_Chat/BeatSaberPlus_Chat.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@
2424
<DebugSymbols>true</DebugSymbols>
2525
<Optimize>false</Optimize>
2626
<OutputPath>bin\Debug\</OutputPath>
27-
<DefineConstants>TRACE;DEBUG;BEATSABER;BEATSABER_1_35_0_OR_NEWER</DefineConstants>
27+
<DefineConstants>TRACE;DEBUG;BEATSABER</DefineConstants>
2828
<ErrorReport>prompt</ErrorReport>
2929
<WarningLevel>4</WarningLevel>
3030
</PropertyGroup>
3131
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
3232
<Optimize>true</Optimize>
3333
<OutputPath>bin\Release\</OutputPath>
34-
<DefineConstants>BEATSABER;BEATSABER_1_35_0_OR_NEWER</DefineConstants>
34+
<DefineConstants>BEATSABER</DefineConstants>
3535
<ErrorReport>prompt</ErrorReport>
3636
<WarningLevel>4</WarningLevel>
3737
</PropertyGroup>
0 Bytes
Binary file not shown.

Modules/BeatSaberPlus_Chat/ChatPlexMod_Chat/Extensions/EnhancedFontInfo.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,7 @@ internal bool TryRegisterImageInfo(CP_SDK.Unity.EnhancedImage p_ImageInfo, out u
141141

142142
var l_Glypth = new Glyph(l_ReplaceCharacter, new GlyphMetrics(0, 0, 0, 0, p_ImageInfo.Width), new GlyphRect(0, 0, 0, 0));
143143

144-
#if BEATSABER && !BEATSABER_1_35_0_OR_NEWER
145-
Font.characterLookupTable.Add(l_ReplaceCharacter, new TMP_Character(l_ReplaceCharacter, l_Glypth));
146-
#elif BEATSABER_1_35_0_OR_NEWER || UNITY_TESTING || SYNTHRIDERS || AUDIOTRIP || BOOMBOX || DANCEDASH
144+
#if BEATSABER || UNITY_TESTING || SYNTHRIDERS || AUDIOTRIP || BOOMBOX || DANCEDASH
147145
Font.characterLookupTable.Add(l_ReplaceCharacter, new TMP_Character(l_ReplaceCharacter, Font, l_Glypth));
148146
#else
149147
#error Missing game implementation

Modules/BeatSaberPlus_Chat/ChatPlexMod_Chat/UI/ChatFloatingPanelView.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ internal void OnChannelPoints(IChatService p_Service, IChatChannel p_Channel, IC
482482
if (!CConfig.Instance.ShowChannelPointsEvent)
483483
return;
484484

485-
if (!m_ChatFont.HasReplaceCharacter("TwitchChannelPoint_" + p_Event.Title))
485+
if (p_Event.Image != null && !m_ChatFont.HasReplaceCharacter("TwitchChannelPoint_" + p_Event.Title))
486486
{
487487
TaskCompletionSource<CP_SDK.Unity.EnhancedImage> l_TaskCompletionSource = new TaskCompletionSource<CP_SDK.Unity.EnhancedImage>();
488488

@@ -499,7 +499,7 @@ internal void OnChannelPoints(IChatService p_Service, IChatChannel p_Channel, IC
499499

500500
var l_ImagePart = "for";
501501

502-
if (m_ChatFont.TryGetReplaceCharacter("TwitchChannelPoint_" + p_Event.Title, out uint p_Character))
502+
if (p_Event.Image != null && m_ChatFont.TryGetReplaceCharacter("TwitchChannelPoint_" + p_Event.Title, out uint p_Character))
503503
l_ImagePart = char.ConvertFromUtf32((int)p_Character);
504504

505505
var l_Prefix = !string.IsNullOrEmpty(p_Channel.Prefix) ? $"<b><color=yellow>[{p_Channel.Prefix}]</color></b> " : string.Empty;
@@ -543,9 +543,9 @@ internal void OnChannelSubsciption(IChatService p_Service, IChatChannel p_Channe
543543
var l_Prefix = !string.IsNullOrEmpty(p_Channel.Prefix) ? $"<b><color=yellow>[{p_Channel.Prefix}]</color></b> " : string.Empty;
544544
var l_MessageStr = $"{l_Prefix}<#FFFFFFBB>[<b>{p_Service.DisplayName}</b>] <color={p_User.Color}><b>@{p_User.PaintedName}</b> ";
545545
if (p_Event.IsGift)
546-
l_MessageStr += $"gifted <color={p_User.Color}><b>{p_Event.PurchasedMonthCount}</b></color> month of <color={p_User.Color}><b>{p_Event.SubPlan}</b></color> to <color={p_User.Color}><b>@{p_Event.RecipientDisplayName}</b></color>!";
546+
l_MessageStr += $"was gifted a month of <color={p_User.Color}><b>{p_Event.SubPlan}</b></color>!";
547547
else
548-
l_MessageStr += $"did get a <color={p_User.Color}><b>{p_Event.PurchasedMonthCount}</b></color> month of <color={p_User.Color}><b>{p_Event.SubPlan}</b></color>!";
548+
l_MessageStr += $"did get a month of <color={p_User.Color}><b>{p_Event.SubPlan}</b></color>!";
549549

550550
CP_SDK.Unity.MTMainThreadInvoker.Enqueue(() =>
551551
{

Modules/BeatSaberPlus_Chat/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@
3131
// You can specify all the values or you can default the Build and Revision Numbers
3232
// by using the '*' as shown below:
3333
// [assembly: AssemblyVersion("1.0.*")]
34-
[assembly: AssemblyVersion("6.3.3")]
35-
[assembly: AssemblyFileVersion("6.3.3")]
34+
[assembly: AssemblyVersion("6.4.1")]
35+
[assembly: AssemblyFileVersion("6.4.1")]

Modules/BeatSaberPlus_Chat/manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
"id": "BeatSaberPlus_Chat",
44
"name": "BeatSaberPlus_Chat",
55
"author": "HardCPP",
6-
"version": "6.3.3",
6+
"version": "6.4.1",
77
"description": "",
88
"gameVersion": "1.40.0",
99
"dependsOn": {
1010
"BSIPA": "^4.3.0",
11-
"ChatPlexSDK_BS": "^6.3.3"
11+
"ChatPlexSDK_BS": "^6.4.1"
1212
},
1313
"links": {
1414
"project-home": "https://discord.chatplex.org",
Binary file not shown.

Modules/BeatSaberPlus_ChatEmoteRain/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@
3131
// You can specify all the values or you can default the Build and Revision Numbers
3232
// by using the '*' as shown below:
3333
// [assembly: AssemblyVersion("1.0.*")]
34-
[assembly: AssemblyVersion("6.3.3")]
35-
[assembly: AssemblyFileVersion("6.3.3")]
34+
[assembly: AssemblyVersion("6.4.1")]
35+
[assembly: AssemblyFileVersion("6.4.1")]

Modules/BeatSaberPlus_ChatEmoteRain/manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
"id": "BeatSaberPlus_ChatEmoteRain",
44
"name": "BeatSaberPlus_ChatEmoteRain",
55
"author": "HardCPP",
6-
"version": "6.3.3",
6+
"version": "6.4.1",
77
"description": "",
88
"gameVersion": "1.40.0",
99
"dependsOn": {
1010
"BSIPA": "^4.3.0",
11-
"ChatPlexSDK_BS": "^6.3.3"
11+
"ChatPlexSDK_BS": "^6.4.1"
1212
},
1313
"links": {
1414
"project-home": "https://discord.chatplex.org",

0 commit comments

Comments
 (0)