• entries
557
1237
• views
423109

# Untitled

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:

(Click to enlarge)

There are no comments to display.

## Create an account

Register a new account