Alert: New Content is Available #68


  • Accepted
Open
  • rismisner created this issue Oct 7, 2009
    Owner

    It would be nice to support showing a button in the general settings, and a SpeakinSpell chat alert at login, if new content is discovered for the Import New Data GUI.

  • rismisner added the tags Accepted Enhancment Oct 7, 2009
  • rismisner posted a comment Oct 7, 2009

    As-is (3.2.2.10) this alert would always be displayed because the "delete" buttons are not permanent in the Import New Data GUI. Once you have deleted all, you can reload them all again by pressing the scan button - it only filters the ones you use, but re-shows all of the ones you deleted. So it would always think new data is available.

    Technically speaking, the default speeches are hard-coded in the table: DEFAULT_SPEECHES.Templates. That table represents the contents of the DefaultSpeeches-xxXX.lua file, and it will always be loaded with the rest of the addon at login. If those delete buttons deleted from this table, the data would come back after you reloadui or login again.

    So I copy that into a working copy in the table: SpeakinSpell.DEFAULTS.Templates, and to save memory, SpeakinSpell.DEFAULTS.Templates is only created as-needed.

    In order to make this alert more meaningful, ideally an additional SpeakinSpellSavedData.IgnoredTemplates table should be created to track "permanently" ignored template speeches that the user has flagged for "don't show this to me anymore"

    A method would also be needed to unignore. It may be possible to use the methodology of the Read-Only checkboxes on the message settings.

    Then you go through all the speeches and mark them as ignored or used. Maybe just get rid of the delete button and replace it with the ignored checkbox? And a master "show ignored" checkbox above the scan button, as a scan option.

    Or when the item of content is not ignored, there is a button [Ignore] or [Ignore All] When the item is ignored, but "[X] Show Ignored In Scan" is enabled, then instead it shows a checkbox "[X] Ignored"

    Meh, for consistency it should just use the checkbox both ways.

  • rismisner posted a comment Oct 7, 2009

    Another approach could rely on adding a version number to the default speeches file. The user's saved data could record the current version number for the last time you scanned the Import New Data interface, regardless of exactly what you use or ignore.

    If you are now running a newer version than the last time you checked for speeches, AND we have released new speeches since your last scan in the version that you're running, then we alert you that we've added new speeches since the last time you checked.

    To put it in pseudo-code, something like:

    if ( DEFAULT_SPEECHES.Templates.Version > SpeakinSpellSavedData.LastScanNewDataVersion ) then
    -- alert the player that new speeches have been added
    end
    

    Edited Oct 7, 2009
  • rismisner posted a comment Oct 7, 2009

    I would like the chat alert to include a clickable link SpeakinSpell: Loaded v3.2.2.10 [Click Here To See New Content!]

    The part in brackets would be a clickable link that opened the Import New Data screen and began scanning for non-redundant non-ignored content.

    I have seen WinterTime do this, but have not investigated exactly how it works to create a clickable link that performs an addon function like that.

  • rismisner posted a comment Oct 7, 2009

    The scan must be performed in order to determine whether new data is available that's non-redundant and non-ignored.

    This scan takes a little bit of time, so it should be optional at startup.

    The optional scan should be possible to set on automatic only if the version check applies.

    Could also provide an option to automatically open the Import New Data screen at login if the version check passes.

  • rismisner posted a comment Jan 5, 2010

    (batch update) This ticket could benefit from Ticket 103: [Click Here] to do something.


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