Originally Posted by Dynamite7673
I went home and did this yesterday. When I logged in and tried to /resinv 500 and opened my inventory nothing changed. Then I opened my settings and my add-on names are overlapping with a big gap at the bottom between addon settings and controls. I do not think this is related bause I remove the added Folder/lua file/Text files I added and went back into the game. The setting menu is still messed up. Anyone else have this issue? Is it a game update? I guess no one can answer that unless they're having the same issue because I have about 40 addons lol.
|
This is developer discussion, so I thought you want just an example how you can resize inventory. If it is not the case, and you are looking for an addon, move your post to
AddOn Search/Requests.
As to the code:
If command /resinv doesn't work for you, you probably did not install lua file correctly. As katkat42 said, you need to create a new folder under AddOns and create two files inside of that folder. InventoryResizer.lua with my sample code and InventoryResizer.txt with text in katkat42's comment.
Command /resinv does resize inventory only until you logout/login your character or use /reloadui. If you want to use this code in addon, you should add function that will resize inventory automatically when addon is loaded and also option to save user defined width. By the way default width of player's inventory is 565px.