From 806f70a36d7742700000cf8834d3c4ceb368e739 Mon Sep 17 00:00:00 2001 From: Val Voronov Date: Tue, 16 Jul 2024 22:44:10 +0700 Subject: [PATCH] healthprediction: Add missing docs --- elements/healthprediction.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/elements/healthprediction.lua b/elements/healthprediction.lua index 776d339b..b2021ec0 100644 --- a/elements/healthprediction.lua +++ b/elements/healthprediction.lua @@ -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