Added Search into the options panel

This commit is contained in:
Tercio Jose
2021-09-24 22:07:13 -03:00
parent e607f32edb
commit 1c20f166cb
14 changed files with 503 additions and 335 deletions
@@ -256,7 +256,7 @@ end
{text = "Flask", width = 45},
{text = "Rune", width = 45},
--{text = "Pre-Pot Last Try", width = 100},
{text = "Using Details!", width = 100},
--{text = "Using Details!", width = 100},
}
local headerOptions = {
padding = 2,
@@ -334,7 +334,7 @@ end
--no pre pot
--local PrePotIndicator = DF:CreateImage (line, "", scroll_line_height, scroll_line_height)
--using details!
local DetailsIndicator = DF:CreateImage(line, "", scroll_line_height, scroll_line_height)
--local DetailsIndicator = DF:CreateImage(line, "", scroll_line_height, scroll_line_height)
line:AddFrameToHeaderAlignment(roleIcon)
line:AddFrameToHeaderAlignment(talentsRow)
@@ -344,7 +344,7 @@ end
line:AddFrameToHeaderAlignment(FlaskIndicator)
line:AddFrameToHeaderAlignment(RuneIndicator)
--line:AddFrameToHeaderAlignment(PrePotIndicator)
line:AddFrameToHeaderAlignment(DetailsIndicator)
--line:AddFrameToHeaderAlignment(DetailsIndicator)
line:AlignWithHeader (DetailsRaidCheck.Header, "left")
@@ -359,7 +359,7 @@ end
line.FlaskIndicator = FlaskIndicator
line.RuneIndicator = RuneIndicator
--line.PrePotIndicator = PrePotIndicator
line.DetailsIndicator = DetailsIndicator
--line.DetailsIndicator = DetailsIndicator
return line
end
@@ -380,12 +380,10 @@ end
--table.sort (dataInOrder, DF.SortOrder1R) --alphabetical
data = dataInOrder
local raidStatusLib = LibStub:GetLibrary("LibRaidStatus-1.0")
local openRaidLib = LibStub:GetLibrary("LibOpenRaid-1.0")
--get the information of all players
local playersInfoData = raidStatusLib.playerInfoManager.GetAllPlayersInfo()
local playersGearData = raidStatusLib.gearManager.GetAllPlayersGear()
local libRaidStatus = 0
local playersInfoData = openRaidLib.playerInfoManager.GetAllPlayersInfo()
local playersGearData = openRaidLib.gearManager.GetAllPlayersGear()
for i = 1, total_lines do
local index = i + offset
@@ -466,7 +464,7 @@ end
line.FlaskIndicator.texture = playerTable.Flask and [[Interface\Scenarios\ScenarioIcon-Check]] or ""
line.RuneIndicator.texture = playerTable.Rune and [[Interface\Scenarios\ScenarioIcon-Check]] or ""
--line.PrePotIndicator.texture = playerTable.PrePot and [[Interface\Scenarios\ScenarioIcon-Check]] or ""
line.DetailsIndicator.texture = playerTable.UseDetails and [[Interface\Scenarios\ScenarioIcon-Check]] or ""
--line.DetailsIndicator.texture = playerTable.UseDetails and [[Interface\Scenarios\ScenarioIcon-Check]] or ""
end
end
end
@@ -0,0 +1,11 @@
## Interface: 20501
## Title: Details!: Streamer (plugin)
## Notes: Show which spells you are casting, viewers can see what are you doing and follow your steps.
## RequiredDeps: Details
## SavedVariables: Details_StreamerDB
#@no-lib-strip@
embeds.xml
#@end-no-lib-strip@
Details_Streamer.lua
+12 -1
View File
@@ -767,6 +767,11 @@ local function CreatePluginFrames()
if (StreamOverlay.db.use_square_mode) then
--hide any line created
for i = 1, #StreamOverlay.battle_lines do
StreamOverlay.battle_lines[i]:Hide()
end
local amt = StreamOverlay.db.square_amount
StreamOverlay.total_lines = amt
@@ -794,7 +799,12 @@ local function CreatePluginFrames()
StreamOverlay:UpdateSquares()
StreamOverlay:RefreshInUse()
else
else --showing lines
--hide any square created
for i = 1, #StreamOverlay.squares do
StreamOverlay.squares[i]:Hide()
end
--> how many lines fit in the frame
local amt = math.floor (SOF:GetHeight() / StreamOverlay.db.row_spacement)
@@ -1756,6 +1766,7 @@ function StreamOverlay.OpenOptionsPanel (from_options_panel)
get = function() return StreamOverlay.db.use_square_mode end,
set = function (self, fixedParam, value)
StreamOverlay.db.use_square_mode = value
StreamOverlay:Refresh()
end,
type = "toggle",
name = "Use Square Mode",
@@ -0,0 +1,14 @@
## Interface: 20501
## Title: Details!: Tiny Threat (plugin)
## Notes: Threat meter plugin, show threat for group members in the window. Select it from the Plugin menu in the Orange Cogwheel.
## RequiredDeps: Details
## OptionalDeps: Ace3
#@no-lib-strip@
embeds.xml
#@end-no-lib-strip@
enUS.lua
ptBR.lua
Details_TinyThreat.lua