> For the complete documentation index, see [llms.txt](https://akulla-pro.gitbook.io/aphone/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://akulla-pro.gitbook.io/aphone/api/ui-general-functions.md).

# UI - General Functions

Functions you can use to make UI. These functions are usable outside of the phone and you don't need to use them to make UI.

## Wrap a text - aphone.GUI.WrapText(string text, string font, number maxWidth)

{% hint style="success" %}
CREDITS - This function come from : <https://github.com/FPtje/DarkRP/blob/master/gamemode/modules/base/cl_util.lua>
{% endhint %}

## aphone.GUI.GetBackground()

Return the material of the background

## aphone.GUI.RoundedBox(int x, int y, int w, int h, int round\_value)

Return a poly with the rounded box inside. You need to draw it with surface.DrawPoly

{% hint style="danger" %}
Calling this function on every display is very expensive. You have to store it in a variable and use surface.DrawPoly
{% endhint %}

## aphone.GUI.GenerateCircle(int x, int y, int r)

Return a poly. You need to draw it with surface.DrawPoly

{% hint style="danger" %}
Calling this function on every display is very expensive. You have to store it in a variable and use surface.DrawPoly
{% endhint %}

## PANEL:Phone\_AlphaHover()

Will set the text color to aphone:Color("Text\_White") on hovered. If not, will set it to aphone:Color("Text\_White120")

## PANEL:Phone\_DrawTop(int panel\_w, int panel\_h, bool darktheme)

Draw top bar with time, wifi picture

## DScrollPanel:aphone\_PaintScroll()

Will paint the VBar ( Right Bar ) and fade it when it's not used for 0.5 sec
