Moderator: MacroQuest Developers
i dont think MQ2 comes with an hud ready to use, you need to make one.bobbb wrote:Ok, im new to programming MQ. But thus far Ive figured out how to compile it and compile plugins.
I want to integrate the hud plugin into the UI's, but when I compiled MQ, I dont have an mq2hud.ini file.
I typed /plugin list and /plugin mq2hud to make sure it was loaded... but I didn't have an ini file.
Have any idea what Im doing wrong?
Code: Select all
[test]
Label1=1,125,730,255,255,255,My name: ${Me.Name}Code: Select all
/plugin mq2hud
/loadhud test
Code: Select all
[Elements]
code here/hud normal| underui| always
Adds additional functionality to the MQ2 HUD. See MQ2HUD for more details
Donate for VIP and get the new and improved MQ2Hud and you can have multilple huds to load for one character, or one for each character. Whatever your heart desires. Anyhow, have fun.MQ2HUD plugin
Provides additional functionality to the HUD included with MQ2. It allows you to add additional elements. Every element gets parsed for MQ2Data each time it is displayed.
The additional fuctionality is added via the use of an ini file.
MQ2HUD allows for different HUDs. Each different HUD is stored in MQ2HUD.ini but in different sections.
The default HUD is [Elements]. To load a different HUD, the command is /loadhud name (not case sensitive)
Example
/loadhud bard
In this case, the [bard] section in MQ2HUD.ini could also be [BARD]
The command to load the default HUD specifically is /defaulthud
Example MQ2HUD.INI
[Elements]
;The order is TYPE,X,Y,RED,GREEN,BLUE,TEXT
TargetInfo=3,5,35,255,255,255,${Target}
GMIndicator=3,5,45,0,0,255,${Spawn[gm]}
CursorItemName=7,-15,-15,255,255,255,${If[${Cursor.ID},${Cursor},]}
ClickMeForFun=6,-25,-25,255,255,255,${If[!${Cursor.ID},click me,]}
TYPE is currently any combination of the following:
1 - Display in non-full screen mode
2 - Display in full screen mode ("f10 mode")
4 - X,Y is based on cursor location
e.g. 1+2+4=7. 7 means all 3 of the above. 6 means 2 and 4. 3 means 1 and 2. Just add them together. There is no way to end up with a number that could mean two different combinations.
Seeing as how the mouse functions perfectly fine in full screen mode, the cursor has been forced to display the same as it would in UI-visible mode. The only difference is the item is not displayed on your cursor. With MQ2HUD and the "CursorItemName" example, you could have it show the name of the item attached to your cursor in full screen mode (use type 6 if you want it to follow your cursor in full screen mode only).
X,Y is the screen location. 0,0 is the upper left corner fo your screen.
Red, Green and Blue are each from 0 to 255. 255,255,255 is white, 0,0,0 is black.
Slash Commands
/defaulthud
Load the default HUD specifically
/hud normal|underui|always
normal will make the HUD display as it would normally on top of UI, not at char select or in "f10 mode"
underui will make the HUD display as normal except UNDER the UI, and not at char select or in "f10 mode"
always will make the HUD display under the UI, at char select, and in "f10 mode"
/loadhud hudname (not case sensitive)
Loads a HUD by the name hudname. This HUD must have a [hudname] section in MQ2HUD.ini
Note: There is currently no command to add or remove these from inside the game. One will probably be added soon. The plugin will automatically re-load the list from the .ini when you modify and save the .ini.