Download
(12Kb)
Download
Updated: 02-14-11 02:50 PM
Addon for:
LynStats.
Pictures
File Info
Updated:02-14-11 02:50 PM
Created:unknown
Downloads:2,393
Favorites:7
MD5:

Htracking

Version: 1.4
by: hipjipp [More]

Htracking

This addon is a LynStats like Tracking-icon substitute.

What does it do?
It creates a small fontstring showing your current tracking. Basically, it replaces your trackingbutton.

Why would i use this addon?
You might want to use this addon because you think lynstats is missing a tracking feature and you don't want to switch to SLDataText.

1.4
---- Added full support for multiple-tracking
---- Added a nifty tooltip when tracking multiple things

1.3
---- Added a truncate function (Off by default)

1.2
---- Fixed the Button-Width to the String-Width.
---- Reset the damned font for real this time.

1.1
---- Hid the trackingframe and gave Htrack the default tooltip.
---- Made the button react like the normal tracking button.

1.0.1
---- Changed the font from my own to a general one.
Post A Reply Comment Options
Unread 12-15-08, 11:20 AM  
hipjipp
A Cliff Giant
 
hipjipp's Avatar
AddOn Author - Click to view AddOns

Forum posts: 79
File comments: 236
Uploads: 10
Originally posted by syrupk
Looking to add a line to the code of this and lynlocation to make the letters all lowercase. Is this possible and ifso could someone please help me out? Thankyou
Quote from lua-users wiki, the String Library Tutorial:
String.lower(s)

s:lower()

Make uppercase characters lower case.

> = string.lower("Hello, Lua user!")
hello, lua user
Change the following:
Code:
if truncate == true then
    track_text:SetText(string.sub(text, 1, t_num))
else
    track_text:SetText(text)
end
to this:
Code:
if truncate == true then
    track_text:SetText(string.lower(string.sub(text, 1, t_num)))
else
    track_text:SetText(string.lower(text))
end
It's tested and it works, but please reply if something comes up =)
Report comment to moderator  
Reply With Quote
Unread 12-15-08, 10:06 AM  
syrupk
A Cliff Giant
 
syrupk's Avatar
AddOn Author - Click to view AddOns

Forum posts: 71
File comments: 199
Uploads: 1
Looking to add a line to the code of this and lynlocation to make the letters all lowercase. Is this possible and ifso could someone please help me out? Thankyou
__________________
I guess my brain will never work right. At least I’m pretty.
Report comment to moderator  
Reply With Quote
Unread 08-11-08, 03:49 PM  
hipjipp
A Cliff Giant
 
hipjipp's Avatar
AddOn Author - Click to view AddOns

Forum posts: 79
File comments: 236
Uploads: 10
Originally posted by Jyniver
Hi

Just a question..
what did you write to make your money show like that?
In the LynStats core.lua;

Code:
local show_money = true    -- Money
local COLOR_COPPER = "eda55f"
local COLOR_SILVER = "c7c7cf"
local COLOR_GOLD = "ffd700"
local color, mail, hasmail, ticktack, lag, fps, ep, xp_cur, xp_max, text, blizz, memory, entry, i, nr, xp_rest, ep, money, gold, silver, copper, cash

  if show_money == true then
  money = GetMoney()
  gold = money / 10000
  silver = mod(money / 100, 100)
  copper = mod(money, 100)
   if money >= 10000 then
    cash = format("|cff%s%d|r |cff%s%d|r |cff%s%d|r", COLOR_GOLD, gold, COLOR_SILVER, silver, COLOR_COPPER, copper).."  "
   elseif money >= 100 then
    cash = format("|cff%s%d|r |cff%s%d|r", COLOR_SILVER, silver, COLOR_COPPER, copper).."  "
   else
    cash = format("|cff%s%d|r", COLOR_COPPER, copper).."  "
   end
 else
  cash = ""
end
The function "if show_money == true" etc etc is put inside the update function. Hope it helps.
Report comment to moderator  
Reply With Quote
Unread 08-11-08, 09:43 AM  
Jyniver
A Kobold Labourer

Forum posts: 0
File comments: 11
Uploads: 0
Hi

Just a question..
what did you write to make your money show like that?
Report comment to moderator  
Reply With Quote
Unread 07-12-08, 03:53 PM  
hipjipp
A Cliff Giant
 
hipjipp's Avatar
AddOn Author - Click to view AddOns

Forum posts: 79
File comments: 236
Uploads: 10
yeah, i think so too, but i don't think thats even possible, but if someone who reads your request is up for it, please do.. it'd be awesome.
Report comment to moderator  
Reply With Quote
Unread 07-12-08, 11:10 AM  
DJJoeJoe
A Murloc Raider
 
DJJoeJoe's Avatar
AddOn Compiler - Click to view compilations

Forum posts: 6
File comments: 172
Uploads: 1
Originally posted by hipjipp
I've been planning to add this, but i find it hard to make such a procedure simple and clean. But i'll be working on it when i have the time/energy to.
Clicking the name and having it grow a list upward of simple text based commands for tracking, no images or that jazz, just the names of the tracking extended upwards.

