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

Topics - MoLAoS

#1
I am having an issue where sometimes if a function returns too fast, I assume, I get multiple events from a single click. There is also the hold down popping multiple events as well. Essentially a large function is only triggered once while relatively short functions go off several times. Is there a way to make sure a single click triggers only a single activation of a function connected to the GUI object?
#2
Help requests / Blinking ToolTips
18 November 2016, 18:55:18
For some reason tooltips become briefly visible and then blink out and back on repeatedly. Is there a possible reason you can think of easily that this would happen? I'm not executing any code as far as I can tell, and I'm not even moving the mouse.
#3
Help requests / Errors From Updating to 7.1
27 October 2016, 07:03:35
So due to some issues with SFML 2.2 I went ahead and kicked up to TGUI 7.1 and SFML 2.4. Boy was updating from ::create to make_shared annoying. Also had to change all the tool tip crap.

Now I have a lot of problems with creating new objects.

mainMenuPanel = std::make_shared<tgui::Panel>();

That line which apparently is required to replace the old ::create function in 7.0 causes a segfault in this code:
/**
   *  @brief  Create an object that is owned by a shared_ptr.
   *  @param  __args  Arguments for the @a _Tp object's constructor.
   *  @return A shared_ptr that owns the newly created object.
   *  @throw  std::bad_alloc, or an exception thrown from the
   *          constructor of @a _Tp.
   */
  template<typename _Tp, typename... _Args>
    inline shared_ptr<_Tp>
    make_shared(_Args&&... __args)
    {
      typedef typename std::remove_const<_Tp>::type _Tp_nc;
      return std::allocate_shared<_Tp>(std::allocator<_Tp_nc>(),
       std::forward<_Args>(__args)...);
    }


I copied it exactly from the example code, which is where I figured out that ::create wasn't working in the first place. Do you have any idea why its doing that?

Also making a Tabs that way seemed to work.
#4
Help requests / Problem with displaying picture
05 November 2015, 22:07:08
When I load a tgui::Picture::Ptr as part of a class from another such thing, when I try to display it in panels it only shows the very last object. Like it should show the Picture 10 times in 2 rows of 5, but it only shows the last column of the second row. Images that point to something else display properly.
#5
Feature requests / tgui::Picture::Ptrs In ToolTips
06 September 2015, 20:24:06
How possible do you think it would be to spawn a tooltip that can have other images in it with their own tooltips? Basically recursive tooltips. A currently functional workaround may be having a function that spawns a panel or something on mouseover that stays up but it would probably be pretty complicated.

This feature is probably more relevant for games than other kinds of applications. The Glest Advanced Engine GUI could show picture widgets in tooltips and do some other stuff but I don't think those widgets could spawn their own tooltips.
#6
Help requests / Tabs Issue Related To Sizing
09 July 2015, 04:00:58
You have to set the tab size before adding anything. The resize function should ideally work any time you call it, both for obviousness since other functions work fine and in case you want to change the size. The same thing goes for the text size. It doesn't propagate to the labels or w/e they are stored as.
#7
Help requests / Text Box Speed Issue
07 July 2015, 05:58:09
I am having an issue where textboxes displaying any more than a trivial amount of information are taking a long time to load. They also take a longer time to move the scroll bar, thus making it all jittery and basically useless. Can you think of why this might be? I've used a custom wxwidgets GUI that had tool tips and text boxes loaded with vastly more text than the stuff causing my current issue, so it seems like something specific to TGUI or at least SFML.
#8
Help requests / ScrollBar Issue
08 February 2015, 00:00:47
How can I set all scrollbars to be at the top? Current when I click on an object to change the content of a textbox the scrollbar is set all the way to the bottom, I'd prefer the opposite where it goes to the top.
#9
Help requests / Error Handling
14 September 2014, 00:13:28
So I set up some tabs based on the tab example code and its pretty much fine except one issue. When Tab causes the program to crash it doesn't say why, even when I was running debug mode. It turns out in the tab show/hide function I hadn't changed the name from Unused2 to Populations. But it took me some time and an epiphany to realize this, and this was after I knew that the problem existed although I didn't know it was messing me up right then. The function should ideally return some sort of couldn't find a panel with that name error or something, instead of just crashing right off.
#10
Help requests / Tooltips
07 September 2014, 02:12:30
Do we have this yet? It doesn't seem like we do. The only post I found with search was a year or so old and said you would probably add it later. Tooltips are essentially mandatory for games.
#11
Help requests / Loading Widget Image From Memory
02 September 2014, 09:39:36
I have a game class for buildings, that loads its own icon. Would it be possible to load an image to a Picture, that I'm using as a button for building buildings, from a pointer to an sf::Texture? Or should I just grab the name of the loaded image, shove it into a filepath and reload it?
#12
Help requests / Crash from SetPosition of Panel
29 August 2014, 19:02:55
Program received signal SIGSEGV, Segmentation fault.
In sf::Shader::bind(sf::Shader const*) () ()