Summary

Methods

Init()client
Sizes the business menu tab to the menu, creates its list and builds it.
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.
Does nothing; the list lays itself out.
Rebuild()client
Rebuilds the list of items the local player can order.

Methods

Sizes the business menu tab to the menu, creates its list and builds it.

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 items the local player can order.

Items are included when they can be ordered, the player has access to them and the PlayerCanSeeBusinessItem hook allows it. They are grouped by category (sorted by name) and, inside a category, by cost then name, each shown as a cwBusinessItem. Runs the PlayerBusinessRebuilt hook with the panel and the category list, and shows a notice when there is nothing to order.

Defined in