Download
(7Kb)
Download
Updated: 10-15-20 01:04 PM
Pictures
File Info
Compatibility:
Shadowlands pre-patch (9.0.1)
Updated:10-15-20 01:04 PM
Created:unknown
Downloads:61,534
Favorites:623
MD5:

Butsu  Popular! (More than 5000 hits)

Version: 2.1.3
by: haste [More]

Butsu is a small replacement for the default loot frame. It supports showing more than four items, and has a slick look.

You can move the frame by holding down <Alt> and clicking on the title.

Note: Unstable versions located at: here.

Changes from 2.1.2
- Bump TOC version to 9.0.1
- Update to work correctly on 9.0.1.

Changes from 2.1.1
- Bump TOC version to 8.0.1
- Update to work correctly on 8.0.1.

Changes from 2.1.0
- Bump TOC version to 5.0.4.
- Update to work correctly on 5.0.4.

Changes from 2.0.2
- Bump TOC version to 4.3.
- Display the quest bang for items that start a new quest.
- Color the background and text yellow for quest items.

Changes from 2.0.1
- Improved the UI to look slightly less bad on 4.2.
- Bumped TOC version to 4.2.
- Don't attempt to display slot information before the server has finished sending us all the information.
- Prevent the frame from having excessive width.

Changes from 2.0
- Master loot drop-down now appears at the correct position.

Changes from 1.10
- Empty frames are no collapsed.
- Some minor options added for font size and frame scale.
- License changed to MIIT (was NewBSD, so pretty much no difference except wording).
- Frame position will no longer reset if you log in with the add-on disabled.

Changes from 1.9
- Master loot works yet again.

Changes from 1.8
- Fix CursorUpdate errors.

Changes from 1.7
- Master loot should work properly again.

Changes from 1.6
- Now works with WoTLK.

Changes from 1.5
- Fixed a typo which possibly prevented master looting from working.

Changes from 1.4
- Snap to mouse updated to work in 2.4
- TOC bumped to 2.4.

Changes from 1.3
- <Esc> now has the same behavior as the default loot frame. This fixes the issue with containers acting oddly.

Changes from 1.2
- Changed frame strata to HIGH and enabled toplevel. Should prevent it from hiding behind every other frame.

Changes from 1.1
- Fixed display of empty corpses.

Changes from 1.0
- Fixed the snap to mouse code. It will no longer float far above the mouse.
- Item name now inherits the GameFontWhite instead of using STANDARD_TEXT_FONT locked to 10 in size.
- Moved locales into loot.lua.
Optional Files (0)


Post A Reply Comment Options
Unread 10-15-20, 01:05 PM  
haste
Featured Artist
 
haste's Avatar
Featured Addon Author

Forum posts: 1027
File comments: 392
Uploads: 17
Originally Posted by gmarco
Hi all,

I made this change to make butsu work again in 9.0.1.
Thanks, I've uploaded an updated version. Also made the change to other widgets using backdrops in the add-on.
__________________
「貴方は1人じゃないよ」
Report comment to moderator  
Reply With Quote
Unread 10-15-20, 12:17 PM  
gmarco
An Onyxian Warder
 
gmarco's Avatar
AddOn Author - Click to view AddOns

Forum posts: 362
File comments: 334
Uploads: 46
Hi all,

I made this change to make butsu work again in 9.0.1.

Modify line 2 of butsu.lua in this way:

Lua Code:
  1. local _NAME, _NS = ...
  2. local Butsu = CreateFrame("Button", _NAME, UIParent, BackdropTemplateMixin and "BackdropTemplate")
  3. Butsu:Hide()
__________________
This is Unix-Land. In quiet nights, you can hear the Windows machines reboot.
Last edited by gmarco : 10-15-20 at 12:18 PM.
Report comment to moderator  
Reply With Quote
Unread 07-25-18, 10:33 PM  
Kyrgune
Premium Member
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 14
File comments: 66
Uploads: 2
Just do a clean install and maybe that will fix your problem. Delete the addon from saved variables as well. With this recent update I am not having any issues.

Originally Posted by tordenflesk
I'm still getting the error:
Code:
1x Butsu\slots.lua:25: attempt to compare number with nil
Butsu\slots.lua:25: in function <Butsu\slots.lua:24>
[C]: in function `Hide'
Butsu\butsu-2.1.2.lua:126: in function `?'
Butsu\butsu-2.1.2.lua:6: in function <Butsu\butsu.lua:5>

