Fixed settings issues
Brandon Talbot [07-24-16 - 19:06]
Fixed settings issues
Removed print
diff --git a/src/lua/constants/contstants.lua b/src/lua/constants/contstants.lua
index 9f3fdcc..9578c03 100644
--- a/src/lua/constants/contstants.lua
+++ b/src/lua/constants/contstants.lua
@@ -41,6 +41,7 @@ DJBags_SETTING_BOA = 'djbags_class_boa'
local localeText= {}
localeText['enUS'] = function()
+ DJBags_LOCALE_MAIN_SETTINGS = 'Main Settings:'
DJBags_LOCALE_ITEM_CONTAINER_SETTINGS = 'Item Container Settings:'
DJBags_LOCALE_CONTAINER_SETTINGS = 'Category Container Settings:'
DJBags_LOCALE_SUB_CLASS_SETTINGS = 'Sub Class Settings:'
diff --git a/src/lua/tools/itemFormatter.lua b/src/lua/tools/itemFormatter.lua
index 48d6fe8..a9893dc 100644
--- a/src/lua/tools/itemFormatter.lua
+++ b/src/lua/tools/itemFormatter.lua
@@ -70,7 +70,6 @@ function ADDON:ArrangeItemContainer(frame, max, vert, maxCnt, force)
local colSize = math.ceil(itemCount / max) * (next(frame.items):GetWidth() + frame.spacing) - frame.spacing
local numCols = force and max or (maxCnt and maxCnt or (itemCount < max and itemCount or max))
- print(numCols, force)
local rowSize = numCols * (frame.spacing + next(frame.items):GetWidth()) - frame.spacing
frame:SetSize(
diff --git a/src/xml/settings/settingsContainer.xml b/src/xml/settings/settingsContainer.xml
index d08b8e9..7be7051 100644
--- a/src/xml/settings/settingsContainer.xml
+++ b/src/xml/settings/settingsContainer.xml
@@ -85,7 +85,7 @@
</OnMouseWheel>
</Scripts>
</ScrollFrame>
- <Slider name="$parentScrollBar" inherits="UIPanelScrollBarTemplate" minValue="0" maxValue="270" defaultValuie="1" valueStep="1">
+ <Slider name="$parentScrollBar" inherits="UIPanelScrollBarTemplate" minValue="0" maxValue="450" defaultValuie="1" valueStep="1">
<Backdrop bgFile="Interface\Buttons\UI-SliderBar-Background"
edgeFile="Interface\Buttons\UI-SliderBar-Border" tile="true">
<EdgeSize val="8"/>
diff --git a/src/xml/settings/toggleSettings.xml b/src/xml/settings/toggleSettings.xml
index c75407c..b76a1f4 100644
--- a/src/xml/settings/toggleSettings.xml
+++ b/src/xml/settings/toggleSettings.xml
@@ -11,7 +11,7 @@
</Backdrop>
<Layers>
<Layer level="ARTWORK">
- <FontString name="$parentName" inherits="GameFontNormal" text="DJBags_LOCALE_SUB_CLASS_SETTINGS">
+ <FontString name="$parentName" inherits="GameFontNormal" text="DJBags_LOCALE_MAIN_SETTINGS">
<Anchors>
<Anchor point="TOPLEFT" x="15" y="-5"/>
</Anchors>