mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
more debugging in state machine
This commit is contained in:
parent
00cc234397
commit
0f0b9ec6c6
@ -49,8 +49,8 @@ INLINE void GuiButton::up(void) {
|
|||||||
switch_state(UP_ROLLOVER);
|
switch_state(UP_ROLLOVER);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
gui_cat->warning() << "got up from invalid state (" << (int)_state << ")"
|
gui_cat->warning() << "got up from invalid state (" << (int)_state << "),"
|
||||||
<< endl;
|
<< " button '" << this->get_name() << "'" << endl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -65,8 +65,8 @@ INLINE void GuiButton::down(void) {
|
|||||||
switch_state(DOWN_ROLLOVER);
|
switch_state(DOWN_ROLLOVER);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
gui_cat->warning() << "got down from invalid state (" << (int)_state << ")"
|
gui_cat->warning() << "got down from invalid state (" << (int)_state
|
||||||
<< endl;
|
<< "), button '" << this->get_name() << "'" << endl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -82,7 +82,7 @@ INLINE void GuiButton::inactive(void) {
|
|||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
gui_cat->warning() << "got inactive from invalid state (" << (int)_state
|
gui_cat->warning() << "got inactive from invalid state (" << (int)_state
|
||||||
<< ")" << endl;
|
<< "), button '" << this->get_name() << "'" << endl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -101,7 +101,7 @@ INLINE void GuiButton::click(void) {
|
|||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
gui_cat->warning() << "got click from invalid state (" << (int)_state
|
gui_cat->warning() << "got click from invalid state (" << (int)_state
|
||||||
<< ")" << endl;
|
<< "), button '" << this->get_name() << "'" << endl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user