mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
settings page completely moved to xml
This commit is contained in:
parent
9cdf3ff016
commit
b9ea88b988
15 changed files with 111 additions and 107 deletions
|
|
@ -23,3 +23,12 @@ std::string IntegerSetting::toString() const {
|
|||
return "invalid format";
|
||||
}
|
||||
}
|
||||
|
||||
std::string FlagSetting::toString() const {
|
||||
switch (getFormat()) {
|
||||
case setting_format::simple:
|
||||
return value ? "true" : "false";
|
||||
default:
|
||||
return "invalid format";
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue