docs: add function-level documentation comments across various source files to improve the readability of codebase

This commit is contained in:
Bluewhale1337
2026-08-24 12:42:23 +02:00
parent d09e49d26a
commit 6d977f6963
24 changed files with 335 additions and 27 deletions
+6
View File
@@ -1,7 +1,9 @@
-- HealBot_Errors_OnLoad: Internal utility: HealBot_Errors_OnLoad
function HealBot_Errors_OnLoad(this)
-- do nothing
end
-- HealBot_Errors_OnShow: Show event handler.
function HealBot_Errors_OnShow(this)
local client = getglobal("HealBot_Error_Clientx")
client:SetText("Client="..GetLocale())
@@ -9,6 +11,7 @@ function HealBot_Errors_OnShow(this)
HealBot_Error_Classx:SetText("Player class="..HealBot_UnitClass("player"))
end
-- HealBot_Errors_OnHide: Hide event handler.
function HealBot_Errors_OnHide(this)
local errtext;
HealBot_StopMoving(this);
@@ -19,14 +22,17 @@ function HealBot_Errors_OnHide(this)
HealBot_ErrorCnt=0;
end
-- HealBot_Errors_OnDragStart: Internal utility: HealBot_Errors_OnDragStart
function HealBot_Errors_OnDragStart(this,arg1)
HealBot_StartMoving(this);
end
-- HealBot_Errors_OnDragStop: Internal utility: HealBot_Errors_OnDragStop
function HealBot_Errors_OnDragStop(this)
HealBot_StopMoving(this);
end
-- HealBot_ErrorsIn: Internal utility: HealBot_ErrorsIn
function HealBot_ErrorsIn(msg,id)
local errtext = getglobal("HealBot_Error"..id);
errtext:SetText(msg)