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


Sign in to follow this  
Evil Steve


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:

(Click to enlarge)
Sign in to follow this  


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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!