Garry's Mod Wiki

Garry's Mod Wiki

  DTextEntry:SetTextColor( table color )

Description

Sets the text color of the DTextEntry.

Arguments

1 table color
The text color. Uses the Color.

Example

Changes the text color inside the DTextEntry to the color red.

local Frame = vgui.Create("DFrame") Frame:SetSize(200,200) Frame:Center() Frame:MakePopup() local TextEntry = vgui.Create("DTextEntry", Frame) TextEntry:SetSize(180,20) TextEntry:SetPos(10,80) TextEntry:SetTextColor(Color(255,20,20)) TextEntry:SetValue("Basic Text")

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...