Skip to content

Commit

Permalink
healthprediction: Add missing docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ls- committed Jul 16, 2024
1 parent 07e3f10 commit 806f70a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions elements/healthprediction.lua
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,14 @@ local function shouldUpdateSize(self)
end

local function Path(self, ...)
--[[ Override: HealthPrediction.UpdateSize(self, event, unit, ...)
Used to completely override the internal function for updating the widgets' size.
* self - the parent object
* event - the event triggering the update (string)
* unit - the unit accompanying the event (string)
* ... - the arguments accompanying the event
--]]
if(shouldUpdateSize(self)) then
(self.HealthPrediction.UpdateSize or UpdateSize) (self, ...)
end
Expand Down

0 comments on commit 806f70a

Please sign in to comment.