Minion Beta! - Help us test our new AddOn updater. Get it now!
Download
(8 Kb)
Download
Updated: 12-10-14 08:08 AM
Pictures
File Info
Compatibility:
Warlords of Draenor Pre-Patch (6.0.3)
Warlords of Draenor Pre-Patch (6.0.2)
Siege of Orgrimmar (5.4)
Escalation (5.3)
Updated:12-10-14 08:08 AM
Created:02-07-10 07:04 PM
Downloads:3,825
Favorites:33
MD5:
6.0.3

XObjectivesFrame

Version: 6.0.3.19243
by: Xrystal [More]


About the XObjectivesFrame Addon
This addon allows the user to set their watch frame into a more convenient size and position with nUI users gaining extra functionality to 'dock' the frame in an infopanel. It has been rewritten to work with the latest version of the game and replaces ScrollingWatchFrame addon.

Alternatives
Seerah's WatchFrame Addon has many similar and more features so if this isn't quite what you want or you want to weigh your choices go check it out : WhoFramedWatcherWabbit.

Note: If you need a higher number for those with ranges let me know and I will try to raise the bar.

Customizations Available
XObjectivesDB can hold the following values (by default):
Width = 300 ( up to 600 in increments of 25) - Not available when docked
Height = 150 ( up to 800 in increments of 50) - Not available when docked
Collapsed = false - Not available when docked
Docked = false - Available if you have a dock compatible UI setup like nUI
MaxObjectives = 25 (up to 100 in increments of 5)
ScrollHeight = 1000 (up to 3000 in increments of 100)

Note: The Maximum Achievement count still cannot be overridden due to how they are using that constant but the various other numeric constants can be.

Known Problems:
The quest item button seems to get tainted with only the slightest change to the ObjectivesFrame so for now you will have to use the item in an action bar slot or from the bag or use another addon such as:
QuickQuestItem
And QuestItemBar on curse website, as the one on here hasn't been updated since before the expansion.


Foreign Language Versions
At the present this plugin does not support multi language settings.
enUS and enGB versions will work fine however and the ability to add new languages is possible using the addonData.Localization values accordingly.

Version: 6.0.3.19243
- Rewrite of ScrollingWatchFrame addon to be compatible with the latest version of the game.
- Features:
- Drop Down Menu to adjust the following options:
- Width, Height, ScrollHeight, MaxObjectives, Docked Status, Collapsed Status
- Known Problems:
- Using the quest item will popup an error message.
Optional Files (0)


Archived Files (9)
File Name
Version
Size
Author
Date
5.4.0.17399
26kB
Xrystal
10-05-13 02:58 AM
1.04.00
26kB
Xrystal
10-14-10 02:03 PM
1.03.02
30kB
Xrystal
04-09-10 05:06 AM
1.03.01
30kB
Xrystal
03-29-10 01:15 PM
1.03.00
26kB
Xrystal
03-23-10 05:44 AM
1.02.01
21kB
Xrystal
03-12-10 04:15 PM
1.02.00
20kB
Xrystal
03-11-10 03:04 PM
1.01.01
16kB
Xrystal
02-08-10 12:17 PM
1.01.00
15kB
Xrystal
02-07-10 07:04 PM


Post A Reply Comment Options
Unread 03-12-10, 02:23 PM  
MTRazeR
A Defias Bandit
 
MTRazeR's Avatar

Forum posts: 2
File comments: 6
Uploads: 0
Originally posted by Xrystal
Hmm, thanks for that. Seems to have introduced some unusual results since incorporating the UI for the slash commands.

The reason for the multiple anchors ...................
I like the multiple anchors and use it to place it where I want when minimized, no problems there. Just an idea that for those who choose not to use multiple anchors could still have an option as where they want the minimized tab to go. Basically it would do the math for them and when minimized would place it in one of the four corners.
MTRazeR is offline Report comment to moderator  
Reply With Quote
Unread 03-12-10, 12:27 PM  
Xrystal
nUI User and Supporter
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 5048
File comments: 297
Uploads: 25
Ah, think I have got to the main brunt of the problem. If you have it locked it messes up the whole resizing including auto expanding and collapsing to reflect the last status when you next log in. The WatchFrame itself does what it is supposed to do but my own frame isn't. So I will work on that and hopefully won't take the 11hrs I spent on this yesterday rofl.