That would make this a real sexy-pants wearing addon, for sure.
__________________

Joetest - Ner'Zhul - Disciples of Death
Report comment to moderator  
Reply With Quote
Unread 07-03-08, 05:17 AM  
hipjipp
A Cliff Giant
 
hipjipp's Avatar
AddOn Author - Click to view AddOns

Forum posts: 79
File comments: 236
Uploads: 10
Originally posted by Pjotr
It doesn't anchor to LynStats for me. I tried everything that I could figure on the .lua file (Which is terribly little) but could only get it next to LynStats with OffSets. That doesn't work as when a thing on LynStats changes the cap between LynStats and Htracking changes too

Help mee
(Copy Paste from my reply to you on the LynStats)

The easiest thing would be either to hook the lynstats frame to Htracking witch you anchor to the corner, or you could hook the Htracking frame to the bottom of the UIParent.. It's up to you.. Please post a pm if you have more questions about it.
Last edited by hipjipp : 07-03-08 at 06:56 AM.
Report comment to moderator  
Reply With Quote
Unread 07-02-08, 11:57 AM  
Pjotr
A Kobold Labourer

Forum posts: 0
File comments: 11
Uploads: 1
Re: Re: gPeen and Htracking

It doesn't anchor to LynStats for me. I tried everything that I could figure on the .lua file (Which is terribly little) but could only get it next to LynStats with OffSets. That doesn't work as when a thing on LynStats changes the cap between LynStats and Htracking changes too

Help mee
Report comment to moderator  
Reply With Quote
Unread 06-26-08, 11:43 AM  
hipjipp
A Cliff Giant
 
hipjipp's Avatar
AddOn Author - Click to view AddOns

Forum posts: 79
File comments: 236
Uploads: 10
Re: gPeen and Htracking

Originally posted by SquishyMage
These two addons are on top of each other. Anyone know what to do to make them share the screen instead of fighting for the same spot?
Since all both addons hook LynStats as a global and puts itself after how LynStats is placed, you could edit either code (Htracking or gPeen) to hook the other one, thus not causing them to land on the same relativepoint.

the line should look something like this if you edit Htracking to hook gPeen;
Code:
self:SetPoint("BOTTOMRIGHT", _G["gPeen"], "BOTTOMLEFT", -20, 0)
I'll upload next verision with minor tweaks and improvements.

Have a good one,
Hipjipp

P.S.: I thought i edited the font to be "fonts\\ARIALN.ttf" in this verision, but perhaps i didnt.
Report comment to moderator  
Reply With Quote
Unread 06-26-08, 11:25 AM  
SquishyMage
A Deviate Faerie Dragon

Forum posts: 19
File comments: 43
Uploads: 0
gPeen and Htracking

These two addons are on top of each other. Anyone know what to do to make them share the screen instead of fighting for the same spot?
Report comment to moderator  
Reply With Quote
Unread 06-26-08, 10:10 AM  
Sec
A Cyclonian
 
Sec's Avatar

Forum posts: 48
File comments: 177
Uploads: 0
Originally posted by hipjipp
I've been planning to add this, but i find it hard to make such a procedure simple and clean. But i'll be working on it when i have the time/energy to.
Thanks for the update! Here's an error I got upon initial install; I fixed it by telling Htracking to pull the font from my minimap addon since it tries to grab font from pMinimap by default. Aside from this initial bug, the addon is working as intended - kudos!

Code:
Interface\AddOns\Htracking\Htrack.lua:64: <unnamed>:SetText(): Font not set
Count: 99

Call Stack:
[C]: ?
[C]: in function `SetText'
Interface\AddOns\Htracking\Htrack.lua:64: in function <Interface\AddOns\Htracking\Htrack.lua:43>
Report comment to moderator  
Reply With Quote
Unread 06-25-08, 03:35 PM  
hipjipp
A Cliff Giant
 
hipjipp's Avatar
AddOn Author - Click to view AddOns

Forum posts: 79
File comments: 236
Uploads: 10
Originally posted by Sec
I sincerely hope you add a click-to-switch for tracking.
I've been planning to add this, but i find it hard to make such a procedure simple and clean. But i'll be working on it when i have the time/energy to.
Report comment to moderator  
Reply With Quote
Unread 06-25-08, 01:31 PM  
Sec
A Cyclonian
 
Sec's Avatar

Forum posts: 48
File comments: 177
Uploads: 0
I sincerely hope you add a click-to-switch for tracking.
Report comment to moderator  
Reply With Quote
Unread 06-25-08, 07:40 AM  
hipjipp
A Cliff Giant
 
hipjipp's Avatar
AddOn Author - Click to view AddOns

Forum posts: 79
File comments: 236
Uploads: 10
thanks mate, love to have you as a "coder guide" ^^ :P
Report comment to moderator  
Reply With Quote
Unread 06-25-08, 07:12 AM  
eiszeit
A Chromatic Dragonspawn
 
eiszeit's Avatar
AddOn Author - Click to view AddOns

Forum posts: 154
File comments: 448
Uploads: 7
ah, i'll add the frame name next version.. so you dont need to edit it.
__________________
Lyn • I'm a mess of unfinished thoughts
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: