mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
settings panel moved to xml (WIP)
This commit is contained in:
parent
7cb5b2eb70
commit
9cdf3ff016
33 changed files with 254 additions and 143 deletions
|
|
@ -12,3 +12,14 @@ std::string NumberSetting::toString() const {
|
|||
return "invalid format";
|
||||
}
|
||||
}
|
||||
|
||||
std::string IntegerSetting::toString() const {
|
||||
switch (getFormat()) {
|
||||
case setting_format::simple:
|
||||
return util::to_string(value);
|
||||
case setting_format::percent:
|
||||
return std::to_string(value) + "%";
|
||||
default:
|
||||
return "invalid format";
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue