Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
fix: add the show donate link option.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed May 15, 2024
1 parent 7fb4256 commit c8f7923
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 11 deletions.
2 changes: 2 additions & 0 deletions ActionTimelineEx/Configurations/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ public class Settings : IPluginConfiguration
[UI("Record Target Status")]
public bool RecordTargetStatus { get; set; } = true;

[UI("Show the donate link.")]
public bool ShowDonate { get; set; } = true;

public List<DrawingSettings> TimelineSettings = [];
public HashSet<ushort> HideStatusIds { get; set; } = [];
Expand Down
2 changes: 1 addition & 1 deletion ActionTimelineEx/Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public class Plugin : IDalamudPlugin
public Plugin(DalamudPluginInterface pluginInterface)
{
ECommonsMain.Init(pluginInterface, this);
XIVConfigUIMain.Init(pluginInterface, "/atl", "Opens the ActionTimeline configuration window.", PluginCommand, typeof(Settings), typeof(DrawingSettings), typeof(GroupItem), typeof(UiString));
XIVConfigUIMain.Init(pluginInterface, "/atle", "Opens the ActionTimelineEx configuration window.", PluginCommand, typeof(Settings), typeof(DrawingSettings), typeof(GroupItem), typeof(UiString));

Svc.PluginInterface.UiBuilder.Draw += Draw;
Svc.PluginInterface.UiBuilder.OpenConfigUi += OpenConfigUi;
Expand Down
3 changes: 1 addition & 2 deletions ActionTimelineEx/Timeline/TimelineManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ public TimelineManager()
}
}


public void Dispose()
{
_items.Clear();
Expand Down Expand Up @@ -462,7 +461,7 @@ private unsafe void OnCast(uint sourceId, IntPtr ptr)
}
catch(Exception ex)
{
Svc.Log.Warning(ex, "Something wrong with OnCast1");
Svc.Log.Warning(ex, "Something wrong with OnCast!");
}
}
}
12 changes: 5 additions & 7 deletions ActionTimelineEx/Windows/SettingsWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -137,24 +137,22 @@ public override bool GetIcon(out IDalamudTextureWrap texture)
}
public override string Link => $"https://github.com/{XIVConfigUIMain.UserName}/{XIVConfigUIMain.RepoName}/blob/main/CHANGELOG.md";
}

private static float _scale => ImGuiHelpers.GlobalScale;
public override SearchableCollection Collection { get; } = new(Settings);
protected override bool ShowDonate => Settings.ShowDonate;
protected override string Kofi => "B0B0IN5DX";

protected override string DiscordServerID => "1228953752585637908";
protected override string DiscordServerInviteLink => "9D4E8eZW5g";

protected override string Crowdin => "actiontimelineex";
private static Settings Settings => Plugin.Settings;
public SettingsWindow() : base(typeof(SettingsWindow).Assembly.GetName())
{
Size = new Vector2(300, 490f);
Size = new Vector2(740, 490f);
RespectCloseHotkey = true;

ImGuiHelper.GetFont(FontSize.Third, GameFontFamily.Axis);
ImGuiHelper.GetFont(FontSize.Forth, GameFontFamily.Axis);
ImGuiHelper.GetFont(FontSize.Fourth, GameFontFamily.Axis);
ImGuiHelper.GetFont(FontSize.Fifth, GameFontFamily.Axis);
ImGuiHelper.GetFont(FontSize.Forth, GameFontFamily.MiedingerMid);
ImGuiHelper.GetFont(FontSize.Fourth, GameFontFamily.MiedingerMid);
ImGuiHelper.GetFont(FontSize.Fifth, GameFontFamily.MiedingerMid);
}

Expand Down

0 comments on commit c8f7923

Please sign in to comment.