Bundle the Hellion icon and Exo 2 font
Replace the inherited Chat 2 icon with the 1024×1024 Hellion logo from the Hellion Online Media brand assets so the plugin shows its real identity in Dalamud's plugin list. Bundle Exo 2 Variable (SIL Open Font License 1.1) as an embedded resource together with the OFL license text — keeps the license travelling with the font inside the assembly as the OFL requires. A new Configuration.UseHellionFont (default true) plus a checkbox in the Privacy tab Appearance section route FontManager's regular font handle through tk.AddFontFromMemory using the embedded TTF bytes when the toggle is on; flipping it off falls back to the existing AddFontWithFallback path so users who picked their own system font under Settings → Fonts keep that choice. Settings.cs now treats UseHellionFont as a font-changing setting so toggling it triggers FontManager.BuildFonts on save without needing a plugin reload.
This commit is contained in:
@@ -75,6 +75,12 @@ public class Configuration : IPluginConfiguration
|
||||
// panes more glass-like so the game shines through. Default ~92%.
|
||||
public float HellionThemeWindowOpacity = 0.92f;
|
||||
|
||||
// Use the bundled Exo 2 font (OFL-1.1) for the regular plugin font
|
||||
// instead of whatever GlobalFontV2.FontId points at. Default ON so a
|
||||
// fresh install gets the Hellion typography out-of-the-box; flip OFF
|
||||
// to fall back to the user's chosen system or Dalamud font.
|
||||
public bool UseHellionFont = true;
|
||||
|
||||
public int GetRetentionDays(ChatType type)
|
||||
{
|
||||
if (RetentionPerChannelDays.TryGetValue(type, out var userOverride))
|
||||
@@ -255,6 +261,7 @@ public class Configuration : IPluginConfiguration
|
||||
FirstRunCompleted = other.FirstRunCompleted;
|
||||
HellionThemeEnabled = other.HellionThemeEnabled;
|
||||
HellionThemeWindowOpacity = other.HellionThemeWindowOpacity;
|
||||
UseHellionFont = other.UseHellionFont;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user