DLuaEditor

From GMod Wiki

Jump to: navigation, search
Derma Control: DLuaEditor
Parent Class:DPanel
Subclasses:
Description:
A in-game lua editor control added in the #117 update.

Examples

DescriptionCreates a Lua editor and adds some simple code.
Used onNewerClient.png
Code
local luaeditor = vgui.Create( "DLuaEditor", yourframe )
luaeditor:SetPos( 10, 30 )
luaeditor:SetSize( 200, 300 )
luaeditor:SetCode([[
/* Oh Wow */
local garry = GetGlobalInt("awsomeness")
 
print(garry)
]])
 
OutputN/A


Methods

NewerClient.png DLuaEditor.Init
NewerClient.png DLuaEditor.SetCode
NewerClient.png DLuaEditor.GetCode

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox