Akirane / XIVHotbar

13 stars 9 forks source link

Question #3 #5

Closed Noduko closed 4 years ago

Noduko commented 4 years ago

Hello!

First of thank, thank you very much for updating this addon. It's massive gameplay improvement and I'm glad someone decided to update it with fixes and new features.

I have a few questions (I'm sorry if these are noobs questions):

1) Is it possible to hide the 5th hotbar?

2) Is it still possible to hide unused hotbar slots including its shortcut text (e.g. C+2)?

3) When adding spells/abilities to the hotbar, is it correct to assume that only the Data//Job.lua file needs to be updated, and there is no need to update the .xml file anymore in Data/hotbar/World/Character/ ?

4) I don't really need it at the moment but is there still a hidden and easy option to switch hotbar (from 1 to 2) automatically when engaging in a battle? If yes, is there a way to make Hotbar 1 default (at the moment, 2 is default)?

Thank you again for working on this amazing addon!

Noduko commented 4 years ago

After digging into the files, I found some answers, which I leave here if anyone is interested.

1) I simply left the key empty in the file "keyboard_mapper.lua" for the hotbars I want to hide. 4) I didn't find the answer to this but found ways to customise the "1" and "2" to change the name and positions ("function ui:setup_environment_numbers()" in the ui.lua file).

Akirane commented 4 years ago

Hello and thanks for the questions! I didn't notice the message until today.

  1. I can try to make an easier option for disabling unwanted hotbars. I can make an option in settings.xml which lets you decide how many action bars you want.
  2. It's possible to do so, but I don't know how yet. I need to come up with a way to determine if an action slot is empty.
  3. Correct, the .xml file is not used at the moment if you are thinking about the .xml files. If I remember correctly, the settings.xml takes care of offset. I'm currently working on a new update for this where all traces of the old xml libraries are removed entirely.
  4. I decided to remove it as I needed more than 50 keybinds when I play RDM and WHM, but this should be possible to add an option in settings.xml.

I think #1 and #4 are easy to implement, #2 I need some time with.

Akirane commented 4 years ago

I dug a bit into the code and I think the file "theme.lua" sets how many hotbars you want. If you change the line 34 in theme.lua from options.hotbar_number = 5 then you can decide how many hotbars you want.

I'm changing the settings.xml file so it will have number of hotbars in it as well.

Noduko commented 4 years ago

Hey Akirane!

Thank you for your reply.

I've tried changing "options.hotbar_number = 5" but that didn't work for me.

As for 4), I actually got used to the hotbar not switching when entering battle and it's actually better this way. I just wish I could set the key ` (tilde) as shortcut to switch instead of \ but this key seems to only work with US keyboard (key ID 40, iirc). Still, I really like how it works now and it's a massive QoL so thanks for updating this addon!