AdditionalVerbProps - AndroidQuazar/VanillaExpandedFramework GitHub Wiki
AdditionalVerbProps
is a class used to provide, as the name implies, additional properties for verbs in MVCF. It has the following fields:
The most important field, this is used to figure out which verb this applies to. It must exactly match the label
field of the verb you want to apply it to.
Sets if the player can toggle the use of this verb.
If you want to provide a separate label than what you use to link the verb to these props, here is the place. This is useful to have the label
be an internal name. For more information, see Verb Label Strategy.
Describe the verb, shown when mousing over the verb's gizmo.
Provides a graphic, used for two things: 1. If draw
is true
, this is what will be drawn, and 2. this is used as an icon for the verb's gizmo. For more information, see Verb Icon Strategy.
Show a separate toggle gizmo, rather than having it be a checkbox on top of the verb's fire gizmo. If this is false
or not provided for any verb in your mod, you need to enable the feature IntegratedToggle
in your ModDef
.
Label for the toggle gizmo, only used if separateToggle
is true
.
Description for the toggle gizmo, used on mouseover. Only used if separateToggle
is true
.
Path to a icon to use for the toggle gizmo. Defaults to the same icon as the verb, which is explained in Verb Icon Strategy. Only used if separateToggle
is true
.
Should this verb be draw on top of the pawn using it? If true
, you must provide a graphic
for the pawn and enable the feature Drawing
in your ModDef
.
List of draw positions to use. This is explained in More Details.
If the owner doesn't match any defNames
from specificPositions
, then this DrawPosition
is used.
How much to scale the icon when drawing. Only used if draw
is true.
Specific scalings to use. This is explained in More Details.
If true, pawns that do not match any specific defName
in scalings
and/or specificPositions
will search for the ones with a defName
of Human
. Useful to support modded races easily.
Should this verb fire independent of its owner? Verbs with this set will fire at enemies regardless of the state of the owner and will not change the stance of the owner.
managedClass
: Type
(default: TurretVerb
if canFireIndependently
is true
, otherwise ManagedVerb
) [ADVANCED USAGE]
The class to use for this verb in the VerbManager
. Must be a subclass of the default value. I recommend looking through the source of MVCF to figure out how to use this, sorry.