Locals:
self = ButsuSlot1 {
 0 = <userdata>
 count = <unnamed> {
 }
 iconFrame = <unnamed> {
 }
 drop = <unnamed> {
 }
 name = <unnamed> {
 }
 icon = <unnamed> {
 }
 quest = <unnamed> {
 }
}
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to compare number with nil"
Report comment to moderator  
Reply With Quote
Unread 07-25-18, 10:22 PM  
Kyrgune
Premium Member
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 14
File comments: 66
Uploads: 2
Thanks for the update! One of the few gems of addons I've been using forever.
Last edited by Kyrgune : 07-25-18 at 10:36 PM.
Report comment to moderator  
Reply With Quote
Unread 07-24-18, 02:17 AM  
tordenflesk
A Deviate Faerie Dragon

Forum posts: 18
File comments: 213
Uploads: 0
I'm still getting the error:
Code:
1x Butsu\slots.lua:25: attempt to compare number with nil
Butsu\slots.lua:25: in function <Butsu\slots.lua:24>
[C]: in function `Hide'
Butsu\butsu-2.1.2.lua:126: in function `?'
Butsu\butsu-2.1.2.lua:6: in function <Butsu\butsu.lua:5>

Locals:
self = ButsuSlot1 {
 0 = <userdata>
 count = <unnamed> {
 }
 iconFrame = <unnamed> {
 }
 drop = <unnamed> {
 }
 name = <unnamed> {
 }
 icon = <unnamed> {
 }
 quest = <unnamed> {
 }
}
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to compare number with nil"
Report comment to moderator  
Reply With Quote
Unread 07-24-18, 12:19 AM  
gmarco
An Onyxian Warder
 
gmarco's Avatar
AddOn Author - Click to view AddOns

Forum posts: 362
File comments: 334
Uploads: 46
This is one of my must-have addons

Thanks so much haste.
__________________
This is Unix-Land. In quiet nights, you can hear the Windows machines reboot.
Report comment to moderator  
Reply With Quote
Unread 07-23-18, 12:47 PM  
haste
Featured Artist
 
haste's Avatar
Featured Addon Author

Forum posts: 1027
File comments: 392
Uploads: 17
Pushed an update here as well.
__________________
「貴方は1人じゃないよ」
Report comment to moderator  
Reply With Quote
Unread 07-22-18, 05:05 PM  
Imithat
A Fallenroot Satyr
 
Imithat's Avatar
AddOn Author - Click to view AddOns

Forum posts: 27
File comments: 201
Uploads: 7
Originally Posted by Geach
Originally Posted by tordenflesk
1x Butsu\slots.lua:25: attempt to compare number with nil
Butsu\slots.lua:25: in function <Butsu\slots.lua:24>
[C]: in function `Hide'
Butsu\butsu-2.1.1.lua:121: in function `?'
Butsu\butsu-2.1.1.lua:6: in function <Butsu\butsu.lua:5>

Locals:
GetLootSlotInfo changed to have the currency listed. Which throws off the other variables. Therefore I changed line 42 to:

Lua Code:
  1. local texture, item, quantity, currencyid, quality, locked, isQuestItem, questId, isActive = GetLootSlotInfo(i)

After that change I haven't noticed any issues with butsu. Hope that helps.
haste also changed it on github:
https://github.com/haste/Butsu/blob/master/butsu.lua
Report comment to moderator  
Reply With Quote
Unread 07-21-18, 11:21 AM  
Geach
Premium Member

Forum posts: 1
File comments: 10
Uploads: 0
Originally Posted by tordenflesk
1x Butsu\slots.lua:25: attempt to compare number with nil
Butsu\slots.lua:25: in function <Butsu\slots.lua:24>
[C]: in function `Hide'
Butsu\butsu-2.1.1.lua:121: in function `?'
Butsu\butsu-2.1.1.lua:6: in function <Butsu\butsu.lua:5>

Locals:
GetLootSlotInfo changed to have the currency listed. Which throws off the other variables. Therefore I changed line 42 to:

Lua Code:
  1. local texture, item, quantity, currencyid, quality, locked, isQuestItem, questId, isActive = GetLootSlotInfo(i)

After that change I haven't noticed any issues with butsu. Hope that helps.
Report comment to moderator  
Reply With Quote
Unread 08-04-16, 10:34 AM  
tordenflesk
A Deviate Faerie Dragon

Forum posts: 18
File comments: 213
Uploads: 0
1x Butsu\slots.lua:25: attempt to compare number with nil
Butsu\slots.lua:25: in function <Butsu\slots.lua:24>
[C]: in function `Hide'
Butsu\butsu-2.1.1.lua:121: in function `?'
Butsu\butsu-2.1.1.lua:6: in function <Butsu\butsu.lua:5>

Locals:
Last edited by tordenflesk : 06-14-17 at 10:08 AM.
Report comment to moderator  
Reply With Quote
Unread 12-16-13, 06:06 PM  
Tomacco_Boy
A Kobold Labourer

