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

Commit

Permalink
fix: changed the flytext positional tips.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Jan 22, 2023
1 parent e16da0f commit 795f4cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 0 additions & 2 deletions RotationSolver/Localization/Strings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,6 @@ internal class Strings
#region Actions
public string Action_Friendly { get; set; } = "Support";
public string Action_Attack { get; set; } = "Attack";
public string Action_WrongPositional { get; set; } = "Positional {0}!";

#endregion

#region ActionConditionType
Expand Down
7 changes: 3 additions & 4 deletions RotationSolver/SigReplacers/Watcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ private static unsafe void RecordAction(GameObject tar, Action action, byte flag
if (flag != 0)
{
Service.FlyTextGui.AddFlyText(Dalamud.Game.Gui.FlyText.FlyTextKind.NamedIcon, 0, 0, 0, "Flag:" + flag.ToString(), "",
ImGui.GetColorU32(new Vector4(0.4f, 0, 0, 1)), 94662, action.Icon);
ImGui.GetColorU32(new Vector4(0.4f, 0, 0, 1)), 0, action.Icon);
}
#endif

Expand All @@ -125,9 +125,8 @@ private static unsafe void RecordAction(GameObject tar, Action action, byte flag
&& ConfigurationHelper.ActionPositionals.TryGetValue(id, out var loc)
&& loc.Tags.Length > 0 && !loc.Tags.Contains(flag))
{
var str = string.Format(LocalizationManager.RightLang.Action_WrongPositional, loc.Loc.ToName());
Service.FlyTextGui.AddFlyText(Dalamud.Game.Gui.FlyText.FlyTextKind.NamedIcon, 0, 0, 0, str, "",
ImGui.GetColorU32(new Vector4(0.4f, 0, 0, 1)), 0, action.Icon);
Service.FlyTextGui.AddFlyText(Dalamud.Game.Gui.FlyText.FlyTextKind.NamedIcon, 0, 0, 0, loc.Loc.ToName(), "",
ImGui.GetColorU32(new Vector4(0.4f, 0, 0, 1)), 94662, action.Icon);
if (!string.IsNullOrEmpty(Service.Configuration.PositionalErrorText))
{
Speak(Service.Configuration.PositionalErrorText);
Expand Down

0 comments on commit 795f4cb

Please sign in to comment.