615 {
617
618 int tex_id =
GetGame().
ConfigGetInt(
string.Format(
"cfgVehicles %1 Horticulture TexId", item_type) );
619
621
622 ShowSelection( str_show );
623 SetObjectTexture( slot_index, textures.Get(tex_id) );
624
625 Slot slot =
m_Slots.Get( slot_index );
626
627 int slot_index_offset = 0;
628
629
630 if ( slot.GetWateredState() == 0 )
631 {
632
633 if ( slot.GetFertilityType() == "GardenLime" )
634 {
636 }
637 else if ( slot.GetFertilityType() == "PlantMaterial" )
638 {
640 }
641 }
642 else
643 {
644
645 if ( slot.GetFertilityType() == "GardenLime" )
646 {
648 }
649 else if ( slot.GetFertilityType() == "PlantMaterial" )
650 {
652 }
653 }
654 }
string ToStringLen(int len)
Integer to string with fixed length, padded with zeroes.
proto native int ConfigGetInt(string path)
Get int value from config on path.
static const string SLOT_MATERIAL_COMPOST_DRY
ref array< ref Slot > m_Slots
static const string SLOT_MATERIAL_COMPOST_WET
static const string SLOT_MATERIAL_LIMED_DRY
static const string SLOT_MATERIAL_LIMED_WET
static const string SLOT_SELECTION_DIGGED_PREFIX
proto native CGame GetGame()
array< string > TStringArray