Class ColorItem
Base class for items that have color.
Specifies color in name and tooltip with overrides.
Is unique stackable and has caching of dynamic props.
Inheritance
System.Object
ColorItem
Implements
System.ComponentModel.INotifyPropertyChanged
Assembly: Eco.Gameplay.dll
Syntax
public abstract class ColorItem : Item, IItem, ILinkableParameterized<LinkConfig>, ILinkable, IHasIcon, IController, IViewController, IHasUniversalID, INotifyPropertyChanged
Constructors
ColorItem()
Declaration
ColorItem(ByteColor)
Declaration
protected ColorItem(ByteColor color)
Parameters
Properties
Color
Declaration
public ByteColor Color { get; protected set; }
Property Value
ColoredOverlayName
Declaration
public virtual string ColoredOverlayName { get; }
Property Value
| Type |
Description |
| System.String |
|
ColorName
Declaration
public LocString ColorName { get; }
Property Value
DisplayName
Declaration
public override LocString DisplayName { get; }
Property Value
Overrides
IsStackable
Declaration
public override bool IsStackable { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Overrides
Label
Declaration
public virtual LocString Label { get; }
Property Value
MarkedUpName
Declaration
public override LocString MarkedUpName { get; }
Property Value
Overrides
StackingHash
Declaration
public override int StackingHash { get; }
Property Value
| Type |
Description |
| System.Int32 |
|
Overrides
Methods
Clone()
Declaration
public override Item Clone()
Returns
Overrides
ItemIconUILink(LocString)
Declaration
protected override LocString ItemIconUILink(LocString text)
Parameters
Returns
Overrides
RepresentativeHash()
Declaration
public override int RepresentativeHash()
Returns
| Type |
Description |
| System.Int32 |
|
Overrides
RepresentsItem(Item)
Declaration
public override bool RepresentsItem(Item other)
Parameters
| Type |
Name |
Description |
| Item |
other |
|
Returns
| Type |
Description |
| System.Boolean |
|
Overrides
SetColor(ByteColor)
Declaration
public void SetColor(ByteColor color)
Parameters
SetRandomColor()
Method that implements setting random color for this item type. Default implementation refers to default named colors without blends
Declaration
public virtual void SetRandomColor()
Events
PropertyChanged
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
| Type |
Description |
| System.ComponentModel.PropertyChangedEventHandler |
|
Implements
System.ComponentModel.INotifyPropertyChanged
Extension Methods