RedcrowProd
Member
|
[solved]move a window gui, that has a image gui in front ?
Hey,
i have a quick question about this,
i couldn't find a way to ignore a image box created in gui, for the cursor so i can still move my window gui under it.
i'll explain a little bit.
i got my big window,
i want to set an image for this window, as this is for my gui. and i want like the gui to have a nice look to it and not repeated.
so i'm blanking the window skin, so it doesnt draw.
now i put my image as the same size as the window
but now i cannot move my window, since the image gui is on top of it.
i know there's way to go around it, but what's the easiest way to go for ?
i've made it work so far by setting the image of the window instead, tweaking the thing a little bit, but that way i have to set a new gui skin for every single image that i set in window... that is kinda silly =p
edit : answere under this post !
thanks !
(This post was last modified: 03-09-2016 03:55 AM by RedcrowProd.)
|
|
03-08-2016 04:24 PM |
|
Esenthel
Administrator
|
RE: move a window gui, that has a image gui in front ?
Hi,
You need to make a custom GuiImage class
Code:
class MyGuiImage : GuiImage
{
virtual GuiObj* test(C GuiPC &gpc, C Vec2 &pos, GuiObj* &mouse_wheel) {return null;}
};
and use it, it will prevent the image from being detected for mouse and touches.
|
|
03-08-2016 11:05 PM |
|
RedcrowProd
Member
|
RE: move a window gui, that has a image gui in front ?
cool thanks i'd def. look into that when i get home
|
|
03-08-2016 11:32 PM |
|
RedcrowProd
Member
|
RE: move a window gui, that has a image gui in front ?
awesome working perfectly=)
i def. didnt thought to even read test
|
|
03-09-2016 12:55 AM |
|