diff modules/ReAction_ConfigUI/ReAction_ConfigUI.lua @ 52:c9df7866ff31

Added anchor snapping
author Flick <flickerstreak@gmail.com>
date Thu, 24 Apr 2008 19:19:42 +0000
parents c964fb84560c
children 7e09c02ae620
line wrap: on
line diff
--- a/modules/ReAction_ConfigUI/ReAction_ConfigUI.lua	Tue Apr 22 21:33:37 2008 +0000
+++ b/modules/ReAction_ConfigUI/ReAction_ConfigUI.lua	Thu Apr 24 19:19:42 2008 +0000
@@ -153,7 +153,7 @@
                 type = "input",
                 pattern = "\-?%d+",
                 name = L["X offset"],
-                get = function() local p,f,r,x = bar:GetAnchor(); return x end,
+                get = function() local p,f,r,x = bar:GetAnchor(); return ("%d"):format(x) end,
                 set = function(info,val) bar:SetAnchor(nil,nil,nil,val) end,
                 order = 4
               },
@@ -161,7 +161,7 @@
                 type = "input",
                 pattern = "\-?%d+",
                 name = L["Y offset"],
-                get = function() local p,f,r,x,y = bar:GetAnchor(); return y end,
+                get = function() local p,f,r,x,y = bar:GetAnchor(); return ("%d"):format(y) end,
                 set = function(info,val) bar:SetAnchor(nil,nil,nil,nil,val) end,
                 order = 5
               },