Ability to set profile from direct function call #86


  • Invalid
  • Enhancment
Closed
Assigned to nevcairiel
  • _ForgeUser3045300 created this issue Mar 31, 2010

    It is helpful for users writing lua scripts and other advanced macros to be able to change Quartz profiles via direct function call.  For example:

    Quartz3.db:SetProfile("Heal Spec")

    There is only one line of code in the current Quartz3 addon which is preventing this function call:

    local Quartz3 = LibStub("AceAddon-3.0"):NewAddon("Quartz3", "AceConsole-3.0")

    If you remove the "local" bit, other lua scripts are able to call the SetProfile function.

    Quartz3 = LibStub("AceAddon-3.0"):NewAddon("Quartz3", "AceConsole-3.0")

    Do you think you could implement this change in the next patch?

    Thanks.

  • _ForgeUser3045300 added the tags New Enhancment Mar 31, 2010
  • nevcairiel posted a comment Mar 31, 2010

    LibStub("AceAddon-3.0"):GetAddon("Quartz3").db:SetProfile("Heal Spec")


    Edited Apr 2, 2010
  • nevcairiel removed a tag New Apr 2, 2010
  • nevcairiel added a tag Invalid Apr 2, 2010
  • nevcairiel closed issue Apr 2, 2010

To post a comment, please login or register a new account.