VGUI SectionedListPanel: Difference between revisions
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
[[Image:ListPanel.jpg|thumb|This screenshot represents valve's default scoreboard which was built using a ListPanel.]] | [[Image:ListPanel.jpg|thumb|This screenshot represents valve's default scoreboard which was built using a ListPanel.]] | ||
== Example Usage == | |||
Before creating any list panels, we first need to include the listpanel header file. | |||
#include <vgui_controls/SectionedListPanel.h> | |||
ListPanels can be created via the c++ keyword new with a simple call to SectionedListPanel. | |||
vgui::SectionedListPanel* myListPanel = new SectionedListPanel(this, "myListPanel"); | |||
Todo: I'm not going to go much further, as this is all I know about ListPanels. More information and examples can be found by simply looking at the scoreboard code, found in ClientScoreBoardDialog.cpp in the game_controls folder. |
Revision as of 13:46, 6 June 2009
A ListPanel is a vgui2 element defined in the vgui_controls library, in the file ListPanel.cpp. ListPanels are available in all source games. ListPanels, as the name suggests, are useful for listing groups of information. The standard scoreboard was created using a ListPanel, and thus represents a good example of the ListPanel's capabilities.
Example Usage
Before creating any list panels, we first need to include the listpanel header file.
#include <vgui_controls/SectionedListPanel.h>
ListPanels can be created via the c++ keyword new with a simple call to SectionedListPanel.
vgui::SectionedListPanel* myListPanel = new SectionedListPanel(this, "myListPanel");
Todo: I'm not going to go much further, as this is all I know about ListPanels. More information and examples can be found by simply looking at the scoreboard code, found in ClientScoreBoardDialog.cpp in the game_controls folder.