Skip to content

Commit

Permalink
Merge pull request #1 from Makume/Version-0.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Makume authored Oct 4, 2024
2 parents 78799e5 + 68dfdf0 commit 876bc53
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
>
> | Version | Description |
> | ------------- | ------------- |
> | 0.7.1 | Fixed: Tooltip continuously updates the information when hovering over it with the mouse |
> | 0.7.0 | Show additional informations for Gold and War Crests <br/>![Version 0.7.0](https://github.com/Makume/WarBoard_Session/blob/2beeed7e22abf8586a3184dac699af40c1944221/(Images)/Version%200.7.0.png)|
> | 0.6.0 | Base version from [WarBoard_Session](https://tools.idrinth.de/addons/warboard_session/) |
16 changes: 10 additions & 6 deletions WarBoard_Session.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
if not WarBoard_Session then WarBoard_Session = {} end
if not WarBoard_Session then
WarBoard_Session = {}
end
local WarBoard_Session = WarBoard_Session

local GetGameTime, towstring, FormatClock, Tooltips = GetGameTime, towstring, TimeUtils.FormatClock, Tooltips;
Expand Down Expand Up @@ -33,7 +35,6 @@ local settings = {
timeToRenown = L"-",
xpInUse = false,
renownInUse = false,
version = L"0.6"
}

function WarBoard_Session.Initialize()
Expand Down Expand Up @@ -247,6 +248,12 @@ function WarBoard_Session.OnRClick()
end

function WarBoard_Session.OnMouseOver()
Tooltips.CreateTextOnlyTooltip("WarBoard_Session", nil)
Tooltips.AnchorTooltip( WarBoard.GetModToolTipAnchor("WarBoard_Session"))
Tooltips.SetUpdateCallback(WarBoard_Session.GetSessionData)
end

function WarBoard_Session.GetSessionData()
if settings.xpInUse then
WarBoard_Session.showTimeToRank();
end
Expand All @@ -255,9 +262,6 @@ function WarBoard_Session.OnMouseOver()
end
WarBoard_Session.UpdateStuff();

Tooltips.CreateTextOnlyTooltip( "WarBoard_Session", nil)
Tooltips.AnchorTooltip( WarBoard.GetModToolTipAnchor( "WarBoard_Session" ) )

local toolTipStringXPNeeded = L"";
local toolTipStringRenownNeeded = L"";

Expand Down Expand Up @@ -332,4 +336,4 @@ function WarBoard_Session.OnMouseOver()
end;
Tooltips.SetTooltipText( row, 1, L"War Crest per hour: "..WarCrestPerHour);
Tooltips.Finalize()
end
end

0 comments on commit 876bc53

Please sign in to comment.