Initial HSMappy release (fork of Mappy)
Made-with: Cursor
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Drawing;
|
||||
using System.Numerics;
|
||||
using Dalamud.Interface;
|
||||
using KamiLib.Configuration;
|
||||
|
||||
namespace Mappy.Data;
|
||||
|
||||
public class IconSetting
|
||||
{
|
||||
public required uint IconId { get; set; }
|
||||
public bool Hide;
|
||||
public bool AllowTooltip = true;
|
||||
public float Scale = 1.0f;
|
||||
public bool AllowClick = true;
|
||||
public Vector4 Color = KnownColor.White.Vector();
|
||||
|
||||
public void Reset()
|
||||
{
|
||||
Hide = false;
|
||||
AllowTooltip = true;
|
||||
Scale = 1.0f;
|
||||
AllowClick = true;
|
||||
Color = KnownColor.White.Vector();
|
||||
}
|
||||
}
|
||||
|
||||
public class IconConfig
|
||||
{
|
||||
public Dictionary<uint, IconSetting> IconSettingMap = [];
|
||||
|
||||
public static IconConfig Load() => Service.PluginInterface.LoadConfigFile<IconConfig>("Icons.config.json");
|
||||
|
||||
public void Save() => Service.PluginInterface.SaveConfigFile("Icons.config.json", System.IconConfig);
|
||||
}
|
||||
Reference in New Issue
Block a user