View Single Post
11/07/16, 06:44 AM   #6
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 1,578
Originally Posted by merlight View Post
I thought this was generally known already. Remember we've discussed this in so many threads... and then wondered why it's so hard to find more info. Apparently there's no sane way to search addon comments.

Edit: and also no working way to link to a specific comment. You have to switch to the #comments tab by hand and then paste the link to the address bar
I have to admit I never read the comments for that addon. The code was terrible enough.
Jokes aside, it looks like Randactyl has found an even better solution:

Lua Code:
  1. PLAYER_INVENTORY:UpdateList(INVENTORY_BACKPACK)
  2. HideMouse()
  3. ShowMouse()

I would suggest to use this in the following way:

Lua Code:
  1. local function SafePlayerInventoryUpdateList(inventoryType)
  2.     PLAYER_INVENTORY:UpdateList(inventoryType)
  3.     if SCENE_MANAGER:IsInUIMode() then
  4.         HideMouse()
  5.         ShowMouse()
  6.     end
  7. end

Btw. you should come and visit our gitter chat sometime. We discuss most problems over there and it would be awesome to have your input from time to time.

Last edited by sirinsidiator : 11/07/16 at 10:45 AM. Reason: replaced non-existing method
  Reply With Quote