diff options
| author | sfan5 <sfan5@live.de> | 2022-01-09 21:15:35 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-09 21:15:35 +0100 |
| commit | 4c8c6497799c83cb5bac773ac4eac7ea572ec78f (patch) | |
| tree | ffa67ce9002a94f6354eedbc94a1b768ed0cd336 /src/settings.h | |
| parent | b164e16d1be30220029729d63a1e621395ad00ad (diff) | |
| download | minetest-4c8c6497799c83cb5bac773ac4eac7ea572ec78f.tar.xz | |
Mainmenu game-related changes (#11887)
fixes:
* Switching between games does not immediately hide creative mode / damage buttons if so specified
* World creation menu has a game selection list even though the menu already provides a gamebar
* Showing gameid in world list is unnecessary
* Choice of mapgen parameters in menu persists between games (and was half-broken)
Diffstat (limited to 'src/settings.h')
| -rw-r--r-- | src/settings.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/settings.h b/src/settings.h index 4e32a3488..767d057f9 100644 --- a/src/settings.h +++ b/src/settings.h @@ -172,9 +172,12 @@ public: bool getNoiseParamsFromValue(const std::string &name, NoiseParams &np) const; bool getNoiseParamsFromGroup(const std::string &name, NoiseParams &np) const; - // return all keys used + // return all keys used in this object std::vector<std::string> getNames() const; + // check if setting exists anywhere in the hierarchy bool exists(const std::string &name) const; + // check if setting exists in this object ("locally") + bool existsLocal(const std::string &name) const; /*************************************** |
