OnKeyPress?
Hi all, recently through this forums' help I was able to make a min/maxing Inventory window using Buttons with the OnPress property.
I'm curious tho, what is (or even if it's allowed) the command for keyboard presses? I.e., I normally press "I" to open my inventory window altogether, but would like to change it so that "I" also functions as the min/max input. OnKeyboardPress? OnInput? I have no idea! Thanks for anyone consideration |
my guess
I would guess OnKeyboardPress if those are your options. As far as I remember from my glorious and wonderful edjumacion keypresses are stored in a buffer, so you technically need to be looking there, and if you have OnKeyboardPress, that would make sense to me.
|
I don't think we're allowed to catch any keypresses. Just enter and escape as default/cancel buttons.
|
If I recall what I've seen discussed correctly, you can add IsCancelButton="true" to a button, and it will catch the open/close keypress for that window. I have not used this myself, however.
|
Ack, okies then it sounds like a gray area type thing. Perhaps I'll leave it be.
Ideally what I was going for is, remapping my Open / Close Inventory Window button to something I'd hit once when I log in, say letter Y. Then I minimize my Inventory window so that (mod'd of course) 2 of my 6 Inventory slots are showing only. This allows me to hotswap Activatable items (such as Heal Potions, Horse whistle, Curing Potions, Totems, etc.) quickly without looking into my bags for them. The trouble is, I keep hitting the I key to maximize the window, where instead I was simply Opening / Closing the whole Inventory Window. I'll stick to using the OnPress buttons I added to min / max it. Don't want to get into any kind of EULA trouble :( Thanks everyone for your time! |
It's not so much problem with the EULA, it's getting it to work the way you want it to work.
Here is what I suggest. Use the 'OnShow' and 'OnHide' events to toggle the window between the minimized version and the extended version. That way each time you hit the 'I' key it will toggle the window for you. |
Hmmmm. Logically this makes sence, but I'm having trouble conjecturing how she would use the IsCancelButton and OnShow/Hide at the same time. I guess I would hafta see this window in action. Is it similiar to FetishInventory? It seems doable to me, but my brain is all mush right now :(
|
Quote:
I'm just guessing of course, but I would have to see the XML for her window. But it seems like it wouldn't be all that difficult. |
Quote:
|
Quote:
Perhaps I missed something? I though this person just wanted a window to expand or contract on a key press? |
Quote:
I'll try to be a bit more precise in the future, I didn't mean to cause any confusion. |
Quote:
|
Hehe yes, oops, I misinterpreted the 'allowed' part to mean eula instead of coding allowed. :(
I'm still such a newb that I'm not sure how to implement the IsCancelButton property, and I'll play around with the OnShow/OnHide stuff to see how that affects things. Thanks again everybody! |
All times are GMT -5. The time now is 03:08 PM. |
vBulletin® - Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
© MMOUI