Download
(76 Kb)
Download
Updated: 11/22/20 08:09 AM
Patch for:
SwitchBar.
Pictures
File Info
Updated:11/22/20 08:09 AM
Created:11/09/15 05:39 PM
Monthly downloads:89
Total downloads:20,477
Favorites:33
MD5:
Categories:Plug-Ins & Patches, Action Bar Mods, Buff, Debuff, Spell
SwitchBar II  Popular! (More than 5000 hits)
Version: 1.3.6
by: dopiate, Elsys, manavortex
=================================================================
SwitchBar II Refactored Version 1.3.6
=================================================================





=================================================================
What this does
=================================================================

Adds an icon that changes depending on what your currently equipped weapon set is now is highly configurable.
You should be able to change nearly any facet of this functionality you might want. Feature requests are welcome although they may not appear immediately.


Idea/original version by manavortex, better graphic choces by Elsys, code fixes and updates by dOpiate.

-d
1.3.6 - Updated libs, minor code and API version

1.3.5 - API bump - updated libs
1.3.4 - API bump (just a quick courteous update)
1.3.3 - Updated Libs, API Bump
1.3.2 - Updated Libs
1.3.1 - API bump
1.3 - compatibility fix (thanks to Daeymon) & LibAddonMenu update
1.2b - API bump
1.2 - Fixed swap issue caused by the last DLC
1.1.1 R10 - API bump, Lib Updates, Minor Menu Change
V 1.1.1 r9.2 - fixed a bug caused by the first fit :-)
V 1.1.1 r9.1 - fixed missing icon switching declaration
V 1.1.1 r9 - just API bump
V 1.1.1 r8 - just API bump
V 1.1.1 r7
[Refactored Code Changes]
Makes use of Scene Handler to display or hide add-on
In or out of combat option uses EVENT_COMBAT_STATE register/remove instead of boolean check
Makes use of LAM2 Icon Picker instead of separate drop down and texture controls
Reset defaults now works
All variables are set and read from a single source minimized or eliminated static variables
Fixed key-bind toggle
Menu options reflect proper states
Icon picker updates color on color-picker change as preview
Addon intentionally visible in mouse mode but not in any character screens
Addon intentionally visible in settings screens
Removed unused saved variables
Added setter functions for each menu option, separate functions for initialization
Version correctly reported across screens
Internal revision number used to track consistency as of this change SwitchBar is now revision 7
Descriptions updated to provide meaningful concise information
[Configuration File Changes]
SwitchBar_defaults.lua introduced
This file holds default values and is configurable by the end user if they have a set of values they prefer the addon
load with across characters.
iconPak.lua introduced
Contains a setting to disable additional icons other than the default 2
Allows end user to add additional icons and descriptions for them or to remove icons from being select able
I think that covers everything but I might have forgotten to mention some.
V 1.1.0 -- fixed version consistency
V 1.1.0 -- fixed always on and hide in combat.
Archived Files (17)
File Name
Version
Size
Uploader
Date
1.3.5
58kB
dopiate
09/09/18 08:28 AM
1.3.4
58kB
dopiate
02/21/18 04:51 PM
1.3.3
58kB
dopiate
10/23/17 08:23 AM
1.3.2
56kB
dopiate
07/14/17 04:11 PM
1.3.1
54kB
dopiate
05/22/17 08:41 AM
1.3
54kB
dopiate
11/10/16 12:29 PM
1.2b
51kB
dopiate
10/05/16 05:02 PM
1.2a
51kB
dopiate
08/13/16 05:34 AM
1.1.1 Revision
85kB
dopiate
07/22/16 04:07 PM
1.1.1 Revision
82kB
dopiate
06/13/16 03:23 AM
1.1.1 Revision
125kB
dopiate
06/12/16 05:18 PM
1.1.1 Revision
82kB
dopiate
06/12/16 12:26 PM
1.1.1 Revision
82kB
dopiate
05/31/16 07:29 PM
1.1.1 Revision
45kB
dopiate
03/08/16 12:41 PM
1.1.1 Revision
45kB
Elsys
02/07/16 09:59 PM
1.1.0
79kB
dopiate
02/04/16 03:26 AM
0.9.5
79kB
dopiate
11/16/15 11:44 AM


