Merge branch 'tracerestrict-sx' into jgrpp
# Conflicts: # src/command.cpp # src/group_gui.cpp # src/lang/english.txt # src/saveload/extended_ver_sl.cpp # src/settings_gui.cpp # src/tracerestrict.cpp # src/tracerestrict.h # src/tracerestrict_gui.cpp # src/vehicle_gui.cpp # src/vehicle_gui_base.h # src/vehiclelist.cpp # src/window_type.h
This commit is contained in:
@@ -45,6 +45,7 @@ enum StringControlCode {
|
||||
SCC_COMPANY_NAME,
|
||||
SCC_PRESIDENT_NAME,
|
||||
SCC_ENGINE_NAME,
|
||||
SCC_TR_SLOT_NAME,
|
||||
|
||||
SCC_CURRENCY_SHORT,
|
||||
SCC_CURRENCY_LONG,
|
||||
@@ -121,6 +122,8 @@ enum StringControlCode {
|
||||
SCC_BLACK,
|
||||
SCC_PREVIOUS_COLOUR,
|
||||
|
||||
SCC_CONSUME_ARG,
|
||||
|
||||
/**
|
||||
* The next variables are part of a NewGRF subsystem for creating text strings.
|
||||
* It uses a "stack" of bytes and reads from there.
|
||||
|
@@ -4029,6 +4029,15 @@ str = STR_CONFIG_SETTING_SHOW_RESTRICTED_SIG_DEF
|
||||
strhelp = STR_CONFIG_SETTING_SHOW_RESTRICTED_SIG_DEF_HELPTEXT
|
||||
proc = RedrawScreen
|
||||
|
||||
[SDTC_BOOL]
|
||||
var = gui.show_adv_tracerestrict_features
|
||||
flags = SLF_NOT_IN_SAVE | SLF_NO_NETWORK_SYNC
|
||||
def = false
|
||||
str = STR_CONFIG_SETTING_SHOW_ADV_TRACE_RESTRICT_FEATURES
|
||||
strhelp = STR_CONFIG_SETTING_SHOW_ADV_TRACE_RESTRICT_FEATURES_HELPTEXT
|
||||
proc = RedrawScreen
|
||||
cat = SC_EXPERT
|
||||
|
||||
; For the dedicated build we'll enable dates in logs by default.
|
||||
[SDTC_BOOL]
|
||||
ifdef = DEDICATED
|
||||
|
@@ -124,6 +124,7 @@ static const CmdStruct _cmd_structs[] = {
|
||||
{"COMPANY", EmitSingleChar, SCC_COMPANY_NAME, 1, -1, C_NONE | C_GENDER},
|
||||
{"COMPANY_NUM", EmitSingleChar, SCC_COMPANY_NUM, 1, -1, C_NONE},
|
||||
{"PRESIDENT_NAME", EmitSingleChar, SCC_PRESIDENT_NAME, 1, -1, C_NONE | C_GENDER},
|
||||
{"TRSLOT", EmitSingleChar, SCC_TR_SLOT_NAME, 1, -1, C_NONE | C_GENDER},
|
||||
|
||||
{"", EmitSingleChar, '\n', 0, -1, C_DONTCOUNT},
|
||||
{"{", EmitSingleChar, '{', 0, -1, C_DONTCOUNT},
|
||||
@@ -144,6 +145,8 @@ static const CmdStruct _cmd_structs[] = {
|
||||
{"SMALL_LEFT_ARROW", EmitSingleChar, SCC_LESS_THAN, 0, -1, C_DONTCOUNT},
|
||||
{"SMALL_RIGHT_ARROW", EmitSingleChar, SCC_GREATER_THAN, 0, -1, C_DONTCOUNT},
|
||||
|
||||
{"CONSUME_ARG", EmitSingleChar, SCC_CONSUME_ARG, 1, 0, C_NONE},
|
||||
|
||||
/* The following are directional formatting codes used to get the RTL strings right:
|
||||
* http://www.unicode.org/unicode/reports/tr9/#Directional_Formatting_Codes */
|
||||
{"LRM", EmitSingleChar, CHAR_TD_LRM, 0, -1, C_DONTCOUNT},
|
||||
|
Reference in New Issue
Block a user