Fix: CGUITabControl now catching EMIE_LMOUSE_PRESSED_DOWN

Same as most elements. Other behaviour a bit unexpected and unlikely to be useful.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6576 dfc29bdd-3216-0410-991c-e03cc46cb475
This commit is contained in:
cutealien 2023-12-05 13:40:33 +00:00
parent 8985248142
commit 952f11f806
2 changed files with 3 additions and 2 deletions

@ -1,6 +1,7 @@
--------------------------
Changes in 1.9 (not yet released)
- Fix: CGUITabControl now catching EMIE_LMOUSE_PRESSED_DOWN
- Add options for transparency node sorting algorithm.
- CImageWriterPNG now also supports the writeImageToFile param to allow setting compressing level. 0 stays default, 1-10 for range increasing compression level.
- Add io::IUserData which can be set in SMaterial to make it easer passing additional material values to shaders

@ -448,9 +448,9 @@ bool CGUITabControl::OnEvent(const SEvent& event)
case EET_MOUSE_INPUT_EVENT:
switch(event.MouseInput.Event)
{
//case EMIE_LMOUSE_PRESSED_DOWN:
case EMIE_LMOUSE_PRESSED_DOWN:
// // todo: dragging tabs around
// return true;
return true;
case EMIE_LMOUSE_LEFT_UP:
{
s32 idx = getTabAt(event.MouseInput.X, event.MouseInput.Y);