WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   nUI: Plugin Support (https://www.wowinterface.com/forums/forumdisplay.php?f=94)
-   -   Mage Portal / Teleport Plugin Coming Soon ... (https://www.wowinterface.com/forums/showthread.php?t=24895)

Xrystal 06-20-09 05:20 PM

Mage Portal / Teleport Plugin Coming Soon ...
 
Rofl .. My first secure action buttons and an nUI plugin gets first chance at benefitting from it.

I've almost finished it but instead of the usual lets grab an addon and reparent and position it in an infopanel I went one step further and actually coded the addon as part for the infopanel framework.

Where it would usually check for the addon being loaded and running I actually create the frame and its functionality. The infopanel part of the code then repositions it as normal.

It's looking fine so far but not quite finished. I had a glitch with getting the buttons appearing but sorted that problem out with the help of Alestore (sp?) on the UI Official Forums.

I decided to do this as I have been using cryolosis 3 and they haven't made any changes to it in a long while and sometimes it decides to not work for some reason I have yet to fathom. So I thought , aha .. lets make an nUI plugin, so I don't got fumbling around my spell book when I need to port or teleport someone at the same time it decides to not work. Rofl, of course while testing it today cryo worked fine .. think it is getting scared .. rofl.

I did check similar addons but their frames were too big to fit in the infopanel so I thought I would just make one from scratch :D So you should see this ready for download sometime next week once I have finished off the functionality and tidied up the code.

spiritwulf 06-20-09 06:37 PM

Very nice Xrystal. I'm wondering however how inteligent youve made it or how far you are willing to go on it. Now i know there are several other versions of cryo out there for other classes such as locks and i think i remember seeing them for other classes as well like pallies and maybe priests. It dosnt seem that far of a stretch to consider that it could be adapted to be inteligent and recognize what class was using it and configure itself based off of a profile to work for any class that could possibly make use of it. Of course im basing this off of an image i have in my head and maybe dreaming of something that would more properly be considered a possible future feature of nUI rather than belonging to a plugin but a guy can dream cant he?

Xrystal 06-20-09 06:58 PM

Rofl. of course he can :D

At the moment it literally is just what it says portal and teleport buttons hidden away in an info panel until such a time as they're needed. The only intelligent thing about it is keeping the small database up to date with the spell IDs and whether it is horde or alliance based and display it related to that. I used PortalBox as inspiration but it was way too big to be anchored to the info panel frame.

I like to work my way up there 1 step at a time, but if you look at my Loot Alerter addon you can see I started small and added to it as I learnt something new that would help it grow.

And yeah, I've been using cryolosis for a while and even for those classes that aren't covered yet the 3 custom buttons have been useful as well as the mount button. But the last update there was way back in December and as far as I know Mage and Priests are pretty much the best covered in that addon which has been useful as they are my 2 best geared toons. At the moment that is :D

Rofl, with 5 70+ pretty active toons I'm sure it will come to a point where I will try to get one addon working for all of them :D Of course it helps that they are pretty much all casters.

Depresjon 06-20-09 08:57 PM

* Cryolysis (Mage)
* HolyHope (Paladin)
* Necrosis (Warlock)
* Sabella (Rogue)
* Serenity (Priest)
* Totemus (Shaman)
* Venantes (Hunter)

Are there other classes that have an addon like this?

edit : Henge is a spherelike mod for all classes it says,but is out of date it seems
Lunarsphere seems oke too

Xrystal 06-21-09 12:02 AM

Yeah I tried Lunarsphere but it was way too much stuff there for my liking but I am sure alot of people would like it.

Cryo I have used for years which is why I stumbled when it stopped working suddenly when someone wanted a port - rofl .. had to hunt it down in my spell book :))

Depresjon 06-21-09 12:05 AM

i tried lunarsphere this morning and have to agree with you,might try cry3 on my mage.

Xrystal 06-21-09 01:40 PM

2 Attachment(s)
Okay, the layout is done. Just need to work on the alpha level for unknown spells and figure out how to get the tooltips working.

Here's a couple of images to show you what it looks like.

The first should be of my level 80 mage and the second my level 11 mage that I use for testing addons :D

spiel2001 06-21-09 03:23 PM

That's really very nicely done... thanks.

Petrah 06-22-09 08:26 AM

Wow Xrystal, those look pretty darn nice. If I had a mage, I would use it!!

havoxx 06-22-09 08:45 AM

Ohhhh ohhh ME!!! ME!!!!! :D, I want!, very nice addon, I have one that gives you a raidwarning if you port in a team :D, tells ya that you are leaving people behind lol.

Xrystal 06-22-09 09:18 AM

Quote:

Originally Posted by havoxx (Post 144200)
Ohhhh ohhh ME!!! ME!!!!! :D, I want!, very nice addon, I have one that gives you a raidwarning if you port in a team :D, tells ya that you are leaving people behind lol.

Ah .. cool idea that .. quite a few times Ive teleported by mistake instead of porting. Will add it promptly :D

Have the alpha level sorted and figured out the tooltip thanks to a post elsewhere here that Scott posted in reply to another posters query.

Currently working on a cooldown feature which is almost there. And could probably add the reagent restocking option that cryo has just for the portal and teleport runes.

I've added the ability to update the buttons when you learn a new spell just in case it is one that it uses but I don't have a mage close enough to fully test it on but it definitely executes the function on learning a new spell and the update routine works in other situations so the two together should work fine.

Depresjon 06-22-09 09:53 AM

wow,looks sooo nice.
I Will lvl my mage thanks to this addon :p

