Skip to content

Bugfix and consistency rename#96

Merged
ynazar1 merged 2 commits into
Softrix:mainfrom
ynazar1:bugfix_and_consistency_rename
May 5, 2026
Merged

Bugfix and consistency rename#96
ynazar1 merged 2 commits into
Softrix:mainfrom
ynazar1:bugfix_and_consistency_rename

Conversation

@ynazar1
Copy link
Copy Markdown
Collaborator

@ynazar1 ynazar1 commented May 2, 2026

No description provided.

@ynazar1 ynazar1 force-pushed the bugfix_and_consistency_rename branch from 89c2be7 to a9a2c85 Compare May 2, 2026 23:52
This commit is on top of main (e.g. hide action button when idle is already there from Softrix#95). It only adds template table / getCurrentTemplate hardening, addon-wide function renames, XML handler alignment, and small loader fixes — not the hide-when-idle feature.

- Document SMARTBUFF_* globals vs camelCase locals in .cursorrules

- Rename addon globals to SMARTBUFF_PascalCase; sync SmartBuff.xml and call sites

- Rename file-local helpers to camelCase (SmartBuff.lua, SmartBuff.buffs.lua)

- Harden buff settings when template/state is unset (getCurrentTemplate, ensureBuffsTemplateTable, buffsTemplateTable)

- SmartBuff.globals.lua: prefixed debug helpers; Enum uses table.invert (fix undefined tInvert)

- XML/Lua: SMARTBUFF_BuffOrderOnScroll / ScheduleBuffOrderOnScroll casing

Co-authored-by: Cursor <cursoragent@cursor.com>
@ynazar1 ynazar1 force-pushed the bugfix_and_consistency_rename branch from a9a2c85 to 37edec8 Compare May 3, 2026 00:00
Add smartBuffTemplateForGroupKey() so SMARTBUFF_TEMPLATES is never
indexed with a nil enum slot (avoids field '?' errors). Route
getCurrentTemplate, SetTemplate autoswitch, and template comparisons
through the helper; keep numeric templateLookup indices unchanged.

Co-authored-by: Cursor <cursoragent@cursor.com>
@ynazar1 ynazar1 marked this pull request as draft May 3, 2026 00:19
@ynazar1 ynazar1 marked this pull request as ready for review May 5, 2026 06:06
@ynazar1 ynazar1 merged commit 5372d9a into Softrix:main May 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant