fix setting and font

Sammy James [03-22-14 - 06:25]
fix setting and font
Filename
core/PSBT_Media.lua
core/PSBT_ScrollArea.lua
core/PSBT_Settings.lua
diff --git a/core/PSBT_Media.lua b/core/PSBT_Media.lua
index 1cabe7c..0d13f84 100644
--- a/core/PSBT_Media.lua
+++ b/core/PSBT_Media.lua
@@ -2,7 +2,7 @@ local LMP = LibStub( 'LibMediaProvider-1.0' )
 if ( not LMP ) then return end

 LMP:Register( LMP.MediaType.FONT, 'Adventure',   [[psbt/fonts/adventure.ttf]]    )
-LMP:Register( LMP.MediaType.FONT, 'Bazooka',     [[psbt/fonts/baooka.ttf]]       )
+LMP:Register( LMP.MediaType.FONT, 'Bazooka',     [[psbt/fonts/bazooka.ttf]]      )
 LMP:Register( LMP.MediaType.FONT, 'Cooline',     [[psbt/fonts/cooline.ttf]]      )
 LMP:Register( LMP.MediaType.FONT, 'Diogenes',    [[psbt/fonts/diogenes.ttf]]     )
 LMP:Register( LMP.MediaType.FONT, 'Ginko',       [[psbt/fonts/ginko.ttf]]        )
@@ -10,5 +10,4 @@ LMP:Register( LMP.MediaType.FONT, 'Heroic',      [[psbt/fonts/heroic.ttf]]
 LMP:Register( LMP.MediaType.FONT, 'Porky',       [[psbt/fonts/porky.ttf]]        )
 LMP:Register( LMP.MediaType.FONT, 'Talisman',    [[psbt/fonts/talisman.ttf]]     )
 LMP:Register( LMP.MediaType.FONT, 'Transformers',[[psbt/fonts/transformers.ttf]] )
-LMP:Register( LMP.MediaType.FONT, 'Yellowjacket',[[psbt/fonts/yellowjacket.ttf]] )
-
+LMP:Register( LMP.MediaType.FONT, 'Yellowjacket',[[psbt/fonts/yellowjacket.ttf]] )
\ No newline at end of file
diff --git a/core/PSBT_ScrollArea.lua b/core/PSBT_ScrollArea.lua
index fc3f5ed..fc8aecb 100644
--- a/core/PSBT_ScrollArea.lua
+++ b/core/PSBT_ScrollArea.lua
@@ -121,7 +121,15 @@ function PSBT_ScrollArea:OnUpdate( frameTime )
         if ( entry and entry:WillExpire( frameTime + 2 ) ) then
             local anim = LibAnim:New( entry.control )
             anim:AlphaTo( 0.0, 200 )
-            anim:TranslateTo( 0, -100, 200 )
+
+            local ypos = 0
+            if ( self._direction == PSBT_SCROLL_DIRECTIONS.UP ) then
+                ypos = -100
+            elseif ( self._direction == PSBT_SCROLL_DIRECTIONS.DOWN ) then
+                ypos = 100
+            end
+
+            anim:TranslateTo( 0, ypos, 200 )
             anim:Play()

             entry:SetMoving( false )
diff --git a/core/PSBT_Settings.lua b/core/PSBT_Settings.lua
index 426854b..111cc17 100644
--- a/core/PSBT_Settings.lua
+++ b/core/PSBT_Settings.lua
@@ -1,18 +1,18 @@
-local PSBT_Module   = PSBT_Module
-local PSBT_Settings = PSBT_Module:Subclass()
-local CBM           = CALLBACK_MANAGER
+local PSBT_Module            = PSBT_Module
+local PSBT_Settings          = PSBT_Module:Subclass()
+local CBM                    = CALLBACK_MANAGER

-local PSBT_MODULES  = PSBT_MODULES
-local PSBT_EVENTS   = PSBT_EVENTS
-local PSBT_AREAS    = PSBT_AREAS
-local PSBT_ICON_SIDE= PSBT_ICON_SIDE
+local PSBT_MODULES           = PSBT_MODULES
+local PSBT_EVENTS            = PSBT_EVENTS
+local PSBT_AREAS             = PSBT_AREAS
+local PSBT_ICON_SIDE         = PSBT_ICON_SIDE
 local PSBT_SCROLL_DIRECTIONS = PSBT_SCROLL_DIRECTIONS

-local ZO_SavedVars  = ZO_SavedVars
+local ZO_SavedVars           = ZO_SavedVars

-local RIGHT = RIGHT
-local LEFT = LEFT
-local CENTER = CENTER
+local RIGHT                  = RIGHT
+local LEFT                   = LEFT
+local CENTER                 = CENTER

 local defaults =
 {
@@ -74,7 +74,7 @@ local defaults =
 function PSBT_Settings:Initialize( ... )
     PSBT_Module.Initialize( self, ... )

-    self.db = ZO_SavedVars:New( 'PSBT_DB', 2.5, nil, defaults )
+    self.db      = ZO_SavedVars:New( 'PSBT_DB', 2.5, nil, defaults )
     self.profile = self.db:GetInterfaceForCharacter( GetDisplayName(), GetUnitName( 'player' ) )
 end