Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
ls- committed May 15, 2023
2 parents c0c42f5 + a5984c0 commit 962e5b8
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 9 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# CHANGELOG

## Version 100100.04

### Blizzard

- Readded gems to the character panel. Finally...

## Version 100100.03

### Action Bars
Expand Down
7 changes: 2 additions & 5 deletions ls_UI/core/changelog.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@ local _G = getfenv(0)

-- Mine
E.CHANGELOG = [[
### Action Bars
### Blizzard
- Removed main bar specific "Scale" option.
- Added "Scale" options to all action bars.
- Added an option to change the number of main bar buttons.
- Fixed an issue where the xp bar would sometimes disappear.
- Readded gems to the character panel. Finally...
]]
7 changes: 4 additions & 3 deletions ls_UI/core/utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,8 @@ end

do
local ENCHANT_PATTERN = ENCHANTED_TOOLTIP_LINE:gsub("%%s", "(.+)")
local GEM_TEMPLATE = "|TInterface\\ItemSocketingFrame\\UI-EmptySocket-%s:0:0:0:0:64:64:4:60:4:60|t "
local SOCKET_TEMPLATE = "|TInterface\\ItemSocketingFrame\\UI-EmptySocket-%s:0:0:0:0:64:64:4:60:4:60|t "
local GEM_TEMPLATE = "|T%s:0:0:0:0:64:64:4:60:4:60|t "

local itemCache = {}

Expand All @@ -797,8 +798,8 @@ do
for _, line in next, data.lines do
if line.enchantID then
enchant = line.leftText:match(ENCHANT_PATTERN)
elseif line.socketType then
gems[idx] = GEM_TEMPLATE:format(line.socketType)
elseif line.gemIcon or line.socketType then
gems[idx] = line.gemIcon and GEM_TEMPLATE:format(line.gemIcon) or SOCKET_TEMPLATE:format(line.socketType)
idx = idx + 1
end
end
Expand Down
2 changes: 1 addition & 1 deletion ls_UI/ls_UI.toc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Interface: 100100
## Author: lightspark
## Version: 100100.03
## Version: 100100.04
## Title: LS: |cff1a9fc0UI|r
## Notes: Yet another UI, but this one is a bit special...
## IconTexture: Interface\AddOns\ls_UI\assets\logo-64
Expand Down
1 change: 1 addition & 0 deletions ls_UI_Options/bars/bar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,7 @@ function CONFIG:CreateBarOptions(order, barID, name)
temp.args.reset.disabled = isPetBattleBarDisabledOrRestricted
temp.args.visible.disabled = isPetBattleBarDisabledOrRestricted
temp.args.grid = nil
temp.args.scale.disabled = isModuleDisabledOrRestricted
temp.args.num.max = 6
temp.args.num.disabled = isPetBattleBarDisabledOrRestricted
temp.args.per_row.max = 6
Expand Down

0 comments on commit 962e5b8

Please sign in to comment.