using HSUI.Config;
using HSUI.Config.Attributes;
using HSUI.Enums;
using HSUI.Interface.Bars;
using Dalamud.Bindings.ImGui;
using System.Numerics;

namespace HSUI.Interface.GeneralElements
{
    [Section("Other Elements")]
    [SubSection("Limit Break", 0)]
    public class LimitBreakConfig : ChunkedProgressBarConfig
    {
        [NestedConfig("Visibility", 70)]
        public VisibilityConfig VisibilityConfig = new VisibilityConfig();

        public LimitBreakConfig(Vector2 position, Vector2 size, PluginConfigColor fillColor) : base(position, size, fillColor)
        {
        }

        public new static LimitBreakConfig DefaultConfig()
        {
            var config = new LimitBreakConfig(
                new Vector2(0, -ImGui.GetMainViewport().Size.Y * 0.4f),
                new Vector2(500, 10),
                new PluginConfigColor(new Vector4(255f / 255f, 255f / 255f, 0f / 255f, 100f / 100f)));

            config.HideWhenInactive = true;
            config.UsePartialFillColor = true;
            config.PartialFillColor = new PluginConfigColor(new Vector4(0f / 255f, 181f / 255f, 255f / 255f, 100f / 100f));

            return config;
        }
    }
}
