mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-21 15:27:43 +01:00
Misc Fixes (#2584)
* Disable default logging, remove log message * Add IDtrBarEntry.MinimumWidth * Fix Addon/Agent Lifecycle Register/Unregister * Rename Agent.ReceiveEvent2 * Add to IReadOnlyDtrBarEntry * Fix autoformat being terrible * More style fixes * Add focused changed lifecycle event * Fix for obsolete renames
This commit is contained in:
parent
e598013e30
commit
5c7a5295d1
10 changed files with 245 additions and 91 deletions
|
|
@ -397,7 +397,15 @@ internal sealed unsafe class DtrBar : IInternalDisposableService, IDtrBar
|
|||
|
||||
ushort w = 0, h = 0;
|
||||
node->GetTextDrawSize(&w, &h, node->NodeText.StringPtr);
|
||||
node->SetWidth(w);
|
||||
|
||||
if (data.MinimumWidth > 0)
|
||||
{
|
||||
node->SetWidth(Math.Max(data.MinimumWidth, w));
|
||||
}
|
||||
else
|
||||
{
|
||||
node->SetWidth(w);
|
||||
}
|
||||
}
|
||||
|
||||
var elementWidth = data.TextNode->Width + this.configuration.DtrSpacing;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue