Add new draw events.

This commit is contained in:
Ottermandias 2024-03-22 00:45:52 +01:00
parent 8fded88813
commit 5ea140db98
8 changed files with 88 additions and 7 deletions

View file

@ -95,6 +95,17 @@ public class Penumbra : IDalamudPlugin
if (_characterUtility.Ready)
_residentResources.Reload();
var api = _services.GetService<IPenumbraApi>();
api.PostEnabledDraw += ImGui.TextUnformatted;
api.PreSettingsTabBarDraw += (name, width, titleWidth) =>
{
ImGui.TextUnformatted(width.ToString());
ImGui.TextUnformatted(titleWidth.ToString());
ImGui.TextUnformatted(ImGui.GetContentRegionMax().X.ToString());
ImGui.SetCursorPosX(ImGui.GetCursorPosX() + (width - titleWidth) / 2);
ImGui.Button("Test", new Vector2(titleWidth, 0));
};
}
catch (Exception ex)
{