Thread Tools Display Modes
06-26-06, 04:09 PM   #1
beorf
A Murloc Raider
 
beorf's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2006
Posts: 7
NWNQuickBar: for Neverwinter Nights-style quickbar

NWNQuickBar v1.0

Sets up Action Bars, page 1-3 to function like Neverwinter Nights quickslots.

WHAT IT DOES:
Hold down CTRL to get access to Page 2 and hold SHIFT to get access to
Page 3 of your Action Bar. When you release them, it goes back to the
original page.


To use:
1. Move the folder to your Interface/AddOns folder in the World of
Warcraft folder.
2. Launch WoW.
3. In your Options -> Key Bindings menu, you should now have a section
for NWNQuickBar.
Set the bindings to:
Button 1-12 1-9, 0, -, = (same as the usual action bar)
Ctrl Button 1-12 CTRL-1, ..., CTRL-9, CTRL-0, CTRL--, CTRL-=
Shift Button 1-12 SHIFT-1, ..., SHIFT-9, SHIFT-0, SHIFT--, SHIFT-=

ISSUES:
- Can't mouse-click on the Shifted action bar without grabbing the item.
Can't override FrameXML anymore, so there's no way around it.

=============================================
Other tips to set things up to be more NWN-like:

- Use Middle-mouse button for camera:
Edit the bindings-cache.wtf file (under WTF/<username>) and add:
bind BUTTON3 CAMERAORSELECTORMOVE

- Turn on Click to Move (in Options->Interface->Advanced Options tab (at bottom)

- Set Click-to-Move Camera Style & Camera Following Style to Never.


http://www.wowinterface.com/download...NQuickBar.html

--
-- Chris

Last edited by beorf : 06-26-06 at 04:13 PM.
  Reply With Quote
06-29-06, 12:50 PM   #2
beorf
A Murloc Raider
 
beorf's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2006
Posts: 7
1.1 Update

Added page variables to (more) easily change the page.
Changed the default pages to 2,6 instead of 2,3.
  Reply With Quote
07-04-06, 06:39 PM   #3
beorf
A Murloc Raider
 
beorf's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2006
Posts: 7
1.2 Update

Added bindings for momentary camera views (only while key is held).
  Reply With Quote
08-17-06, 04:37 PM   #4
beorf
A Murloc Raider
 
beorf's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2006
Posts: 7
NWNQuickBar 1.3

Fixed some CTRL/SHIFT interaction bugs. Added some extras (example keyboard template).
  Reply With Quote
08-27-06, 12:15 PM   #5
beorf
A Murloc Raider
 
beorf's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2006
Posts: 7
NWNQuickBar 1.4

Updated for WoW 1.12. Fixed some documentation errors.
  Reply With Quote
08-31-06, 06:18 PM   #6
Bastle
A Murloc Raider
AddOn Author - Click to view addons
Join Date: Oct 2005
Posts: 8
Hi Beorf.

I'm the author of ReactionBar. Current version is on curse and worldofwar, for some reason it wasn't updated here, but I digress. Basically ReactionBar switches the current actionpage depending on your target (friendly, enemy) and also distance for hunters. I do have one quick switch bar that is shown when you hold a key that you can bind to, not one of the meta keys, so that brings me to your mod.

A few of my users have asked for functionality like what you provide. I realise that it can only be done with OnUpdate watching and have tried to limit the use of that as much as I can. Instead of me adding this functionality to ReactionBar I would be happier to just make our mods work together and point people who are asking for this feature to NWNQuickBar.

What I'm asking for is what the best way to go about recognising that NWN is switching to a page while a user is holding down a meta key so that ReactionBar doesn't override this. Could you add a global that can be checked? I know you have some variables like currState, but I can't see that it is initialised anywhere, or if checking for 0 means off reliably.

Look forward to your reply. You can also contact me at [email protected]

Bastle.
  Reply With Quote
09-02-06, 01:10 PM   #7
beorf
A Murloc Raider
 
beorf's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2006
Posts: 7
Originally Posted by Bastle
Hi Beorf.
[...]
Could you add a global that can be checked? I know you have some variables like currState, but I can't see that it is initialised anywhere, or if checking for 0 means off reliably.
Bastle.
Hi Bastle,
I've changed NWNQuickBar_SavedPage so that it should reliably indicate whether a page is switched or not. If it is non-nil then NWNQuickBar has switched to a page while a meta-key is held. I now set it back to nil when the original page has been restored.

I haven't tested it against any other bar AddOns, so let me know if it doesn't work like you expect or if there's any other change you'd like.
I'm no LUA expert, so feel free to suggest anything!

-- Chris
  Reply With Quote
09-04-06, 01:11 AM   #8
Bastle
A Murloc Raider
AddOn Author - Click to view addons
Join Date: Oct 2005
Posts: 8
Hi Chris,

Thanks for that. After thinking about it, I realised that I needed someway of being notified when the key was released for a couple of reasons. That would require me to have an OnUpdate function watching your variable, which defeats the purpose of what I was trying to do in the first place.

I'm sorry but I had to incorporated ctrl, shift, alt page switching into my mod if it was to work together with what I currently have. I've probably been a bit too paranoid about OnUpdate functions anyway.

Bastle
  Reply With Quote
09-05-06, 12:04 PM   #9
beorf
A Murloc Raider
 
beorf's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2006
Posts: 7
Originally Posted by Bastle
Hi Chris,

Thanks for that. After thinking about it, I realised that I needed someway of being notified when the key was released for a couple of reasons. That would require me to have an OnUpdate function watching your variable, which defeats the purpose of what I was trying to do in the first place.

I'm sorry but I had to incorporated ctrl, shift, alt page switching into my mod if it was to work together with what I currently have. I've probably been a bit too paranoid about OnUpdate functions anyway.

Bastle
No worries. I was thinking I could also put in a global callback function (or list of functions) that I could call whenever the state switches, but then again that sounds pretty much what OnUpdate is already, so you might as well just use that mechanism.

BTW, feel free to steal any of my code to put the same functionality into your AddOn!

-- Chris
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » Released AddOns » NWNQuickBar: for Neverwinter Nights-style quickbar


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off