Ah, finally got the bug you got and I haven't got a clue why apart from the fact I got a WTF corruption when I got the nUI Options error causing blank frames to appear. Did that happen to you while testing or are you not a nUI user ? Just trying to tie down a common link somewhere as this is the only time I saw that problem.

Yep, looks like your title and button disappearing is caused by the same delay affecting some other stuff. In that instance the watchframe has managed to jump in and hide the heading and button ( as happens in the default watch frame ) before my code gets to the point of stopping that from happening. I fixed it by making sure those are shown before turning off the hide function.

Still undergoing testing but hopefully in the next couple of hours I should have a fixed version. My apologies that I didn't catch this in yesterdays testing and thanks for highlighting it for me.
__________________
Last edited by Xrystal : 03-12-10 at 01:09 PM.
Xrystal is offline Report comment to moderator  
Reply With Quote
Unread 03-12-10, 11:38 AM  
Xrystal
nUI User and Supporter
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 5048
File comments: 297
Uploads: 25
Okay, actually tested on a new character, and I apologise for not doing that before *slaps head*. I am guessing that some values are not being set correctly as a default and its messing things up.

Anyways, I started by default with the nUI docked status which didn't show the tracked quests or heading. I thought I had fixed this yesterday but I guess not. Will look into that later.

I then undocked it and it opened up. I set the boxes to what you had and minimized the frame and logged out to desktop. I logged back in and it came back as maximized with the caption and button but no tracked quests. After confirming that I had quests still marked as tracked I then clicked the expand button despite it visually being expanded and it expanded and repositioned where it was supposed to be. So this looks like on log in, it's not setting things up right. Perhaps, as I suspect its a timing situation as I am currently running at 350ms latency so I guess the watch frame is lagging slightly. So, I may have to look into why it seems to be doing this now rather than before.

But thanks again for highlighting this problem and I will endeavour to correct it.
__________________
Xrystal is offline Report comment to moderator  
Reply With Quote
Unread 03-12-10, 11:25 AM  
Xrystal
nUI User and Supporter
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 5048
File comments: 297
Uploads: 25
Hmm, thanks for that. Seems to have introduced some unusual results since incorporating the UI for the slash commands.

The reason for the multiple anchors was a decision based on if you had an interface where there was a spot you wanted it to specifically collapse to but when you expand it would expand to where you wanted to. Simply not using multiple anchors should ignore that option and it is the default setting.

I'm sure I logged out with it minimized but I will check again. However, if you have it set to autohide when nothing is being tracked and when you next log in it sees you as not tracking anything it will not show it until you track something. Autohiding is a default feature of the tracking window so I have it set as default with the option to keep the window visible even if you don't have anything being tracked. This problem you are describing could also be linked to the delay I noticed last night myself whereby initially when you log in the watchframe itself isn't available for a few seconds. Seeing as my addon uses that frame it may be causing a glitch. I'll investigate it shortly and see if I get the same effect.

The anchors themselves are auto tracked to be the top left of the frame. That way you can anchor it to the left hand side with the top left positioned where you like and if you decide to move it the right hand side the width will reflect where the top left will appear. Just dragging to where you want should be enough for it to store the new point. Turning multiple on will store the current position/state with the other state defaulting to center. IE. You had a collapsed tracker positioned in the top center and chose multiple anchors the addon will store the current top center position as the collapsed state anchor and the expanded state anchor would then be defaulted as center.

All of the settings are kept and if there are different settings between collapsed/expanded such as the anchors all 3 values will be at the last value it was since the last reset. So, to repeat :

Default Anchor : Used by default and initially center
Collapsed Anchor : Used by multiple anchor option and initially center
Expanded Anchor : Used by multiple anchor option and intiially center

Once you have moved these under whatever state the frame and anchor option are they will be used next time. If they don't it's bugged as that was the whole idea.

Hope that explains things a bit better. But I will do some more testing and confirm it is doing what it is supposed to do.
__________________
Xrystal is offline Report comment to moderator  
Reply With Quote
Unread 03-12-10, 10:11 AM  
MTRazeR
A Defias Bandit
 
MTRazeR's Avatar

Forum posts: 2
File comments: 6
Uploads: 0
sfw

okay, day two of testing.

Well after having everything setup and looking great yesterday (actually real early this morning), I load up and get ready to play. First thing I notice is that the Objectives tab is not visible. I logged out with it minimized and when I came back in it was minimized with nothing in it, not even the title or any button to maximize it. This was my settings:

Current Values are as follows, dependant on the docked status of the frame :
Docked with InfoPanel system for when nUI is active ? false
Locked from moving when not in an InfoPanel ? true
Current AutoHide Status true
Using multiple anchor tracking when not in an InfoPanel ? true
Has a background while docked and undocked ? false true
Current Width when not docked : 300
Current Height when not docked : 416
Current Scroll Size : 3546

Not sure if it has anything to do with it, but the minimized watcher I have docked to the left side of the screen. (BTW selectable anchor points for maximized/minimized windows would be nice, and by default should be upper right and not upper left as it is now)

After a few reloads I decided to just reset it with the /swf options and then reset to default. This brought the screen back and placed it in the middle of the screen. Everything looked to be working again. Using the /swf options the window reported the default sizes and had all four boxes with the setup of my last setup and not the default setup. This caused some confusion as I would check the box or unchecked and the opposite is what I got. In other words there was a check in lock, but it was actually unlock and checking it unlocked actually locked it. after toggling each switch once and then closing the options tab and reopening it, the correct settings where then reported.

As I am writing this I am making single changes to see if I can further pinpoint as to what is messing it up for me.

Okay, it just broke. Seems as long as I have everything the way I like it and exit with the watch frame maximized, then I am OK. But when I exit with it minimized and come back in, it is blank and unusable with only the reset option for a quick fix.

Note: Only one selectable anchor point is needed. You don't need to have one for both windows. When you select lower left for example the minimized window will anchor to the lower left of the maximized window. Just for easy alignment really.
Last edited by MTRazeR : 03-12-10 at 10:18 AM.
MTRazeR is offline Report comment to moderator  
Reply With Quote
Unread 03-12-10, 06:48 AM  
Xrystal
nUI User and Supporter
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 5048
File comments: 297
Uploads: 25
Okay, this is their list of Quest Watch changes currently on the test server for version 3.3.3 that will hopefully work after a few tweaks and they fix their own bugs rofl.


Quest Tracking Feature
  • The Quest Tracking Objectives Frame can now be widened via the Interface Options menu.
  • The short description for a tracked quest is now displayed on the Map in the quest pane.
  • Quest items in a player's inventory which begin quests now each have an exclamation point overlaid on their icons to make them more easily identifiable.
  • If a players selects Track Low Level Quests, the quest objectives will no longer appear dim on the Map, nor will the exclamation points appear dim over NPC heads or on the Mini-Map.
  • Objectives Frame
    • The Objectives Frame will now list the number of quests displayed at the top. In addition, players can now click on the word "Objectives" at the top of the Objectives Frame for a list of sorting and filtering options which will determine how quests are ordered. Any quests or achievements filtered or sorted out of the Objectives Frame are still being tracked and are simply hidden in this frame.
    • Sorting
      • Sort by most difficult quests.
      • Sort by least difficult quests.
      • Sort by quests closest in proximity to the player (this will automatically update as players travel around).
      • Manual sorting: This allows players to Right-Click on each quest name in the Objectives Frame and determine in what order they should be placed.
    • Filtering
      • Toggle achievement tracking.
      • Toggle completed quest tracking.
      • Toggle tracking quest objectives in other zones.
    • Players can now Shift + Click on a quest objective or check the Track Quest box on the Map to track a quest in the Objectives Frame.
__________________
Last edited by Xrystal : 03-12-10 at 06:49 AM.
Xrystal is offline Report comment to moderator  
Reply With Quote
Unread 03-12-10, 06:19 AM  
Xrystal
nUI User and Supporter
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 5048
File comments: 297
Uploads: 25
Re: Frame Watch

Originally posted by MTRazeR
Just what I needed. Thanks

Any plans for sorting options? Maybe something like move to top or high priority.
I'll look into it. The Blizzard Watch Frame was bugged yesterday but I know they added a sort and filter option so I may not need to do anything.

