Compare commits
5 Commits
2.0.0
...
animatedhe
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
812fbaec78 | ||
|
|
e11135bb23 | ||
|
|
be068ed6d1 | ||
|
|
3c3c8fd90b | ||
| 835a0a637d |
@@ -3,7 +3,7 @@
|
|||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Authors></Authors>
|
<Authors></Authors>
|
||||||
<Company></Company>
|
<Company></Company>
|
||||||
<Version>2.0.0</Version>
|
<Version>2.0.1</Version>
|
||||||
<Description></Description>
|
<Description></Description>
|
||||||
<Copyright></Copyright>
|
<Copyright></Copyright>
|
||||||
<PackageProjectUrl>https://github.com/Light-Public-Syncshells/LightlessClient</PackageProjectUrl>
|
<PackageProjectUrl>https://github.com/Light-Public-Syncshells/LightlessClient</PackageProjectUrl>
|
||||||
|
|||||||
@@ -222,7 +222,9 @@ public class AnimatedHeader
|
|||||||
|
|
||||||
if (ImGui.IsItemHovered() && !string.IsNullOrEmpty(button.Tooltip))
|
if (ImGui.IsItemHovered() && !string.IsNullOrEmpty(button.Tooltip))
|
||||||
{
|
{
|
||||||
|
ImGui.PushFont(UiBuilder.DefaultFont);
|
||||||
ImGui.SetTooltip(button.Tooltip);
|
ImGui.SetTooltip(button.Tooltip);
|
||||||
|
ImGui.PopFont();
|
||||||
}
|
}
|
||||||
|
|
||||||
currentX -= buttonSize.X + spacing;
|
currentX -= buttonSize.X + spacing;
|
||||||
|
|||||||
@@ -82,6 +82,7 @@ public sealed class ZoneChatUi : WindowMediatorSubscriberBase
|
|||||||
private string? _dragHoverKey;
|
private string? _dragHoverKey;
|
||||||
private bool _HideStateActive;
|
private bool _HideStateActive;
|
||||||
private bool _HideStateWasOpen;
|
private bool _HideStateWasOpen;
|
||||||
|
private bool _pushedStyle;
|
||||||
|
|
||||||
public ZoneChatUi(
|
public ZoneChatUi(
|
||||||
ILogger<ZoneChatUi> logger,
|
ILogger<ZoneChatUi> logger,
|
||||||
@@ -139,6 +140,8 @@ public sealed class ZoneChatUi : WindowMediatorSubscriberBase
|
|||||||
var config = _chatConfigService.Current;
|
var config = _chatConfigService.Current;
|
||||||
var baseOpacity = Math.Clamp(config.ChatWindowOpacity, MinWindowOpacity, MaxWindowOpacity);
|
var baseOpacity = Math.Clamp(config.ChatWindowOpacity, MinWindowOpacity, MaxWindowOpacity);
|
||||||
_baseWindowOpacity = baseOpacity;
|
_baseWindowOpacity = baseOpacity;
|
||||||
|
ImGui.PushStyleVar(ImGuiStyleVar.WindowBorderSize, 0);
|
||||||
|
_pushedStyle = true;
|
||||||
|
|
||||||
if (config.FadeWhenUnfocused)
|
if (config.FadeWhenUnfocused)
|
||||||
{
|
{
|
||||||
@@ -823,6 +826,16 @@ public sealed class ZoneChatUi : WindowMediatorSubscriberBase
|
|||||||
ImGui.EndPopup();
|
ImGui.EndPopup();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override void PostDraw()
|
||||||
|
{
|
||||||
|
if (_pushedStyle)
|
||||||
|
{
|
||||||
|
ImGui.PopStyleVar(1);
|
||||||
|
_pushedStyle = false;
|
||||||
|
}
|
||||||
|
base.PostDraw();
|
||||||
|
}
|
||||||
|
|
||||||
private void OpenReportPopup(ChatChannelSnapshot channel, ChatMessageEntry message)
|
private void OpenReportPopup(ChatChannelSnapshot channel, ChatMessageEntry message)
|
||||||
{
|
{
|
||||||
if (message.Payload is not { } payload)
|
if (message.Payload is not { } payload)
|
||||||
|
|||||||
Reference in New Issue
Block a user