|
05-25-2012, 01:26 AM
|
|
The Undying
Forum posts: 51
File comments: 44
Uploads: 15
|
Hmm. Thanks for checking that out.
A quick check indicates that obvious bits of my code that would break that aren't. I'll play around with it and see what I can find.
Edit: Okay, seeing the same thing. Now I just need to get an alt on another account to level 20 or so, so I can check out whether it's broken inside instances as well.
Last edited by moebius92 : 05-26-2012 at 11:38 PM.
|
|
|
07-01-2012, 01:46 AM
|
|
The Wary
Forum posts: 0
File comments: 3
Uploads: 0
|
Try sticking the following code in moebius92/ColorBar/Colorbar.lua, just before line 6.
Code:
for k, v in pairs(_G) do
Turbine.Shell.WriteLine(k);
end
And then post what it prints out.
Theoretically the class function should be in Turbine/Class.lua, which gets added by the import "Turbine"; line, but it's probably worth checking to make sure it shows up in the global environment.
The other thing - make sure Turbine/__init__.lua exists, and that it has the line: import "Turbine.Class";
Okay. So I did what you asked.
And here are the results from my in-game chat box after adding the script and reloading the plugin:
Screenshot
Please tell me or insert links of what I have to do to make it work
Thanks!
|
|
|
11-28-2012, 05:00 AM
|
|
The Indomitable
Forum posts: 12
File comments: 18
Uploads: 5
|
Information typing error
Hallo,
in file "StringResources.lua" is a typing error in line 344.
There is
elseif l == Turbine.L enguage.German then
correct is
elseif l == Turbine.L anguage.German then
Then the German client also works
|
|
|
11-30-2012, 08:20 PM
|
|
The Undying
Forum posts: 51
File comments: 44
Uploads: 15
|
*facepalm*
Thanks! Fixed.
|
|
|
12-29-2012, 02:29 PM
|
|
The Wary
Forum posts: 0
File comments: 4
Uploads: 0
|
I love the way this looks, the only major issue I have is the 5second delay, if there is some way to get rid of that, then I would have no reason to not use this.
|
|
|
01-01-2013, 02:50 AM
|
|
The Undying
Forum posts: 51
File comments: 44
Uploads: 15
|
Sorry, which five second delay?
If you're talking about the spike damage tracking, go to /pf options, click on the "Morale" button, and then change the seconds field at the top. Setting it to 0 should disable it.
|
|
|
01-08-2013, 11:31 PM
|
|
The Wary
Forum posts: 0
File comments: 3
Uploads: 0
|
Adjustments
Everything solved, name adjustments were much easier once I really dug into the code. If anyone wants to see what I have done here is a video
http://www.youtube.com/watch?v=jI1nwmZCRuk
If you want the code shoot me a pm.
This addon is just almost what I wanted so I have been making adjustments to the lua but I need some help with the rest of the items on my checklist
I've made it so the morale bars in grid mode change based on current HP (IE 75-99 Green, 35-74 Yellow, etc) But when at 100% I want the class color back and I have not figured out how to set that from where I modified the current bar color
I added this code into function PMCMoraleNG:SetMorale the bars change just fine but once the party member gets back to 100% its still green
Code:
local per = (cur / max) * 100;
if per > 99 then
--100% HP Set Back to Class Color
else
--Health less then 100 show color fade: Green -> Red
if per >= 75 then
self:SetBarColor(1, Turbine.UI.Color(1.0, 0.0, 1.0, 0.0)); --Green
elseif per <= 74 and per >= 69 then
self:SetBarColor(1, Turbine.UI.Color(1.0, 0.5, 1.0, 0.0));
elseif per <= 68 and per >= 63 then
self:SetBarColor(1, Turbine.UI.Color(1.0, 0.7, 1.0, 0.0));
elseif per <= 62 and per >= 50 then
self:SetBarColor(1, Turbine.UI.Color(1.0, 1.0, 1.0, 0.0)); --Yellow
elseif per <= 49 and per >= 43 then
self:SetBarColor(1, Turbine.UI.Color(1.0, 1.0, 0.7, 0.0));
elseif per <= 49 and per >= 36 then
self:SetBarColor(1, Turbine.UI.Color(1.0, 1.0, 0.5, 0.0));
elseif per <= 35 then
self:SetBarColor(1, Turbine.UI.Color(1.0, 1.0, 0.0, 0.0)); --Red
end
end
I also wish to add level into the name text IE (85) - Hingle or something like that. all my attempts to do this result in either the addon will not load or nothing changes
Any help on where to look for these would be great.
*Edit* Updated color shifting code for more steps
*Edit 2* Figured out how to get the color back to class color, now on to modifying names
Last edited by syfr : 01-12-2013 at 04:33 PM.
|
|
|
11-06-2013, 06:07 AM
|
|
The Wary
Forum posts: 0
File comments: 1
Uploads: 0
|
Still working?
Is this still working for people?
This seems like the perfect add-on for my needs but unfortunately it will not load into the game without giving an error.
Any plans to update in the near future for the realse of helms deep?
would be a shame not to be able to use this as the new expansion hits for raids
|
|
|
02-02-2015, 10:59 AM
|
|
The Wary
Forum posts: 3
File comments: 20
Uploads: 0
|
Why does the Grid Layout doesnt show up for me in 6 Player Groups? Line works fine
|
|
|
02-04-2015, 01:42 AM
|
|
The Undying
Forum posts: 51
File comments: 44
Uploads: 15
|
...because I didn't actually test Grid mode.
I pretty much wrote Grid mode to test if all the code I'd written to handle new layouts, would actually handle a new layout. So, it doesn't get a lot of testing, because I don't actually use it.
Anyways, should be working now - also updated it to handle the [beorning] and [target] states (so Beornings should now have a brown morale bar to indicate their color, and if you target a player, their Grid should have an orange outline).
Edit: Also, thanks for catching that.
Last edited by moebius92 : 02-04-2015 at 01:46 AM.
|
|
|
02-04-2015, 09:27 PM
|
|
The Wary
Forum posts: 3
File comments: 20
Uploads: 0
|
Thx, now it works
Edith: Could it be possible to have Icons instead of coloured squares on the frame?
Last edited by Imiona : 02-04-2015 at 09:35 PM.
|
|
|
02-05-2015, 03:32 AM
|
|
The Undying
Forum posts: 51
File comments: 44
Uploads: 15
|
I think so - do you mean have effect icons in the corners/sides instead of colored squares?
I'd considered that initially - I was worried that they'd block too much. I'll try adding them in and playing with the size some, to see if there's something that isn't too messy looking.
|
|
|
02-05-2015, 06:21 AM
|
|
The Wary
Forum posts: 3
File comments: 20
Uploads: 0
|
Yes, as a Runekeeper this would help, because this Class has many Hots and after Running a Instance its a little hard to distinguish what hots are Running (at least for me). Also it would look nice^^
|
|
|
02-05-2015, 04:37 PM
|
|
The Undying
Forum posts: 51
File comments: 44
Uploads: 15
|
Okay. I've added a Grid Icon layout which should display what you want.
I'm not entirely happy with how busy everything is and the size of the effect icons on the border - you may want to adjust the dimensions of things - see moebius92/PartyFrame/Layout/GridIcon.lua. At the top, there'll be four local variables defined ("size", "ssize", "height", and "width") - you can adjust those to change the size of, well, most things.
|
|
|
02-05-2015, 06:24 PM
|
|
The Wary
Forum posts: 3
File comments: 20
Uploads: 0
|
Thank you so much, thats how i wanted it to be *cheer*
Edith: Just one little thing, how do i put the Names at the Bottom Center of the Frame, i tried it with
self:SetTextAlignment(Turbine.UI.ContentAlignment. Bottom);
in the PartyFrame Layout.Ini but that didnt work
Last edited by Imiona : 02-05-2015 at 06:30 PM.
|
|
|
All times are GMT -5. The time now is 12:35 AM.
|
|