Addon Information
Works with 3.2
Download Latest Version.
To add favorites please register for a free account. If you already have one you need to login. How do I install this? (FAQ)
Author:
Version:
1.03.01
Date:
10-02-2009 04:19 PM
Size:
11.35 Kb
Downloads:
2,684
Favorites:
57
MD5:
Pictures
Click to enlarge
Showing Countdown Timer
Click to enlarge
Showing tooltip information
Click to enlarge
Showing Restocking Facility in use
Click to enlarge
Showing Warning System in Use
nUI : InfoPanel [MagePorts]
This is a standalone plugin for nUI that allows a mage access to their portal and teleport spells in an info panel slot ( uses slot 18 ). Please note that you need nUI to use this addon.

Localization:
Currently localized in enUS and enGB localization files with flexibility to add others when available. Feel free to upload a localization file for your locale and I will include it in a later update.

Features:
Reagent Restocking Facility inspired from Cryolysis 3 to keep MaxStock as per set value (unless changed by user).
On screen display of current reagent stock at hand.
Please note that by reagents I mean the Portal and Teleport Runes you use for the spells in question. Although from 1.03.00 you will be able to add other reagents by editing the lua file.
Layout inspired from PortalBox.
Warning Message appears when using a teleport spell while in a party or raid and when using a portal spell while not.
Recognises Class and doesn't activate the plugin if you are not a Mage.
Checks and makes available any portals and teleports as you learn ( untested at present ).
Displays level and quest information so you know how you can learn or had learned it.
Updates Frame once every 30 seconds ( unless changed by the user ).
Forces Update of Frame whenever a new spell is learned ( in case it is a portal spell ), when a portal or teleport spell is used, and when the reagent vendor is used.
Fades display of buttons when unable to use it or as a suggestion not to use it ( IE. Portal while Solo ).

Customizable through slash commands from 1.02.00 version. Please see changelog for details.

Using with similar addons:
If Cryolysis 3 is also installed for its usefulness beyond portal/teleport spells the reagent vendor will use its restocking facility instead of this one.
I deliberately used the same PopUpDialog so that only one appears when shopping at a reagent vendor.
  Change Log - nUI : InfoPanel [MagePorts]
1.03.01 - Restocking Testing Bug Fix
===========================
Validate Level rules before testing restocking of reagents.

1.03.00 - New Feature Added
======================
Added ReagentDB to aid in customization for those that would like to restock other reagents.
Add something similar to the following for each reagent you want to add to your restock list.
table.insert(ReagentDB, { item = 17020, max = MagePorts_Defaults.MaxRestockQty * 10, level = 50 } );
This example is for Arcane Dust. item is the itemID from wowhead, max is the max to keep in stock and the level is the minimum level you want to purchase the reagent at.

1.02.03 - TOC Change
==================
Changed TOC to reflect 3.2 compatibility.

1.02.02 - Bug Fix for Brand New Mages
=============================
Validated Rune of Portal and Rune of Teleport knowledge just in case they are unknown as seems to be the case in some instances. I have personally not had this problem and cannot replicate it but this should hopefully fix the problem.

1.02.01 - New Slash Command added
============================
/mp notext will toggle the display of text in the portal/teleport area for those that do not wish to have it. It defaults to displaying it.

1.02.00 - Slash Commands and Resolution Changes
======================================
Due to problems with multiple resolutions I have implemented, with the help of Spiel2001, an autosizing setup that will resize and position the buttons based on the size of the infopanel frame.
I have also set it flexible enough to handle extra portals and teleport spells that get added to the database in MagePorts.lua.
I also set up a slash command system /mp and /mageports to allow changes to some other aspects of display as follows:
And finally, cooldown count has been removed from tooltip as the cooldown display is enough and updates more often than tooltip.

command qty ( minimum, maximum, default )

restock x ( x >= 0 , x <= 100, 10 ) - Set Restock Max Qty Limit
autoupdate x ( x >= 0 , x <= 60 , 30 ) - Set Auto Update Interval
fontsize x ( x >= 8 , x <= 20 , 14 ) - Set Cooldown Counter Font Size
alpha-na x ( x >= 0.0 , x <= 1.0, 0.1 ) - Set Not Available ( unlearned/no reagents ) alpha
alpha-ni x ( x >= 0.0 , x <= 1.0, 0.5 ) - Set Not Ideal ( group/solo ) alpha
alpha-ia x ( x >= 0.0 , x <= 1.0, 1.0 ) - Set Is Available alpha


