Thread: Fading Textures
View Single Post
08-16-18, 05:11 AM   #7
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,929
If you only want it to show up on the first time you log in ...

PlayerEnteringWorld has two parameters. firstTimeLogin, reload

If the first parameter is true then it is the first time you have logged into the game and can show the splash.


Now, if you also only want it to show up if it is the first time that version of the addon has been run, to show say update notes, then you could then have an account or character specific SavedVariable setting that holds the last version number loaded and then only display if that value is different from the one now running. Then after the frame is displayed update the saved variable.

Something like the following
Lua Code:
  1. if firstTimeLogin and sv.version ~= addon.version then
  2.    welcomeFrame:Show() or UIFrameFadeIn(welcomeFrame,1,0,1)
  3.    sv.version = addon.version
  4. end
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818
  Reply With Quote