mirror of
https://github.com/FyroxEngine/Fyrox.git
synced 2026-10-12 02:02:20 +00:00
added property editor for TextureKind
This commit is contained in:
@@ -182,6 +182,7 @@ use crate::{
|
||||
},
|
||||
},
|
||||
};
|
||||
use fyrox::resource::texture::TextureKind;
|
||||
|
||||
pub mod animation;
|
||||
pub mod font;
|
||||
@@ -629,6 +630,8 @@ pub fn make_property_editors_container(
|
||||
|
||||
container.insert(ShaderSourceCodeEditorDefinition);
|
||||
|
||||
container.insert(EnumPropertyEditorDefinition::<TextureKind>::new());
|
||||
|
||||
reg_node_handle_editors!(
|
||||
container,
|
||||
sender,
|
||||
|
||||
@@ -79,7 +79,8 @@ use strum_macros::{AsRefStr, EnumString, VariantNames};
|
||||
pub mod loader;
|
||||
|
||||
/// Texture kind.
|
||||
#[derive(Copy, Clone, Debug, Reflect)]
|
||||
#[derive(Copy, Clone, Debug, Reflect, AsRefStr, EnumString, VariantNames, TypeUuidProvider)]
|
||||
#[type_uuid(id = "542eb785-875b-43ce-b73a-a25024535f48")]
|
||||
pub enum TextureKind {
|
||||
/// 1D texture.
|
||||
Line {
|
||||
|
||||
Reference in New Issue
Block a user