Closed Weischbier closed 1 month ago
As for the LibShared Media, I have it already, both for borders and backgrounds. ¨
Are you looking for textures maybe? (screen shot form anther addon).
Will see what I can do about the size adjustments. It is hardcoded now as it worked originaly only with predefined image.
I don't know what you mean by vertial adjustment of ticks and center pin mark? They are both at the edge (top/bottom/ of the HUD. You want to move them outside like the pointers?
Here's what I've done with WA little video test. I'm not happy with the texture quite yet but this is where it eases out the compass more, so it doesn't cut so hard at the edges when turning. So, I might have been a little too forward with the LibSharedMedia support, and yes, I meant textures 😜 (my bad)
So, maybe these are better:
As for the width. I am working on custom scaling in X and Y.
As for the texture. There is option to make your own texture for the HUD. The process is mentioned in TODO section of ReadMe.
https://github.com/BelegCufea/CompassHUD/tree/ScaleHUD
If you will be so kind and test this. It may even help with #5
I was able to do this with already build-in options:
I just made new backkgroud: CHbg1.zip
I have put it into Media directory of my addon and registered it with LibSharedMedia:
local LSM = LibStub("LibSharedMedia-3.0")
LSM:Register(LSM.MediaType.BACKGROUND, "MyCustomBackground", [[Interface\Addons\CompassHUD\Media\CHbg1.tga]])
Picked it in backgrounds and also edit the Edge lines a bit:
Edit: the white one is even better coz you can change colors: CHbg2.zip
I love the idea of making the center tick more visible. I have my options set to resemble the compass tape of many aircraft heads-up displays, similar to this one (a C-130J Hercules flying a heading of 270, due west) -- including the green phosphor colour you see here.
It would be a nice bonus to be able to display the current heading above the pointer, as is the case in that image, but that might be a bit of work. Even a simple downward-pointing triangle above the heading "tape", with changeable colour as you propose, would be more visible for me.
You mean to display the degree number up there? I can add that as an option. It would be nice, especially if you have a plain texture without the degrees or even the cardinal directions.
I’ve also been thinking about the center pin. Originally, I wanted to let the player choose a texture, but I'm not sure if you can change its color. I’ll try a few things and see what works...
As for the heading feature, I've got something set up.
The options are currently just thrown together—I’ll clean them up once all the functionality is in place.
The code is available in the Heading branch.
If you have time, I would really appreciate it if you could test it. As always, any suggestions are welcome!
So far so good! I have encountered no Lua errors, and the settings work fine. I'm including a screenshot of my full UI and a screenshot of how I set up my heading. You might enjoy getting a look at them.
One caveat that is not your fault: it's possible for the heading display to display both 0 and 360 for due north, so it has two 'ticks' that mean the same thing.. However, aircraft compasses will display 360 instead of 0 because simply stating "zero" (pronounced "zee-ro") can be ambiguous, and "three six zee-ro" is easier to comprehend in voice communications than just a singular "zee-ro" and is faster to say than repeating "zee-ro" three times if the heading were displayed as 000.
So, the heading code should automatically display 360 whenever it would ordinarily show 0. I've been able to get it to do so several times, though probably most people wouldn't test this. They are an equivalent reading.
Some people may prefer this; some may not. Perhaps there could be a checkbox for "display north as 360" and default to displaying as 0.
My guess is that the reason that both 360 and 0 can appear is due to the way Lua rounds the result it receives.
Very clean UI you have there.
I will add that option, clean the whole mess of the settings, merge it into master and release it :-)
OK, will close this for now. Feel free to reopen it.
I have a couple of suggestions that may or may not be enhancements:
again, this is the best addon I've discovered so far that is enhancing my immersive RPG feeling!