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.


Topics - Austin J

Pages: [1]
1
Help requests / Text isn't positioning correctly with Button?
« on: 27 January 2015, 00:30:07 »
Code: (cpp) [Select]

                m_resourcesInterface.tilesTab->load("widgets/White.conf");
m_resourcesInterface.tilesTab->setSize(121, 31);
m_resourcesInterface.tilesTab->setPosition(0, 0);
m_resourcesInterface.tilesTab->setText("Tiles");
m_resourcesInterface.tilesTab->setTextSize(22);
m_resourcesGui.add(m_resourcesInterface.tilesTab);

Results in the text being off-centered, almost as if the origin to the text didn't get set right.

I clicked
  "Download TGUI v0.6.6 with precompiled Visual C++ 12 (2013) 32-bit libraries (for SFML 2.2)"

Of course, I'm using Visual Studio 2013, SFML 2.2 for Visual Studio 2013. The only other library at play is Boost.

Sorry, I'm not even sure if anyone else has ran into this problem.

I decided to see what would happen if I created the form in the form-builder and load from the file, and it actually just resulted in no text appearing at all, (even though the font is located in the directory it can be found)

Other info:

Windows 7 (x64)
Pre-2012 Integrated Intel Graphics Card <-(this is the source of evil sometimes)

2
Help requests / What can cause TGUI to fail on loading Black.conf?
« on: 23 August 2014, 06:05:37 »
Basically I have a program using TGUI that works perfectly fine on my computer when launched from outside the IDE. I'm on Windows 7 using Visual Studio 2012. I have the correct dlls for dynamic linking, the resources for the widgets etc. etc. It works perfectly fine on my pc.

  However, someone else using Windows 7 can't run it properly. The program launches, however when it gets to the main menu the only widget it loads is a label. The buttons don't get created. In the console window it prints out that TGUI couldn't load Black.conf. I'm not jumping to say TGUI has a bug or anything of the sort, I'm actually just asking what could cause this to happen. I made sure he had all his resources that he needed and in the right places, and TGUI isn't working right for whatever reason. I've tried googling for quite some time now, and I'm not finding hardly any information that applies to my scenario.

3
Help requests / Troubles with ListBox[Solved]
« on: 15 August 2014, 07:35:39 »
If I add a  ListBox like this, I end up with a crash upon calling tgui::Gui::draw()

Code: [Select]
tgui::ListBox::Ptr textures_listBox(gui,"Textures List");

textures_listBox->load("graphics/gui/Black.conf"); // Load is returning true
sf::Vector2i screenSize(sf::VideoMode::getDesktopMode().width,sf::VideoMode::getDesktopMode().height);
textures_listBox->setPosition(screenSize.x - 200, 0);
textures_listBox->setSize(200,screenSize.y);
textures_listBox->addItem("Test Item");

Tgui version 0.6

SFML Version, the one shipped with this version of Tgui

IDE - Visual Studio 2012

The gui has a window set to it

load("graphics/gui/Black.conf") is returning true


All other widgets I use are working fine, it's just ListBox that doesn't seem to behave.

When it reaches gui.draw(), I get this

Unhandled exception at 0x5DA942EF (sfml-graphics-2.dll) in Aeldyr Editor.exe: 0xC0000005: Access violation reading location 0x4491C004.

I apologize, I'd have done a bit more research on this but there's very little documentation for ListBox. I've tried a variety of things and I keep getting this access error.

Pages: [1]