Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Butsu.toc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
## Version: 2.0.1
## X-eMail: [email protected]
## Notes: Loot frame replacement
## Notes-koKR: 전리품 프레임을 바꿔줍니다.
## SavedVariables: ButsuDB

locale.lua
Expand Down
25 changes: 20 additions & 5 deletions config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,27 @@ do
end
end

local L = _NS.L

local title = createFontString(_NAME, 'GameFontNormalLarge', 'TOPLEFT', 16, -16)
title:SetPoint('TOPRIGHT', -16, -16)
title:SetJustifyH'LEFT'
title:SetPoint('TOPRIGHT', -16, -16);
title:SetJustifyH('LEFT')

local L = _NS.L
local fontSizeTitle = createSlider(L.uiTitleSize, 7, 40, db.fontSizeTitle, 'TOPLEFT', title, 'BOTTOMLEFT', 0, -16)
local version = createFontString(nil, 'GameFontHighlightSmall', 'TOPLEFT', 16, -16)
version:SetPoint('TOPRIGHT', -16, -16)
version:SetJustifyH('RIGHT')
version:SetFormattedText('%s', GetAddOnMetadata('Butsu', 'Version'))

local desc = createFontString(L.configDesc, 'GameFontHighlightSmall', 'TOPLEFT', title, 'BOTTOMLEFT', 0, -10)
desc:SetWidth(385)
desc:SetJustifyH('LEFT')

local note = createFontString(L.configNote, 'GameFontHighlightSmall', 'TOPLEFT', desc, 'BOTTOMLEFT', 0, -10)
note:SetWidth(385)
note:SetJustifyH('LEFT')
note:SetTextColor(0.8, 0.8, 0.8)

local fontSizeTitle = createSlider(L.uiTitleSize, 7, 40, db.fontSizeTitle, 'TOPLEFT', note, 'BOTTOMLEFT', 0, -28)
fontSizeTitle:SetScript('OnValueChanged', function(self, value)
value = math.floor(value + .5)

Expand Down Expand Up @@ -129,7 +144,7 @@ do
end
end)

local iconSize = createSlider(L.uiIconSize, 14, 80, db.iconSize, 'TOPRIGHT', title, 'BOTTOMRIGHT', 0, -16)
local iconSize = createSlider(L.uiIconSize, 14, 80, db.iconSize, 'TOPRIGHT', note, 'BOTTOMRIGHT', 0, -28)
iconSize:SetScript('OnValueChanged', function(self, value)
value = math.floor(value + .5)

Expand Down
18 changes: 18 additions & 0 deletions locale.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,23 @@ _NS.L = {
uiCountSize = 'Count font size:',
uiIconSize = 'Item icon size:',
uiFrameScale = 'Frame scale:',

configDesc = 'Butsu is a small replacement for the default loot frame. It supports showing more than four items, and has a slick look.',
configNote = 'Note: You can move the frame by holding down <Alt> and clicking on the title.',
}

if ( GetLocale() == "koKR" ) then -- Korean
_NS.L = {
fish = "수상한 전리품",
empty = "빈 공간",

uiTitleSize = '제목 글꼴 크기:',
uiItemSize = '아이템 글꼴 크기:',
uiCountSize = '카운트 글꼴 크기:',
uiIconSize = '아이템 아이콘 크기:',
uiFrameScale = '프레임 크기:',

configDesc = 'Butsu는 기본 전리품 프레임을 작게 바꿔줍니다. 4개 이상의 아이템이 보여지도록 지원하며, 보기 좋게 해줍니다.',
configNote = '노트: <Alt> 키를 누른 상태에서 제목을 클릭하여 프레임을 이동할 수 있습니다.',
}
end