Dictionary; DisplayFamily - HWRM/KarosGraveyard GitHub Wiki

DisplayFamily is a grouping system that organizes the build and research menus. Defined in Data\scripts\familylist.lua. For example, the corvette family reads thus:

{
name = "Corvette",
stringParam = "$2101",
numParam = 2,
},

And in the ship definition file Vgr_lasercorvette.ship we have the line:
NewShipType.DisplayFamily = "Corvette"

In Data\ui\newui\build\finalbuild.lua it is written:

{
type = "RadioButton",
buttonStyle = "IGButtonCorvette",
name = "Corvette",
helpTip = "$2624",
helpTipTextLabel = "lblCurrentFacility",
hotKeyID = 91,
},

This means that there is a DisplayFamily Corvette defined, the Vgr_lasercorvette ship is a member of this said family, and the family has its own button under the build menus. In other words, entries related to the Vaygr Laser corvettte appear under Corvette in the build menus.

Note that DisplayFamily is not tightly connected to BuildFamily, so you can do interesting things like mix different families and make new submenus for research and build. You can easily add your own DisplayFamily into familylist.lua.

--VarisWiki

Comments

Page Status

Updated Formatting? Initial
Updated for HWRM? Initial