DarkRadiant: master 78620678

Author Committer Branch Timestamp Parent
orbweaver orbweaver master 20.09.2022 20:00 master bb8c3bd5
Affected Issues  0006095: Remove menu options which are not applicable to current game
Changeset 0006095: don't create menu items for unsupported game features

The menu.xml allows a new "gamefeature" attribute to be applied to a
<menuItem> node. If present, this feature will be looked up in the
current game using the hasFeature() method, and the menu item will not
be created if the feature is not present.

This is used to hide the "Make Structural" and "Make Detail" menu items
for games which are not Quake 3.
mod - install/games/darkmod.game Diff File
mod - install/menu.xml Diff File
mod - radiant/ui/menu/MenuElement.cpp Diff File
mod - radiant/ui/menu/MenuElement.h Diff File
mod - test/Game.cpp Diff File