diff --git a/resources/characters/characters.yaml b/resources/characters/characters.yaml index 118e3c5e..8db3c0af 100644 --- a/resources/characters/characters.yaml +++ b/resources/characters/characters.yaml @@ -9,6 +9,11 @@ skin: type: NormalSkin color: Fair + clothing: + type: Simple + pants: + style: Regular + color: Blue head: ears: type: Normal @@ -66,6 +71,8 @@ skin: type: Scales color: Red + clothing: + type: None head: ears: type: Normal @@ -152,6 +159,11 @@ skin: type: ExoticSkin color: White + clothing: + type: Simple + pants: + style: Regular + color: Red head: ears: type: Normal @@ -206,6 +218,11 @@ skin: type: ExoticSkin color: Green + clothing: + type: Simple + pants: + style: Regular + color: Purple head: ears: type: None @@ -248,6 +265,11 @@ skin: type: NormalSkin color: Light + clothing: + type: Simple + pants: + style: Regular + color: Gray head: ears: type: Normal diff --git a/resources/templates/appearance_edit.html.tera b/resources/templates/appearance_edit.html.tera index b925fea0..00f7aef6 100644 --- a/resources/templates/appearance_edit.html.tera +++ b/resources/templates/appearance_edit.html.tera @@ -437,6 +437,25 @@ {% endif %} +
  • + Clothing: {{ macros::add_select(name="appearance.body.clothing.type", options=[ "None","Simple" ], selected=appearance.body.clothing.type, update=true) }} + +
  • diff --git a/resources/templates/character.html.tera b/resources/templates/character.html.tera index c2d69a4e..4f5888e1 100644 --- a/resources/templates/character.html.tera +++ b/resources/templates/character.html.tera @@ -438,6 +438,25 @@ {% endif %}
  • +
  • + Clothing: {{ appearance.body.clothing.type }} + +
  • diff --git a/rpg_tools_core/examples/editor_macro.rs b/rpg_tools_core/examples/editor_macro.rs index 1903f724..541c2c03 100644 --- a/rpg_tools_core/examples/editor_macro.rs +++ b/rpg_tools_core/examples/editor_macro.rs @@ -4,6 +4,7 @@ extern crate rpg_tools_core; pub mod utils; use crate::utils::write_each; +use macro_core::visitor::UI; use rpg_tools_core::model::character::appearance::Appearance; use rpg_tools_core::ui::editor::EditorVisitor; diff --git a/rpg_tools_core/examples/viewer_macro.rs b/rpg_tools_core/examples/viewer_macro.rs index a44ac506..e6ecdf66 100644 --- a/rpg_tools_core/examples/viewer_macro.rs +++ b/rpg_tools_core/examples/viewer_macro.rs @@ -4,6 +4,7 @@ extern crate rpg_tools_core; pub mod utils; use crate::utils::write_each; +use macro_core::visitor::UI; use rpg_tools_core::model::character::appearance::Appearance; use rpg_tools_core::ui::viewer::ViewerVisitor;