Go to Page... |
Updated: | 11-04-12 03:23 PM |
Created: | 10-16-12 01:52 AM |
Downloads: | 964 |
Favorites: | 5 |
MD5: |
File Name |
Version |
Size |
Author |
Date |
Type |
1.11r3a |
2kB |
11-07-12 04:41 AM |
Patch |
File Name |
Version |
Size |
Author |
Date |
1.11r1 |
6kB |
adelea |
11-03-12 06:31 AM |
|
1.10r1 |
6kB |
adelea |
10-16-12 01:52 AM |
|
0B |
adelea |
01-01-70 12:00 AM |
![]() |
Comment Options |
adelea |
View Public Profile |
Send a private message to adelea |
Send email to adelea |
Find More Posts by adelea |
Add adelea to Your Buddy List |
![]() |
||
Zombie
Forum posts: 1
File comments: 16
Uploads: 0
|
Quote:
|
|
![]() ![]() |
![]() |
Strange_d |
View Public Profile |
Send a private message to Strange_d |
Send email to Strange_d |
Find More Posts by Strange_d |
Add Strange_d to Your Buddy List |
![]() |
||
|
Quote:
|
|
![]() ![]() |
![]() |
adelea |
View Public Profile |
Send a private message to adelea |
Send email to adelea |
Find More Posts by adelea |
Add adelea to Your Buddy List |
![]() |
|
Zombie
Forum posts: 1
File comments: 16
Uploads: 0
|
Played with your template for an hour, couldn't get it to work by adding in the code I thought was relevant to my template. My respect for real coders goes up each time I try and tweak someone else's stuff.
![]() I found the range updates just fine as long as the target moves but not when I move. Any suggestions? |
![]() ![]() |
![]() |
Strange_d |
View Public Profile |
Send a private message to Strange_d |
Send email to Strange_d |
Find More Posts by Strange_d |
Add Strange_d to Your Buddy List |
![]() |
||
|
Quote:
http://www.exyles.com/template/AdeleaRF.lua You will also need to setup something that will actually update the distances - so I have an Event.System.Update.Begin handler in there too. |
|
![]() ![]() |
![]() |
adelea |
View Public Profile |
Send a private message to adelea |
Send email to adelea |
Find More Posts by adelea |
Add adelea to Your Buddy List |
![]() |
|
Zombie
Forum posts: 1
File comments: 16
Uploads: 0
|
I added the virtual property and the block to my target template and it looks great and works when I target someone but it doesn't seem to update. I have to click on something else then re-target to get the updated distance.
Sometimes it updates correctly for a second or two then stops but I can't figure the trigger. Did I miss something?
Last edited by Strange_d : 12-06-12 at 01:57 AM.
|
![]() ![]() |
![]() |
Strange_d |
View Public Profile |
Send a private message to Strange_d |
Send email to Strange_d |
Find More Posts by Strange_d |
Add Strange_d to Your Buddy List |
![]() |
|||
|
Quote:
First up, I needed to create two virtual properties, one to handle text and one to handle range coloring : Code:
WT.Unit.CreateVirtualProperty("range", { "coord" }, function(unit) if WT.Player.coord and unit.coord then local range = WT.Utility.MeasureDistance( WT.Player.coord[1], WT.Player.coord[2], WT.Player.coord[3], unit.coord[1], unit.coord[2], unit.coord[3]) return string.format("%.01fm", range) else return "" end end) WT.Unit.CreateVirtualProperty("adeleaRangeColor", { "coord" }, function(unit) if WT.Player.coord and unit.coord then local range = WT.Utility.MeasureDistance( WT.Player.coord[1], WT.Player.coord[2], WT.Player.coord[3], unit.coord[1], unit.coord[2], unit.coord[3]) if range > 50 then return { r=1, g=0, b=0, a=1 } else return { r=1, g=1, b=1, a=1 } end else return { r=1, g=1, b=1, a=1 } end end) Code:
{ id="txtRange", type="Label", parent="frameBackdrop", layer=30, attach = {{ point="TOPLEFT", element="labelName", targetPoint="BOTTOMLEFT", offsetX=0, offsetY=0 }}, visibilityBinding="name",colorBinding="adeleaRangeColor", text="{range}", fontSize=10, color={r=1, g=1, b=1} }, |
||
![]() ![]() |
![]() |
adelea |
View Public Profile |
Send a private message to adelea |
Send email to adelea |
Find More Posts by adelea |
Add adelea to Your Buddy List |
![]() |
||
Quote:
And on the currency tracking, yeah I would love to have the total of lets say plat for example of all my toons on that shard displayed, instead of just the plat of the current toon im on when using for example Gadgets:Currency. It would be even better to see a break down of what toon has how much of each currency when you mouse over it for example. Either way It would be a cool feature imo. Also on the distance layering bug...when I reload the UI it goes back underneath any other gadget. May help figure it out idk. TY for taking the time to help though. |
||
![]() ![]() |
![]() |
Nerva3x0 |
View Public Profile |
Send a private message to Nerva3x0 |
Send email to Nerva3x0 |
Find More Posts by Nerva3x0 |
Add Nerva3x0 to Your Buddy List |
![]() |
||
|
Quote:
Im thinking it would just be easier to add the range text directly into the unit frame template! Regarding tracking across a shard - you want to see total(currencytype) ? That should be fairly easy to do - though where it would belong, I dont know! I will think on it a bit. |
|
![]() ![]() |
![]() |
adelea |
View Public Profile |
Send a private message to adelea |
Send email to adelea |
Find More Posts by adelea |
Add adelea to Your Buddy List |
![]() |
|
Yeah, it works fine with the patch. TY!
On a completely unrelated note...is there anyway to have your Currency gadget or MoneyBags to track all currencies or at least just plat on a shard? Just noticed your 2nd comment on the bug... didn't use it anymore then to load it up and see if it worked.
Last edited by Nerva3x0 : 11-07-12 at 03:26 PM.
|
|
![]() ![]() |
![]() |
Nerva3x0 |
View Public Profile |
Send a private message to Nerva3x0 |
Send email to Nerva3x0 |
Find More Posts by Nerva3x0 |
Add Nerva3x0 to Your Buddy List |
![]() |
|||
|
Quote:
It displays initially and works fine. But when someone dies, they all disappear... |
||
![]() ![]() |
![]() |
adelea |
View Public Profile |
Send a private message to adelea |
Send email to adelea |
Find More Posts by adelea |
Add adelea to Your Buddy List |
![]() |
||
|
Quote:
If it works I'll move the changes into a proper release version. |
|
![]() ![]() |
![]() |
adelea |
View Public Profile |
Send a private message to adelea |
Send email to adelea |
Find More Posts by adelea |
Add adelea to Your Buddy List |
![]() |
|
I will when I get a chance was in ID all night after work sorry.
|
|
![]() ![]() |
![]() |
Nerva3x0 |
View Public Profile |
Send a private message to Nerva3x0 |
Send email to Nerva3x0 |
Find More Posts by Nerva3x0 |
Add Nerva3x0 to Your Buddy List |
![]() |
||||
|
Quote:
Can you try something, to see if it fixes things? In Gadget_Distance.lua, at around line 63 you should see: Code:
local function Create(configuration) local rfHeight = 70 local distance = WT.UnitFrame:Create(configuration.unitSpec) distance:GetParent():SetStrata("hud") distance:SetWidth(60) Code:
local dist_context = nil local function Create(configuration) local rfHeight = 70 if dist_context == nil then dist_context = UI.CreateContext(addon.identifier) end distance:SetParent(dist_context) distance:SetWidth(60) |
|||
![]() ![]() |
![]() |
adelea |
View Public Profile |
Send a private message to adelea |
Send email to adelea |
Find More Posts by adelea |
Add adelea to Your Buddy List |
![]() |
|||
Quote:
|
|||
![]() ![]() |
![]() |
Nerva3x0 |
View Public Profile |
Send a private message to Nerva3x0 |
Send email to Nerva3x0 |
Find More Posts by Nerva3x0 |
Add Nerva3x0 to Your Buddy List |
![]() |