mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 18:27:24 +01:00
Add new draw events.
This commit is contained in:
parent
8fded88813
commit
5ea140db98
8 changed files with 88 additions and 7 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue