Defines the cwCraft panel of the Craft plugin, the menu a crafting station opens to browse and craft its
blueprints.
The left third lists the blueprints whose craftplace is the station's class and that cwCraft:PlayerCanSeeCraft
allows, grouped by category. Selecting one shows its model, description, attribute and custom requirements,
materials and tools with the amounts the player has, and a button that sends Craft::CraftItem to the server.
Summary
Methods
Methods
Builds the craft menu's blueprint list and detail area, then fills them on the next frame.
Rebuilds the menu when the panel is selected.
Paints the panel background.
Parameters
- w
- h
Places the blueprint list in the left third and the details in the rest.
Parameters
- w
- h
Rebuilds the blueprint list and the details of the selected blueprint.
Lists the blueprints of this station's class (self.class) that cwCraft:PlayerCanSeeCraft
allows, grouped by category. For the selected blueprint (self.bpData) it shows the model,
description, attribute and custom requirements, materials and tools with the amounts the
player has, and a button that asks the server to craft it.