Main Menu
Menu

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.

Show posts Menu

Messages - Zetal

#1
Feature requests / Re: Table
23 March 2020, 00:35:14
Quote from: texus on 15 January 2016, 13:49:38
The updateWidgetPosition will only be called when widgets are changed, which isn't that frequent. I only care about performance when something is called almost every frame, but this function is only called a lot while creating the table (while adding the rows). The setPosition and setSize functions of widgets will become very light operations in the near future so the function won't be that heavy.

The Table class on my bitbucket looks finished at first sight. So you don't really have to resolve anything unless you find things that are still missing. It juststill has to be extensively tested.

That BitBucket link isn't accessible for me, and I'm interested in using this Table class. Would it be possible for me to have access to these classes to save me the time remaking it? Thanks!

Edit: Nevermind! I found that this was "reimplemented" as a ListView in this commit: https://github.com/texus/TGUI/commit/54e72fbdcf038bb9f614ffb1219074c6221ac8d4
#2
General Discussion / 0.8 Release
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?

Thanks!
#3
That was it! Thanks so much. :)
#4
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.


    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 });
    menuBar->setTextSize(14);


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!  :)