Skip to content
This repository was archived by the owner on Nov 3, 2022. It is now read-only.

More Details

Joshua edited this page Mar 16, 2021 · 3 revisions

Verb Label Strategy

The label of a verb is the first one of these that is not null or empty:

  1. The visualLabel field of the corresponding AdditionalVerbProps.
  2. The label field of the verb.
  3. The label of the projectile fired by the verb, if it fires projectiles.
  4. The label of the owner of this verb.

Verb Icon Strategy

The icon of a verb is the first one of these that is a valid texture:

  1. If this is a toggle gizmo, the toggleIcon field of the corresponding AdditionalVerbProps.
  2. The graphic field of the corresponding AdditionalVerbProps.
  3. The commandIcon field of the verb.
  4. The icon of the projectile fired by the verb, if it fires projectiles.
  5. The icon of the item that provides this verb, if it exists. Which it will, unless this verb is given by a Hediff.
  6. The default vanilla "Attack" icon.

DrawPosition

DrawPosition is the class used to determine where to draw a verb that has drawing enabled. All the Vector2s are offsets from the center of the pawn. It has the following fields:

defName : string

If in specificPositions this is used to find which types of pawns this specific position to be used on. If this is the defaultPosition, then this field is ignored.

Default : Vector2 (default: (0, 0))

The default position, if the current rotation does not have a entry.

Up, Down, Left, and Right : Vector2 (default: Default)

Specific positions depending on the rotation of the pawn.

bodyType : BodyTypeDef (optional)

If provided, only applies this DrawPosition to pawns with this body type.

Scaling

To scale the drawn verb differently based on the owner, you can provide a scalings list, which is a list Scaling objects.

BodyType : BodyTypeDef (optional)

If provided, this scaling only applies to pawns of this body type.

defName : string

Limits this scaling to only pawns with this defName.

scaling : float (required)

What scale to draw at if this scaling's prereqs match.

VFE Core

General Comp classes

General DefModExtensions

Item Processor

PipeSystem

Custom Structure Generation

Multi Verb Combat Framework - MVCF

Animal Behaviours

Apparel

Cuisine

Furniture

Plants

Clone this wiki locally