cwAttributes panelclient
Panel defined in core/derma/cl_attributes.lua
Summary
Methods
Init()client
Sizes the attributes menu tab to the menu, creates its list and registers itself as
cw.attributes.panel.OnMenuOpened()client
Rebuilds the list when the menu is opened while this tab is active.
OnSelected()client
Rebuilds the list when the tab is selected in the menu.
Paint(w, h)client
Draws the outlined panel background.
PerformLayout(w, h)client
Does nothing; the list lays itself out.
Rebuild()client
Rebuilds the list of attributes the local player has access to.
Methods
Sizes the attributes menu tab to the menu, creates its list and registers itself as cw.attributes.panel.
Rebuilds the list when the menu is opened while this tab is active.
Rebuilds the list when the tab is selected in the menu.
Draws the outlined panel background.
Parameters
- w
- h
Does nothing; the list lays itself out.
Parameters
- w
- h
Rebuilds the list of attributes the local player has access to.
Attributes with a category are grouped under a form per category and sorted by translated name; the
rest are listed on their own. Each entry is a cwAttributesItem row. Shows a notice instead when the
player cannot access any attribute.