Bug Fixes
-=-=-=-=- -Fixed problem with scaling shapes (#827), related to not taking scale in consideration for calculating the moment of inertia -Added support for multiline strings (or comments) using """ -Save subscene bug, properties not being saved in root node (#806) -Fix Crash in CollisionPolygon2DEditor (#814) -Restored Ability to compile without 3D (#795) -Fix InterpolatedCamera (#803) -Fix UV Import for OBJ Meshes (#771) -Fixed issue with modifier gizmos (#794) -Fixed CapsuleShape gizmo handle (#50) -Fixed Import Button (not properly working in 3D) (#733) -Many misc fixes (though no new features)
This commit is contained in:
@ -346,6 +346,8 @@ bool BaseButton::get_click_on_press() const {
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
void BaseButton::_bind_methods() {
|
||||
|
||||
ObjectTypeDB::bind_method(_MD("_input_event"),&BaseButton::_input_event);
|
||||
@ -358,6 +360,7 @@ void BaseButton::_bind_methods() {
|
||||
ObjectTypeDB::bind_method(_MD("is_disabled"),&BaseButton::is_disabled);
|
||||
ObjectTypeDB::bind_method(_MD("set_click_on_press","enable"),&BaseButton::set_click_on_press);
|
||||
ObjectTypeDB::bind_method(_MD("get_click_on_press"),&BaseButton::get_click_on_press);
|
||||
ObjectTypeDB::bind_method(_MD("get_draw_mode"),&BaseButton::get_draw_mode);
|
||||
|
||||
ADD_SIGNAL( MethodInfo("pressed" ) );
|
||||
ADD_SIGNAL( MethodInfo("toggled", PropertyInfo( Variant::BOOL,"pressed") ) );
|
||||
@ -365,6 +368,11 @@ void BaseButton::_bind_methods() {
|
||||
ADD_PROPERTY( PropertyInfo( Variant::BOOL, "toggle_mode"), _SCS("set_toggle_mode"), _SCS("is_toggle_mode"));
|
||||
ADD_PROPERTY( PropertyInfo( Variant::BOOL, "click_on_press"), _SCS("set_click_on_press"), _SCS("get_click_on_press"));
|
||||
|
||||
BIND_CONSTANT( DRAW_NORMAL );
|
||||
BIND_CONSTANT( DRAW_PRESSED );
|
||||
BIND_CONSTANT( DRAW_HOVER );
|
||||
BIND_CONSTANT( DRAW_DISABLED );
|
||||
|
||||
}
|
||||
|
||||
BaseButton::BaseButton() {
|
||||
|
||||
Reference in New Issue
Block a user