Skip to content

An egui DragValue widget modification for expression-based values

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

cvhammond/egui_drag_value_expr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

egui_drag_value_expr

Crates.io

An egui DragValue widget that accepts expression-based values.

Usage

A rhai::Scope can be passed to the DragValueExpr widget to allow the user to enter expressions that reference variables in the scope.

With a scope:

let mut scope = rhai::Scope::new();
scope.push("ten", 10.);
ui.add(DragValueExpr::new(&mut self.value, Some(&scope)));

Without a scope:

ui.add(DragValueExpr::new(&mut self.value, None));

Contributing

PRs, feature requests, and issues are welcome!

About

An egui DragValue widget modification for expression-based values

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages