Skip to content

Commit

Permalink
Framework update and Change logs for new release
Browse files Browse the repository at this point in the history
  • Loading branch information
Tercioo committed Sep 7, 2024
1 parent a820936 commit b7a38aa
Show file tree
Hide file tree
Showing 5 changed files with 440 additions and 11 deletions.
7 changes: 7 additions & 0 deletions Libs/DF/button.lua
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,12 @@ detailsFramework:Mixin(ButtonMetaFunctions, detailsFramework.ScriptHookMixin)
self.button.text:SetText(text)
end

---set the text shown on the button and truncate it if it's too long
function ButtonMetaFunctions:SetTextTruncated(text, maxWidth)
self.button.text:SetText(text)
detailsFramework:TruncateText(self.button.text, maxWidth)
end

---set the color of the button text
---@param ... any
function ButtonMetaFunctions:SetTextColor(...)
Expand Down Expand Up @@ -897,6 +903,7 @@ end
---@field SetFontSize fun(self: df_button, size: number) set the button font size
---@field SetTextColor fun(self: df_button, color: any) set the button text color
---@field SetText fun(self: df_button, text: string) set the button text
---@field SetTextTruncated fun(self: df_button, text: string, maxWidth: number) set the button text and truncate it if it's too long
---@field SetClickFunction fun(self: df_button, func: function, param1: any, param2: any, clickType: "left"|"right"|nil)
---@field SetIconFilterMode fun(self: df_button, filterMode: any) set the filter mode for the icon, execute after SetIcon()

Expand Down
5 changes: 5 additions & 0 deletions Libs/DF/definitions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,11 @@
---@field CreateTimeBar fun(self:table, parent:frame, texture:texturepath|textureid, width:number?, height:number?, value:number?, member:string?, name:string?) : df_timebar
---@field CreatePool fun(self:table, func:function, ...) : table
---@field CreateObjectPool fun(self:table, func:function, ...) : table alias of CreatePool
---@field GetRoleIconAndCoords fun(self:table, role:string) : string, number, number, number, number return the texture path and texcoords for a role
---@field AddRoleIconToText fun(self:table, text:string, role:string, size:number?) : string add a role icon to a text using escape codes
---@field GetRoleTCoordsAndTexture fun(self:table, roleID:number) : number, number, number, number, string
---@field AddColorToText fun(self:table, text:string, color:any) : string wrap text with a color
---@field AddClassColorToText fun(self:table, text:string, className:string) : string wrap text with a class color


--[=[
Expand Down
2 changes: 1 addition & 1 deletion Libs/DF/fw.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@


local dversion = 568
local dversion = 569
local major, minor = "DetailsFramework-1.0", dversion
local DF, oldminor = LibStub:NewLibrary(major, minor)

Expand Down
39 changes: 39 additions & 0 deletions boot.lua
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,46 @@ do

local Loc = _G.LibStub("AceLocale-3.0"):GetLocale("Details")

--[=[
Added /note command to create and share a note in mythic+ dungeons.
Rogues do not exit combat when using vanish on combat dummies!!!
New Mythic+ damage graphic.
New Mythic+ Run Completion Panel, more complete and compact.
Major improvements on buff tracking uptime.
Added a buff filter to ignore weekly buffs.
Major overhaul on statistics system, record defeated raid bosses while in guild.
Major bug fixes and stability improvements by refactoring legacy code.
Health for death log now uses health percent at the moment of the hit instead of percent based on the unit normalized max health.
Added an option to limit the number of segments saved for wipes at the same boss.
Added WoW 11 trinket data.
Options panel won't trigger errors when opening in combat.
Updated spells for spec detection for wow 11 (Flamanis).
Add anonymization options to the event tracker (Flamanis).
Fixed several issues with classic and pvp battlegrounds (Flamanis).
Major fixes related to pet detection and pet data (Flamanis).
Made Details! survive for another expansion (Details! Team).
--]=]

local news = {
{"v11.0.2.13000.160", "September 07th, 2024"},
"Added /note command to create and share a note in mythic+ dungeons.",
"Rogues do not exit combat when using vanish on combat dummies!!!",
"New Mythic+ damage graphic.",
"New Mythic+ Run Completion Panel, more complete and compact.",
"Major improvements on buff tracking uptime.",
"Added a buff filter to ignore weekly buffs.",
"Major overhaul on statistics system, record defeated raid bosses while in guild.",
"Major bug fixes and stability improvements by refactoring legacy code.",
"Health for death log now uses health percent at the moment of the hit instead of percent based on the unit normalized max health.",
"Added an option to limit the number of segments saved for wipes at the same boss.",
"Added WoW 11 trinket data.",
"Options panel won't trigger errors when opening in combat.",
"Updated spells for spec detection for wow 11 (Flamanis).",
"Add anonymization options to the event tracker (Flamanis).",
"Fixed several issues with classic and pvp battlegrounds (Flamanis).",
"Major fixes related to pet detection and pet data (Flamanis).",
"Made Details! survive for another expansion (Details! Team).",

{"v10.2.7.12800.156", "June 06th, 2024"},
"Added transliteration for pet names in Cyrillic.",
"Fixed an error with extra power bars (alternate power) on cataclysm classic.",
Expand Down
Loading

0 comments on commit b7a38aa

Please sign in to comment.