Advertisement
Guest User

Untitled

a guest
Feb 25th, 2018
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 3.01 KB | None | 0 0
  1. Index: AceConfig-3.0/AceConfigDialog-3.0/AceConfigDialog-3.0.lua
  2. ===================================================================
  3. --- AceConfig-3.0/AceConfigDialog-3.0/AceConfigDialog-3.0.lua   (revision 1168)
  4. +++ AceConfig-3.0/AceConfigDialog-3.0/AceConfigDialog-3.0.lua   (working copy)
  5. @@ -7,7 +7,7 @@
  6.  local gui = LibStub("AceGUI-3.0")
  7.  local reg = LibStub("AceConfigRegistry-3.0")
  8.  
  9. -local MAJOR, MINOR = "AceConfigDialog-3.0", 65
  10. +local MAJOR, MINOR = "AceConfigDialog-3.0", 66
  11.  local AceConfigDialog, oldminor = LibStub:NewLibrary(MAJOR, MINOR)
  12.  
  13.  if not AceConfigDialog then return end
  14. @@ -1227,6 +1227,8 @@
  15.                                 radio:SetWidth(width_multiplier * 2)
  16.                             elseif width == "half" then
  17.                                 radio:SetWidth(width_multiplier / 2)
  18. +                           elseif (type(width) == "number") then
  19. +                               radio:SetWidth(width_multiplier * width)
  20.                             elseif width == "full" then
  21.                                 radio.width = "fill"
  22.                             else
  23. @@ -1289,6 +1291,8 @@
  24.                             control:SetWidth(width_multiplier * 2)
  25.                         elseif width == "half" then
  26.                             control:SetWidth(width_multiplier / 2)
  27. +                       elseif (type(width) == "number") then
  28. +                           control:SetWidth(width_multiplier * width)
  29.                         elseif width == "full" then
  30.                             control.width = "fill"
  31.                         else
  32. @@ -1325,6 +1329,8 @@
  33.                                 check:SetWidth(width_multiplier * 2)
  34.                             elseif width == "half" then
  35.                                 check:SetWidth(width_multiplier / 2)
  36. +                           elseif (type(width) == "number") then
  37. +                               control:SetWidth(width_multiplier * width)
  38.                             elseif width == "full" then
  39.                                 check.width = "fill"
  40.                             else
  41. @@ -1406,6 +1412,8 @@
  42.                             control:SetWidth(width_multiplier * 2)
  43.                         elseif width == "half" then
  44.                             control:SetWidth(width_multiplier / 2)
  45. +                       elseif (type(width) == "number") then
  46. +                           control:SetWidth(width_multiplier * width)
  47.                         elseif width == "full" then
  48.                             control.width = "fill"
  49.                         else
  50. Index: AceConfig-3.0/AceConfigRegistry-3.0/AceConfigRegistry-3.0.lua
  51. ===================================================================
  52. --- AceConfig-3.0/AceConfigRegistry-3.0/AceConfigRegistry-3.0.lua   (revision 1168)
  53. +++ AceConfig-3.0/AceConfigRegistry-3.0/AceConfigRegistry-3.0.lua   (working copy)
  54. @@ -11,7 +11,7 @@
  55.  -- @release $Id$
  56.  local CallbackHandler = LibStub("CallbackHandler-1.0")
  57.  
  58. -local MAJOR, MINOR = "AceConfigRegistry-3.0", 17
  59. +local MAJOR, MINOR = "AceConfigRegistry-3.0", 18
  60.  local AceConfigRegistry = LibStub:NewLibrary(MAJOR, MINOR)
  61.  
  62.  if not AceConfigRegistry then return end
  63. @@ -67,6 +67,7 @@
  64.  local opttable={["nil"]=true,["table"]=true,  _="table"}
  65.  local optbool={["nil"]=true,["boolean"]=true,  _="boolean"}
  66.  local optboolnumber={["nil"]=true,["boolean"]=true,["number"]=true,  _="boolean or number"}
  67. +local optstringnumber={["nil"]=true,["string"]=true,["number"]=true, _="string or number"}
  68.  
  69.  local basekeys={
  70.     type=isstring,
  71. @@ -90,7 +91,7 @@
  72.     set=optmethodfalse,
  73.     func=optmethodfalse,
  74.     arg={["*"]=true},
  75. -   width=optstring,
  76. +   width=optstringnumber,
  77.  }
  78.  
  79.  local typedkeys={
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement