Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
d6cfebe
Item, tree, and gem tooltips
Blitz54 Oct 17, 2025
1f49cad
Merge branch 'PathOfBuildingCommunity:dev' into fontin-fonts
Blitz54 Oct 17, 2025
86ea0f0
Remove UI Config
Blitz54 Oct 20, 2025
da24346
Fonts and font size fix up
Blitz54 Oct 20, 2025
b129102
Even clearer fonts
Blitz54 Oct 20, 2025
fb29a35
updated dlls from simplegraphic build
Blitz54 Oct 20, 2025
d16e4c4
Merge branch 'dev' into fontin-fonts
Blitz54 Oct 21, 2025
6434f42
Rebuild dll
Blitz54 Oct 21, 2025
5000412
Added desecrated mod line background images, and gem background images
Blitz54 Oct 21, 2025
d790df4
Fix text and font on Relics
Blitz54 Oct 22, 2025
86c568e
Animated tree radius and relic item header
Blitz54 Oct 22, 2025
de7745a
Fix controlled meta
Blitz54 Oct 22, 2025
58ef01c
Fix grand spectrum missing texture
Blitz54 Oct 22, 2025
f979439
Fix Liberation Bold size 18, ty Local
Blitz54 Oct 23, 2025
7190e13
small text fix
Blitz54 Oct 25, 2025
12872f8
Merge branch 'dev' of https://github.com/Blitz54/PathOfBuilding-PoE2 …
Blitz54 Oct 26, 2025
f4a7993
dlls
Blitz54 Oct 26, 2025
e114af4
build modcache to maybe avoid test fail
Blitz54 Oct 26, 2025
91e67cb
warning text fix
Blitz54 Oct 26, 2025
afa9734
Update DLLs to SimpleGraphic-v2.5.2
Wires77 Nov 19, 2025
186b53a
Add animation toggle
Blitz54 Dec 5, 2025
5d620bc
Merge branch 'dev' into fontin-fonts
Blitz54 Dec 5, 2025
ecb1760
animation check for relic header
Blitz54 Dec 5, 2025
08285c8
Merge remote-tracking branch 'upstream/simple-graphic-v2.5.2' into fo…
Blitz54 Dec 6, 2025
42506e8
more fixes
Blitz54 Dec 6, 2025
bdf4240
Fix fonts and tree node fonts
Blitz54 Dec 6, 2025
db4ba8a
left align tree node lines other than title
Blitz54 Dec 6, 2025
284ddba
more tooltip font fixes
Blitz54 Dec 7, 2025
16f84a1
Fix background image not showing again
Blitz54 Dec 8, 2025
570f9b2
Fix wrapped mod lines printing in white. NEEDS SG TO BE PULLED TOO
Blitz54 Dec 10, 2025
1ba147f
Merge branch 'dev' into fontin-fonts
Dec 14, 2025
62ead65
Merge branch 'dev' into fontin-fonts
Dec 14, 2025
f2c6b63
Fix Crash
Dec 14, 2025
5f4bddd
Fix positioning
Dec 14, 2025
c520dc1
Show tree node flavour text
Dec 14, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified runtime/SimpleGraphic/Fonts/Bitstream Vera Sans Mono.10.tga
Binary file not shown.
Binary file modified runtime/SimpleGraphic/Fonts/Bitstream Vera Sans Mono.12.tga
Binary file not shown.
Binary file modified runtime/SimpleGraphic/Fonts/Bitstream Vera Sans Mono.14.tga
Binary file not shown.
Binary file modified runtime/SimpleGraphic/Fonts/Bitstream Vera Sans Mono.16.tga
Binary file not shown.
Binary file modified runtime/SimpleGraphic/Fonts/Bitstream Vera Sans Mono.18.tga
Binary file not shown.
Binary file modified runtime/SimpleGraphic/Fonts/Bitstream Vera Sans Mono.20.tga
Binary file not shown.
Binary file modified runtime/SimpleGraphic/Fonts/Bitstream Vera Sans Mono.22.tga
Binary file not shown.
Binary file modified runtime/SimpleGraphic/Fonts/Bitstream Vera Sans Mono.24.tga
Binary file not shown.
Binary file modified runtime/SimpleGraphic/Fonts/Bitstream Vera Sans Mono.26.tga
Binary file not shown.
Binary file modified runtime/SimpleGraphic/Fonts/Bitstream Vera Sans Mono.28.tga
Binary file not shown.
Binary file modified runtime/SimpleGraphic/Fonts/Bitstream Vera Sans Mono.32.tga
Binary file not shown.
Binary file modified runtime/SimpleGraphic/Fonts/Bitstream Vera Sans Mono.36.tga
Binary file not shown.
Binary file modified runtime/SimpleGraphic/Fonts/Bitstream Vera Sans Mono.40.tga
Binary file not shown.
Binary file modified runtime/SimpleGraphic/Fonts/Bitstream Vera Sans Mono.48.tga
Binary file not shown.
Binary file modified runtime/SimpleGraphic/Fonts/Bitstream Vera Sans Mono.56.tga
Binary file not shown.
Binary file modified runtime/SimpleGraphic/Fonts/Bitstream Vera Sans Mono.64.tga
Binary file not shown.
Binary file added runtime/SimpleGraphic/Fonts/Fontin Italic.10.tga
Binary file not shown.
Binary file added runtime/SimpleGraphic/Fonts/Fontin Italic.12.tga
Binary file not shown.
Binary file not shown.
Binary file added runtime/SimpleGraphic/Fonts/Fontin Italic.16.tga
Binary file not shown.
Binary file added runtime/SimpleGraphic/Fonts/Fontin Italic.18.tga
Binary file not shown.
Binary file added runtime/SimpleGraphic/Fonts/Fontin Italic.20.tga
Binary file not shown.
Binary file added runtime/SimpleGraphic/Fonts/Fontin Italic.22.tga
Binary file not shown.
Binary file added runtime/SimpleGraphic/Fonts/Fontin Italic.24.tga
Binary file not shown.
Binary file added runtime/SimpleGraphic/Fonts/Fontin Italic.26.tga
Binary file not shown.
Binary file not shown.
Binary file added runtime/SimpleGraphic/Fonts/Fontin Italic.32.tga
Binary file not shown.
Binary file added runtime/SimpleGraphic/Fonts/Fontin Italic.36.tga
Binary file not shown.
Binary file added runtime/SimpleGraphic/Fonts/Fontin Italic.40.tga
Binary file not shown.
Binary file added runtime/SimpleGraphic/Fonts/Fontin Italic.48.tga
Binary file not shown.
Binary file added runtime/SimpleGraphic/Fonts/Fontin Italic.56.tga
Binary file not shown.
Binary file added runtime/SimpleGraphic/Fonts/Fontin Italic.64.tga
Binary file not shown.
2,064 changes: 2,064 additions & 0 deletions runtime/SimpleGraphic/Fonts/Fontin Italic.tgf

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2,064 changes: 2,064 additions & 0 deletions runtime/SimpleGraphic/Fonts/Fontin SmallCaps Italic.tgf

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2,064 changes: 2,064 additions & 0 deletions runtime/SimpleGraphic/Fonts/Fontin SmallCaps.tgf

Large diffs are not rendered by default.

Binary file added runtime/SimpleGraphic/Fonts/Fontin.10.tga
Binary file not shown.
Binary file added runtime/SimpleGraphic/Fonts/Fontin.12.tga
Binary file not shown.
Binary file added runtime/SimpleGraphic/Fonts/Fontin.14.tga
Binary file not shown.
Binary file added runtime/SimpleGraphic/Fonts/Fontin.16.tga
Binary file not shown.
Binary file added runtime/SimpleGraphic/Fonts/Fontin.18.tga
Binary file not shown.
Binary file added runtime/SimpleGraphic/Fonts/Fontin.20.tga
Binary file not shown.
Binary file added runtime/SimpleGraphic/Fonts/Fontin.22.tga
Binary file not shown.
Binary file added runtime/SimpleGraphic/Fonts/Fontin.24.tga
Binary file not shown.
Binary file added runtime/SimpleGraphic/Fonts/Fontin.26.tga
Binary file not shown.
Binary file added runtime/SimpleGraphic/Fonts/Fontin.28.tga
Binary file not shown.
Binary file added runtime/SimpleGraphic/Fonts/Fontin.32.tga
Binary file not shown.
Binary file added runtime/SimpleGraphic/Fonts/Fontin.36.tga
Binary file not shown.
Binary file added runtime/SimpleGraphic/Fonts/Fontin.40.tga
Binary file not shown.
Binary file added runtime/SimpleGraphic/Fonts/Fontin.48.tga
Binary file not shown.
Binary file added runtime/SimpleGraphic/Fonts/Fontin.56.tga
Binary file not shown.
Binary file added runtime/SimpleGraphic/Fonts/Fontin.64.tga
Binary file not shown.
2,064 changes: 2,064 additions & 0 deletions runtime/SimpleGraphic/Fonts/Fontin.tgf

Large diffs are not rendered by default.

Binary file modified runtime/SimpleGraphic/Fonts/Liberation Sans Bold.10.tga
Binary file not shown.
Binary file modified runtime/SimpleGraphic/Fonts/Liberation Sans Bold.12.tga
Binary file not shown.
Binary file modified runtime/SimpleGraphic/Fonts/Liberation Sans Bold.14.tga
Binary file not shown.
Binary file modified runtime/SimpleGraphic/Fonts/Liberation Sans Bold.16.tga
Binary file not shown.
Binary file modified runtime/SimpleGraphic/Fonts/Liberation Sans Bold.18.tga
Binary file not shown.
Binary file modified runtime/SimpleGraphic/Fonts/Liberation Sans Bold.20.tga
Binary file not shown.
Binary file modified runtime/SimpleGraphic/Fonts/Liberation Sans Bold.22.tga
Binary file not shown.
Binary file modified runtime/SimpleGraphic/Fonts/Liberation Sans Bold.24.tga
Binary file not shown.
Binary file modified runtime/SimpleGraphic/Fonts/Liberation Sans Bold.26.tga
Binary file not shown.
Binary file modified runtime/SimpleGraphic/Fonts/Liberation Sans Bold.28.tga
Binary file not shown.
Binary file modified runtime/SimpleGraphic/Fonts/Liberation Sans Bold.32.tga
Binary file not shown.
Binary file modified runtime/SimpleGraphic/Fonts/Liberation Sans Bold.36.tga
Binary file not shown.
Binary file modified runtime/SimpleGraphic/Fonts/Liberation Sans Bold.40.tga
Binary file not shown.
Binary file modified runtime/SimpleGraphic/Fonts/Liberation Sans Bold.48.tga
Binary file not shown.
Binary file modified runtime/SimpleGraphic/Fonts/Liberation Sans Bold.56.tga
Binary file not shown.
Binary file modified runtime/SimpleGraphic/Fonts/Liberation Sans Bold.64.tga
Binary file not shown.
Binary file added src/Assets/gemhovermodbg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/Assets/hovermodbgabyss.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
85 changes: 45 additions & 40 deletions src/Classes/GemSelectControl.lua
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,6 @@ function GemSelectClass:Draw(viewPort, noTooltip)
local cursorX, cursorY = GetCursorPos()
self.tooltip:Clear()
if gemInstance and gemInstance.gemData then
if main.showFlavourText then self.tooltip.titleYOffset = 5 end --The image for Gems has an aspect ratio that makes the title not centered.
self:AddGemTooltip(gemInstance)
else
self.tooltip:AddLine(16, toolTipText)
Expand Down Expand Up @@ -542,23 +541,25 @@ function GemSelectClass:CheckSupporting(gemA, gemB)
end

function GemSelectClass:AddGemTooltip(gemInstance)
local fontSizeBig = main.showFlavourText and 18 or 16
local fontSizeTitle = main.showFlavourText and 24 or 20
self.tooltip.center = true
self.tooltip.color = colorCodes.GEM
local grantedEffect = gemInstance.gemData.grantedEffect
local additionalEffects = gemInstance.gemData.additionalGrantedEffects
self.tooltip.tooltipHeader = "GEM"
if grantedEffect.name:match("^Spectre:") or grantedEffect.name:match("^Companion:") then
self.tooltip:AddLine(20, colorCodes.GEM .. (gemInstance.displayEffect and gemInstance.displayEffect.nameSpec or gemInstance.gemData.name))
self.tooltip:AddLine(fontSizeTitle, colorCodes.GEM .. (gemInstance.displayEffect and gemInstance.displayEffect.nameSpec or gemInstance.gemData.name), "FONTIN SC")
else
self.tooltip:AddLine(20, colorCodes.GEM .. gemInstance.gemData.name)
self.tooltip:AddLine(fontSizeTitle, colorCodes.GEM .. gemInstance.gemData.name, "FONTIN SC")
end
self.tooltip:AddSeparator(10)
self.tooltip:AddLine(18, colorCodes.NORMAL .. gemInstance.gemData.gemType)
self.tooltip:AddLine(fontSizeBig, colorCodes.NORMAL .. gemInstance.gemData.gemType, "FONTIN SC")
if gemInstance.gemData.tagString ~= "" then
self.tooltip:AddLine(16, "^x7F7F7F" .. gemInstance.gemData.tagString)
self.tooltip:AddLine(fontSizeBig, "^x7F7F7F" .. gemInstance.gemData.tagString, "FONTIN SC")
end
if gemInstance.gemData.gemFamily then
self.tooltip:AddLine(16, "^x7F7F7FCategory: ^7" .. gemInstance.gemData.gemFamily)
self.tooltip:AddLine(fontSizeBig, "^x7F7F7FCategory: ^7" .. gemInstance.gemData.gemFamily, "FONTIN SC")
end
-- Will need rework if a gem can have 2+ additional supports
self:AddGrantedEffectInfo(gemInstance, grantedEffect, true)
Expand All @@ -570,7 +571,7 @@ function GemSelectClass:AddGemTooltip(gemInstance)
if not additional.support then
if additional.name ~= "" then
self.tooltip:AddSeparator(10)
self.tooltip:AddLine(20, colorCodes.GEM .. additional.name)
self.tooltip:AddLine(fontSizeTitle, colorCodes.GEM .. additional.name, "FONTIN SC")
end
self.tooltip:AddSeparator(10)
self:AddGrantedEffectInfo(gemInstance, additional)
Expand All @@ -586,45 +587,46 @@ function GemSelectClass:AddGemTooltip(gemInstance)
if grantedEffect.flavourText and main.showFlavourText then
self.tooltip:AddSeparator(10)
for _, line in ipairs(grantedEffect.flavourText) do
self.tooltip:AddLine(16, colorCodes.UNIQUE .. line)
self.tooltip:AddLine(fontSizeBig, colorCodes.UNIQUE .. line, "FONTIN SC ITALIC")
end
end
end

function GemSelectClass:AddGrantedEffectInfo(gemInstance, grantedEffect, addReq)
local fontSizeBig = main.showFlavourText and 18 or 16
local displayInstance = gemInstance.displayEffect or gemInstance
local grantedEffectLevel = grantedEffect.levels[displayInstance.level] or { }
if gemInstance.gemData.Tier and gemInstance.gemData.Tier > 0 and not grantedEffect.isLineage and not grantedEffect.hidden then
self.tooltip:AddLine(16, string.format("^x7F7F7FTier: ^7%d", gemInstance.gemData.Tier))
self.tooltip:AddLine(fontSizeBig, string.format("^x7F7F7FTier: ^7%d", gemInstance.gemData.Tier), "FONTIN SC")
end
if addReq and not grantedEffect.support then
self.tooltip:AddLine(16, string.format("^x7F7F7FLevel: ^7%d%s%s",
self.tooltip:AddLine(fontSizeBig, string.format("^x7F7F7FLevel: ^7%d%s%s",
gemInstance.level,
((displayInstance.level > gemInstance.level) and " (" .. colorCodes.MAGIC .. "+" .. (displayInstance.level - gemInstance.level) .. "^7)") or ((displayInstance.level < gemInstance.level) and " (" .. colorCodes.WARNING .. "-" .. (gemInstance.level - displayInstance.level) .. "^7)") or "",
(gemInstance.level >= gemInstance.gemData.naturalMaxLevel) and " (Max)" or ""
))
),"FONTIN SC")
end
if grantedEffect.support then
if grantedEffectLevel.manaMultiplier and grantedEffectLevel.reservationMultiplier and grantedEffectLevel.manaMultiplier == grantedEffectLevel.reservationMultiplier then
self.tooltip:AddLine(16, string.format("^x7F7F7FCost & Reservation Multiplier: ^7%d%%", grantedEffectLevel.manaMultiplier + 100))
self.tooltip:AddLine(fontSizeBig, string.format("^x7F7F7FCost & Reservation Multiplier: ^7%d%%", grantedEffectLevel.manaMultiplier + 100), "FONTIN SC")
elseif grantedEffectLevel.reservationMultiplier then
self.tooltip:AddLine(16, string.format("^x7F7F7FReservation Multiplier: ^7%d%%", grantedEffectLevel.reservationMultiplier + 100))
self.tooltip:AddLine(fontSizeBig, string.format("^x7F7F7FReservation Multiplier: ^7%d%%", grantedEffectLevel.reservationMultiplier + 100), "FONTIN SC")
elseif grantedEffectLevel.manaMultiplier then
self.tooltip:AddLine(16, string.format("^x7F7F7FCost Multiplier: ^7%d%%", grantedEffectLevel.manaMultiplier + 100))
self.tooltip:AddLine(fontSizeBig, string.format("^x7F7F7FCost Multiplier: ^7%d%%", grantedEffectLevel.manaMultiplier + 100), "FONTIN SC")
end
if grantedEffectLevel.spiritReservationFlat then
if grantedEffect.support then
self.tooltip:AddLine(16, string.format("^x7F7F7FAdditional Reservation: ^7%d Spirit", grantedEffectLevel.spiritReservationFlat))
self.tooltip:AddLine(fontSizeBig, string.format("^x7F7F7FAdditional Reservation: ^7%d Spirit", grantedEffectLevel.spiritReservationFlat), "FONTIN SC")
else
self.tooltip:AddLine(16, string.format("^x7F7F7FReservation: ^7%d Spirit", grantedEffectLevel.spiritReservationFlat))
self.tooltip:AddLine(fontSizeBig, string.format("^x7F7F7FReservation: ^7%d Spirit", grantedEffectLevel.spiritReservationFlat), "FONTIN SC")
end
end
if grantedEffectLevel.cooldown then
local string = string.format("^x7F7F7FCooldown Time: ^7%.2f sec", grantedEffectLevel.cooldown)
if grantedEffectLevel.storedUses and grantedEffectLevel.storedUses > 1 then
string = string .. string.format(" (%d uses)", grantedEffectLevel.storedUses)
end
self.tooltip:AddLine(16, string)
self.tooltip:AddLine(fontSizeBig, string, "FONTIN SC")
end
else
if gemInstance.skillMinion then
Expand All @@ -635,10 +637,10 @@ function GemSelectClass:AddGrantedEffectInfo(gemInstance, grantedEffect, addReq)
end
end
if grantedEffectLevel.spiritReservationFlat then
self.tooltip:AddLine(16, string.format("^x7F7F7FReservation: ^7%d Spirit", grantedEffectLevel.spiritReservationFlat))
self.tooltip:AddLine(fontSizeBig, string.format("^x7F7F7FReservation: ^7%d Spirit", grantedEffectLevel.spiritReservationFlat), "FONTIN SC")
end
if grantedEffectLevel.spiritReservationPercent then
self.tooltip:AddLine(16, string.format("^x7F7F7FReservation: ^7%.1f%% Spirit", grantedEffectLevel.spiritReservationPercent))
self.tooltip:AddLine(fontSizeBig, string.format("^x7F7F7FReservation: ^7%.1f%% Spirit", grantedEffectLevel.spiritReservationPercent), "FONTIN SC")
end
local cost
for _, res in ipairs(self.costs) do
Expand All @@ -647,50 +649,50 @@ function GemSelectClass:AddGrantedEffectInfo(gemInstance, grantedEffect, addReq)
end
end
if cost then
self.tooltip:AddLine(16, "^x7F7F7FCost: ^7"..cost)
self.tooltip:AddLine(fontSizeBig, "^x7F7F7FCost: ^7"..cost, "FONTIN SC")
end
if grantedEffectLevel.cooldown then
local string = string.format("^x7F7F7FCooldown Time: ^7%.2f sec", grantedEffectLevel.cooldown)
if grantedEffectLevel.storedUses and grantedEffectLevel.storedUses > 1 then
string = string .. string.format(" (%d uses)", grantedEffectLevel.storedUses)
end
self.tooltip:AddLine(16, string)
self.tooltip:AddLine(fontSizeBig, string, "FONTIN SC")
end
if grantedEffectLevel.vaalStoredUses then
self.tooltip:AddLine(16, string.format("^x7F7F7FCan Store ^7%d ^x7F7F7FUse (%d Souls)", grantedEffectLevel.vaalStoredUses, grantedEffectLevel.vaalStoredUses * grantedEffectLevel.cost.Soul))
self.tooltip:AddLine(fontSizeBig, string.format("^x7F7F7FCan Store ^7%d ^x7F7F7FUse (%d Souls)", grantedEffectLevel.vaalStoredUses, grantedEffectLevel.vaalStoredUses * grantedEffectLevel.cost.Soul), "FONTIN SC")
end
if grantedEffectLevel.soulPreventionDuration then
self.tooltip:AddLine(16, string.format("^x7F7F7FSoul Gain Prevention: ^7%d sec", grantedEffectLevel.soulPreventionDuration))
self.tooltip:AddLine(fontSizeBig, string.format("^x7F7F7FSoul Gain Prevention: ^7%d sec", grantedEffectLevel.soulPreventionDuration), "FONTIN SC")
end
if gemInstance.gemData.tags.attack then
if grantedEffectLevel.attackSpeedMultiplier then
self.tooltip:AddLine(16, string.format("^x7F7F7FAttack Speed: ^7%d%% of base", grantedEffectLevel.attackSpeedMultiplier + 100))
self.tooltip:AddLine(fontSizeBig, string.format("^x7F7F7FAttack Speed: ^7%d%% of base", grantedEffectLevel.attackSpeedMultiplier + 100), "FONTIN SC")
end
if grantedEffectLevel.attackTime then
self.tooltip:AddLine(16, string.format("^x7F7F7FAttack Time: ^7%.2f sec", grantedEffectLevel.attackTime / 1000))
self.tooltip:AddLine(fontSizeBig, string.format("^x7F7F7FAttack Time: ^7%.2f sec", grantedEffectLevel.attackTime / 1000), "FONTIN SC")
end
if grantedEffectLevel.baseMultiplier then
self.tooltip:AddLine(16, string.format("^x7F7F7FAttack Damage: ^7%g%% of base", grantedEffectLevel.baseMultiplier * 100))
self.tooltip:AddLine(fontSizeBig, string.format("^x7F7F7FAttack Damage: ^7%g%% of base", grantedEffectLevel.baseMultiplier * 100), "FONTIN SC")
end
elseif not grantedEffect.hidden then
if grantedEffect.castTime > 0 then
self.tooltip:AddLine(16, string.format("^x7F7F7FCast Time: ^7%.2f sec", grantedEffect.castTime))
self.tooltip:AddLine(fontSizeBig, string.format("^x7F7F7FCast Time: ^7%.2f sec", grantedEffect.castTime), "FONTIN SC")
else
self.tooltip:AddLine(16, "^x7F7F7FCast Time: ^7Instant")
self.tooltip:AddLine(fontSizeBig, "^x7F7F7FCast Time: ^7Instant", "FONTIN SC")
end
end
if grantedEffectLevel.critChance then
self.tooltip:AddLine(16, string.format("^x7F7F7FCritical Hit Chance: ^7%.2f%%", grantedEffectLevel.critChance))
self.tooltip:AddLine(fontSizeBig, string.format("^x7F7F7FCritical Hit Chance: ^7%.2f%%", grantedEffectLevel.critChance), "FONTIN SC")
end
if gemInstance.gemData.weaponRequirements and not grantedEffect.hidden then
self.tooltip:AddLine(16, "^x7F7F7F Requires: ^7" .. gemInstance.gemData.weaponRequirements)
self.tooltip:AddLine(fontSizeBig, "^x7F7F7F Requires: ^7" .. gemInstance.gemData.weaponRequirements, "FONTIN SC")
end
end
if addReq and displayInstance.quality > 0 then
self.tooltip:AddLine(16, string.format("^x7F7F7FQuality: "..colorCodes.MAGIC.."+%d%%^7%s",
self.tooltip:AddLine(fontSizeBig, string.format("^x7F7F7FQuality: "..colorCodes.MAGIC.."+%d%%^7%s",
gemInstance.quality,
(displayInstance.quality > gemInstance.quality) and " ("..colorCodes.MAGIC.."+"..(displayInstance.quality - gemInstance.quality).."^7)" or ""
))
), "FONTIN SC")
end
self.tooltip:AddSeparator(10)
if addReq then
Expand All @@ -701,25 +703,27 @@ function GemSelectClass:AddGrantedEffectInfo(gemInstance, grantedEffect, addReq)
self.skillsTab.build:AddRequirementsToTooltip(self.tooltip, reqLevel, reqStr, reqDex, reqInt)
end
if grantedEffect.description then
local wrap = main:WrapString(grantedEffect.description, 16, m_max(DrawStringWidth(16, "VAR", gemInstance.gemData.tagString), 400))
local wrap = main:WrapString(grantedEffect.description, 16, m_max(DrawStringWidth(fontSizeBig, "VAR", gemInstance.gemData.tagString), 400))
for _, line in ipairs(wrap) do
self.tooltip:AddLine(16, colorCodes.GEM..line)
self.tooltip:AddLine(fontSizeBig, colorCodes.GEMDESCRIPTION..line, "FONTIN ITALIC")
end
end
end
function GemSelectClass:AddStatSetInfo(gemInstance, grantedEffect, statSet, noLabel, index)
local fontSizeBig = main.showFlavourText and 18 or 16
local fontSizeTitle = main.showFlavourText and 24 or 20
local displayInstance = gemInstance.displayEffect or gemInstance
local statSetLevel = statSet.levels[displayInstance.level] or statSet.levels[1] or { }
if not (index == 1 and statSet.label == grantedEffect.name) and statSet.label ~= "" and not noLabel then
self.tooltip:AddSeparator(10)
self.tooltip:AddLine(20, colorCodes.GEM .. statSet.label)
self.tooltip:AddLine(fontSizeTitle, colorCodes.GEM .. statSet.label, "FONTIN SC")
self.tooltip:AddSeparator(10)
end
if statSetLevel.critChance then
self.tooltip:AddLine(16, string.format("^x7F7F7FCritical Hit Chance: ^7%.2f%%", statSetLevel.critChance))
self.tooltip:AddLine(fontSizeBig, string.format("^x7F7F7FCritical Hit Chance: ^7%.2f%%", statSetLevel.critChance), "FONTIN SC")
end
if statSetLevel.baseMultiplier then
self.tooltip:AddLine(16, string.format("^x7F7F7FAttack Damage: ^7%d%%", statSetLevel.baseMultiplier * 100))
self.tooltip:AddLine(fontSizeBig, string.format("^x7F7F7FAttack Damage: ^7%d%%", statSetLevel.baseMultiplier * 100), "FONTIN SC")
end
if self.skillsTab and self.skillsTab.build.data.describeStats then
if not noLabel then self.tooltip:AddSeparator(10) end
Expand All @@ -730,8 +734,9 @@ function GemSelectClass:AddStatSetInfo(gemInstance, grantedEffect, statSet, noLa
-- end
--end
local descriptions, lineMap = self.skillsTab.build.data.describeStats(stats, statSet.statDescriptionScope)
for _, line in ipairs(descriptions) do
for i, line in ipairs(descriptions) do
local source = statSet.statMap[lineMap[line]] or self.skillsTab.build.data.skillStatMap[lineMap[line]]
local bg = (i % 2 == 0) and "GemHoverModBg" or nil -- every second line gets background
if source then
if launch.devModeAlt then
local devText = lineMap[line]
Expand All @@ -743,14 +748,14 @@ function GemSelectClass:AddStatSetInfo(gemInstance, grantedEffect, statSet, noLa
end
line = line .. " ^2" .. devText
end
self.tooltip:AddLine(16, colorCodes.MAGIC .. line)
self.tooltip:AddLine(fontSizeBig, colorCodes.MAGIC .. line, "FONTIN SC", bg)
else
if launch.devModeAlt then
line = line .. " ^1" .. lineMap[line]
end
local line = colorCodes.UNSUPPORTED .. line
line = main.notSupportedModTooltips and (line .. main.notSupportedTooltipText) or line
self.tooltip:AddLine(16, line)
self.tooltip:AddLine(fontSizeBig, line, "FONTIN SC", bg)
end
end
end
Expand Down
Loading
Loading