Download
(6Kb)
Download
Updated: 06-24-15 12:43 AM
Pictures
File Info
Compatibility:
Minor patch (6.2.4)
Updated:06-24-15 12:43 AM
Created:06-10-13 12:10 AM
Downloads:1,928
Favorites:7
MD5:
Categories:Data Broker, Discontinued and Outdated Mods

MySpeed

Version: 1.0-2015062401
by: gmarco [More]

MySpeed

This addon is not developed anymore.
I have changed the name and updated for Legion and up:
gmSpeed

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-2015062401
- bump toc for 6.2

v1.0-2015022501
- bump toc 6.1

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)


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

Forum posts: 362
File comments: 334
Uploads: 46
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.
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!!
Report comment to moderator  
Reply With Quote
Unread 02-15-14, 12:11 AM  
gmarco
An Onyxian Warder
 
gmarco's Avatar
AddOn Author - Click to view AddOns

Forum posts: 362
File comments: 334
Uploads: 46
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.
Report comment to moderator  
Reply With Quote
Unread 02-14-14, 06:09 PM  
menace97
Premium Member
 
menace97's Avatar
Premium Member

Forum posts: 4
File comments: 101
Uploads: 0
pitch removal

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

thanks
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: