Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - Zetal

Pages: [1]
General Discussion / 0.8 Release
« on: 27 March 2018, 17:15:31 »
Hello again! A friend and I have been using TGUI for a project for a few months now. Some features that we'd like are available in the versions that have been released since we started work, but we weren't sure if it would be good to update just yet. Do you know when 0.8 will hit stable release, or if it will be worth waiting to update to that, or should we update now?


Help requests / How to Prevent Widget Autoscaling?
« on: 14 July 2017, 21:03:46 »
I've just started working with TGUI- it's realllly nice so far! The built-in menubar is particularly nice. But then, you probably already knew that.  ::)

I've been trying to figure out how to stop my menu bar from resizing to fit the % of the screen it originally matched.

Code: [Select]
    auto menuBar = tgui::MenuBar::create();
    menuBar->getRenderer()->setBackgroundColor(tgui::Color(240, 240, 240));
    menuBar->getRenderer()->setTextColor(tgui::Color(10, 10, 10));
    menuBar->setSize({ 500, 18 });

This, for example, produces exactly what I want. However, when I resize the window, the menuBar becomes much larger than 18pixels, and the text becomes blurred slightly as it stretches to fit.

I was reading the documentation and saw that in 0.7 there is a 'scale' method that looked like what I want. I'm currently using 0.8 though and didn't see anything like it. Should I downgrade, or is there an alternative?

Thanks!  :)

Pages: [1]