Category:DLabelURL

From Garry's Mod
Jump to: navigation, search

Contents

DescriptionPanelPage

Underlined link label without a DoClick function. When a valid URL is set and the label is clicked, it will open a browser window and navigate to the address.

This panel uses gui.OpenURL internally and its restrictions apply.

Inherited Functions

Inherits the following functions from URLLabel and its parents up to 3 levels deep:

Examples

Example

Creates a DLabelURL that opens the wiki when clicked.

local frame = vgui.Create( "DFrame" )
frame:SetSize(400,400)
frame:SetTitle("Test panel")
frame:Center()
frame:MakePopup()

local lbl = vgui.Create( "DLabelURL", frame )
lbl:SetPos(50, 50)
lbl:SetSize(100, 50)
lbl:SetColor(Color(255,255,255,255)) 
lbl:SetText("I Love Gmod") 
lbl:SetURL("http://steamcommunity.com/groups/glua")

Output:

dlabelurl.png

Methods

Pages in category "DLabelURL"

The following 7 pages are in this category, out of 7 total.

Personal tools
Navigation