mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 03:51:50 +00:00
add 'xray_opacity' NotePreset property
This commit is contained in:
parent
3a1e90f517
commit
ef644ca56d
6 changed files with 30 additions and 15 deletions
|
|
@ -34,7 +34,8 @@ dv::value NotePreset::serialize() const {
|
|||
{"display", to_string(displayMode)},
|
||||
{"color", dv::to_value(color)},
|
||||
{"scale", scale},
|
||||
{"render_distance", renderDistance}
|
||||
{"render_distance", renderDistance},
|
||||
{"xray_opacity", xrayOpacity},
|
||||
});
|
||||
}
|
||||
|
||||
|
|
@ -47,4 +48,5 @@ void NotePreset::deserialize(const dv::value& src) {
|
|||
}
|
||||
src.at("scale").get(scale);
|
||||
src.at("render_distance").get(renderDistance);
|
||||
src.at("xray_opacity").get(xrayOpacity);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@ struct NotePreset : public Serializable {
|
|||
glm::vec4 color {1.0f};
|
||||
float scale = 1.0f;
|
||||
float renderDistance = 10.0f;
|
||||
float xrayOpacity = 0.0f;
|
||||
|
||||
dv::value serialize() const override;
|
||||
void deserialize(const dv::value& src) override;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue