Commit Graph

9 Commits

Author SHA1 Message Date
florian.berthold ef1003b4c9 fix(options): use SetSelectedID so the text-size dropdown selection sticks
release / release (push) Successful in 3s
2026-05-29 10:43:54 +02:00
florian.berthold 6ef1f9dab8 fix: name+guard Woodcutting/Woodworking, drop regex+deprecated this+InterfaceOptions guards
ProfessionMenu.lua:
- profList: add Name="Woodcutting" (spell 13977860) and Name="Woodworking"
  (spells 1005008-1005011) so getProfessionRanks can find the matching
  GetSkillLineInfo entry. Without Name, both fell through GetSpellInfo+match
  with no result and returned nil,nil.
- getProfessionRanks: replace compName:match(name) (regex) with compName == name
  (plain compare); GetSkillLineInfo names are exact, regex was a bug magnet.
- Guard rank concat at lines ~394/397/400: skip the " (rank)" / " (max)" /
  " (rank/max)" append when getProfessionRanks returns nil so unknown
  skill lines don't error.
- InterfaceOptionsFrame:HookScript: wrap in 'if InterfaceOptionsFrame then';
  CoA's reworked FrameXML has no InterfaceOptionsFrame.

ProfessionMenuOptions.lua:
- Guard InterfaceOptionsFrame / InterfaceOptionsFrame_OpenToCategory /
  InterfaceOptions_AddCategory call sites (Options_Toggle, ProfessionMenu_
  OpenOptions, CreateOptionsUI). All nil on CoA's FrameXML.
- TxtSize dropdown func: drop deprecated WoW-2.x global 'this'; use
  UIDropDownMenu_GetSelectedID(ProfessionMenuOptions_TxtSizeMenu) instead.
2026-05-24 17:40:22 +02:00
Anch 20abe2c6f2 minor code changes 2024-03-27 00:29:08 +13:00
Anch 418f953aeb added and option to show Herbalism and now show the pet Pierre 2023-12-13 10:44:51 +13:00
Anch 2a4391eed3 Added option to show old Blizzard Trade Skill UI 2023-11-05 00:18:46 +13:00
Anch f1bcc1a6bb added option to display profession rank and max rank beside the name 2023-11-02 03:30:41 +13:00
Anch ea692c38ef updates
- updated to delete sanguine workbench after dropping with the item delete setting
- added open menu on mouse over of the button
- Woodcutting now works
2023-10-27 04:54:22 +13:00
Anch ccc268d5cc changes
- added variable text size for the menus
- added disenchanting and prospecting to the menu
- changed the text on the option to hide the main button to standalone button
2023-10-25 14:03:09 +13:00
Anch 34fb96e7f3 Initial commit 2023-10-24 15:50:14 +13:00