1.01.02 - Another Buff Fix
===================
When using a cast like ability such as calling a mount it would try to validate the spell for the warning system. Disabled this by aborting the test if no spell id exists to be later tested for portal or teleport spells.

1.01.01 - Minor Bug Fixes
===================
Low level mages trying to cast portals and teleports before they are known set up a cooldown that should not be active.
Also, buying from reagent vendors should not try to restock runes if you are unable to use them yet.
And finally, tooltip was prioritising cooldown over reagent missing test.
  Optional Files - nUI : InfoPanel [MagePorts]
Sorry, there are currently no optional files available.
  Archived Versions - nUI : InfoPanel [MagePorts]
File Name
Version
Size
Author
Date
1.03.00
11kB
Xrystal
09-03-2009 12:04 PM
1.02.03
11kB
Xrystal
08-06-2009 11:59 AM
1.02.02
11kB
Xrystal
06-29-2009 06:19 PM
1.02.01
11kB
Xrystal
06-27-2009 10:34 AM
1.02.00
11kB
Xrystal
06-25-2009 01:27 PM
1.01.02
8kB
Xrystal
06-24-2009 06:08 PM
1.01.01
8kB
Xrystal
06-23-2009 04:12 PM
1.01.00
8kB
Xrystal
06-23-2009 12:17 PM
  Comments - nUI : InfoPanel [MagePorts]
Post A Reply Comment Options
Old 09-04-2009, 10:27 AM  
alverian
A Deviate Faerie Dragon
 
alverian's Avatar

Forum posts: 19
File comments: 2
Uploads: 0
If anyone is having issues adding something to the list to restock with this add-on here is the change I made to allow it to restock Arcane Powder.

local function MagePorts_InitReagentDB()
ReagentDB = {};
table.insert(ReagentDB, { item = 17031, max = MagePorts_Defaults.MaxRestockQty, level = 20 } ); -- Teleport Runes
table.insert(ReagentDB, { item = 17032, max = MagePorts_Defaults.MaxRestockQty, level = 35 } ); -- Portal Runes
table.insert(ReagentDB, { item = 17020, max = MagePorts_Defaults.MaxRestockQty, level = 56 } ); -- Arcane Powder
end

All I did was add this code line under the Portal Runes line.

table.insert(ReagentDB, { item = 17020, max = MagePorts_Defaults.MaxRestockQty, level = 56 } ); -- Arcane Powder

I have my restock level set to 20 so each time I restock it will add 20 of each.

Last edited by alverian : 09-04-2009 at 11:01 AM.
alverian is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 09-03-2009, 12:28 PM  
Xrystal
nUI User and Supporter
 
Xrystal's Avatar
Premium Member
Interface Author - Click to view interfaces

Forum posts: 1535
File comments: 84
Uploads: 12
Oops, forgot I was gonna add those changes into the next version .. *slaps head* .. I'll try to remember for the next change.
__________________
Have too many addons ? Try nUI and see if that helps relieve the situation.
Xrystal is online now Report comment to moderator   Edit/Delete Message Reply With Quote
Old 08-06-2009, 04:23 PM  
Xrystal
nUI User and Supporter
 
Xrystal's Avatar
Premium Member
Interface Author - Click to view interfaces

Forum posts: 1535
File comments: 84
Uploads: 12
Okay, thanks for that. When I next make a change to the addon I'll include your changes if I can test the resolution being used otherwise I will make a version of the file for your resolution.
__________________
Have too many addons ? Try nUI and see if that helps relieve the situation.
Xrystal is online now Report comment to moderator   Edit/Delete Message Reply With Quote
Old 08-06-2009, 02:53 PM  
Laquin
A Murloc Raider

Forum posts: 6
File comments: 2
Uploads: 0
I was stilling having problems with my positioning, so this is the point I thank God I took some programming classes and actually still remember it considering how long its been. Ok, I solved the Portals section of the addon by raising the words up. However, when I tried to raise the Teleport words by anything more than 2, it would cause them to disappear. So I guessed that the two sections had "margins" that if crossed would cause things to disappear. So I located the section of code that dropped the entire section down and dropped it down by 1, which placed the buttons near the bottom of the InfoPanel area. I was then able to raise the "top margin" of the Teleport section and got it fit all of it. Posted below is the sections of code I messed with and what my current screenshot looks like.

