FireExit

Due to RL taking up far too much time I have cancelled my WoW subscription and as a result of this I will no longer be updating this addon. Thank you to everyone who has used this addon and if anyone does want to take over the addon then I have no objections.

FireExit is a small LibDataBroker based addon that allows you to either logout, exit the game or just reload the UI by clicking the icon (clicks listed below).

Left-click to logout

Right-Click to exit

Shift-Click to force exit, for quickly leaving the game when not at an inn/capital city.

FireExit does not provide it's own display, in order to use it you will need a LibDataBroker based display addon.

Note: I have included a mirror image of the current icon in the download which you can use if you like to have the figure running to the right. To make this change (best done out of the game), open up FireExit.lua in the text editor of your choice and change the commented line to the alternate image name. There are now also included two optional slash commands (/reloadui and /rl) which are disabled by default. To enable them (or even just one) you need to uncomment them out via lua.

Additional Note: It turns out the ReloadUI function doesn't seem to work with YssDrop.

50200.15 - Frayol

* Updated TOC.

**************************

50100.14 - Frayol

* Updated TOC.

**************************

50001.13 - Frayol

* Updated TOC.

**************************

40300.12 - Frayol

* Updated TOC.

**************************

40200.11 - Frayol

* Updated TOC.

**************************

40100.10 - Frayol

* Updated TOC.

**************************

40000.09 - Frayol

* Updated TOC.
* Updated Libs.
* Commented out the slash commands to make them optional.

**************************

30300.08a - Frayol (unreleased)

* Added /rl and /reloadui as slash commands.

**************************

30300.08 - Frayol

* Re-added the reloadUI option, turns out it wasn't broken it was being blocked by another addon. /blush
* Tidied up the code a little bit.

**************************

30300.07 - Frayol

* Removed the reloadUI option, it was broken and I don't use it anyways.

Managed to find the cause of the problem and it turns out to be an issue with YssDrop preventing the reload from working for some reason. I really should have checked first before making any changes.

Originally posted by Morgalm Also why don't you just say if button == "RightButton" or button == "LeftButton" instead of having 2 separate if's that do basically the same thing? No biggie anyway

To be honest I have no idea why I did it like that although it has got me thinking about it. Since work turned out to be rather quiet this morning I was not only able to track down where the problem lay, but also tidy up the code a little with the reloadUI option put back in. Sorry for any problems cause.

Unless of course I fixed it myself and it was so long ago I forgot I did it lol. Here is the code in mine I use it for reloadui all the time:

function dataobj.OnClick()
local button = GetMouseButtonClicked()
if button == "LeftButton" then
if IsShiftKeyDown() then
ForceQuit()
elseif IsAltKeyDown() then
ReloadUI()
else
Logout();
end
elseif ( button == "RightButton" ) then
if IsShiftKeyDown() then
ForceQuit()
elseif IsAltKeyDown() then
ReloadUI()
else
Quit();
end
end
end

Also why don't you just say if button == "RightButton" or button == "LeftButton" instead of having 2 separate if's that do basically the same thing? No biggie anyway

Originally posted by Morgalm ReloadUI was broken? Works fine for me...

I plan to investigate further when I get more free time to see if I can find the root cause, but perhaps it isn't broken for everyone and just depends on you addon combo. Although I don't really use the function much I hate not knowing what the problem is so I will look into it.

No the saved variables are still saved only way they don't save is a hard crash or alt-f4 out of game.

Although I should warn you that I did change the way the clicks were implemented in this release as with just adding an extra click option on the older versions would not only reload the UI, but would then logout/quit the game depending on which button had been used.

Originally posted by Josey Been using this; really like one-click log.
Notice it does not close open windows like bags, talent books, char screen, etc. first like the default escape/logout does.

Does that affect things like saving before logging, or risk corruption of .lua or cache files for not closing before logging?

Not that I am aware of. I've never had any problems of that sort either with FireExit or before when using either ExitFu (does pretty much exactly the same things) or slash commands to logout/quit/forcequit. Not saying that it couldn't happen, but I've never heard of it happening with anything.

Originally posted by Morgalm Thanks had added it to mine anyway but nice to see in it

Fair enough, I tend to do the same myself with some addons. Although I should warn you that I did change the way the clicks were implemented in this release as with just adding an extra click option on the older versions would not only reload the UI, but would then logout/quit the game depending on which button had been used.

Originally posted by Morgalm Hey why not add a reloadui click as well like alt-click = reloadui?

I use Opticon which already has reloadui built in as part of it so it's not something that I would have thought about adding. However if people think that this is something that should also be in this addon then I'll have to think about adding it.