-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added lovm, fashion report, chocobo racing auto quits (#115)
- Loading branch information
Showing
5 changed files
with
132 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
using Dalamud.Game.Addon.Lifecycle; | ||
using Dalamud.Game.Addon.Lifecycle.AddonArgTypes; | ||
using ECommons.Automation; | ||
using FFXIVClientStructs.FFXIV.Component.GUI; | ||
using YesAlready.BaseFeatures; | ||
|
||
namespace YesAlready.Features; | ||
|
||
internal class AddonFashionCheckFeature : BaseFeature | ||
{ | ||
public override void Enable() | ||
{ | ||
base.Enable(); | ||
AddonLifecycle.RegisterListener(AddonEvent.PostSetup, "FashionCheck", AddonSetup); | ||
} | ||
|
||
public override void Disable() { | ||
base.Disable(); | ||
AddonLifecycle.UnregisterListener(AddonSetup); | ||
} | ||
|
||
protected static unsafe void AddonSetup(AddonEvent eventType, AddonArgs addonInfo) | ||
{ | ||
var addon = (AtkUnitBase*)addonInfo.Addon; | ||
|
||
if (!P.Active || !P.Config.FashionCheckQuit) | ||
return; | ||
|
||
Callback.Fire(addon, true, -1); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
using Dalamud.Game.Addon.Lifecycle; | ||
using Dalamud.Game.Addon.Lifecycle.AddonArgTypes; | ||
using ECommons.Automation; | ||
using FFXIVClientStructs.FFXIV.Component.GUI; | ||
using YesAlready.BaseFeatures; | ||
|
||
namespace YesAlready.Features; | ||
|
||
internal class AddonLovmResultFeature : BaseFeature | ||
{ | ||
public override void Enable() | ||
{ | ||
base.Enable(); | ||
AddonLifecycle.RegisterListener(AddonEvent.PostSetup, "LovmResult", AddonSetup); | ||
} | ||
|
||
public override void Disable() { | ||
base.Disable(); | ||
AddonLifecycle.UnregisterListener(AddonSetup); | ||
} | ||
|
||
protected static unsafe void AddonSetup(AddonEvent eventType, AddonArgs addonInfo) | ||
{ | ||
var addon = (AtkUnitBase*)addonInfo.Addon; | ||
|
||
if (!P.Active || !P.Config.LordOfVerminionQuit) | ||
return; | ||
|
||
Callback.Fire(addon, true, -1); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
using Dalamud.Game.Addon.Lifecycle; | ||
using Dalamud.Game.Addon.Lifecycle.AddonArgTypes; | ||
using ECommons.Automation; | ||
using FFXIVClientStructs.FFXIV.Component.GUI; | ||
using YesAlready.BaseFeatures; | ||
|
||
namespace YesAlready.Features; | ||
|
||
internal class AddonRaceChocoboResultFeature : BaseFeature | ||
{ | ||
public override void Enable() | ||
{ | ||
base.Enable(); | ||
AddonLifecycle.RegisterListener(AddonEvent.PostSetup, "RaceChocoboResult", AddonSetup); | ||
} | ||
|
||
public override void Disable() { | ||
base.Disable(); | ||
AddonLifecycle.UnregisterListener(AddonSetup); | ||
} | ||
|
||
protected static unsafe void AddonSetup(AddonEvent eventType, AddonArgs addonInfo) | ||
{ | ||
var addon = (AtkUnitBase*)addonInfo.Addon; | ||
|
||
if (!P.Active || !P.Config.ChocoboRacingQuit) | ||
return; | ||
|
||
Callback.Fire(addon, true, 1); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters