mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2025-12-15 05:04:16 +01:00
24 lines
590 B
C#
24 lines
590 B
C#
using Dalamud.Interface.Utility;
|
|
using ImGuiNET;
|
|
using OtterGui.Widgets;
|
|
|
|
namespace Glamourer.Gui.Tabs.AutomationTab;
|
|
|
|
public class AutomationTab(SetSelector selector, SetPanel panel, Configuration config) : ITab
|
|
{
|
|
public ReadOnlySpan<byte> Label
|
|
=> "Automation"u8;
|
|
|
|
public bool IsVisible
|
|
=> config.EnableAutoDesigns;
|
|
|
|
public void DrawContent()
|
|
{
|
|
selector.Draw(GetSetSelectorSize());
|
|
ImGui.SameLine();
|
|
panel.Draw();
|
|
}
|
|
|
|
public float GetSetSelectorSize()
|
|
=> 200f * ImGuiHelpers.GlobalScale;
|
|
}
|