// MQ2Otd.cpp : Displays an overhead compass showing
// target direction and range on the hud.
// Author: Omnictrl
// Version: 0.0.2
// Date: 20051001
// Note: Check forum for update, read the two lines above in posted source.
// I am the king of updating all the version information in the comments
// and not updating the following line.
#define OTD_Version "MQ2Otd (Overhead Target Direction) ver 0.0.2"
/*
* Version 0.0.1 - 20050927
* - Genesis & Beta.
*
* Version 0.0.2 20051001
* - Added ability to move range below circumference of direction pointer
* based on Sorcier's input. use '/otd drawtight' to toggle this.
* - Centered range output based on Sorcier's input. If I wanted to get
* fancy, I could call the font output directly, using the font members
* to find the pixel width. Maybe later. Though it would be cool if there
* was a DrawHudTextCentered already there.
* - Load ini properly when changing characters or plugin reloaded,
* based on htw's input.
* - Changed clockPositions to directionPositions, since there are actually
* only 8 characters used (|/_\|/_\) instead of 12 (for clock positions)
* to make the display more accurate. This is currently a boolean, in case
* it doesn't work as well for you (OTD_bActual), you can turn off.
* - Added getloc command to show the current x,y position.
* - Added Ini support for colors, as suggested by Sorcier:
* Add [COLORS] section, and add settings in the following format:
* RANGECOLORN=HEX_RGB_COLOR RANGE COLOR_MORPH_FLAG
* Note: these setting must be in ascending range order,
* or none will be loaded (defaults used instead).
* Also, there is a LABELCOLOR setting that is used for coloring
* the range number.
* Here is an example
* [COLORS]
* LABELCOLOR=19FF19
* RANGECOLOR1=FF1919 10 0
* RANGECOLOR2=1919FF 11 0
* RANGECOLOR3=19FF19 200 1
* RANGECOLOR4=C8C820 201 0
* RANGECOLOR5=505020 500 1
* RANGECOLOR6=F0F0F0 501 0
*/