tpmdm
Active Beta Tester
Posts: 38
|
Post by tpmdm on Oct 30, 2008 16:01:34 GMT -5
Firstly, I did a search which was unproductive ;D
In a nutshell what I want for my baby warrior (27 today thanks to trick-or-treat) is 2 buttons which make use of the stances like this: Battle Stance button right click - When not in battle stance cast battle stance otherwise open the menu (with all my battle stance stuff, hotkeyed) Defensive button right click - When not in defensive stance cast defensive stance otherwise open the menu (with all my defense stuff, hotkeyed).
I got defensive to work when I was in battle stance, but I can't get battle stance to work properly at all.
Is this possible? In case it matters I loaded the spartan template and customized from there, but I obliterated the 2 buttons in question first. Additionally, once that is accomplished can I do different things with the other clicks on the buttons?
|
|
tpmdm
Active Beta Tester
Posts: 38
|
Post by tpmdm on Nov 1, 2008 12:14:37 GMT -5
I hate to bump my own post but I think I may have found either a bug or my misunderstanding about the way "use stance" works. It appeared to me that making changes to a "use stance" button or menu and then changing stances caused unexpected results. I would frequently get "open menu" on the middle click grayed out i.e. I couldn't change it. There also appears to be some carry over settings. If I'm going to redo a menu I've found I need to change the opening button to do nothing first and then rebuild the menu from scratch. I guess I'm wondering what the expected behavior of "use stance" is and whether or not it's working as intended
|
|
|
Post by Moongaze on Nov 1, 2008 13:47:47 GMT -5
"Use stance" will convert the menu button and all submenu buttons it owns to have stance support. Doing this will enable the stance icons on the Button Settings window (the ones on the top of the screen showing each stance available, with the first icon being your characters' face and the rest being the stances, with the exception of warriors, since they have no "normal" stance and will default onto their first stance which is ... battle? I don't remember When "Use Stances" is turned on, the "Open Menu" option will be locked to whatever click you assign it to. You can change what button will open the menus only in stance 0 (normal form) or, if you are a warrior, your first stance. Otherwise, it will be locked. This is to make sure you don't turn off the menu support in a different stance which will royally screw up the menu. If you are in Edit Button mode, you set the stance information for the button via the stance icons at the top. If you manually changes stances while you are editing the button, you will not assign the actions properly. My recommendation for editing buttons that have stance support is: 1) Set the button up to have stance support. If you want there to be a menu, also set that up on the button. If you want any spells or actions on the menu button, assign them now for the stance you have selected at the top of the window. Click each stance icon to assign other actions for that button in the selected stance. If it is a menu button, you won't be able to edit it. When finished with the menu button, save it. 2) Now, you have the 12 empty buttons for the menu that are opened up next to it. Since these will most likely be spells or actions related to your stance, just open you spellbook and drag the spells to the buttons you want. You can drag-and-drop (which will assign it, by default, to the left click action of the button) or you can click-to-pickup, click-to-drop (you click and drag the spell off the spell book and release the mouse button so it's still attached to your mouse. Then, click your left, middle, or right mouse button on the button you want to assign the action to and it will assign it to the mouse button you clicked. This is the easiest and fastest way to assign spells to a button without the need to use the Button Settings window. 3) When finished editing the buttons for your current stance (by drag and drop on the button itself, not the button settings window) ... switch to a new stance. This will cause the actions displayed on the button to blank (since we're setting stuff up) and you can now assign actions for that stance. Follow the same procedure for #2 for this stance and repeat for all other stances. It is important to note that when you are using stance support, it ONLY affects the CLICK ACTIONS of the button. The scale, button size, open/close features and menu opening stuff is tied, globally, to that button. The stance support will only affect the actions the button will use, nothing else. I could be wrong and maybe I did make a lot of the settings also filter per-stance. I don't actually remember how I coded that and will need to re-examine my code in a little bit The Spartan template had one menu for switching you into a stance, and another menu that had actions assigned for that stance. I don't know if you just deleted those buttons and then worked with them without testing to see what they did by switching stances while "Edit Button" mode was off ... or if you did test them ... Did any of that help explain how it works? I'll check the Button Settings window and see what happens when I switch stances (with the spell) and not the stance icons at the top of the window. Maybe the 3.0 code doesn't work for that part anymore O.o
|
|
tpmdm
Active Beta Tester
Posts: 38
|
Post by tpmdm on Nov 2, 2008 14:10:37 GMT -5
Helps tremendously. So, "use stance" is basically a shift to a new set of menu buttons from the same "parent" button based on the stance you are in?
And, you need to set up the actions to use with a particular stance while in that stance and have the particular stance selected at the top of the edit button window?
I'll experiment some more. It is a testament to the, dare I say fun, that is lunarsphere that I'm messing with this warrior's sphere since he is essentially my neutral auction house alt.
|
|
|
Post by Moongaze on Nov 2, 2008 17:15:23 GMT -5
Yeah, you pretty much got it =)
|
|
|
Post by dabignob on Nov 24, 2008 23:15:15 GMT -5
It is important to note that when you are using stance support, it ONLY affects the CLICK ACTIONS of the button. The scale, button size, open/close features and menu opening stuff is tied, globally, to that button. The stance support will only affect the actions the button will use, nothing else. I could be wrong and maybe I did make a lot of the settings also filter per-stance. I don't actually remember how I coded that and will need to re-examine my code in a little bit Based on everything you said here, and based on my own experimentation, I have a feature request for Rogues and Stealth. This could probably apply to any class that uses stances. On the Button Settings screen, I see the options to show/hide a button's submenu based on entering/leaving combat. My feature request is for an option to show or hide a submenu when entering a particular stance. I would also like it to provide for stance-dependant keybindings. Here's my scenario. In normal usage, I want LunarSphere to be as minimized as possible, based on my current in-game conditions. If I'm not in combat, then all of my buttons' submenus are hidden. All I have on my screen is the beautiful little sphere and it's 10 buttons encircling it. As soon as I go into stealth, I would like LunarSphere to pop open a submenu on a button of my choosing with all my stealthy stuff (Sap, Cheapshot, Ambush, PickPocket, etc). When I come out of stealth, it's either going to be in or out of combat. The button that has been set up to support stances would then fall back to its default button assignments that I've defined for the default stance, but with the appropriate in-game conditions applied to the submenu's current state. This sounds really complicated, but basically, the two possible states for leaving stealth are "in combat" and "out of combat". For leaving stealth "in combat": Any button that I've set up to use stances and to display a submenu would leave its submenu open. All of the submenu icons would toggle back to the non-stealth stance. For leaving stealth "out of combat": Any button that I've set up to use stances and to display a submenu close its submenu. It would basically revert back to the same state it was in before entering stealth. Regarding the keybindings, I just want to be able to have unique keystrokes assigned to my actions rather than having the alternate stances share the same bindings assigned to a button. To illustrate, lets say I have the first button in a submenu assigned to spell="Attack", keystroke="1". When I enter the stealth stance, I would like for this to change to spell="Sap", keystroke="MouseButton4". Anyway, I love this mod. Love love love it! It's one of those addons that I couldn't live without. And it does so many nice extra things, such as restocking poisons and firewood, selling my trash, that it's allowed me to get rid of a lot of other addon clutter that I no longer need. I'll be sending you a donation in the near future for work well done.
|
|