havoxx 06-22-09 12:17 PM

Quote:

Originally Posted by Xrystal (Post 144206)
Ah .. cool idea that .. quite a few times Ive teleported by mistake instead of porting. Will add it promptly :D

Have the alpha level sorted and figured out the tooltip thanks to a post elsewhere here that Scott posted in reply to another posters query.

Currently working on a cooldown feature which is almost there. And could probably add the reagent restocking option that cryo has just for the portal and teleport runes.

I've added the ability to update the buttons when you learn a new spell just in case it is one that it uses but I don't have a mage close enough to fully test it on but it definitely executes the function on learning a new spell and the update routine works in other situations so the two together should work fine.


Is it possible to have a class check on it? Like the totem bar addons that won't load if you aren't on a shaman?

Believe it's this part of the code(taken from Call Of Elements)
Code:

--[[ ----------------------------------------------------------------
    METHOD: COE:Init
   
    PURPOSE: Loads submodules and initializes data
-------------------------------------------------------------------]]
function COE:Init(self)
    COE:Message( "Call of Elements v" .. COE_VERSION );
   
    -- load only for shamans
    -- ----------------------
    local _, EnglishClass = UnitClass( "player" );
    if( EnglishClass ~= "SHAMAN" ) then
        COE:Message( COESTR_NOTASHAMAN );
        COE.Initialized = false;
    else
        COE.Initialized = true;

        self:RegisterEvent( "VARIABLES_LOADED" );
   
        -- register shell command
        -- -----------------------
        SlashCmdList["COE"] = COEProcessShellCommand;
        SLASH_COE1="/coe";
       
    end

end


Xrystal 06-22-09 02:25 PM

Yeah, I was planning to do a class check on this and unload the addon if it is the wrong class. I think I saw and unloadAddon function somewhere.

Quote:

Originally Posted by havoxx (Post 144235)
Is it possible to have a class check on it? Like the totem bar addons that won't load if you aren't on a shaman?

Believe it's this part of the code(taken from Call Of Elements)
Code:

--[[ ----------------------------------------------------------------
    METHOD: COE:Init
   
    PURPOSE: Loads submodules and initializes data
-------------------------------------------------------------------]]
function COE:Init(self)
    COE:Message( "Call of Elements v" .. COE_VERSION );
   
    -- load only for shamans
    -- ----------------------
    local _, EnglishClass = UnitClass( "player" );
    if( EnglishClass ~= "SHAMAN" ) then
        COE:Message( COESTR_NOTASHAMAN );
        COE.Initialized = false;
    else
        COE.Initialized = true;

        self:RegisterEvent( "VARIABLES_LOADED" );
   
        -- register shell command
        -- -----------------------
        SlashCmdList["COE"] = COEProcessShellCommand;
        SLASH_COE1="/coe";
       
    end

end



Xrystal 06-22-09 10:20 PM

Well the class check seems to work. But didn't get much chance to test anything else out as I spent hours repatching after a corrupted wow file cause a rollback to 3.0.1 version - rofl.

Xrystal 06-23-09 10:08 AM

Okay, I think the initial is all ready .. a quick look through the events/spell/character functions to see if anything useful appears before posting it ... nope .. nothing else there .. you will soon find it available for download :D

Depresjon 06-23-09 09:37 PM

Quote:

Originally Posted by Xrystal (Post 144346)
Okay, I think the initial is all ready .. a quick look through the events/spell/character functions to see if anything useful appears before posting it ... nope .. nothing else there .. you will soon find it available for download :D

Sweet cherrypie :D
gief gief gief :D
:p
I'll be one of those that will use this :)

Randlore 06-24-09 04:06 PM

hello guys

if it is pos how do i get this plugin to work on my laptop

i am runin the game in 1024*768 but the icons do not show up right

is they anything i can do to make then resize them to make that sshow up right plz

Xrystal 06-24-09 04:17 PM

Hi Randlore, in case you haven't seen it yet I have just uploaded the fix to the bug you spotted about the same time I did . rofl.

Anyway, if you want to try testing different sizes for the icons try adjusting these values in the mageports.lua file.

Button:SetWidth(36);
Button:SetHeight(36);

Each time you change it though you will need to do a /rl to get the latest codefile incorporated. If a different number helps your set up let me know and I will shift it up higher in the file to where the other customizable values are. I am trying to avoid a config set up to minimize code but may incorporate slash commands to change those values while in game in a later version.

Also, at the moment I haven't got it resizing buttons based on resolution like Scott does with the nUI base code but if needed I will look into that aspect too.

Randlore 06-24-09 04:19 PM

Quote:

Originally Posted by Xrystal (Post 144555)
Hi Randlore, in case you haven't seen it yet I have just uploaded the fix to the bug you spotted about the same time I did . rofl.

Anyway, if you want to try testing different sizes for the icons try adjusting these values in the mageports.lua file.

Button:SetWidth(36);
Button:SetHeight(36);

Each time you change it though you will need to do a /rl to get the latest codefile incorporated. If a different number helps your set up let me know and I will shift it up higher in the file to where the other customizable values are. I am trying to avoid a config set up to minimize code but may incorporate slash commands to change those values while in game in a later version.

Also, at the moment I haven't got it resizing buttons based on resolution like Scott does with the nUI base code but if needed I will look into that aspect too.

did not want to mess with a good programe just wood like it to work on a screen runig at 1024*768

ty for the info will go now and download the update ones more ty for the help

here is what i am geting plz find pic

[IMG][/IMG]


All times are GMT -6. The time now is 11:46 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI