Click or drag to resize

ModItem Class

A UI element to display a Mod's data and allow configuring it.
Inheritance Hierarchy
SystemObject
  Object
    Component
      Behaviour
        MonoBehaviour
          Kit.UIItem
            Kit.Modding.UIModItem

Namespace:  Kit.Modding.UI
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0
Syntax
C#
public class ModItem : Item
Request Example View Source

The ModItem type exposes the following members.

Properties
  NameDescription
Public propertyMod
The mod associated with this display.
Top
Methods
  NameDescription
Public methodMoveDown
Move the mod down in the load order.
Public methodMoveUp
Move the mod up in the load order.
Public methodRefresh
(Re)load the mod data.
(Overrides ItemRefresh.)
Public methodToggle
Toggle the mod on or off.
Top
Fields
  NameDescription
Public fieldAuthorText
Label to use for displaying mod author.
Public fieldDescriptionText
Label to use for displaying mod description.
Public fieldDisabledColor
Color of the name label when the mod is disabled.
Public fieldEnabledColor
Color of the name label when the mod is enabled.
Public fieldEnableToggle
Button to use for enabling/disabling the mod.
Public fieldMoveDownButton
Button to use for moving the mod down in the load order.
Public fieldMoveUpButton
Button to use for moving the mod up in the load order.
Public fieldNameText
Label to use for displaying mod name.
Public fieldRecolorTime
Toggle animation time.
Public fieldReorderTime
Move up/down animation time.
Public fieldVersionText
Label to use for displaying mod version.
Top
Extension Methods
  NameDescription
Public Extension MethodDestroy
Destroy the object.
(Defined by UnityObjectExtensions.)
Public Extension MethodDisable
Set the enabled property to .
(Defined by BehaviourExtensions.)
Public Extension MethodEnable
Set the enabled property to .
(Defined by BehaviourExtensions.)
Public Extension MethodGetBounds

Returns the bounds of the Component.

(Defined by ComponentExtensions.)
Public Extension MethodIsPrefab
Returns whether the Component is a part of a prefab.
(Defined by ComponentExtensions.)
Top
See Also