Having a bit of an issue with a window gui problem. I want to make the bottom panel for my GUI which will be used as the main control centre for my RTS game kinda like the bottom panel you see in this screenshot of warcraft 3:
http://www.theblisspages.com/images/warcraft3.jpg
Now, i thought this would be simple - get a window and stick it 1/5th of the way down the screensize height, and then stretch it for the width of the screen and I ended up with this code:
(I want this to use the screensizes because otherwise it will be rubish should i include the option to change resolutions.
Code: Select all
gui::IGUIWindow *window = guienv->addWindow(core::rect<s32>(0,driver->getScreenSize().Height - driver->getScreenSize().Height/5,driver->getScreenSize().Width,2000));
am i correct in saying x,y are bottom left, and x2,y2 are top right - if this is the case then this should be working fine.
Please help me!