Recent Posts

Pages: [1] 2 3 ... 10
1
General Discussion / Re: Upcasting not working
« Last post by jsinicro on 21 January 2018, 10:18:43 »
OK, I'll try that awesome... thx
2
General Discussion / Re: Upcasting not working
« Last post by texus on 21 January 2018, 10:06:57 »
The get function will return a pointer to the Widget base class because it can't know the type of the widget. So I also added a get function with a template parameter that will do the cast for you and return the correct type:
tgui::Panel::Ptr pnl = gui.get<tgui::Panel>(pnlName);

If you ever have a Widget::Ptr that you have to upcast in another situation then you must use std::static_pointer_cast or std::dynamic_pointer_cast. I'm still looking for a good way to make that easier to do.
3
General Discussion / Upcasting not working
« Last post by jsinicro on 21 January 2018, 08:38:07 »
Hi, not sure whats going on but I have X number of Panels associated with a Tab so when I need to update the text in a Label in on of the panels with Panel::Ptr pnl = gui.get(pnlName) I get an error "NO viable conversion from shared_ptr<tgui::Widget> to shared_ptr<tgui::Panel> NO matter what I try I get the same result (i.e. panelVector[id]->get("labelName")->setText("newName); --setText not member of Widget).... any Ideas of what's going on I am using the latest .8 version on Mac... any thoughts appreciated...
Thx, Joe
4
Feature requests / Re: Upside down slider issue
« Last post by billarhos on 19 January 2018, 09:00:18 »
It is good enough for me Texus and i understand perfectly your worries and thoughts.
In first place i added my issue to "feature requests forum category", and i have no expectations to improve 0.7 as you been already to 0.8.

Certainly i start using 0.8 one day. That's for sure.
In attachment there are some photos from my latest project. Configuration forms has been made with TGUI.
5
Feature requests / Re: Upside down slider issue
« Last post by texus on 18 January 2018, 22:31:41 »
I see what you mean now (I didn't read your first post carefully enough). I'll add a setInvertedDirection function or something.

I perfectly understand that you want to stick to the stable version.
I've been working on 0.8-dev for more than 1.5 years already so what is stable to others feels old to me though :)
I have the same dilemma as I had with 0.7, I have many improvements that I want people to use but a lot of people won't (and probably shouldn't) use it because it isn't stable yet. I can either spend the next 2 years improving 0.8-dev until I consider it finished, but still see many people download the old version until that happens, or I can release 0.8 before it is really finished. I haven't really given it much thought yet, but considering I'm only one small rewrite away from an alpha version and knowing that 0.7-alpha was turned into 0.7.0 without a beta release in between, there might be a stable 0.8.0 release sooner than anyone might expect (still months away though).
6
Feature requests / Re: Upside down slider issue
« Last post by billarhos on 18 January 2018, 20:40:42 »
Hi Texus, glad to hear that 'step' and 'floats' are implemented in 0.8. I ll stick to old cause i think is mature and stable. I 'll try it when it finished.
I do not know if you understand me. I can put negative values to slider but i can not make it, to have the positive value on upper side and the negative
value on the down side (i am using vertical align). In my case i set (min = -20) and (max = 20).
7
Feature requests / Re: Upside down slider issue
« Last post by texus on 18 January 2018, 17:55:29 »
You should try TGUI 0.8-dev, it uses floats for slider values (so negative should be possible) and there is a step size.
In the download on the website this "step" is still called "frequency", but I renamed it to "step" in the very latest version (downloadable from https://github.com/texus/TGUI) a few days ago.
8
Feature requests / Upside down slider issue
« Last post by billarhos on 18 January 2018, 16:18:54 »
Hi Texus.

I am trying to make a sound equalizer with vertical sliders to adjust low, mid , high frequencies.
However there is no way to set positive number to up and negatives to down side of sliders.

pSliderEqMid->setMinimum(-20);
pSliderEqMid->setMaximum(20);

Photo shows better what i try to achive.

Also, it would be great, to have a step value for slider (i know is a mess).




9
Feature requests / Re: TreeView Widget
« Last post by texus on 16 January 2018, 08:17:09 »
You can communicate either through the forum, through email or via Gitter (either at https://gitter.im/texus/TGUI or in private chat). Skype is also possible (username texusius, but possible can't be found in search).
10
Feature requests / Re: TreeView Widget
« Last post by necromant on 16 January 2018, 00:22:58 »
@texus,what is best way to communicate to you?
  • TreeView will be base on tgui::Widget
  • TreeView will be base on ListBox,but doenst be child of it
  • TreeView will have own Render & will be add to default theme
  • Will be added Tests and examples like other widgets
  • https://github.com/Enziferum/TreeView.git - repo,before making fork && pull request
Best regards,Alexander Raag @Enziferum
Pages: [1] 2 3 ... 10