Recent Posts

Pages: 1 2 3 [4] 5 6 ... 10
31
Feature requests / Re: Multiple selection items for ListView.
« Last post by Kvaz1r on 01 October 2019, 22:57:10 »
Yes, it doesn't seems hard, I will try to do it on the week.
As internal collection should I use std::set or std::vector and sort it in updateSelectedItem? I am not sure which one would fits here better.
32
Feature requests / Re: Multiple selection items for ListView.
« Last post by texus on 01 October 2019, 22:29:33 »
It would be a nice addition, but you will have to implement this yourself too if you want it, I'm too busy playing video games right now :)

After briefly thinking about it, I guess for the API it should be enough to add the following 4 functions (with the MultiSelect boolean propery being false by default).
void setSelectedItems(const std::vector<std::size_t>& indices);
std::vector<std::size_t> getSelectedItemIndices() const;
void setMultiSelect(bool multiSelect);
bool getMultiSelect() const;
33
Feature requests / Multiple selection items for ListView.
« Last post by Kvaz1r on 01 October 2019, 16:25:29 »
In some cases there is important to have opportunity select several items from the list (for example if its file picker dialog).
34
Help requests / Re: Using canvas
« Last post by texus on 28 September 2019, 14:26:25 »
The "tgui-git" package downloads directly from github, so updating that package always gives the latest github version.
35
Help requests / Re: Using canvas
« Last post by CatalinNic on 28 September 2019, 11:23:57 »
I will see if it is an update on AUR
36
Help requests / Re: Using canvas
« Last post by texus on 28 September 2019, 11:19:08 »
I didn't test to make sure that it actually works, but I have added a setView function (and getters) to the Canvas class in the latest version on github.
37
Help requests / Re: Using canvas
« Last post by CatalinNic on 28 September 2019, 10:41:55 »
I want to use it for testing level like this: .And the level itself is a lot bigger than the canvas
38
Help requests / Re: Using canvas
« Last post by texus on 28 September 2019, 10:35:50 »
It currently doesn't has a view. But I could add it as the class is a wrapper around sf::RenderTexture which does seem to have a view. What are you trying to do exactly?
39
Help requests / Using canvas
« Last post by CatalinNic on 28 September 2019, 10:22:57 »
I try to use a canvas and I don't know if it is possible to set view? if it is, how?
40
Help requests / Re: Get a widget
« Last post by CatalinNic on 27 September 2019, 18:43:44 »
Done it all I need to do was to use gui.remove(gui.get(WidgetName)) to propery remove it.
Pages: 1 2 3 [4] 5 6 ... 10