Skip to content

Commit

Permalink
[#43] Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Orchaldir committed Oct 28, 2023
1 parent fa5824f commit e82cab5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions resources/templates/appearance_edit.html.tera
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@
</li>
<li>
{% if appearance.body.clothing.pants.belt %}
<b>Belt Availability:</b> {{ macros::add_select(name="appearance.body.clothing.pants.belt.availability", options=[ "true","false" ], selected=true, update=true) }}
<b>Belt Availability:</b> {{ macros::add_select(name="appearance.body.clothing.pants.belt.availability", options=[ "true","false" ], selected="true", update=true) }}
<b>Belt</b>
<ul>
<li>
Expand All @@ -486,7 +486,7 @@
</li>
</ul>
{% else %}
<b>Belt Availability:</b> {{ macros::add_select(name="appearance.body.clothing.pants.belt.availability", options=[ "true","false" ], selected=false, update=true) }}
<b>Belt Availability:</b> {{ macros::add_select(name="appearance.body.clothing.pants.belt.availability", options=[ "true","false" ], selected="false", update=true) }}
{% endif %}
</li>
</ul>
Expand Down
4 changes: 2 additions & 2 deletions rpg_tools_core/src/ui/editor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ impl UiVisitor for EditorVisitor {
&format!("{} Availability", self.get_name()),
&format!("{}.availability", self.get_path()),
&vec!["true".to_string(), "false".to_string()],
"true",
"\"true\"",
);
}

Expand All @@ -118,7 +118,7 @@ impl UiVisitor for EditorVisitor {
&format!("{} Availability", self.get_name()),
&format!("{}.availability", self.get_path()),
&vec!["true".to_string(), "false".to_string()],
"false",
"\"false\"",
);
self.lines.push(format!("{}{{% endif %}}", self.spaces));
}
Expand Down

0 comments on commit e82cab5

Please sign in to comment.