ReadyTextbox
Prepares a DTextEntry properly for future classes:
- Stops drawing its background
- Sets a
PaintOver
appension overwrite - Paint doesnt work with textboxes - Sets a custom transition function for when the textbox is focused, letting you effortlessly reuse button hover effects
Arguments
None
Example
local entry = vgui.Create("DTextEntry")
entry:ReadyTextbox()
:FadeHover()
:BarHover() -- these two effects will now be applied when the textbox is focused instead of hovered over