mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
improved kinematic motion, improved demos for kinematic motion
This commit is contained in:
@@ -105,6 +105,9 @@ bool Theme::_get(const StringName& p_name,Variant &r_ret) const {
|
||||
|
||||
void Theme::_get_property_list( List<PropertyInfo> *p_list) const {
|
||||
|
||||
|
||||
List<PropertyInfo> list;
|
||||
|
||||
const StringName *key=NULL;
|
||||
|
||||
while((key=icon_map.next(key))) {
|
||||
@@ -113,7 +116,7 @@ void Theme::_get_property_list( List<PropertyInfo> *p_list) const {
|
||||
|
||||
while((key2=icon_map[*key].next(key2))) {
|
||||
|
||||
p_list->push_back( PropertyInfo( Variant::OBJECT, String()+*key+"/icons/"+*key2, PROPERTY_HINT_RESOURCE_TYPE, "Texture" ) );
|
||||
list.push_back( PropertyInfo( Variant::OBJECT, String()+*key+"/icons/"+*key2, PROPERTY_HINT_RESOURCE_TYPE, "Texture" ) );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -125,7 +128,7 @@ void Theme::_get_property_list( List<PropertyInfo> *p_list) const {
|
||||
|
||||
while((key2=style_map[*key].next(key2))) {
|
||||
|
||||
p_list->push_back( PropertyInfo( Variant::OBJECT, String()+*key+"/styles/"+*key2, PROPERTY_HINT_RESOURCE_TYPE, "StyleBox" ) );
|
||||
list.push_back( PropertyInfo( Variant::OBJECT, String()+*key+"/styles/"+*key2, PROPERTY_HINT_RESOURCE_TYPE, "StyleBox" ) );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -138,7 +141,7 @@ void Theme::_get_property_list( List<PropertyInfo> *p_list) const {
|
||||
|
||||
while((key2=font_map[*key].next(key2))) {
|
||||
|
||||
p_list->push_back( PropertyInfo( Variant::OBJECT, String()+*key+"/fonts/"+*key2, PROPERTY_HINT_RESOURCE_TYPE, "Font" ) );
|
||||
list.push_back( PropertyInfo( Variant::OBJECT, String()+*key+"/fonts/"+*key2, PROPERTY_HINT_RESOURCE_TYPE, "Font" ) );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -150,7 +153,7 @@ void Theme::_get_property_list( List<PropertyInfo> *p_list) const {
|
||||
|
||||
while((key2=color_map[*key].next(key2))) {
|
||||
|
||||
p_list->push_back( PropertyInfo( Variant::COLOR, String()+*key+"/colors/"+*key2 ) );
|
||||
list.push_back( PropertyInfo( Variant::COLOR, String()+*key+"/colors/"+*key2 ) );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -162,9 +165,14 @@ void Theme::_get_property_list( List<PropertyInfo> *p_list) const {
|
||||
|
||||
while((key2=constant_map[*key].next(key2))) {
|
||||
|
||||
p_list->push_back( PropertyInfo( Variant::INT, String()+*key+"/constants/"+*key2 ) );
|
||||
list.push_back( PropertyInfo( Variant::INT, String()+*key+"/constants/"+*key2 ) );
|
||||
}
|
||||
}
|
||||
|
||||
list.sort();
|
||||
for(List<PropertyInfo>::Element *E=list.front();E;E=E->next()) {
|
||||
p_list->push_back(E->get());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user