Quantcast
Need help with a couple of fairly simple concepts. - ESOUI
Thread Tools Display Modes
05/14/14, 01:06 AM   #1
emeraldbay
Join Date: May 2014
Posts: 1
Question Need help with a couple of fairly simple concepts.

Firstly, I would like to make an addon that changes the walk/run from toggle to hold-to-run (like in previous elder scrolls games). It doesn't seem like it would be so hard, but I'm really not sure what I'm doing, so I would appreciate some help.

Second, I want to make an addon that will replace the quick unsheathe action that happens when you press your attack key (I have it set to LMB) with the normal-speed unsheathe action that occurs when you press the sheathe/unsheathe key (which I have set to F). When I press LMB, the addon would need to make sure I'm not in mouse mode or viewing a menu. Then, it needs to check and see if my weapon is sheathed or not. (Obviously, if my weapon is unsheathed, it doesn't need to do anything.) After that, it should be able to safely trigger my sheathe/unsheathe key instead of LMB.

Of course, these functions should only affect me, and never mess with other players. If anyone could offer me some assistance with these two things, I'd be very grateful.

Last edited by emeraldbay : 05/14/14 at 01:08 AM. Reason: More info.
  Reply With Quote
05/14/14, 08:44 AM   #2
CatoTheElder
Join Date: May 2014
Posts: 44
Someone please correct me if I'm wrong, but as far as I know:

1) Toggle Walk/Run is a private function, meaning we can't call it any more. (although sprint is hold by default)

2) I took a quick-ish look through, and didn't find anything regarding weapon sheathe, except for camera distance. Does anyone else have info on this?

Sorry EmeraldBay!
  Reply With Quote
05/14/14, 11:38 AM   #3
Kentarii
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 42
1) Dunno.

2) Wykkyd's framework has some AutoSheath functionality. Have you looked at that yet?
__________________
My addons: Quest Journal - Research and Mount Timers - Clock - Texture Viewer
Other addons I use: Achievement Tracker, Advanced Filters, Alchemist, AI Research Grid, BatmanStoreFilter, Esohead, Foundry Tactical Combat, Greymind Quick Slot Bar, HarvestMap, Inventory Grid View, Inventory Item Borders, Research Assistant, SkyShards, Sous Chef, TreasureMaps, ZrMM - Modified
  Reply With Quote
05/14/14, 11:48 AM   #4
Roupine
Join Date: May 2014
Posts: 18
Cato's right, ToggleWalk() is private and gives you business for trying to use it. So are the Mouse API functions.

Wykkyd's Framework has an Auto-Sheathe feature which might be close enough to what you're describing to rework for your own purposes, and you could try tracking the EVENT_GLOBAL_MOUSE_DOWN and EVENT_GLOBAL_MOUSE_UP events. EVENT_LAYER_POP and EVENT_LAYER_PUSH might be useful for tracking when the mouse cursor is active (that'd be layerIndex 6, "MouseUIMode")

Though, either Zgoo isn't registered for GLOBAL_MOUSE events or they don't trigger like I imagined.
  Reply With Quote

ESOUI » Developer Discussions » Lua/XML Help » Need help with a couple of fairly simple concepts.

Thread Tools
Display Modes

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