Target Highlight: Add option to show border as well as texture
Nillx opened this issue ยท 12 comments
You want to show both, right, border and texture? Without seeing the code, it's difficult to tell. Currently, there is only one texture used, so you probably added a second one, right?
I converted the Crescent TGA texture to PNG, then used Photoshop to combine the arrows and the Default border into one single texture file. Then saved it as PNG and used a converter to TGA.
As you can see i managed to edit the Arrows into smaller ones and they work fine ingame. For some reason i cannot make the rectangular Default border to show, even if its one file with the arrows.
I tried editing the arrows texture again: This is how it looks in photoshop
And this is how it appears ingame
I guess i cant simply edit the textures without changing the code?
That green square is shown when the texture cannot be found or loaded, e.g., the size is not correct. It should be something like 32x32, 64x64 or 32x64. Could it be that?
Yea that would be nice. Im currently having issues with quickly finding my target when there are multiple nameplates on the screen and thats why i tried to make it somewhat more visible by combining the arrows with the default border.
Sadly i cannot figure out why i cant make both show at the same time. In the menu they are combined but ingame only one of them shows.
I just thought about that a bit more, as I am working on that widget currently, it should be easier if you just show border and left/right texture at the same time. That way, you would not need to create new textures.
It should work the following way (showing the border and the texture)
- In UpdateLayout, remove the if-then-else clause with "if db.theme == 'default' ..." - This way, the layout will be configured for borders and textures.
- Replace "BACKDROP[db.theme]" with BACKDROP["default"]
- Also, comment out the line "healthbar_mode_frame:SetBackgrop(nil)"
- In OnTargetUnitAdded, change "if db.theme == 'default' .." until "end" into
healthbar_mode_frame:Show()
healthbar_mode_frame.LeftTexture:Show()
healthbar_mode_frame.RightTexture:Show()
With that, I get both shown, border (default) and Arrows or whatever you select.
Since im not that good at coding, is it possible to upload that edited file somewhere? Or include it in a future version of the addon?
As long as you are using 9.1.x - the following version should work: https://drive.google.com/open?id=1Qg2Rqlt8swGKX0ne5g3STYEbxohceQkK
Just overwrite TargetHighlight.lua in the TP addon directory with this file. It will always use the Default border and Arrow/Crescent/Bubble as texture (you have to select one of these).
I think you should implement this in the base version of the addon, many people will be happy.
- https://www.curseforge.com/wow/addons/tidy-plates-threat-plates/issues/412
- Since you added a few new target highlight textures i began wondering if its possible to let us make combinations of them? Something like this:
- https://www.curseforge.com/wow/addons/tidy-plates-threat-plates?comment=4833
- Also, not sure if I'm just missing the option somewhere, but is there a way to highlight the border (as well as have arrow markers) of your current target?
- https://www.curseforge.com/wow/addons/tidy-plates-threat-plates?comment=4960
- Being able to select maybe 2 options of target highlighting at once would be cool too, like have a border + arrows. Been adding that with weakauras but it gets funky at times.
- https://www.curseforge.com/wow/addons/tidy-plates-threat-plates/issues/350
- https://www.curseforge.com/wow/addons/tidy-plates-threat-plates/issues/357
- any1 using threadplates knows if it's possible to configure it to show 2 target highlights at the same time ? for instance arrows and default ?
- all i need is to have arrows and default at the same time and im happy dude. Do try to implement it if you can :P or make a new highlight with arrows + default square
- https://www.curseforge.com/wow/addons/tidy-plates-threat-plates/issues/535
- Is there a way to duplicate the target indicator widgets? I'd like to have the double arrows AND a white border around the enemy I'm targeting, as well as something similar for my focus target. I've been trying to figure it out in the settings for a while now. If it isn't an option, is there any chance it can be updated to let us do something like that?
- Yes! More or less. I would use a different style of the arrows though, so if there's any way to just combine 2 target indicators into one that's what i'd lik