Mercurial > wow > degaine
comparison Degaine.lua @ 34:6f99c7f30f15
Add a small delay after unmounting
| author | contrebasse |
|---|---|
| date | Sat, 08 Jan 2011 16:09:53 +0100 |
| parents | b59da9bd1df7 |
| children | 83cfab9dcb63 |
comparison
equal
deleted
inserted
replaced
| 33:b59da9bd1df7 | 34:6f99c7f30f15 |
|---|---|
| 32 local ToggleSheath = ToggleSheath | 32 local ToggleSheath = ToggleSheath |
| 33 local UnitName = UnitName | 33 local UnitName = UnitName |
| 34 local IsMounted = IsMounted | 34 local IsMounted = IsMounted |
| 35 local GetNumCompanions, GetCompanionInfo = GetNumCompanions, GetCompanionInfo | 35 local GetNumCompanions, GetCompanionInfo = GetNumCompanions, GetCompanionInfo |
| 36 local UnitCastingInfo = UnitCastingInfo | 36 local UnitCastingInfo = UnitCastingInfo |
| 37 local select = select | |
| 37 | 38 |
| 38 | 39 |
| 39 --------------------------------------------------------------- | 40 --------------------------------------------------------------- |
| 40 -- Local vars | 41 -- Local vars |
| 41 --------------------------------------------------------------- | 42 --------------------------------------------------------------- |
| 47 -- vars | 48 -- vars |
| 48 local t_left = -1 | 49 local t_left = -1 |
| 49 local isGossipClosed = true | 50 local isGossipClosed = true |
| 50 local wasGossipOpened = false | 51 local wasGossipOpened = false |
| 51 local t_lastGossipClosed = 0 | 52 local t_lastGossipClosed = 0 |
| 52 local wasMounted = IsMounted() -- handle mounts with UNIT_AURA | 53 --local wasMounted = IsMounted() -- handle mounts with UNIT_AURA |
| 53 local isTradeSkill = false | 54 local isTradeSkill = false |
| 54 | 55 |
| 55 | 56 |
| 56 --------------------------------------------------------------- | 57 --------------------------------------------------------------- |
| 57 -- Some stuff... | 58 -- Some stuff... |
| 187 function handleMountsOnUpdate(self,t_elapsed) | 188 function handleMountsOnUpdate(self,t_elapsed) |
| 188 if IsMounted() then | 189 if IsMounted() then |
| 189 wasMounted = true | 190 wasMounted = true |
| 190 else | 191 else |
| 191 if wasMounted then | 192 if wasMounted then |
| 192 start(0) -- no animation for unmounting | 193 start(0.5) -- no animation for unmounting |
| 193 wasMounted = false | 194 wasMounted = false |
| 194 end | 195 end |
| 195 end | 196 end |
| 196 end | 197 end |
| 197 end | 198 end |
