562 {
564
565 int tex_id =
GetGame().
ConfigGetInt(
string.Format(
"cfgVehicles %1 Horticulture TexId", item_type) );
566
568
569 ShowSelection( str_show );
570 SetObjectTexture( slot_index, textures.Get(tex_id) );
571
572 Slot slot =
m_Slots.Get( slot_index );
573
574 int slot_index_offset = 0;
575
576
577 if ( slot.GetWateredState() == 0 )
578 {
579
580 if ( slot.GetFertilityType() == "GardenLime" )
581 {
583 }
584 else if ( slot.GetFertilityType() == "PlantMaterial" )
585 {
587 }
588 }
589 else
590 {
591
592 if ( slot.GetFertilityType() == "GardenLime" )
593 {
595 }
596 else if ( slot.GetFertilityType() == "PlantMaterial" )
597 {
599 }
600 }
601 }
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