Hooks - Henotu/TTT2-Statistics GitHub Wiki

StatisticsDrawGui(panel)

Description

Gets called whenever the statistics GUI gets drawn

Arguments

  • panel panel

    The panel were all the content is located at

Example

hook.Add("StatisticsDrawGui", "unique_identifier", function(panel)
  MyLabel = vgui.Create("DLabel", panel)
  MyLabel:SetPos(0,0)
  MyLabel:SetSize(panel:GetWide(), panel:GetTall())
end)

Info

The size of the panel is seen in red