Thread Tools Display Modes
Prev Previous Post   Next Post Next
08-06-14, 11:36 AM   #1
VikingP
A Deviate Faerie Dragon
Join Date: Aug 2014
Posts: 10
Saving variables for other addons

Im trying to save settings for other addons, so that i simply can run a script ingame.
Have tested a few ways without any luck.

Any sugestion?

Exampel i whant to add these settings to Bartender savedvariable:

Lua Code:
  1. ["namespaces"] = {
  2.                 ["ActionBars"] = {
  3.                     ["profiles"] = {                       
  4.                         ["Default"] = {
  5.                             ["actionbars"] = {
  6.                                 {
  7.                                     ["showgrid"] = true,
  8.                                     ["version"] = 3,
  9.                                     ["position"] = {
  10.                                         ["y"] = 125,
  11.                                         ["x"] = -265.5,
  12.                                         ["point"] = "BOTTOM",
  13.                                     },
  14.                                     ["padding"] = 8,
  15.                                 }, -- [1]
  16.                                 {
  17.                                     ["showgrid"] = true,
  18.                                     ["version"] = 3,
  19.                                     ["fadeoutalpha"] = 0.3,
  20.                                     ["skin"] = {
  21.                                         ["ID"] = "Default: Buffs",
  22.                                         ["Backdrop"] = false,
  23.                                     },
  24.                                     ["position"] = {
  25.                                         ["y"] = 82,
  26.                                         ["x"] = -265.5,
  27.                                         ["point"] = "BOTTOM",
  28.                                     },
  29.                                     ["padding"] = 8,
  30.                                     ["states"] = {
  31.                                         ["enabled"] = true,
  32.                                         ["default"] = 2,
  33.                                     },
  34.                                 }, -- [2]
  35.                                 {
  36.                                     ["showgrid"] = true,
  37.                                     ["alpha"] = 0.5,
  38.                                     ["version"] = 3,
  39.                                     ["skin"] = {
  40.                                         ["ID"] = "Default: Buffs",
  41.                                         ["Backdrop"] = false,
  42.                                     },
  43.                                     ["position"] = {
  44.                                         ["y"] = 116.5,
  45.                                         ["x"] = 0.4,
  46.                                         ["point"] = "LEFT",
  47.                                         ["scale"] = 0.8,
  48.                                     },
  49.                                     ["padding"] = 9,
  50.                                 }, -- [3]
  51.                                 {
  52.                                     ["showgrid"] = true,
  53.                                     ["alpha"] = 0.5,
  54.                                     ["version"] = 3,
  55.                                     ["skin"] = {
  56.                                         ["ID"] = "Default: Buffs",
  57.                                         ["Backdrop"] = false,
  58.                                     },
  59.                                     ["position"] = {
  60.                                         ["y"] = 82,
  61.                                         ["x"] = 0.4,
  62.                                         ["point"] = "LEFT",
  63.                                         ["scale"] = 0.8,
  64.                                     },
  65.                                     ["padding"] = 9,
  66.                                 }, -- [4]
  67.                                 {
  68.                                     ["showgrid"] = true,
  69.                                     ["rows"] = 2,
  70.                                     ["buttons"] = 6,
  71.                                     ["hidemacrotext"] = true,
  72.                                     ["version"] = 3,
  73.                                     ["skin"] = {
  74.                                         ["ID"] = "Default: Buffs",
  75.                                         ["Backdrop"] = false,
  76.                                     },
  77.                                     ["position"] = {
  78.                                         ["y"] = 113,
  79.                                         ["x"] = 279,
  80.                                         ["point"] = "BOTTOM",
  81.                                         ["scale"] = 0.75,
  82.                                     },
  83.                                     ["padding"] = 3,
  84.                                 }, -- [5]
  85.                                 {
  86.                                     ["showgrid"] = true,
  87.                                     ["rows"] = 12,
  88.                                     ["version"] = 3,
  89.                                     ["skin"] = {
  90.                                         ["ID"] = "Default: Buffs",
  91.                                         ["Backdrop"] = false,
  92.                                     },
  93.                                     ["position"] = {
  94.                                         ["y"] = 201.4,
  95.                                         ["x"] = -35,
  96.                                         ["point"] = "RIGHT",
  97.                                         ["scale"] = 0.76,
  98.                                     },
  99.                                     ["padding"] = 8,
  100.                                 }, -- [6]
  101.                                 {
  102.                                     ["showgrid"] = true,
  103.                                     ["rows"] = 6,
  104.                                     ["enabled"] = true,
  105.                                     ["version"] = 3,
  106.                                     ["skin"] = {
  107.                                         ["ID"] = "Default: Buffs",
  108.                                         ["Backdrop"] = false,
  109.                                     },
  110.                                     ["position"] = {
  111.                                         ["y"] = 144.5,
  112.                                         ["x"] = 351.5,
  113.                                         ["point"] = "CENTER",
  114.                                     },
  115.                                     ["padding"] = 11,
  116.                                     ["visibility"] = {
  117.                                         ["custom"] = false,
  118.                                         ["customdata"] = "[mod:ctrl]show;hide",
  119.                                     },
  120.                                 }, -- [7]
  121.                                 {
  122.                                     ["showgrid"] = true,
  123.                                     ["rows"] = 2,
  124.                                     ["enabled"] = true,
  125.                                     ["buttons"] = 6,
  126.                                     ["hidemacrotext"] = true,
  127.                                     ["version"] = 3,
  128.                                     ["skin"] = {
  129.                                         ["ID"] = "Default: Buffs",
  130.                                         ["Backdrop"] = false,
  131.                                     },
  132.                                     ["position"] = {
  133.                                         ["y"] = 112.5,
  134.                                         ["x"] = -372,
  135.                                         ["point"] = "BOTTOM",
  136.                                         ["scale"] = 0.75,
  137.                                     },
  138.                                     ["padding"] = 3,
  139.                                 }, -- [8]
  140.                                 {
  141.                                     ["showgrid"] = true,
  142.                                     ["rows"] = 6,
  143.                                     ["enabled"] = true,
  144.                                     ["buttons"] = 6,
  145.                                     ["hidemacrotext"] = true,
  146.                                     ["version"] = 3,
  147.                                     ["skin"] = {
  148.                                         ["ID"] = "Default: Buffs",
  149.                                         ["Backdrop"] = false,
  150.                                     },
  151.                                     ["position"] = {
  152.                                         ["y"] = 180,
  153.                                         ["x"] = 624,
  154.                                         ["point"] = "BOTTOM",
  155.                                         ["scale"] = 0.7,
  156.                                     },
  157.                                     ["padding"] = 6,
  158.                                 }, -- [9]
  159.                                 {
  160.                                     ["showgrid"] = true,
  161.                                     ["rows"] = 7,
  162.                                     ["enabled"] = true,
  163.                                     ["buttons"] = 6,
  164.                                     ["hidemacrotext"] = true,
  165.                                     ["version"] = 3,
  166.                                     ["skin"] = {
  167.                                         ["ID"] = "Default: Buffs",
  168.                                         ["Backdrop"] = false,
  169.                                     },
  170.                                     ["position"] = {
  171.                                         ["y"] = 180,
  172.                                         ["x"] = -654.5,
  173.                                         ["point"] = "BOTTOM",
  174.                                         ["scale"] = 0.7,
  175.                                     },
  176.                                     ["padding"] = 6,
  177.                                 }, -- [10]
  178.                             },
  179.                         },
  180.                     },
  181.                 },
  182.                 ["LibDualSpec-1.0"] = {
  183.                 },
  184.                 ["ExtraActionBar"] = {
  185.                     ["profiles"] = {                       
  186.                         ["Default"] = {
  187.                             ["position"] = {
  188.                                 ["y"] = 47,
  189.                                 ["x"] = 5.3,
  190.                                 ["point"] = "CENTER",
  191.                                 ["scale"] = 1.5,
  192.                             },
  193.                             ["version"] = 3,
  194.                             ["skin"] = {
  195.                                 ["ID"] = "Default: Buffs",
  196.                                 ["Backdrop"] = false,
  197.                             },
  198.                         },
  199.                     },
  200.                 },
  201.                 ["MicroMenu"] = {
  202.                     ["profiles"] = {                       
  203.                         ["Default"] = {
  204.                             ["version"] = 3,
  205.                             ["visibility"] = {
  206.                                 ["custom"] = true,
  207.                                 ["customdata"] = "[mod:ctrl-Shift]show;hide",
  208.                             },
  209.                             ["position"] = {
  210.                                 ["y"] = 222,
  211.                                 ["x"] = -306,
  212.                                 ["point"] = "BOTTOMRIGHT",
  213.                             },
  214.                             ["skin"] = {
  215.                                 ["ID"] = "Default: Buffs",
  216.                                 ["Backdrop"] = false,
  217.                             },
  218.                         },
  219.                     },
  220.                 },
  221.                 ["XPBar"] = {
  222.                     ["profiles"] = {                       
  223.                         ["Default"] = {
  224.                             ["position"] = {
  225.                                 ["y"] = 57,
  226.                                 ["x"] = -516,
  227.                                 ["point"] = "BOTTOM",
  228.                             },
  229.                             ["version"] = 3,
  230.                         },
  231.                     },
  232.                 },
  233.                 ["MultiCast"] = {
  234.                     ["profiles"] = {
  235.                         ["Default"] = {
  236.                             ["enabled"] = false,
  237.                             ["version"] = 3,
  238.                             ["position"] = {
  239.                                 ["y"] = 35.00000266710234,
  240.                                 ["x"] = 284.3334044788581,
  241.                                 ["point"] = "BOTTOMLEFT",
  242.                             },
  243.                             ["skin"] = {
  244.                                 ["ID"] = "Default: Buffs",
  245.                                 ["Backdrop"] = false,
  246.                             },
  247.                         },
  248.                     },
  249.                 },
  250.                 ["BlizzardArt"] = {
  251.                     ["profiles"] = {                       
  252.                         ["Default"] = {
  253.                             ["position"] = {
  254.                                 ["y"] = 47,
  255.                                 ["x"] = -512,
  256.                                 ["point"] = "BOTTOM",
  257.                             },
  258.                             ["version"] = 3,
  259.                         },
  260.                     },
  261.                 },
  262.                 ["BagBar"] = {
  263.                     ["profiles"] = {                       
  264.                         ["Default"] = {
  265.                             ["enabled"] = false,
  266.                             ["onebag"] = true,
  267.                             ["position"] = {
  268.                                 ["y"] = 41.75,
  269.                                 ["x"] = 463.5,
  270.                                 ["point"] = "BOTTOM",
  271.                             },
  272.                             ["version"] = 3,
  273.                             ["skin"] = {
  274.                                 ["ID"] = "Default: Buffs",
  275.                                 ["Backdrop"] = false,
  276.                             },
  277.                         },
  278.                     },
  279.                 },
  280.                 ["Vehicle"] = {
  281.                     ["profiles"] = {                       
  282.                         ["Default"] = {
  283.                             ["version"] = 3,
  284.                             ["position"] = {
  285.                                 ["y"] = 24.5,
  286.                                 ["x"] = -170.5,
  287.                                 ["point"] = "RIGHT",
  288.                             },
  289.                             ["skin"] = {
  290.                                 ["ID"] = "Default: Buffs",
  291.                                 ["Backdrop"] = false,
  292.                             },
  293.                         },
  294.                     },
  295.                 },
  296.                 ["StanceBar"] = {
  297.                     ["profiles"] = {                       
  298.                         ["Default"] = {
  299.                             ["version"] = 3,
  300.                             ["position"] = {
  301.                                 ["y"] = 209,
  302.                                 ["x"] = 335,
  303.                                 ["point"] = "BOTTOMLEFT",
  304.                                 ["scale"] = 0.75,
  305.                             },
  306.                             ["padding"] = 7,
  307.                             ["visibility"] = {
  308.                                 ["custom"] = false,
  309.                                 ["possess"] = false,
  310.                                 ["always"] = false,
  311.                                 ["customdata"] = "[mod:ctrl]show;hide",
  312.                                 ["stance"] = {
  313.                                     false, -- [1]
  314.                                 },
  315.                             },
  316.                             ["skin"] = {
  317.                                 ["ID"] = "Default: Buffs",
  318.                                 ["Backdrop"] = false,
  319.                             },
  320.                         },
  321.                     },
  322.                 },
  323.                 ["PetBar"] = {
  324.                     ["profiles"] = {                       
  325.                         ["Default"] = {
  326.                             ["position"] = {
  327.                                 ["y"] = 43.45603810374087,
  328.                                 ["x"] = -133.2001136303006,
  329.                                 ["point"] = "BOTTOM",
  330.                                 ["scale"] = 0.6000000238418579,
  331.                             },
  332.                             ["version"] = 3,
  333.                             ["skin"] = {
  334.                                 ["ID"] = "Default: Buffs",
  335.                                 ["Backdrop"] = false,
  336.                             },
  337.                             ["fadeoutdelay"] = 0.1,
  338.                             ["padding"] = 15,
  339.                             ["visibility"] = {
  340.                                 ["possess"] = false,
  341.                                 ["always"] = false,
  342.                             },
  343.                             ["fadeoutalpha"] = 1,
  344.                         },
  345.                     }
  346.                 },
  347.                 ["RepBar"] = {
  348.                     ["profiles"] = {                       
  349.                         ["Default"] = {
  350.                         ["position"] = {
  351.                             ["y"] = 65,
  352.                             ["x"] = -516,
  353.                             ["point"] = "BOTTOM",
  354.                         },
  355.                         ["version"] = 3,
  356.                         },
  357.                     },
  358.                 },
  359.             },
  360.             ["profiles"] = {
  361.                 ["Default"] = {
  362.                     ["onkeydown"] = true,
  363.                     ["selfcastmodifier"] = false,
  364.                     ["minimapIcon"] = {
  365.                         ["hide"] = true,
  366.                     },
  367.                     ["buttonlock"] = true,
  368.                 },
  369.             },
  370.         }
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Saving variables for other addons


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off