This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| acr [2021/06/22 16:26] – ace | acr [2024/07/23 22:20] (current) – ace | ||
|---|---|---|---|
| Line 54: | Line 54: | ||
| name = " | name = " | ||
| } | } | ||
| + | |||
| + | -- Regions table, lists which game regions are supported (1 - NA, 2 - CN, 3 - KR) | ||
| + | profile.region = { 1, 2, 3} | ||
| -- Create a classes table, to specify which classes this profile can be used for. | -- Create a classes table, to specify which classes this profile can be used for. | ||
| Line 59: | Line 62: | ||
| [FFXIV.JOBS.NINJA] = true, | [FFXIV.JOBS.NINJA] = true, | ||
| [FFXIV.JOBS.ROGUE] = true, | [FFXIV.JOBS.ROGUE] = true, | ||
| - | } | + | } |
| + | |||
| + | -- Add a tags string to indicate whatever you want when class options are displayed | ||
| + | profile.tags = " | ||
| -- The Cast() function is where the magic happens. | -- The Cast() function is where the magic happens. | ||
| Line 85: | Line 91: | ||
| GUI:End() | GUI:End() | ||
| end | end | ||
| + | end | ||
| + | |||
| + | -- Adds a customizable header to the top of the ffxivminion task window. | ||
| + | function profile.DrawHeader() | ||
| + | |||
| + | end | ||
| + | |||
| + | -- Adds a customizable footer to the top of the ffxivminion task window. | ||
| + | function profile.DrawFooter() | ||
| + | |||
| end | end | ||
| Line 125: | Line 141: | ||
| -- This code is an example of how to push routines into ACR using the new API call. | -- This code is an example of how to push routines into ACR using the new API call. | ||
| + | -- This isn't required anymore. Simply placing your ACR LUA file into a folder named CombatRoutines is enough for the ACR module to detect and load your ACR. | ||
| acelib.routinePath = GetStartupPath()..[[\LuaMods\AceLib\CombatRoutines\]] --this can be any subfolder, I'm using the old structure for ease | acelib.routinePath = GetStartupPath()..[[\LuaMods\AceLib\CombatRoutines\]] --this can be any subfolder, I'm using the old structure for ease | ||
| Line 159: | Line 176: | ||
| AceLib.LoadCombatProfiles() | AceLib.LoadCombatProfiles() | ||
| end | end | ||
| + | |||
| + | </ | ||
| + | |||
| + | ==== Public API Functions ==== | ||
| + | |||
| + | <code lua> | ||
| + | |||
| + | local t = ACR.GetClassOptions(class (int) (default Player.job), | ||
| + | --returns a table " | ||
| + | /* | ||
| + | { | ||
| + | [1] = { | ||
| + | name = " | ||
| + | tags = "" | ||
| + | }, | ||
| + | [2] = { | ||
| + | name = " | ||
| + | tags = "" | ||
| + | }, | ||
| + | } | ||
| + | */ | ||
| + | |||
| + | local b, n = ACR.IsActive() | ||
| + | --returns b (bool) (true if any ACR is active), n (string) (name of active profile or "" | ||
| + | |||
| + | ACR.OpenProfileOptions() | ||
| + | --executes the currently selected profiles OnOpen() event if applicable | ||
| </ | </ | ||