mirror of
https://github.com/storytold/lightcraft.git
synced 2026-12-05 16:31:16 -05:00
Mask overlay opacity keeps whole percents on the new framework base
This commit is contained in:
@@ -860,6 +860,8 @@ fn overlay_options(app: &mut LightcraftApp, ui: &mut egui::Ui) {
|
||||
.unit("%")
|
||||
.snap_typed(true)
|
||||
.fixed_decimals(0)
|
||||
// (next shows percent fields with one decimal unless the field's own decimals are asked to win)
|
||||
.exact_decimals(true)
|
||||
.commit_decimals(0)
|
||||
.enabled(real && enabled)
|
||||
.show_at(ui, value_rect);
|
||||
|
||||
Reference in New Issue
Block a user