Jump to content
  • Advertisement
Sign in to follow this  
  • entries
    557
  • comments
    1237
  • views
    423109

Untitled

Sign in to follow this  
Evil Steve

62 views

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)
Sign in to follow this  


0 Comments


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!