Merge pull request #4952 from sanikoyes/Pr-fix-stb-font-prop
fix stb font property names
This commit is contained in:
commit
33bb0491f8
1 changed files with 2 additions and 2 deletions
|
@ -384,8 +384,8 @@ void DynamicFont::_bind_methods() {
|
||||||
ObjectTypeDB::bind_method(_MD("set_size","data"),&DynamicFont::set_size);
|
ObjectTypeDB::bind_method(_MD("set_size","data"),&DynamicFont::set_size);
|
||||||
ObjectTypeDB::bind_method(_MD("get_size"),&DynamicFont::get_size);
|
ObjectTypeDB::bind_method(_MD("get_size"),&DynamicFont::get_size);
|
||||||
|
|
||||||
ADD_PROPERTY(PropertyInfo(Variant::INT,"size"),_SCS("set_size"),_SCS("get_size"));
|
ADD_PROPERTY(PropertyInfo(Variant::INT,"font/size"),_SCS("set_size"),_SCS("get_size"));
|
||||||
ADD_PROPERTY(PropertyInfo(Variant::OBJECT,"font",PROPERTY_HINT_RESOURCE_TYPE,"DynamicFontData"),_SCS("set_font_data"),_SCS("get_font_data"));
|
ADD_PROPERTY(PropertyInfo(Variant::OBJECT,"font/font",PROPERTY_HINT_RESOURCE_TYPE,"DynamicFontData"),_SCS("set_font_data"),_SCS("get_font_data"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue