This commit is contained in:
Infi
2024-11-18 20:06:29 +01:00
parent cb7df12005
commit 56eff572b7
2 changed files with 8 additions and 3 deletions
+4 -3
View File
@@ -359,6 +359,7 @@ internal sealed unsafe class Chat : IDisposable
{
if (rotate == RotateMode.None)
return null;
var delta = rotate switch
{
RotateMode.Forward => 1,
@@ -382,9 +383,9 @@ internal sealed unsafe class Chat : IDisposable
{
case InputChannel.Linkshell1 or InputChannel.CrossLinkshell1 when rotate != RotateMode.None:
{
// If we're activating for the first time, start at the beginning
// or end of the linkshell list depending on the rotate mode.
var currentIndex = rotate == RotateMode.Forward ? 7u : 0u;
var module = UIModule.Instance();
var currentIndex = channel is InputChannel.Linkshell1 ? (uint) module->LinkshellCycle : (uint) module->CrossWorldLinkshellCycle;
if (currentTempChannel != null)
{
switch (channel)
+4
View File
@@ -631,6 +631,7 @@ public sealed class ChatLogWindow : Window
if (activeTab.CurrentChannel.UseTempChannel)
{
activeTab.CurrentChannel.UseTempChannel = false;
activeTab.CurrentChannel.TempChannel = InputChannel.Invalid;
SetChannel(activeTab.CurrentChannel.Channel);
}
}
@@ -643,6 +644,7 @@ public sealed class ChatLogWindow : Window
if (activeTab.CurrentChannel.UseTempChannel)
{
activeTab.CurrentChannel.UseTempChannel = false;
activeTab.CurrentChannel.TempChannel = InputChannel.Invalid;
SetChannel(activeTab.CurrentChannel.Channel);
}
}
@@ -667,6 +669,7 @@ public sealed class ChatLogWindow : Window
if (Plugin.CurrentTab.CurrentChannel.UseTempChannel)
{
Plugin.CurrentTab.CurrentChannel.UseTempChannel = false;
activeTab.CurrentChannel.TempChannel = InputChannel.Invalid;
SetChannel(Plugin.CurrentTab.CurrentChannel.Channel);
}
}
@@ -900,6 +903,7 @@ public sealed class ChatLogWindow : Window
activeTab.CurrentChannel.UseTempChannel = false;
if (activeTab.CurrentChannel.TempChannel is InputChannel.Tell)
activeTab.CurrentChannel.TellTarget = null;
activeTab.CurrentChannel.TempChannel = InputChannel.Invalid;
Chat = string.Empty;
return;