This was where I dropped the Teleport section by one:
Code:
local verticalOffsetPortal = height / 5;
local verticalOffsetTeleport = height / 3;

Here is where I adjusted the "Portal/Teleport" Titles as well as the regeant counts:
Code:
MagePortsFrame.PortalTitle:SetPoint( "BOTTOMLEFT", MagePorts.PortalButtons[1], "TOPLEFT", -btnGap, 8);
MagePortsFrame.PortalCount:SetPoint( "BOTTOMRIGHT", MagePorts.PortalButtons[cellCount], "TOPRIGHT", -btnGap, 8);	
MagePortsFrame.TeleportTitle:SetPoint( "BOTTOMLEFT", MagePorts.TeleportButtons[1], "TOPLEFT", -btnGap, 7);	
MagePortsFrame.TeleportCount:SetPoint( "BOTTOMRIGHT", MagePorts.TeleportButtons[cellCount], "TOPRIGHT", -btnGap, 7);

And here is my current SS:

Last edited by Laquin : 08-06-2009 at 03:30 PM.
Laquin is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 08-06-2009, 11:25 AM  
Xrystal
nUI User and Supporter
 
Xrystal's Avatar
Premium Member
Interface Author - Click to view interfaces

Forum posts: 1535
File comments: 84
Uploads: 12
Hmm, well I just tried it out with multiple resolutions and didn't get any problems. The positioning of the text is such that it should always appear above the buttons and in my case they always did.

I haven't got access to your specific resolution to see whether that specific resolution is the problem. perhaps there are other ones you can test and see if you get similar problems.

I tried 1280 x 1024, 1280 x 768, 1280 x 960 resolutions and others in between with no problems. Unfortunately I don't have access to 1366 options.

What you can do though is see if you can find a setting that works for you by altering the following:

Code:
MagePortsFrame.PortalTitle:SetPoint( "BOTTOMLEFT",MagePorts.PortalButtons[1], "TOPLEFT", -btnGap, 0);

MagePortsFrame.PortalCount:SetPoint("BOTTOMRIGHT",MagePorts.PortalButtons[cellCount], "TOPRIGHT", -btnGap, 0);	

MagePortsFrame.TeleportTitle:SetPoint("BOTTOMLEFT",MagePorts.TeleportButtons[1], "TOPLEFT", -btnGap, 0);

MagePortsFrame.TeleportCount:SetPoint("BOTTOMRIGHT",MagePorts.TeleportButtons[cellCount], "TOPRIGHT", -btnGap, 0);
The last number is the position up or down relative to the button it is above.

In your case you need to test different variants of a negative number to push the line up higher for your resolution. Let me know which one works for you and I will see if I can incorporate it in.
__________________
Have too many addons ? Try nUI and see if that helps relieve the situation.

Last edited by Xrystal : 08-06-2009 at 11:37 AM.
Xrystal is online now Report comment to moderator   Edit/Delete Message Reply With Quote
Old 08-05-2009, 09:24 PM  
Xrystal
nUI User and Supporter
 
Xrystal's Avatar
Premium Member
Interface Author - Click to view interfaces

Forum posts: 1535
File comments: 84
Uploads: 12
Ah, its not a resolution problem as such as the buttons are repositioned and resized to fit your resolution. However, there is a limitation with the text lines which hasn't moved.

I need to start going through and updating the version for 3.2 so will see if I can get the text lines to realign based on the buttons properly. But probably won't get finished until tomorrow.
__________________
Have too many addons ? Try nUI and see if that helps relieve the situation.

Last edited by Xrystal : 08-05-2009 at 09:31 PM.
Xrystal is online now Report comment to moderator   Edit/Delete Message Reply With Quote
Old 08-05-2009, 09:16 PM  
Laquin
A Murloc Raider

Forum posts: 6
File comments: 2
Uploads: 0
Possible Resolution Problem

Hey Xrystal,

Having a problem with the display of my teleports as shown below. My game res and screen res are both 1366x768. Any way you can help?

Laquin is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 07-02-2009, 06:27 PM  
metalspawned
A Defias Bandit

Forum posts: 2
File comments: 6
Uploads: 0
That totally makes sense. My bad for the mix-up, and thanks for a nice addition for nUI! :-)
metalspawned is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 07-02-2009, 12:02 AM  
Xrystal
nUI User and Supporter
 
Xrystal's Avatar
Premium Member
Interface Author - Click to view interfaces

