Game Development Community

Modeless bitmap?

by Novack · in iTorque 2D · 09/07/2011 (7:59 am) · 4 replies

Hey guys.

Im trying to make a GuiBitmapCtrl to let pass mouse events to objects behind it.
%pick = new GuiBitmapButtonCtrl()
{
  Profile = "ClickThroughProfile";
  Position = "305 265";
  Extent = "410 70";
  bitmap = "~/data/images/lala.png";
};
ScreenGui.addGuiControl(%pick);
ClickThroughProfile definition:
new GuiControlProfile (ClickThroughProfile)
{
   Modal = false;
};

That doesnt work though, the bitmap catches the mouse clicks. This should be simple enough... what Im not seeing here?

#1
09/07/2011 (11:24 am)
Bah, was creating the GuiControlProfile on the wrong place... hard day.

Sorry guys!
#2
09/07/2011 (2:54 pm)
I could be wrong but I dont think that's possible without changing the engine code.
#3
09/07/2011 (4:06 pm)
Johnny, is actually working, with exactly the above code, placed on the right places (you can even define the GuiControlProfile inmediately before the GuiBitmapButtonCtrl and it will work.

Thanks for the coment though.
#4
09/07/2011 (4:42 pm)
Novack, good to know! Definitely a great feature and should be useful for future projects.