Post A Reply Comment Options
Unread 02/05/16, 11:00 AM  
dopiate
AddOn Author - Click to view AddOns

Forum posts: 142
File comments: 677
Uploads: 11
Stay In One Place - Unfair to the end users

I've reached out to the two other authors.

I think it's unfair to keep moving the homepage for this addon.

I know a lot of people update via favorites and how can yo have a favorite if the addon has 3 homes.

I'm offering to add manavortex and Elsy to join the project here and fix update in one spot.

This is a great idea for an addon, made better by Elsy and better functionality by me.

Now lets give it a home!

Why my site? Honestly I am here at ESOUI 10x a day - I can offer support much faster.

I have yet to even hear back from Elsy yet - the one on her page isn't even in a folder!

Anyway that was my rationale.

-d

PS go ahead and favorite this one because it's not going anywhere again.
Last edited by dopiate : 02/05/16 at 08:38 PM.
Report comment to moderator  
Reply With Quote
Unread 02/06/16, 02:25 AM  
BigMons
 
BigMons's Avatar

Forum posts: 38
File comments: 178
Uploads: 0
This doesn't appear to be working properly on my system. For one, I downloaded the version from this page, which should be 1.1. The archive is named "SwitchBar_1.1.zip", but ingame it shows version 0.9. The option for "Lock Position?" seems to be working in the opposite manner than I expect. When I have Lock Position set to ON, the icon is movable. If I set the option to OFF, the icon is locked in place. The other, more serious issue that I have is that the icon disappears immediately when I leave combat even with "Show Always?" set to ON. I tried OFF too and it still disappears when I leave combat. The icon reappears when I enter combat again. The main reason that I wanted to try the addon is so I could see if it would remind me to switch bars when handing in a quest (out of combat) so the XP will go toward bar 2. I keep wasting tens of thousands of XP on skills that are already maxed and it's seriously pissing me off. Anyway, I use an addon called Stow It Auto-Sheather that sheaths my weapon when I leave combat. I don't know if that's related or not. Here is a pic of how I have it configured.
http://i.imgur.com/v6GveiZ.png

EDIT: I disabled Stow It and it still only shows the icons when I'm in combat. The icon shows initially after a UI reload when I'm out of combat, but once I enter combat the first time and then leave combat, the icon disappears. I've also noticed that binding a key, number pad 9 in my example, doesn't seem to work properly. When I leave combat and the icon hides, I can press NUM9 to get the icon to show again. However, if I press NUM9 again, the icon stays onscreen and doesn't rehide. The Keybinding is labeled "Show/Hide SwitchBar" so I assumed that each time I press the bind, the icon would toggle between shown/hidden.
Last edited by BigMons : 02/06/16 at 02:56 AM.
Report comment to moderator  
Reply With Quote
Unread 02/06/16, 05:15 AM  
dopiate
AddOn Author - Click to view AddOns

Forum posts: 142
File comments: 677
Uploads: 11
Not sure I can comment until ...

you actually have need the current zip I'm hosting right here.

I just re-downloaded it and I see no .09 anywhere


manifest (text):

Code:
## APIVersion: 100013
## Title: SwitchBar Updated
## Author: manavortex
## Version: 1.1.0
## Description: fixes dOpiate and Elsys
## SavedVariables: SwitchBarSavedVars
## OptionalDependsOn: LibStub LibAddonMenu-2.0 LibMediaProvider-1.0
In LUA

Lua Code:
  1. SwitchBar.name = "SwitchBar Updated"
  2. SwitchBar.version = "1.1.0"
  3. SwitchBar.author = "manavortex (fixes by dOpiate and Elsys)"

fixes:

99% chance - You seem to have followed the link to one of the broke ones?.
1% chance you have a conflict

I hit the hide button and it goes away.

You could have also installed in during the game and never did a /reloadui ?

Not sure - just going with the info I got from you.