Forum posts: 0
File comments: 114
Uploads: 0
Code:
16x Butsu\butsu-2.1.1.lua:158: attempt to perform arithmetic on local 'x' (a nil value)
Butsu\butsu-2.1.1.lua:158: in function `LoadPosition'
Butsu\config.lua:34: in function <Butsu\config.lua:6>
[C]: in function `Show'
Butsu\butsu-2.1.1.lua:10: in function `?'
Butsu\butsu-2.1.1.lua:6: in function <Butsu\butsu.lua:5>

Locals:
self = Butsu {
 0 = <userdata>
 LOOT_CLOSED = <function> defined @Butsu\butsu.lua:119
 LOOT_OPENED = <function> defined @Butsu\butsu.lua:9
 LoadPosition = <function> defined @Butsu\butsu.lua:153
 OPEN_MASTER_LOOT_LIST = <function> defined @Butsu\butsu.lua:129
 UPDATE_MASTER_LOOT_LIST = <function> defined @Butsu\butsu.lua:134
 title = <unnamed> {
 }
 AnchorSlots = <function> defined @Butsu\slots.lua:145
 LOOT_SLOT_CLEARED = <function> defined @Butsu\butsu.lua:111
 UpdateWidth = <function> defined @Butsu\slots.lua:131
 SavePosition = <function> defined @Butsu\butsu.lua:144
}
db = <table> {
 framePosition = "TOPLEFTUIParent1023647"
}
_NS = <table> {
 db = <table> {
 }
 L = <table> {
 }
 slots = <table> {
 }
 CreateSlot = <function> defined @Butsu\slots.lua:61
}
This has been happening since the latest patch, popped up when i tried opening a blingtron 4000 gift package.
__________________
YOU DONT TELL ME TO BUR
Report comment to moderator  
Reply With Quote
Unread 09-22-13, 04:16 AM  
haste
Featured Artist
 
haste's Avatar
Featured Addon Author

Forum posts: 1027
File comments: 392
Uploads: 17
Originally Posted by bravejohn
hello! How can I make loot window not to open on mouse position? I have disabled from Blizzard interface but it seems that Butsu has its own option What lua file should I edit and what I am looking for?

thank you

EDIT: sorry, it is working now, it seems it needed a reloadui...I can also move it and positioning it with alt wherever I want exactly what I was looking for
If you have the UI option enabled, then it should "just work". It might stop moving it to the cursor if you later on move it that UI session tho', I'm not completely certain tbh.

Edit: Hah, fooled by WoWI telling me someone asked a related question, then deleted their post before I checked.
__________________
「貴方は1人じゃないよ」
Last edited by haste : 09-22-13 at 04:17 AM.
Report comment to moderator  
Reply With Quote
Unread 06-06-13, 08:09 AM  
bravejohn
A Deviate Faerie Dragon

Forum posts: 17
File comments: 154
Uploads: 0
hello! How can I make loot window not to open on mouse position? I have disabled from Blizzard interface but it seems that Butsu has its own option What lua file should I edit and what I am looking for?

thank you

EDIT: sorry, it is working now, it seems it needed a reloadui...I can also move it and positioning it with alt wherever I want exactly what I was looking for
Last edited by bravejohn : 06-06-13 at 08:13 AM.
Report comment to moderator  
Reply With Quote
Unread 03-19-13, 03:14 AM  
haste
Featured Artist
 
haste's Avatar
Featured Addon Author

Forum posts: 1027
File comments: 392
Uploads: 17
Wasn't that fixed with 2.1.1?
__________________
「貴方は1人じゃないよ」
Report comment to moderator  
Reply With Quote
Unread 03-18-13, 01:46 PM  
Kyrgune
Premium Member
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 14
File comments: 66
Uploads: 2
Originally Posted by Sec
In trying to update the code, following Linkszwodrei's instructions:

1) Open butsu.lua and locate line #47 which should read
Code:
if(LootSlotIsCoin(i)) then
2) Replace line #47 with the following:
Code:
if(GetLootSlotType(i) == LOOT_SLOT_MONEY) then
3) Save file.

4) Open slots.lua and locate line #9 which should read
Code:
if(LootSlotIsItem(slot)) then
5) Replace line # 9 with the following:
Code:
if(GetLootSlotType(slot) == LOOT_SLOT_ITEM) then
6) Save file.

7) Ensure Butsu is selected in the AddOns menu to load out of date AddOns or alternatively, update the TOC file.

I hope this helps.
This worked perfectly for me, thankyou.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump:

Support AddOn Development!

You have just downloaded by the author . If you like this AddOn why not consider supporting the author? This author has set up a donation account. Donations ensure that authors can continue to develop useful tools for everyone.