Forum posts: 1535
File comments: 84
Uploads: 12
This addon is designed for portal and teleportal use so it doesn't restock arcane powders only portal and teleportal runes. I am sorry if that was misunderstood. Where the arcane powders are used for making food I never included it as this isn't a mage addon just a mage ports addon. Sorry.

The way it works is that you use /mp restock 10 to set the maximum count of Rune of Portals and Rune of Teleports in your inventory.

Then, when you go to a reagent vendor it will ask you if you wish to restock. Clicking yes will stock just the runes up to the maximum you asked for.
__________________
Have too many addons ? Try nUI and see if that helps relieve the situation.

Last edited by Xrystal : 07-02-2009 at 12:03 AM.
Xrystal is online now Report comment to moderator   Edit/Delete Message Reply With Quote
Old 07-01-2009, 09:06 PM  
metalspawned
A Defias Bandit

Forum posts: 2
File comments: 6
Uploads: 0
Sorry to pester, but how exactly does that work? If I were to type "/mp restock 100," would I get 100 of everything? I don't want 100 Runes of Teleportation or Runes of Portals, but I do want 100 Arcane Powders.

Thanks :-)
metalspawned is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 07-01-2009, 10:27 AM  
Xrystal
nUI User and Supporter
 
Xrystal's Avatar
Premium Member
Interface Author - Click to view interfaces

Forum posts: 1535
File comments: 84
Uploads: 12
rofl /mp restock x with x being the maximum number of items you want to carry in your bags at any time

I apologise for the delay .. I am sure I checked here after you posted but I guess not.
__________________
Have too many addons ? Try nUI and see if that helps relieve the situation.

Last edited by Xrystal : 07-01-2009 at 10:27 AM.
Xrystal is online now Report comment to moderator   Edit/Delete Message Reply With Quote
Old 06-30-2009, 09:25 PM  
metalspawned
A Defias Bandit

Forum posts: 2
File comments: 6
Uploads: 0
*cough* How do I set the default amount for auto-stocking reagents?

>.>
<.<

*blush*
metalspawned is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 06-25-2009, 12:42 AM  
Xrystal
nUI User and Supporter
 
Xrystal's Avatar
Premium Member
Interface Author - Click to view interfaces

Forum posts: 1535
File comments: 84
Uploads: 12
Thanks Waldo. I mentioned this on the nUI forums on the thread I started when I was coding this. I hadn't as of yet introduced a scaling system to fix it for resolutions. My mistake and apologies.

I will be working on it tomorrow and see if I can introduce something similar to the way nUI works so that it fits regardless of panel size.
__________________
Have too many addons ? Try nUI and see if that helps relieve the situation.
Xrystal is online now Report comment to moderator   Edit/Delete Message Reply With Quote
Old 06-24-2009, 08:25 PM  
whereswaldo
A Cyclonian
 
whereswaldo's Avatar

Forum posts: 47
File comments: 8
Uploads: 0
Not scaling properly

I am having a problem with this addon not scaling properly to fit in the infopanel window (see screenshot). Any ideas?

whereswaldo is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 06-24-2009, 06:05 PM  
Xrystal
nUI User and Supporter
 
Xrystal's Avatar
Premium Member
Interface Author - Click to view interfaces

Forum posts: 1535
File comments: 84
Uploads: 12
I just had that myself. Fundamental rule of testing failed .. test what happens when you do something the addon shouldn't be dealing with It happens when you try to mount up for one thing and perhaps other cast like abilities that don't result in a spell id of any sort.

Made the change so that it bails out of the spell checking if it comes across something it doesn't expect instead of kicking out an error. Seems to work fine now and uploading change right this minute.

I apologise for not seeing this earlier myself and replying earlier. Always the same .. I check here hourly and nothing .. forget to check 1 hour and miss a message - rofl.

Anyway, glad you're liking both nUI and the plugin features.
__________________
Have too many addons ? Try nUI and see if that helps relieve the situation.

Last edited by Xrystal : 06-24-2009 at 06:09 PM.
Xrystal is online now Report comment to moderator   Edit/Delete Message Reply With Quote
Post A Reply



Category Jump:




The Network:
EQInterface | EQ2Interface | LoTROInterface | MMOInterface | War.MMOUI | WoWInterface | VGInterface | Allakhazam | Thottbot | Wowhead | Zam


©2009 MMOUI / ZAM Network
vBulletin - Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.