-d
Last edited by dopiate : 02/06/16 at 05:40 AM.
Report comment to moderator  
Reply With Quote
Unread 02/07/16, 12:44 AM  
BigMons
 
BigMons's Avatar

Forum posts: 38
File comments: 178
Uploads: 0
I downloaded the addon from this link circled in red:
----------------------------------------

The archive was named SwitchBar_1.1.zip (now 1.1a) which indicates that it should be 1.1 and indicates that I did indeed download the correct file. I stated the archive name in my first post. I didn't follow the wrong link. If you look at the ingame screenshot in my previous post, it shows 0.9 in the settings menu, hence the confusion. I thought it was possible that you may have updated the addon but mistakenly uploaded a broken or previous version. Other people have done this; no big deal. This is the only time I have ever downloaded or used this addon, so I know it's not a left over from a previous download of the same addon or a wrong version on my end. Also, in the SwitchBarMenu.lua file for 1.1 it did indeed show version 0.9. I see that you have since uploaded a version 1.1a with an updated SwitchBarMenu.lua file that now correctly shows version 1.1.0.

Version 1.1 SwitchBarMenu.lua
Code:
    local panelData = {
		type = "panel",
		name = "SwitchBar",
		--displayName = ZO_HIGHLIGHT_TEXT:Colorize(name),
		author = "manavortex (updated by dOpiate)",
		version = "0.9",
Version 1.1a SwitchBarMenu.lua
Code:
    local panelData = {
		type = "panel",
		name = "SwitchBar",
		--displayName = ZO_HIGHLIGHT_TEXT:Colorize(name),
		author = "manavortex (updated by dOpiate)",
		version = "1.1.0",
I will redownload the addon in version 1.1a and try that, but I don't expect that it will work because Notepad++ comparison says the SwitchBar.lua files are the same/unchanged. It looks like the only change was the version number in the menu lua.

Regarding reloadui, I mentioned in my initial post that I did reload the ui. I actually did numerous reloads when I was attempting to troubleshoot the issue to help you sort out any issues. I eventually gave up and just commented out the combat state parts of the code to force it to stay visible at all times. Since I'm not a coder or author, these changes along with my troubleshooting required numerous ui reloads to get it working. I now get a ui error when I first load the ui due to my lack of knowledge, but once I dismiss that error, the addon stays onscreen always, regardless of combat state. That works for me. I now have a working addon, minus an error message that I can probably fix. I'd like to get it working for others too though if anyone else has issues.

Overall, I'm just trying to help get the addon working properly. It could very well be some conflict with another addon on my system; I don't know. The only one that I could think of that would conflict was Stow It, which is why I mentioned it. I disabled it and reloaded the ui, but it didn't resolve the issue. I like the addon concept, and I appreciate the work that addon authors do in creating, maintaining, and adding feature requests to addons. That's why I spent like an hour trying to troubleshoot this addon and looking over the code to try to understand it and see if I saw anything glaring (to me anyway) that would cause my issue. I also tried to provide thorough feedback to assist versus something like "not working, please fix". You don't seem receptive to my feedback though. You mention that I have a 99% chance that I followed the wrong link, even when I posted the name of the archive that I downloaded
Originally Posted by BigMons
The archive is named "SwitchBar_1.1.zip"
You mentioned that I could have installed ingame and never did a /reloadui, even though I mentioned
Originally Posted by BigMons
The icon shows initially after a UI reload when I'm out of combat...
You also say
Originally Posted by dopiate
I just re-downloaded it and I see no .09 anywhere
yet you updated the addon from 1.1 to 1.1a to "fix" the version number in the menu lua file. I'm not sure if you think I'm bashing the addon or your work or something. I simply installed an addon that is labeled as [Fixed and working], but on my system, it doesn't work. So I thought I'd give feedback to try to help get it sorted out. It could be that I misunderstand your comments too, and you aren't actually taking offense to my feedback. If so, I apologize. I sincerely have no ill will toward anyone here. I just want to help in whatever way that I can.
Report comment to moderator  
Reply With Quote
Unread 02/07/16, 01:29 AM  
BigMons
 
BigMons's Avatar

Forum posts: 38
File comments: 178
Uploads: 0
I commented out two lines (in red) to get the icon to stay on my screen at all times regardless of combat state. This doesn't cause me any UI errors either. These appear to be the same two lines that you mentioned in the comments for one of the other versions of this addon. Thanks for the info from the other addon comments.
Code:
--function SwitchBar.ToggleCombat(eventCode, enteringCombat)
function SwitchBar.OnPlayerCombatState(EVENT_PLAYER_COMBAT_STATE, inCombat)
	--SwitchBarMain:SetHidden(not inCombat)
	--SwitchBar.GetControl(nil):SetHidden(not inCombat)
I do have one other addon that toggles my helmet based on combat state. No idea if it conflicts or not. I don't use the auto toggle ability of that addon though. I toggle my helmet manually with a UI button or slash command provided by that addon. It is Helmet Toggle by CaptainBlagbird.
Report comment to moderator  
Reply With Quote
Unread 02/07/16, 04:50 PM  
Elsys
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 15
Uploads: 1
I'm currently in the process of refactoring the entire code base so far its nearly ready to be released just need to do some final testing. Includes some fixes and settings panel changes that should make it easier to use and look a whole ton cleaner.
Report comment to moderator  
Reply With Quote
Unread 02/07/16, 05:43 PM  
dopiate
AddOn Author - Click to view AddOns

Forum posts: 142
File comments: 677
Uploads: 11
Originally Posted by BigMons
Code:
--function SwitchBar.ToggleCombat(eventCode, enteringCombat)
function SwitchBar.OnPlayerCombatState(EVENT_PLAYER_COMBAT_STATE, inCombat)
	--SwitchBarMain:SetHidden(not inCombat)
	--SwitchBar.GetControl(nil):SetHidden(not inCombat)
I do have one other addon that toggles my helmet based on combat state. No idea if it conflicts or not. I don't use the auto toggle ability of that addon though. I toggle my helmet manually with a UI button or slash command provided by that addon. It is Helmet Toggle by CaptainBlagbird.
Is this not the full function you have?
Code:
function SwitchBar.OnPlayerCombatState(EVENT_PLAYER_COMBAT_STATE, inCombat)
	if(not SwitchBar.showAlwaysOption) then
		SwitchBarMain:SetHidden(not inCombat)
		SwitchBar.GetControl(nil):SetHidden(not inCombat)
	else
		SwitchBarMain:SetHidden(inCombat)
		SwitchBar.GetControl(nil):SetHidden(inCombat)
	end
end
SwitchBar.showAlwaysOption is the "always on option" and it works prefect for me - maybe you do have a conflict?

Sorry I wish I knew more - the is definitely a collaborative addon.

-d
Report comment to moderator  
Reply With Quote
Unread 02/07/16, 10:11 PM  
Elsys
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 15
Uploads: 1
New version is up for download been a bumpy road but I think we finally got this all locked up.
Report comment to moderator  
Reply With Quote
Unread 02/07/16, 11:26 PM  
BigMons
 
BigMons's Avatar

Forum posts: 38
File comments: 178
Uploads: 0
I had the same code that you quoted (BLUE) in addition to the code that I commented out (GREEN). It was only necessary to comment out the part that I quoted before in order to get it working the way that I needed, so that's why I only posted those lines. Sorry for any confusion. Here is everything that was in the 1.1a version of the lua that I downloaded regarding combat afaik. Remember, I'm not a coder, so it's possible I missed something.

Code:
--function SwitchBar.ToggleCombat(eventCode, enteringCombat)
function SwitchBar.OnPlayerCombatState(EVENT_PLAYER_COMBAT_STATE, inCombat)
	if(not SwitchBar.showAlwaysOption) then
		SwitchBarMain:SetHidden(not inCombat)
		SwitchBar.GetControl(nil):SetHidden(not inCombat)
	else
		SwitchBarMain:SetHidden(inCombat)
		SwitchBar.GetControl(nil):SetHidden(inCombat)
	end
end

--function SwitchBar.ToggleCombat(eventCode, enteringCombat)
function SwitchBar.OnPlayerCombatState(EVENT_PLAYER_COMBAT_STATE, inCombat)
	SwitchBarMain:SetHidden(not inCombat)
	SwitchBar.GetControl(nil):SetHidden(not inCombat)
end
The new version, 1.1.1 r7, appears to be working fine! I've tested SHOW ALWAYS both ON and OFF and it seems to work correctly in relation to my combat state. LOCK POSITION appears to function correctly whether it is ON or OFF, and the hotkey is working to show/hide the icon as well. All good for me at least. Thanks! Now hopefully I can remember to switch @%&$ bars before I turn in a quest.
Report comment to moderator  
Reply With Quote
Unread 02/08/16, 12:13 AM  
Elsys
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 15
Uploads: 1
Really cant say why that method would be in there twice however I'm glad that the new version is working as intended thanks for a reply as to the status. Wanted to make sure I wasn't the only one it was working for.
Report comment to moderator  
Reply With Quote
Unread 06/12/16, 09:48 AM  
camilla_noctis
 
camilla_noctis's Avatar

Forum posts: 0
File comments: 8
Uploads: 0
Exclamation addon settings not working - icon

I couldn't find where to select the icons, and found out they were missing completely from the settings:

Compared to this, posted on info page, showing icon selector in settings:
Report comment to moderator  
Reply With Quote
Unread 06/12/16, 10:30 AM  
dopiate
AddOn Author - Click to view AddOns

Forum posts: 142
File comments: 677
Uploads: 11
Re: addon settings not working - icon

Originally Posted by camilla_noctis
I couldn't find where to select the icons, and found out they were missing completely from the settings:

Compared to this, posted on info page, showing icon selector in settings:
I can not replicate your issue :-( ... so I don't even know where to begin

maybe you have a conflict with another addon? maybe try to re-download it.

Here is my screen shot done just now..



-d
Report comment to moderator  
Reply With Quote
Unread 06/12/16, 10:51 AM  
Phinix
 
Phinix's Avatar
AddOn Author - Click to view AddOns

Forum posts: 186
File comments: 1781
Uploads: 32
Looks like you missed declaring iconpicker.lua in the LibAddonMenu control declarations in your SwitchBar.txt. Could be if people don't have the standalone LibAddonMenu installed they would have missing icons in the options?
Report comment to moderator  
Reply With Quote
Unread 06/12/16, 12:10 PM  
camilla_noctis
 
camilla_noctis's Avatar

Forum posts: 0
File comments: 8
Uploads: 0
Originally Posted by Phinix
Looks like you missed declaring iconpicker.lua in the LibAddonMenu control declarations in your SwitchBar.txt. Could be if people don't have the standalone LibAddonMenu installed they would have missing icons in the options?
I was not aware there was a prerequisite installation - would installing that addon fix it? Would it be possible to add this important information to the info page?

Looking up this LibAddonMenu, I found this in the description:

If you came here because a message in chat told you so,
then you are using an outdated addon that relies on an older version of LAM-2.0 which might not be compatible with ESO update 6.
But no need to panic. There are a few things you can do in order to get it to work again:
Update your addons. Maybe the author already fixed the problem.
Try to find out which addon uses the outdated version and ask for help in the comment section.
Ask for help in our comment section.
Replace LibAddonMenu-2.0 in all your addons with the newest version.
So I'm not sure if whatever's missing is supposed to come with the addon, or if I'm supposed to be told to download something additional?
Report comment to moderator  
Reply With Quote
Unread 06/12/16, 12:22 PM  
dopiate
AddOn Author - Click to view AddOns

Forum posts: 142
File comments: 677
Uploads: 11
Thanks

Originally Posted by Phinix
Looks like you missed declaring iconpicker.lua in the LibAddonMenu control declarations in your SwitchBar.txt. Could be if people don't have the standalone LibAddonMenu installed they would have missing icons in the options?
Thanks for the quick diagnosis !

I just fixed it and I'm uploading it now.

Since it's always worked on mine someone will have to let me know if that fix worked.

-d
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: