Segment Item
Each of the 8 RadialSegments can have multiple instances of this item.
Constructor
public SegmentItem(string label, string desc, string txd, string txn, int txwidth, int txheight, SColor color)
SegmentItem.New(_label, _desc, _txd, _txn, _txwidth, _txheight, _color)
Parameters
Label
public string Label {get; set;}
segItem:Label(lbl)
Description
public string Description {get; set;}
segItem:Description(desc)
TextureDict
public string TextureDict {get; set;}
segItem:TextureDict(txd)
TextureName
public string TextureName {get; set;}
segItem:TextureName(txn)
TextureWidth
public int TextureWidth {get; set;}
segItem:TextureWidth(width)
TextureHeight
public int TextureHeight {get; set;}
segItem:TextureHeight(height)
Color
public SColor Color {get; set;}
segItem:Color(color)
Functions
Set Quantity
Set the quantity of this item, if max == 0 then the quantity will be centered
public void SetQuantity(int qtty, int max = 0)
segItem:SetQuantity(qtty, max)