Toast Engine
Loading...
Searching...
No Matches
physics::Meta Struct Reference

Everything the editor needs to render a setting without knowing what it is. More...

#include <settings.hpp>

Public Attributes

std::string label
 Display name; the key's last segment when empty.
std::string category
 Grouping header; the key minus its last segment when empty.
std::string description
 Tooltip.
double min = 0.0
 Slider bounds; equal min and max mean unbounded.
double max = 0.0
double step = 0.0
 Drag increment; the editor picks one when 0.
std::vector< std::string > options
 Non-empty makes an integer setting a combo box indexing this.
bool requires_restart = false
 Editor marks it; the value still applies to the next run.
bool hidden = false
 Persisted and scriptable, but not shown.

Detailed Description

Everything the editor needs to render a setting without knowing what it is.

The point of carrying this on the setting rather than in the editor: a system declares its settings next to the code that reads them, and the settings window picks them up with no C# change. category is the grouping header, defaulting to the key minus its last segment


The documentation for this struct was generated from the following file: