Custom layouts via AddLayout disabling options panel #184


  • Defect
  • Declined
Closed
Assigned to _ForgeUser117147
  • polarity_star created this issue Oct 19, 2010

    1. What steps will reproduce the problem?

    Add a custom layout to the Interface/Addons folder of the form /Grid2MyLayout/Mylayout.lua containing the following code:

    Grid2Layout:AddLayout("SCPRD", {
        meta = {
            raid40 = true,
            hraid = true,
            raid = true,
            party = true,
        },
        defaults = {
            showPlayer = true,
            unitsPerColumn = 5,
            maxColumns = 2,
        },

        [1] = {
            showPlayer = true,
            showParty = true,
            type = "partypet",
            unitsPerColumn = 5,
            maxColumns = 5,
            allowVehicleTarget = true,
        },
        [2] = {
            showParty = true,
            nameList = "Relisa,Daritka",
            sortMethod = "INDEX",
            allowVehicleTarget = true,
        },

        [3] = {
            showParty = true,
            nameList = "Sarthae,Cierona,Pereidh",
            sortMethod = "INDEX",
            allowVehicleTarget = true,
        },
    })

    2. What is the expected output? What do you see instead?

    Usually the Grid2 options panel has a drop down to access the settings, and the custom layout SCPRD is available in the layouts section.

    Grid2 is displayed in the WoW options panel as usual, but has no + symbol to activate the drop-down.

    3. What version of the product are you using?

    Grid2-538_beta

    4. Do you have an error log of what happened?

    Message: Interface\AddOns\Grid2Options\core.lua:259: attempt to index field '?' (a nil value)
    Time: 10/19/10 21:23:07
    Count: 1
    Stack: Interface\AddOns\Grid2Options\core.lua:259: in function `AddLayout'
    Interface\AddOns\Grid2Options\core.lua:300: in function `Initialize'
    Interface\AddOns\Grid2\GridCore.lua:216: in function `LoadAllOptions'
    Interface\AddOns\Grid2\GridCore.lua:223: in function `?'
    ...\AddOns\Grid2\Libs\AceConsole-3.0\AceConsole-3.0.lua:94: in function `value'
    Interface\FrameXML\ChatFrame.lua:4127: in function `ChatEdit_ParseText'
    Interface\FrameXML\ChatFrame.lua:3717: in function `ChatEdit_SendText'
    Interface\FrameXML\ChatFrame.lua:3755: in function `ChatEdit_OnEnterPressed'
    [string "*:OnEnterPressed"]:1: in function <[string "*:OnEnterPressed"]:1>

    Locals: self = <table> {
    UnregisterIndicatorCategory = <function> defined @Interface\AddOns\Grid2Options\GridCategories.lua:9
    MakeNoIndicatorOptions = <function> defined @Interface\AddOns\Grid2Options\GridIndicators.lua:1121
    MakeStatusHealsIncomingOptions = <function> defined @Interface\AddOns\Grid2Options\GridStatuses.lua:903
    MakeStatusClassFilterOptions = <function> defined @Interface\AddOns\Grid2Options\GridStatuses.lua:249
    GetOptionHandler = <function> defined @Interface\AddOns\Grid2Options\core.lua:27
    UpdateLocation = <function> defined @Interface\AddOns\Grid2Options\GridLocations.lua:11
    typeDefaultValues = <table> {
    }
    AddElement = <function> defined @Interface\AddOns\Grid2Options\core.lua:57
    OnChatCommand = <function> defined @Interface\AddOns\Grid2Options\core.lua:321
    AddElementGroup = <function> defined @Interface\AddOns\Grid2Options\core.lua:105
    statusLayers = <table> {
    }
    FlattenDefaults = <function> defined @Interface\AddOns\Grid2Options\GridDefaults.lua:67
    AddCategoryCurrentStatusOptions = <function> defined @Interface\AddOns\Grid2Options\GridCategories.lua:167
    GetStatusLayerValues = <function> defined @Interface\AddOns\Grid2Options\GridStatuses.lua:9
    AddModule = <function> defined @Interface\AddOns\Grid2Options\core.lua:31
    RAID_CLASS_COLORS = <table> {
    }
    MakeIndicatorBorderSizeOptions = <function> defined @Interface\AddOns\Grid2Options\GridIndicators.lua:374
    dblData = <table> {
    }
    MakeStatusToggleOptions = <function> defined @Interface\AddOns\Grid2Options\GridStatuses.lua:835
    UpgradeDefaults = <function> defined @Interface\AddOns\Grid2Options\GridDefaults.lua:60
    MakeIndicatorBorderOptions = <function> defined @Interface\AddOns\Grid2Options\GridIndicators.lua:408
    MakeStatusHandlers = <function> defined @Interface\AddOns\Grid2Options\GridStatuses.lua:956
    GetCharacterKeys = <function> defined @Interface\AddOns\Grid2Options\GridDefaults.lua:34
    AddIndicatorCurrentStatusOptions = <function> defined @Interface\AddOns\Grid2Options\GridIndicators.lua:234
    SetIndicatorStatus = <function> defined @Interface\AddOns\Grid2Options\GridIndicators.lua:123
    GetAvailableStatusValues = <function> defined @Interface\AddOns\Grid2Options\GridStatuses.lua:622
    layerOrder = <table> {
    }
    AddResetDebugMenu = <function> defined @Interface\AddOns\Grid2Options\core.lua:236
    layers = <table> {
    }
    MakeStatusBlinkThresholdOptions = <function> defined @Interface\AddOns\Grid2Options\GridStatuses.lua:470
    typeMakeOptions = <table> {
    }
    specKey = "holy2"
    defaultSpec = <table> {
    }
    MakeStatusColorThresholdOptions = <function> defined @Interface\AddOns\Grid2Options\GridStatuses.lua:347
    healers = <table> {
    }
    GetCategoryStatus = <function> defined @Interface\AddOns\Grid2Options\GridCategories.lua:69
    AddSetupCategoryOptions = <function> defined @Interface\AddOns\Grid2Options\GridCategories.lua:349
    MakeStatusOptions = <function> defined @Interface\AddOns\Grid2StatusRaidDebuffsOptions\Grid2StatusRaidDebuffsOptions.lua:53
    UpdateIndicator = <function> defined @Interface\AddOns\Grid2Options\GridIndicators.lua:14
    locationLayers = <table> {
    }
    GetIndicatorColor = <function> defined @Interface\AddOns\Grid2Options\GridIndicators.lua:433
    SetCategoryStatus = <function

    Please provide any additional information below.

    No other addon's enabled.  Frames working as expected.

  • polarity_star added the tags New Defect Oct 19, 2010
  • michaelsp removed a tag New May 4, 2011
  • michaelsp added a tag Invalid May 4, 2011
  • michaelsp closed issue May 4, 2011
  • michaelsp removed a tag Invalid May 4, 2011
  • michaelsp added a tag Declined May 4, 2011

To post a comment, please login or register a new account.