🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Untitled

posted in DruinkJournal
Published July 31, 2006
Advertisement
Thanks to Programmer16, I have a sexy new UI theme; BlueMesa. And speaking of UIs, my GUI code is now in a much more functional state. I can now drag windows around, and click on buttons. Clicking on text causes the click to go to the parent object, because they're locked - which is exactly what I'm looking for.

So now I have code like this:
void CButtonWidget::OnLeftButtonClick(const POINT& pt){   CLog::Format("Button ID %d was clicked at (%d, %d)\n", GetID(), pt.x, pt.y);}

The point passed to the widget is relative to its upper left corner, which makes sense. I'll hopefully be getting text entry done soon, which I expect to be quite a pain, but we'll see how that goes. I've just noticed that transparant parts of the window go a bit broken (D3D debug fill colour). I'll have to see why that is tomorrow (I think it's a z-write problem). Anyway, here's a screenshot of me ripping off the BlueMesa theme for testing purposes:

IT WUZNAY ME
(Click to enlarge)
Previous Entry Untitled
Next Entry Untitled
0 likes 0 comments

Comments

Nobody has left a comment. You can be the first!
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Advertisement
Advertisement