Feature: Base graphics can offer parameters for additional settings.

This commit is contained in:
frosch
2023-10-02 14:43:10 +02:00
committed by frosch
parent de3f29d7b2
commit e81313e93e
8 changed files with 34 additions and 5 deletions

View File

@@ -389,6 +389,14 @@ GRFConfig &GraphicsSet::GetOrCreateExtraConfig() const
return *this->extra_cfg;
}
bool GraphicsSet::IsConfigurable() const
{
const GRFConfig &cfg = this->GetOrCreateExtraConfig();
/* This check is more strict than the one for NewGRF Settings.
* There are no legacy basesets with parameters, but without Action14 */
return !cfg.param_info.empty();
}
void GraphicsSet::CopyCompatibleConfig(const GraphicsSet &src)
{
const GRFConfig *src_cfg = src.GetExtraConfig();