Re: Table
« Reply #30 on: 26 December 2015, 11:34:17 »
Sorry for late response. I will try it, but Monday, after all the feast past.

*

texus

  • *****
  • 1279
    • View Profile
    • Texus's Blog
Re: Table
« Reply #31 on: 26 December 2015, 13:10:25 »
The next tgui release is planned in February, so there's no rush :)

*

texus

  • *****
  • 1279
    • View Profile
    • Texus's Blog
Re: Table
« Reply #32 on: 14 January 2016, 19:51:22 »
Did you already found some time to look at my version?

Re: Table
« Reply #33 on: 15 January 2016, 11:44:54 »
So I made time to finish the table. Why would you want to combine the size function with the position function? I want to say that updateWidgetPosition() is pretty frequently called and would be useless, only if somehow check if the size changed. What I need to resolve? I will also add comments in order to explain what I do.

*

texus

  • *****
  • 1279
    • View Profile
    • Texus's Blog
Re: Table
« Reply #34 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.