At present all I am doing is separating the title/button/list from each other and making the list scrollable. The functionality of the watch frame itself is the way blizzard deals with it as each watch frame update it redraws the list all over again so it may not be possible to do what you want if the default blizzard one in 3.3.3 isn't the sorting you meant.
__________________
Xrystal is offline Report comment to moderator  
Reply With Quote
Unread 03-12-10, 04:03 AM  
MTRazeR
A Defias Bandit
 
MTRazeR's Avatar

Forum posts: 2
File comments: 6
Uploads: 0
Frame Watch

Just what I needed. Thanks

Any plans for sorting options? Maybe something like move to top or high priority.
Last edited by MTRazeR : 03-12-10 at 04:21 AM.
MTRazeR is offline Report comment to moderator  
Reply With Quote
Unread 03-11-10, 03:11 PM  
Xrystal
nUI User and Supporter
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 5048
File comments: 297
Uploads: 25
Version 1.02.00 Changes

Uploaded and awaiting confirmation. Next task is to get it working properly in 3.3.3 before the patch comes out and introduce the font changing routine where possible. If I spot any more bugs along the way I will correct them too

-------------------------------------------------------------------
[Version 1.02.00]
-------------------------------------------------------------------

WatchFrame.lua
-->MaxLineWidth constant needs to match width of container frame if it exists
-->Removed AutoWiden option

SWF_Main.lua
-->Added new Options Frame to Frame List
-->Set Scroll Frame to be low on the strata just like the official WatchFrame
-->Hide Scroll Bar if in Collapsed Mode regardless of ScrollSize setting
-->Refresh WatchListWidth constant when collapsing and expanding
-->Show frame regardless if not autohiding or in infopanel
-->Added OnShow and OnResize Functions/Scripts for non infopanel users
-->Create Slash Command Interface
-->Update the WatchFrame once the InfoPanel has been set up

Interface.lua
-->New File to handle common interface tasks
SWF_SlashCommands.lua
-->Access new Interface options
-->When you show the Options Interface refresh with current data
-->Create the Slash Command Interface
-->Access to Options Interface added to slash command list
-->Dock and Reset options separated for sharability with Interface options
-->Added AutoHide feature to slash commands
-->Correctly display lock status when seeing current settings

SWF_SavedVars.lua
-->Added AutoHide Option to Saved Variables
ScrollFrame.lua
-->Refresh the ScrollSize when resizing as well
-->Handle OnResize Event for the frame
-->Added Script to monitor size changing to resize sub components



Constants that can be changed in WatchFrame.lua file
WATCHFRAME_MAXQUESTS = 50 - instead of default of 10
WATCHFRAME_CRITERIA_PER_ACHIEVEMENT = 50 - instead of default of 5

Slash Commands added to SWF_SlashCommands.lua file
/swf options - to show options frame
/swf autohide - to toggle the autohide feature
__________________
Last edited by Xrystal : 03-12-10 at 07:47 PM.
Xrystal is offline Report comment to moderator  
Reply With Quote
Unread 03-09-10, 05:52 PM  
Xrystal
nUI User and Supporter
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 5048
File comments: 297
Uploads: 25
Okay, almost finished the slash command interface. After some tweaking back and forth I ended up doing the following:

The Accept/Cancel option had to go out the window as it affects the toggle to the infopanel.

The MaxQuestWatchCount and MaxCriteriaPerAchievementCount ( or however they are called rofl ) are left as hard coded values. This is due to the Max Quest Watch value ignoring in game changes and the fact that 50 criteria per achievement should suit most if not all users. If, however, you do wish for these two values to be changed, you can change the watchframe.lua file ( in this addon ). The two lines in question are near the top of the file.

The AutoWiden Option I realised I had never actually used as a flag and seeing as this visual shows you if the frame is too narrow or not as you size it with it kept switched on ( as default ) then I will leave it that way.

What we do have though are 3 slider bars to handle the width/height and scroll height values. And 4 check boxes to toggle the multiple anchor system, locking the frame in place, auto hiding the frame if nothing is being tracked and showing the background. Only the scroll height and background toggle will work with the infopanel system just like with the slash commands.

