mirror of
https://github.com/FyroxEngine/Fyrox.git
synced 2026-10-12 02:02:20 +00:00
added missing property editor
This commit is contained in:
@@ -128,6 +128,7 @@ use std::{
|
||||
sync::Arc,
|
||||
};
|
||||
use strum::VariantNames;
|
||||
use crate::message::MouseButton;
|
||||
|
||||
pub mod array;
|
||||
pub mod bit;
|
||||
@@ -633,6 +634,8 @@ impl PropertyEditorDefinitionContainer {
|
||||
|
||||
container.register_inheritable_inspectable::<Position>();
|
||||
|
||||
container.register_inheritable_enum::<MouseButton, _>();
|
||||
|
||||
container.insert(EnumPropertyEditorDefinition::<RcUiNodeHandle>::new_optional());
|
||||
container.insert(InspectablePropertyEditorDefinition::<RcUiNodeHandle>::new());
|
||||
container.insert(InspectablePropertyEditorDefinition::<RcUiNodeHandleInner>::new());
|
||||
|
||||
+16
-1
@@ -545,7 +545,22 @@ pub enum ButtonState {
|
||||
}
|
||||
|
||||
/// A set of possible mouse buttons.
|
||||
#[derive(Debug, Hash, Ord, PartialOrd, PartialEq, Eq, Clone, Copy, Default, Visit, Reflect)]
|
||||
#[derive(
|
||||
Debug,
|
||||
Hash,
|
||||
Ord,
|
||||
PartialOrd,
|
||||
PartialEq,
|
||||
Eq,
|
||||
Clone,
|
||||
Copy,
|
||||
Default,
|
||||
Visit,
|
||||
Reflect,
|
||||
AsRefStr,
|
||||
EnumString,
|
||||
VariantNames,
|
||||
)]
|
||||
#[reflect(type_uuid = "3e3097b4-5845-439f-8926-91850ee376da")]
|
||||
pub enum MouseButton {
|
||||
/// Left mouse button.
|
||||
|
||||
Reference in New Issue
Block a user