diff --git a/Butsu.toc b/Butsu.toc index 71ff030..0755bd9 100644 --- a/Butsu.toc +++ b/Butsu.toc @@ -4,6 +4,7 @@ ## Version: 2.0.1 ## X-eMail: troeks@gmail.com ## Notes: Loot frame replacement +## Notes-koKR: 전리품 프레임을 바꿔줍니다. ## SavedVariables: ButsuDB locale.lua diff --git a/config.lua b/config.lua index 01eefaf..17aae0b 100644 --- a/config.lua +++ b/config.lua @@ -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) @@ -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) diff --git a/locale.lua b/locale.lua index 81c773c..d2f910f 100644 --- a/locale.lua +++ b/locale.lua @@ -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 and clicking on the title.', } +if ( GetLocale() == "koKR" ) then -- Korean +_NS.L = { + fish = "수상한 전리품", + empty = "빈 공간", + + uiTitleSize = '제목 글꼴 크기:', + uiItemSize = '아이템 글꼴 크기:', + uiCountSize = '카운트 글꼴 크기:', + uiIconSize = '아이템 아이콘 크기:', + uiFrameScale = '프레임 크기:', + + configDesc = 'Butsu는 기본 전리품 프레임을 작게 바꿔줍니다. 4개 이상의 아이템이 보여지도록 지원하며, 보기 좋게 해줍니다.', + configNote = '노트: 키를 누른 상태에서 제목을 클릭하여 프레임을 이동할 수 있습니다.', +} +end