|
Bars - Target bar with lots of extra goodies
Valefor.Keylesta
サーバ: Valefor
Game: FFXI
Posts: 25
By Valefor.Keylesta 2024-09-16 12:34:48
Presenting: Bars
Displays bars for player HP/MP/TP/Pet, Target, and Focus Target, as well as Actions for Targets, Focus Targets, and Player (Self). Can display anywhere from all bars at once, to all the way down to just the target bar.
Download from Github here
↑All* bars visible at the same time. (*Sub-Target bar not displayed but is to the right of the Focus bar)
↑The Target, Self Action, and TP bars visible in action.
↑The Target and Self Action bars visible and in action.
Features
Player Stats (HP/MP/TP/Pet) can be turned on/off individually per job (ie SAM could show only TP, while PLD shows HP, MP, and TP).
○ Bars automatically align to the top, but vertical offset can be adjusted per job if you prefer them aligned to the bottom.
Target bars colored based on type (NPC, Party member, mob claimed by someone else, etc.).
Target Actions.
Self Actions.
○ Dedicated to displaying your own actions.
○ Displays a casting bar based on casting time for spells and items.
Auto Focus Target.
○ Add/remove targets to a list to automatically display a focus target for.
○ Can track by name or ID.
○ Displays the Focus Targets actions as well.
○ Automatically hides the Focus Target when it is targeted.
Focus Target Override.
○ Designate the current target as a Focus Target taking priority over the Auto Focus Target list.
○ Focus will persist until subject moves out of range, dies, or is disabled manually.
Display the Index number for targets.
○ Useful for NM placeholder camping, or designating a specific mob for others to target.
Display distance to target.
Markers on the TP bar for 1k/2k, and on the HP bar for yellow HP.
Features can be turned on/off or adjusted via settings file or in-game commands.
See github readme for full list of in-game commands and settings file options.
I originally built Bars to address some shortcomings of another bar that showed enemies, then ended up fleshing it out with other things I thought would be cool to have. I really enjoyed working on this one and am super happy with how it turned out. I made sure there are lots of adjustability options if you want to change how it works. You can turn off almost everything about it to make it a very simple target bar, but I think you'll like some of the extras packed in :)
Quetzalcoatl.Khajit
サーバ: Quetzalcoatl
Game: FFXI
Posts: 441
By Quetzalcoatl.Khajit 2024-09-16 20:34:23
I think this technically covers at least 4-5 addons if your pet bar includes bst charges.
I also noticed you made an addon I was too lazy to properly develop. Good job.
[+]
By darsinger 2024-09-16 20:57:18
I prefer this in general over enemybar2 but I do like 2 things eb2 does different than this addon:
1 - Sub-targets are their own bar so I can monitor main target's HP/actions while selecting a new target / surveying the battlefield.
2 - The current target can be added as a focus target with no name/ID (blank).
Otherwise, top notch!
[+]
Valefor.Keylesta
サーバ: Valefor
Game: FFXI
Posts: 25
By Valefor.Keylesta 2024-09-17 11:26:28
Quetzalcoatl.Khajit said: »I think this technically covers at least 4-5 addons if your pet bar includes bst charges.
I also noticed you made an addon I was too lazy to properly develop. Good job. It will cover SMN blood pacts, but I do not have BST so unable to directly test that. Its been on the backburner to have a BST friend check this for me, but since you brought it up I'll be sure to check this sooner.
I prefer this in general over enemybar2 but I do like 2 things eb2 does different than this addon:
1 - Sub-targets are their own bar so I can monitor main target's HP/actions while selecting a new target / surveying the battlefield.
2 - The current target can be added as a focus target with no name/ID (blank).
Otherwise, top notch! 1 - This was a conscious decision on my part early on to try to compact or limit the number of bars where I could so the addon wouldn't become too visually big with the other bars all in there. I'll be honest I half miss having the separate bar for the sub-target, but I've mostly gotten used to it by this point. I'll look into figuring a way design-wise to get a separate bar in for this, and it'll be an option in the settings file to be able to have it either way.
2 - I initially wanted to add in a temporary override for the Auto Focus Target, something like //bars focus, and it overrides the aft bar with whatever you had targeted when you typed it and would persist until that target was dead (excluding players dying), it moved out of range, or you typed it again to disable it, but then honestly was like meh adding a target to the auto list works fine as-is. Since you brought it up though I'll work to try to incorporate this.
Thank you both for the compliments and the feedback :) (it got to where it is now with feedback from LS mates so I really do appreciate them!)
By darsinger 2024-09-17 12:55:56
Given that the focus-target bar is optional / conditional and half the size of the main-target bar, could the sub-target bar occupy the right-hand area next to the focus bar?
[+]
Valefor.Keylesta
サーバ: Valefor
Game: FFXI
Posts: 25
By Valefor.Keylesta 2024-09-17 14:48:11
Given that the focus-target bar is optional / conditional and half the size of the main-target bar, could the sub-target bar occupy the right-hand area next to the focus bar? That's not a bad idea, though I'm not certain the best way to get it into position there. The overall bar length is variable ('//bars width'; bar_width in the settings file) and the number specified is the number of characters. The focus-target bar length is simply bar_width/2 to keep it at half the length of the other bars. I'd have to put together the math to convert a single character width into pixels then multiply that by the bar_length to then place a sub-target bar in the right spot. This is my current best thought. It's certainly doable, I've done this approach before with another addon I've toyed with called Vanapad (I was messing with creating a mouse-based interface and it uses that character-to-pixel math to get which button you're clicking on).
Hmmmmmmmmm... I think I may go with this. I could leave the # of pixels-per-character as a setting in the settings file if people would like to fine-tune it. (Or perhaps I'm over-thinking it and there's another way I'm not seeing lol)
By darsinger 2024-09-17 15:47:34
Spitballing -- would it be easier or harder to make the aft and sub bars one bar with two pieces/colors and the sub-target info text was right-justified in the way that max HP/MP numbers are. This would avoid having to math out placement of the text exactly at the halfway point (maybe.)
[+]
Valefor.Keylesta
サーバ: Valefor
Game: FFXI
Posts: 25
By Valefor.Keylesta 2024-09-17 16:23:43
Soooo the max HP/MP numbers are actually fake right-justified lol. Since the bar_width is a known quantity and I purposely used a monospace font, I do the math to add a bunch of spaces after the current HP/MP to force the max numbers to the right. I wouldn't be able to use the same approach with adding another bar to the right of the aft bar because the meter bar is a separate bar from the background bar (each "bar" is technically 2(+) bars/text objects: a background black bar then a meter bar on top of that one, then technically additional text objects for the names and actions). Conditionally tacking on the background bar of a second bar to the right would work fine since it doesn't change length dynamically, but the meter bar is always moving and is literally a bunch of text spaces with their background color set to whatever color to make it look like a "bar". The only way that would work is if I was able to dynamically change the alpha (visibility) of specific characters like you can with their color (\\cs(123,123,123)text here\\cr)
I like the spitballing though, thanks for that.
[+]
Valefor.Keylesta
サーバ: Valefor
Game: FFXI
Posts: 25
By Valefor.Keylesta 2024-09-17 23:21:25
Focus Target Override is now working. Target whatever you'd like then `//bars focus` (or f for short) and it will override the Auto Focus Target with that. It will remain until the subject moves out of range, dies (if its a mob), or is removed via `//bars focus` again.
Also had a friend test with his BST, and it functioned the same as it does with SMN :)
I'll start playing with the sub-target bar tomorrow in between things at work. Once I get that to satisfaction I'll update the github.
[+]
Valefor.Keylesta
サーバ: Valefor
Game: FFXI
Posts: 25
By Valefor.Keylesta 2024-09-19 22:13:25
Updated to version 2.2
Added Focus Target Override. You can now use `//bars focus` (or f for short) to override the Auto Focus Target with whatever you have targeted. Override will be removed when subject moves out of range, dies (if its a mob), or is removed via `//bars focus` again.
Added Sub-Target bar. Displayed as a half-length bar to the right of the Focus Target bar. New options to accompany this are `condense_target_and_subtarget_bars` and `char_width_multiplier` (to adjust horizontal spacing if needed).
Adjusted COR total default color for Fancy Rolls.
Adjusted player character (other) target default color.
Fixed COR roll total of 1 not being colored correctly for Fancy Rolls.
[+]
Valefor.Keylesta
サーバ: Valefor
Game: FFXI
Posts: 25
By Valefor.Keylesta 2024-09-20 12:19:12
Quetzalcoatl.Khajit said: »I think this technically covers at least 4-5 addons if your pet bar includes bst charges.
I also noticed you made an addon I was too lazy to properly develop. Good job. I just now realized you said charges, I misread that at first as just bst abilities. It does not currently support charges, I'll have to explore this one.
By darsinger 2024-09-21 03:14:15
I found 2 minor bugs.
1 - The distance to a "//bars f" target doesn't update after initial acquisition.
2 - The sub-target bar x offset is not updated when bar width is updated (no setPosition() call in the width addon command handler)
[+]
Valefor.Keylesta
サーバ: Valefor
Game: FFXI
Posts: 25
By Valefor.Keylesta 2024-09-21 13:40:44
I found 2 minor bugs.
1 - The distance to a "//bars f" target doesn't update after initial acquisition.
2 - The sub-target bar x offset is not updated when bar width is updated (no setPosition() call in the width addon command handler) Good catches! Thank you!
Updated to version 2.2.2
Fixed Focus Target bar not updating when Override is used (`//bars f` command).
Fixed Sub-Target x offset not updating when bar width is updated via in-game command.
(V2.2.1) Added missing `No effect` message for monster abilities.
[+]
Necro Bump Detected!
[47 days between previous and next post]
By macy85 2024-11-07 03:44:47
I found 2 minor bugs.
1 - The distance to a "//bars f" target doesn't update after initial acquisition.
2 - The sub-target bar x offset is not updated when bar width is updated (no setPosition() call in the width addon command handler) Good catches! Thank you!
Updated to version 2.2.2
Fixed Focus Target bar not updating when Override is used (`//bars f` command).
Fixed Sub-Target x offset not updating when bar width is updated via in-game command.
(V2.2.1) Added missing `No effect` message for monster abilities.
I really like your addon.
A couple suggestions if you would like to take into consideration.
1. showing lvl of the enemy
2. showing icons of debuffs present on enemy (not interested really much in timers but just in presence or not of the debuff on enemy, so it should keep track of landing debuffs and wearing off).
I link this video to give you an example of what i mean. I posted it in another topic asking the name of the addon and now i know it but i'd like to not have too many similar addons installed and yours is just a must have.
https://www.youtube.com/watch?v=ajS4xSgTVUs
[+]
Presenting: Bars
Displays bars for player HP/MP/TP/Pet, Target, and Focus Target, as well as Actions for Targets, Focus Targets, and Player (Self). Can display anywhere from all bars at once, to all the way down to just the target bar.
Download from Github here
↑All* bars visible at the same time. (*Sub-Target bar not displayed but is to the right of the Focus bar)
↑The Target, Self Action, and TP bars visible in action.
↑The Target and Self Action bars visible and in action.
Features
Player Stats (HP/MP/TP/Pet) can be turned on/off individually per job (ie SAM could show only TP, while PLD shows HP, MP, and TP).
○ Bars automatically align to the top, but vertical offset can be adjusted per job if you prefer them aligned to the bottom.
Target bars colored based on type (NPC, Party member, mob claimed by someone else, etc.).
Target Actions.
Self Actions.
○ Dedicated to displaying your own actions.
○ Displays a casting bar based on casting time for spells and items.
Auto Focus Target.
○ Add/remove targets to a list to automatically display a focus target for.
○ Can track by name or ID.
○ Displays the Focus Targets actions as well.
○ Automatically hides the Focus Target when it is targeted.
Focus Target Override.
○ Designate the current target as a Focus Target taking priority over the Auto Focus Target list.
○ Focus will persist until subject moves out of range, dies, or is disabled manually.
Display the Index number for targets.
○ Useful for NM placeholder camping, or designating a specific mob for others to target.
Display distance to target.
Markers on the TP bar for 1k/2k, and on the HP bar for yellow HP.
Features can be turned on/off or adjusted via settings file or in-game commands.
See github readme for full list of in-game commands and settings file options.
I originally built Bars to address some shortcomings of another bar that showed enemies, then ended up fleshing it out with other things I thought would be cool to have. I really enjoyed working on this one and am super happy with how it turned out. I made sure there are lots of adjustability options if you want to change how it works. You can turn off almost everything about it to make it a very simple target bar, but I think you'll like some of the extras packed in :)
|
|