• 0

    posted a message on Grid layout collapsing
    i thnk...

    [1] = {
    groupFilter = "WARRIOR",
    },
    [2] = {
    groupFilter = "ROGUE",
    },
    [3] = {
    groupFilter = "PRIEST",
    }
    [4] = {
    groupFilter = "MAGE",
    }
    [5] = {
    groupFilter = "WARLOCK",
    }
    [3] = {
    groupFilter = "HUNTER",
    }
    [3] = {
    groupFilter = "DRUID",
    }
    })
    Posted in: Grid & Grid2
  • 0

    posted a message on Grid
    Quote from BigFire »

    Which file do modify this to?


    YssGridLayout
    Posted in: Grid & Grid2
  • 0

    posted a message on Grid
    its raid with tanks layout m8. im just modify it fo Ct_Raid

    CTRaid - Raid(10-20-25-40) with MTs Layout ( orjinal OrA source code from Yss OrA2 GridLayout )

    local YssGridLayout = AceLibrary("AceAddon-2.0"):new("AceConsole-2.0", "AceEvent-2.0")
    local tanklist = ""
    local tank10 = {
    [1] = {nameList = "",
    sortMethod = "INDEX"},
    [2] = {groupFilter = "0"},
    [3] = {groupFilter = "1"},
    [4] = {groupFilter = "2"}
    }
    local tank20 = {
    [1] = { nameList = "",
    sortMethod = "INDEX"},
    [2] = {groupFilter = "0"},
    [3] = {groupFilter = "1"},
    [4] = {groupFilter = "2"},
    [5] = {groupFilter = "3"},
    [6] = {groupFilter = "4"}
    }
    local tank25 = {
    [1] = {nameList = "",
    sortMethod = "INDEX"},
    [2] = {groupFilter = "0"},
    [3] = {groupFilter = "1"},
    [4] = {groupFilter = "2"},
    [5] = {groupFilter = "3"},
    [6] = {groupFilter = "4"},
    [7] = {groupFilter = "5"}
    }
    local tank40 = {
    [1] = {nameList = "",
    sortMethod = "INDEX"},
    [2] = {groupFilter = "0"},
    [3] = {groupFilter = "1"},
    [4] = {groupFilter = "2"},
    [5] = {groupFilter = "3"},
    [6] = {groupFilter = "4"},
    [7] = {groupFilter = "5"},
    [8] = {groupFilter = "6"},
    [9] = {groupFilter = "7"},
    [10] = {groupFilter = "8"}
    }

    function YssGridLayout:OnEnable()
    self:RegisterEvent("RAID_ROSTER_UPDATE", "UpdateLayout")
    if CT_RAOptions_UpdateMTs then
    hooksecurefunc("CT_RAOptions_UpdateMTs", function() self:UpdateLayout() end)
    end
    end



    function YssGridLayout:UpdateLayout()

    tanklist = ""
    if CT_RA_MainTanks then
    tanklist = table.concat(CT_RA_MainTanks, ',')
    end
    if tanklist then
    tank10[1].nameList = tanklist
    tank20[1].nameList = tanklist
    tank25[1].nameList = tanklist
    tank40[1].nameList = tanklist
    end
    self:ScheduleLeaveCombatAction(GridLayout, "ReloadLayout")
    end


    GridLayout:AddLayout("By 10 and MT", tank10)
    GridLayout:AddLayout("By 20 and MT", tank20)
    GridLayout:AddLayout("By 25 and MT", tank25)
    GridLayout:AddLayout("By 40 and MT", tank40)





    OrA2 - Raid(10-20-25-40) with MTs Layout ( orjinal OrA source code from Yss OrA2 GridLayout )

    local YssGridLayout = AceLibrary("AceAddon-2.0"):new("AceConsole-2.0", "AceEvent-2.0")
    local tanklist = ""
    local tank10 = {
    [1] = {nameList = "",
    sortMethod = "INDEX"},
    [2] = {groupFilter = "0"},
    [3] = {groupFilter = "1"},
    [4] = {groupFilter = "2"}
    }
    local tank20 = {
    [1] = { nameList = "",
    sortMethod = "INDEX"},
    [2] = {groupFilter = "0"},
    [3] = {groupFilter = "1"},
    [4] = {groupFilter = "2"},
    [5] = {groupFilter = "3"},
    [6] = {groupFilter = "4"}
    }
    local tank25 = {
    [1] = {nameList = "",
    sortMethod = "INDEX"},
    [2] = {groupFilter = "0"},
    [3] = {groupFilter = "1"},
    [4] = {groupFilter = "2"},
    [5] = {groupFilter = "3"},
    [6] = {groupFilter = "4"},
    [7] = {groupFilter = "5"}
    }
    local tank40 = {
    [1] = {nameList = "",
    sortMethod = "INDEX"},
    [2] = {groupFilter = "0"},
    [3] = {groupFilter = "1"},
    [4] = {groupFilter = "2"},
    [5] = {groupFilter = "3"},
    [6] = {groupFilter = "4"},
    [7] = {groupFilter = "5"},
    [8] = {groupFilter = "6"},
    [9] = {groupFilter = "7"},
    [10] = {groupFilter = "8"}
    }

    function YssGridLayout:OnEnable()
    self:RegisterEvent("oRA_MainTankUpdate", "UpdateLayout")
    self:RegisterEvent("oRA_JoinedRaid", "UpdateLayout")
    self:RegisterEvent("RAID_ROSTER_UPDATE", "UpdateLayout")
    end

    function YssGridLayout:UpdateLayout()
    tanklist = ""
    if oRA.maintanktable then
    tanklist = table.concat(oRA.maintanktable, ',')
    end
    if tanklist then
    tank10[1].nameList = tanklist
    tank20[1].nameList = tanklist
    tank25[1].nameList = tanklist
    tank40[1].nameList = tanklist
    end
    self:ScheduleLeaveCombatAction(GridLayout, "ReloadLayout")
    end

    GridLayout:AddLayout("By 10 and oRA2 Tanks", tank10)
    GridLayout:AddLayout("By 20 and oRA2 Tanks", tank20)
    GridLayout:AddLayout("By 25 and oRA2 Tanks", tank25)
    GridLayout:AddLayout("By 40 and oRA2 Tanks", tank40)

    Posted in: Grid & Grid2
  • 0

    posted a message on Grid
    YSS Grid Layout only fo ORA... 'n its old YSS code ...

    function YssGridLayout:OnEnable()
    self:RegisterEvent("oRA_MainTankUpdate", "UpdateLayout")
    self:RegisterEvent("oRA_JoinedRaid", "UpdateLayout")
    self:RegisterEvent("RAID_ROSTER_UPDATE", "UpdateLayout")
    end

    function YssGridLayout:UpdateLayout()
    tanklist = ""
    if oRA.maintanktable then
    tanklist = table.concat(oRA.maintanktable, ',')
    end
    if tanklist then
    tank10[1].nameList = tanklist
    tank20[1].nameList = tanklist
    tank25[1].nameList = tanklist
    tank40[1].nameList = tanklist
    end
    self:ScheduleLeaveCombatAction(GridLayout, "ReloadLayout")
    end


    also im CT Raid user 'n change something


    function YssGridLayout:OnEnable()
    self:RegisterEvent("oRA_MainTankUpdate", "UpdateLayout")
    self:RegisterEvent("oRA_JoinedRaid", "UpdateLayout")
    self:RegisterEvent("RAID_ROSTER_UPDATE", "UpdateLayout")
    if CT_RAOptions_UpdateMTs then
    hooksecurefunc("CT_RAOptions_UpdateMTs", function() self:UpdateLayout() end)
    end
    end



    function YssGridLayout:UpdateLayout()
    tanklist = ""
    if oRA.maintanktable then
    tanklist = table.concat(oRA.maintanktable, ',')
    else
    tanklist = table.concat(CT_RA_MainTanks, ',')
    end
    if tanklist then
    tank10[1].nameList = tanklist
    tank20[1].nameList = tanklist
    tank25[1].nameList = tanklist
    tank40[1].nameList = tanklist
    end
    self:ScheduleLeaveCombatAction(GridLayout, "ReloadLayout")
    end


    but im not test it yet.. Can u pls confirm or correct it ?
    Posted in: Grid & Grid2
  • To post a comment, please or register a new account.