Minion Beta! - Help us test our new AddOn updater. Get it now!
Download
(6 Kb)
Download
Updated: 10-15-14 11:39 PM
Pictures
File Info
Compatibility:
Warlords of Draenor Pre-Patch (6.0.2)
Updated:10-15-14 11:39 PM
Created:06-10-13 12:10 AM
Downloads:503
Favorites:8
MD5:

MySpeed

Version: 1.0-2014101501
by: gmarco [More]

MySpeed

A minimal LDB plugin for displaying your speed and camera pitch (in degree).

Requires a data broker display like chocolate bar, bazooka, ninjapanel, stat block, titan panel, docking station and more.

v1.0-2014101501
- bump toc for 6.0.x

v1.0-2013091001
- bump toc for 5.4

v1.0-2013061001
- initial release
Optional Files (0)


Archived Files (2)
File Name
Version
Size
Author
Date
1.0-2013091001
6kB
gmarco
09-10-13 09:55 AM
1.0-2013061001
6kB
gmarco
06-10-13 12:10 AM


Post A Reply Comment Options
Unread 04-30-14, 02:10 PM  
gmarco
A Flamescale Wyrmkin
 
gmarco's Avatar
AddOn Author - Click to view AddOns

Forum posts: 107
File comments: 27
Uploads: 9
Re: Perfect.

Originally Posted by OmniBlade
This is perfect, small and easy to use with any DataBroker displayer.

It is exactly what you would want out of a speed display. The use of the angel is great for knowing you are traveling the quickest route to somewhere instead of drifting up or down. Thanks!!
You are welcome... It is a really little addon as you can see looking in the code :-)
Btw Thanks. It is really much appreciated.
__________________
This is Unix-Land. In quiet nights, you can hear the Windows machines reboot.
gmarco is offline Report comment to moderator  
Reply With Quote
Unread 04-14-14, 02:36 PM  
OmniBlade
A Murloc Raider

Forum posts: 4
File comments: 19
Uploads: 0
Perfect.

This is perfect, small and easy to use with any DataBroker displayer.

It is exactly what you would want out of a speed display. The use of the angel is great for knowing you are traveling the quickest route to somewhere instead of drifting up or down. Thanks!!
OmniBlade is offline Report comment to moderator  
Reply With Quote
Unread 02-15-14, 12:11 AM  
gmarco
A Flamescale Wyrmkin
 
gmarco's Avatar
AddOn Author - Click to view AddOns

Forum posts: 107
File comments: 27
Uploads: 9
Re: pitch removal

Originally Posted by menace97
is there an option to not use the pitch function, and just use the speed part of the addon?

thanks
The addon is very simple and don't have any configuration part.

Here it is:

Lua Code:
  1. local ADDON = ...
  2.  
  3. local UPDATEPERIOD, elapsed = 0.2, 0
  4. local speed
  5. local pitch
  6. local string_format = string.format
  7. local math_deg = math.deg
  8. local prgname = "MySpeed"
  9.  
  10. local ldb = LibStub:GetLibrary("LibDataBroker-1.1")
  11. local dataobj = ldb:NewDataObject("MySpeed", {
  12.     type = "data source",
  13.     icon = "Interface\\Icons\\Ability_Druid_FlightForm",
  14.     text = "100%",
  15. })
  16.  
  17. local frame_ms = CreateFrame("Frame", ADDON.."_LDB")
  18. frame_ms:SetScript("OnUpdate", function(self, elap)
  19.     elapsed = elapsed + elap
  20.     if elapsed < UPDATEPERIOD then return end
  21.     elapsed = 0
  22.     speed = (GetUnitSpeed("Player") / 7) * 100
  23.     pitch = math_deg(GetUnitPitch("Player"))
  24.     dataobj.text = string_format("%.1f %.1f", pitch, speed)
  25. end
  26. )

if you want to try to edit you can modify this line:

Lua Code:
  1. dataobj.text = string_format("%.1f %.1f", pitch, speed)

in this way:

Lua Code:
  1. dataobj.text = string_format("%.1f", speed)

(you can remove also the 2 lines with "pitch" references, but it is not mandatory)

BTW: I'll try to implement an easy in file config asap.

Please let me know.
__________________
This is Unix-Land. In quiet nights, you can hear the Windows machines reboot.
Last edited by gmarco : 02-15-14 at 12:16 AM.
gmarco is offline Report comment to moderator  
Reply With Quote
Unread 02-14-14, 06:09 PM  
menace97
Premium Member
 
menace97's Avatar
Premium Member

Forum posts: 3
File comments: 93
Uploads: 0
pitch removal

is there an option to not use the pitch function, and just use the speed part of the addon?

thanks
menace97 is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: