f72031ae60
Co-authored-by: Cursor <cursoragent@cursor.com>
37 lines
1.2 KiB
C#
37 lines
1.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using Dalamud.Configuration;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace ConfigurableCombo;
|
|
|
|
[Serializable]
|
|
public class PluginConfiguration : IPluginConfiguration
|
|
{
|
|
public int Version { get; set; } = 1;
|
|
|
|
/// <summary>
|
|
/// Master switch for the plugin.
|
|
/// </summary>
|
|
public bool EnablePlugin { get; set; } = true;
|
|
|
|
/// <summary>
|
|
/// How often (ms) to refresh the combo "next action" per slot. Higher = more stable icons, slightly slower to update.
|
|
/// WrathCombo uses 50ms; same default here.
|
|
/// </summary>
|
|
public int ThrottleMs { get; set; } = 50;
|
|
|
|
/// <summary>
|
|
/// When true, log every combo-related hook call and replacement to the plugin log (throttled where needed).
|
|
/// Toggled via /ccombo debug for support; not shown in settings UI.
|
|
/// </summary>
|
|
public bool EnableDebugLogging { get; set; } = false;
|
|
|
|
/// <summary>
|
|
/// User-defined combos. Each combo is a named sequence of action IDs; the first action is the hotbar slot.
|
|
/// </summary>
|
|
public List<UserComboDefinition> UserCombos { get; set; } = new();
|
|
|
|
public void Save() => Service.Interface!.SavePluginConfig(this);
|
|
}
|