This commit is contained in:
2025-12-16 06:31:29 +09:00
parent bdfcf254a8
commit 4444a88746
32 changed files with 1204 additions and 464 deletions

View File

@@ -1,9 +1,5 @@
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Globalization;
using System.Numerics;
using System.Threading.Tasks;
using LightlessSync.API.Data;
using Dalamud.Bindings.ImGui;
using Dalamud.Interface;
@@ -13,7 +9,6 @@ using Dalamud.Interface.Utility.Raii;
using LightlessSync.API.Dto.Chat;
using LightlessSync.LightlessConfiguration;
using LightlessSync.LightlessConfiguration.Models;
using LightlessSync.PlayerData.Pairs;
using LightlessSync.Services;
using LightlessSync.Services.Chat;
using LightlessSync.Services.Mediator;
@@ -75,7 +70,7 @@ public sealed class ZoneChatUi : WindowMediatorSubscriberBase
ChatConfigService chatConfigService,
ApiController apiController,
PerformanceCollectorService performanceCollectorService)
: base(logger, mediator, "Zone Chat", performanceCollectorService)
: base(logger, mediator, "Lightless Chat", performanceCollectorService)
{
_uiSharedService = uiSharedService;
_zoneChatService = zoneChatService;
@@ -93,11 +88,11 @@ public sealed class ZoneChatUi : WindowMediatorSubscriberBase
RefreshWindowFlags();
Size = new Vector2(450, 420) * ImGuiHelpers.GlobalScale;
SizeCondition = ImGuiCond.FirstUseEver;
SizeConstraints = new()
{
MinimumSize = new Vector2(320f, 260f) * ImGuiHelpers.GlobalScale,
MaximumSize = new Vector2(900f, 900f) * ImGuiHelpers.GlobalScale
};
WindowBuilder.For(this)
.SetSizeConstraints(
new Vector2(320f, 260f) * ImGuiHelpers.GlobalScale,
new Vector2(900f, 900f) * ImGuiHelpers.GlobalScale)
.Apply();
Mediator.Subscribe<ChatChannelMessageAdded>(this, OnChatChannelMessageAdded);
Mediator.Subscribe<ChatChannelHistoryCleared>(this, msg =>