Garry's Mod Wiki

Panel:LoadGWENFile

void Panel:LoadGWENFile( string filename, string path = "GAME" )

Description

Loads a .gwen file (created by GWEN Designer) and calls Panel:LoadGWENString with the contents of the loaded file.

Used to load panel controls from a file.

Arguments

1 string filename
The file to open. The path is relative to garrysmod/garrysmod/.
2 string path = "GAME"
The path used to look up the file.

  • "GAME" Structured like base folder (garrysmod/), searches all the mounted content (main folder, addons, mounted games etc)
  • "LUA" or "lsv" - All Lua folders (lua/) including gamesmodes and addons
  • "DATA" Data folder (garrysmod/data)
  • "MOD" Strictly the game folder (garrysmod/), ignores mounting.

Page Links


Special Pages


Wikis

?

Render Time: 22ms

Session 0
DB GetPage 3
Generate Html 1
SaveChanges 9
Render Body 0
Render Sidebar 7