diff options
| author | jacob1 <jfu614@gmail.com> | 2013-01-22 01:19:34 (GMT) |
|---|---|---|
| committer | jacob1 <jfu614@gmail.com> | 2013-01-22 01:19:34 (GMT) |
| commit | 392271a2692a2b764ae346e1f6ec70c1cb4277b7 (patch) | |
| tree | df53d3e6a04f168b9de630e8e6edb75edab7341e /src/simulation/elements/Element.cpp | |
| parent | 9fb3e75f93e50be7811986928f4d2da0347dbf4b (diff) | |
| download | powder-392271a2692a2b764ae346e1f6ec70c1cb4277b7.zip powder-392271a2692a2b764ae346e1f6ec70c1cb4277b7.tar.gz | |
fix tpt.set_property setting integers above 255, fix fs.isDir/File, add "Color" as valid property for elements api, fix tpt.display_mode to match tpt, other minor changes
Diffstat (limited to 'src/simulation/elements/Element.cpp')
| -rw-r--r-- | src/simulation/elements/Element.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/simulation/elements/Element.cpp b/src/simulation/elements/Element.cpp index 9c1002a..322bdfa 100644 --- a/src/simulation/elements/Element.cpp +++ b/src/simulation/elements/Element.cpp @@ -53,6 +53,7 @@ std::vector<StructProperty> Element::GetProperties() std::vector<StructProperty> properties; properties.push_back(StructProperty("Name", StructProperty::String, offsetof(Element, Name))); properties.push_back(StructProperty("Colour", StructProperty::Colour, offsetof(Element, Colour))); + properties.push_back(StructProperty("Color", StructProperty::Colour, offsetof(Element, Colour))); properties.push_back(StructProperty("MenuVisible", StructProperty::Integer, offsetof(Element, MenuVisible))); properties.push_back(StructProperty("MenuSection", StructProperty::Integer, offsetof(Element, MenuSection))); properties.push_back(StructProperty("Advection", StructProperty::Float, offsetof(Element, Advection))); |
