
require "scripts/style"

function MakeWidgetGoalMeter(xpos, ypos)
  return WidgetGoalMeter
      {
        name="goalmeter",
        font = StandardButtonFont;
        w=60, h=150, x=xpos, y=ypos,
        --specify the y extants of the meter
        meterY1=5, meterY2=106,
        -- multi-layer construction
        layers = {
          bg={"widgets/goalmeter/layer2"},
          fill={"widgets/goalmeter/fill-b",   -- dynamic, needs alpha
            "widgets/goalmeter/fill-g",
            "widgets/goalmeter/fill-r"},      -- has multiple options
          fg={"widgets/goalmeter/layer1"},
          token={"widgets/goalmeter/tok-b",   --  also has multiple options
            "widgets/goalmeter/tok-g",
            "widgets/goalmeter/tok-r",
          },   -- dynamic
        },
      };
end
