Codechange: Use parameterised-GetString for vehicle related windows.
This commit is contained in:
committed by
Peter Nelson
parent
0428f8c667
commit
24d327a30b
@@ -59,6 +59,15 @@ inline StringID MakeStringID(StringTab tab, StringIndexInTab index)
|
||||
return (tab << TAB_SIZE_BITS) + index.base();
|
||||
}
|
||||
|
||||
/**
|
||||
* Prepare the string parameters for the next formatting run, resetting the type information.
|
||||
* This is only necessary if parameters are reused for multiple format runs.
|
||||
*/
|
||||
static inline void PrepareArgsForNextRun(std::span<StringParameter> args)
|
||||
{
|
||||
for (auto ¶m : args) param.type = 0;
|
||||
}
|
||||
|
||||
std::string GetStringWithArgs(StringID string, std::span<StringParameter> args);
|
||||
std::string GetString(StringID string);
|
||||
const char *GetStringPtr(StringID string);
|
||||
|
||||
Reference in New Issue
Block a user