Hide armory save build button
Hey guys I'm back messing with this hide armory save build button. Ive had a semi reliable working version of it for a while now but am not totally happy with the implementation built around delays for armory opening etc.
Where im experiencing the biggest issue is 1st opening the armory as the controls dont exist yet. id like to find something specific I could check and loop back to delay more if needed because I'm concerned for people with high latency and/or very slow pc's might encounter lua errors. Here's the section of code im trying to work with and could use a tweak on: Code:
------------------------------------------------------------------------ |
have you checked out how it is done by ArmoryStyleManager.
There might be a issue with the addon by now but the function to prevent overwriting builds always worked without any issues. https://www.esoui.com/downloads/info...leManager.html |
yeh ive peeked through it trying to make sense of it. I was hoping to keep it at a more basic level and do my own thing as much as possible. I haven't been able to determine its magic yet
|
This setup works just ok. But imo the real issue is that the "EVENT_OPEN_ARMORY_MENU" appears to trigger before anything is actually done, sending my code in motion but theres no controls or anything yet to even look at for over 100ms. Are all events fired early like that? That event is fine like that if you intend to only output a chat message but if you intend to manipulate the armory it cant be done for at least 100ms on a decent system with decent latency.
Im giving it my best to do it this way due to the simplicity of the "ZO_KeybindStripButtonTemplate3:ToggleHidden()" which not only hides the button but also disables the keybind making it a suitable choice. |
You do not work with the Keystrip directly. You should find the way to the keybinddescriptor of the amory station and add a
Code:
.visible = false |
ty votan for your help.. you inspired me to take another peek at armory style manager and I found this little beuty which was all i needed,.. no more timer or events.. works 100% perfectly from settings panel :). Need only 2 lines.. one on load/reload and one in settings panel doing this only:
Code:
ARMORY_KEYBOARD.keybindStripDescriptor[2].enabled = false |
New setup working perfectly but.. Im trying to add a lock image overtop of the keybind image in the bottom screen controls when its locked. I've got this working fine but for the life of me I cant find a way to detect when the armory is closed to remove it from the screen. suggestions?
|
does the scene manager not include the armory?
instead of just adding the lock on your scree, maybe anchor it to the button. seems like a more propper solution to me. |
I was wondering if that were possible. Would that hide it when the keybindstrip etc is hidden when armory closes? Like the anchor disapears with what its anchored to?
**EDIT Actually I think I'm gonna bail on it.. With the current setup the R and text is already greyed out and unusable when locked.. I might be wasting my time on useless fluff. Everything is working soo good I think im just gonna enjoy it for now. |
if you use something of the keybind as parent then yes
|
All times are GMT -6. The time now is 10:18 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI