Feature: Allow GameScripts to add additional text to Industry view window

This commit is contained in:
dP
2021-01-15 17:38:14 +03:00
committed by Charles Pigott
parent 4b42ecb0f6
commit bab7de6cf2
9 changed files with 60 additions and 11 deletions

View File

@@ -72,6 +72,7 @@ static const SaveLoad _industry_desc[] = {
SLE_CONDNULL(1, SLV_82, SLV_197), // random_triggers
SLE_CONDVAR(Industry, random, SLE_UINT16, SLV_82, SL_MAX_VERSION),
SLE_CONDSSTR(Industry, text, SLE_STR | SLF_ALLOW_CONTROL, SLV_INDUSTRY_TEXT, SL_MAX_VERSION),
SLE_CONDNULL(32, SLV_2, SLV_144), // old reserved space

View File

@@ -323,6 +323,7 @@ enum SaveLoadVersion : uint16 {
SLV_GS_INDUSTRY_CONTROL, ///< 287 PR#7912 and PR#8115 GS industry control.
SLV_VEH_MOTION_COUNTER, ///< 288 PR#8591 Desync safe motion counter
SLV_INDUSTRY_TEXT, ///< 289 PR#8576 Additional GS text for industries.
SL_MAX_VERSION, ///< Highest possible saveload version
};