jp-ganis / JPS

Protected LUA DPS Addon
32 stars 46 forks source link

jprotations & correct jps.Count with multtiples rotations using jps.registerRotation #390

Closed htordeux closed 10 years ago

htordeux commented 10 years ago

to allow correct multiples rotations with dropdown using jps.registerRotation change in jprotations.lua line 204

if jps.initializedRotation == false then
    if countRotations > 1 then
jps.MultiRotation = true
        rotationDropdownHolder:Show()
        UIDropDownMenu_SetText(DropDownRotationGUI, jps.ToggleRotationName[activeRotation])
    else  
        rotationDropdownHolder:Hide() 
    end
    jps.firstInitializingLoop = true
end

jps.initializedRotation = true

if jps.MultiRotation then
    activeRotation = jps.Count
end