Hopefully over the next few days I will finalise this version and post it up and then start work on the changes needed to work with 3.3.3.
__________________
Xrystal is offline Report comment to moderator  
Reply With Quote
Unread 03-08-10, 11:47 AM  
Xrystal
nUI User and Supporter
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 5048
File comments: 297
Uploads: 25
Well, whilst working on the Options Interface I have now found that the MaxQuests display option cannot be overridden once the watchframe has been displayed. So we are set to these limitations until something is found that allows us to use them:

MaxAchievements - Cannot be overridden at all as it still validates against 10 achievements regardless of value. Could be a bug so who knows.
MaxQuests - Can be overridden within an addon before the WatchFrame is created. But cannot be programmatically adjusted once it has been applied to a WatchFrame.
MaxCriteria - This seems to work at run time but without the other 2 it kind of defeats the object. So I will leave it as a tweakable value in the WatchFrame.lua file along with the MaxQuests one.

The rest seem to be working well so far but primary testing today was for those items so will test the others later. I have, however, started incorporating an Accept and Cancel button option so that it restores the last stored values ( on Options Interface Frame Shown ) before closing the window.

As I grow to near completion of this addition to the addon I will incorporate the code to make the addon work within 3.3.3 setup for those that are testing the test server changes or by the time they hit live.
__________________
Xrystal is offline Report comment to moderator  
Reply With Quote
Unread 02-25-10, 03:16 PM  
Xrystal
nUI User and Supporter
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 5048
File comments: 297
Uploads: 25
Now that I have finally got onto the test server I immediately tested to see if the minimal changes they introduced killed this addon. yep, it pretty much did. If you have nUI and were using it in the infopanel then you're only missing a bit of the new functionality so will be able to get by if I don't manage to resolve the problem before it goes live.

http://www.wowinterface.com/forums/s...839#post179839 is where I have been posting screenshots so take a look there.
__________________
Xrystal is offline Report comment to moderator  
Reply With Quote
Unread 02-24-10, 04:20 PM  
Xrystal
nUI User and Supporter
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 5048
File comments: 297
Uploads: 25
With Nightmares help the following can be changed to make the hierarchy work the same way as the original blizzard frame hierarchy. For those that need the change now here is what you need to do:

File : ScrollFrame.lua
Line : 228

Change that line so that it shows this
c:SetFrameStrata("LOW");
instead of
c:SetFrameStrata("HIGH");

I will add the change when I implement the options UI.

Edit ( 9th Mar 10) : Whilst working on the interface for the slash commands I found out that this strata is not good for the InfoPanel users so only non InfoPanel users should use that. Not that InfoPanel users would need to but oh well. I will incorporate a more generic change to reflect both users in version 1.02.00.
__________________
Last edited by Xrystal : 03-09-10 at 05:39 PM.
Xrystal is offline Report comment to moderator  
Reply With Quote
Unread 02-23-10, 12:20 PM  
Nightmare_Lord
A Cliff Giant
 
Nightmare_Lord's Avatar

Forum posts: 70
File comments: 29
Uploads: 0
kk thanks, if the scroll bars has to be there that fine the big problem is it staying over ever window instead of going behind when i open one that would open over that spot.

Originally posted by Xrystal
Thanks for those insights Nightmare. I also posted in the other post we were talking in but here goes.

The scroll bar on the side is needed to allow the scrolling to work. I can't remember if I added tests to remove the scroll bar if it isn't needed so will look into that. Also, if hiding the scroll bar doesn't stop the scrolling to work I will add the option to hide the scroll bar if users wish it.

I'll also look into changing the frame hierarchy so that it is more in the background. I have never really used anything other than dialog hierarchy before so it may take me awhile to work out the different layers and pick the right one.
Nightmare_Lord is offline Report comment to moderator  
Reply With Quote
Unread 02-23-10, 05:25 AM  
Xrystal
nUI User and Supporter
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 5048
File comments: 297
Uploads: 25
Thanks for those insights Nightmare. I also posted in the other post we were talking in but here goes.

The scroll bar on the side is needed to allow the scrolling to work. I can't remember if I added tests to remove the scroll bar if it isn't needed so will look into that. Also, if hiding the scroll bar doesn't stop the scrolling to work I will add the option to hide the scroll bar if users wish it.

I'll also look into changing the frame hierarchy so that it is more in the background. I have never really used anything other than dialog hierarchy before so it may take me awhile to work out the different layers and pick the right one.
__________________
Xrystal is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: