Skip to content

Utils advutil

Tensa edited this page Jun 10, 2017 · 6 revisions

utils/sh_advutil, utils/cl_advutil

AdvNS extension utility functions.

These utility functions are only used in AdvNS, and the code that uses this utility function does not guarantee compatibility with existing NS 1.0.

Functions

Share

  • AdvNut.util.GetPlayerTraceEntity(client)

    • Returns the entity that the player is reporting. If there is no view entity, returns nil.
    • Arguments: Player
    • Returns: Entity
  • AdvNut.util.CreateIdentifier(subIdentifier, caller)

    • This function is used to generate identifiers.
    • Arguments: Sub identifier, Caller
    • Returns: The generated identifier
  • AdvNut.util.LoadCachedConfigs()

    • Calls the settings stored in the cache.
    • Arguments: None
    • Returns: None
  • AdvNut.util.DrawOutline(panel, th, color)

    • Draw an outline on the panel.
    • Arguments : Panel, Thickness, Color
    • Returns : None
  • AdvNut.util.DrawBackgroundBlur(panel)

    • Draw a background blur on the panel.
    • Arguments : Panel
    • Returns : None
  • AdvNut.util.RemoveBackgroundBlur(panel)

    • Clears the background blur drawn on the panel.
    • Arguments : Panel
    • Returns : None
  • AdvNut.util.GetScreenScaleFontSize(fontSize)

  • AdvNut.util.DrawRoundedBox(panel, corner, x, y, w, h)

  • AdvNut.util.GetCurrentMenuSize()

  • AdvNut.util.GetCurrentMenuPos()

  • AdvNut.util.GetPanelScreenCenterPosition(panel, width, height)

  • AdvNut.util.DrawCenterGradient(x, y, w, h, color)

  • AdvNut.util.Draw3DText(text, font, x, y, color, alignX, alignY)

  • AdvNut.util.GetTextSize(font, text)

Client

  • AdvNut.util.WriteTable(uniqueID, value)

  • AdvNut.util.ReadTable(uniqueID)

Clone this wiki locally