Garry's Mod Wiki

Panel:ApplyGWEN

  Panel:ApplyGWEN( table GWENTable )

Description

Used by Panel:LoadGWENFile and Panel:LoadGWENString to apply a GWEN controls table to a panel object.

You can do this manually using file.Read and util.JSONToTable to import and create a GWEN table structure from a .gwen file. This method can then be called, passing the GWEN table's Controls member.

Arguments

1 table GWENTable
The GWEN controls table to apply to the panel.