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

Messages - Honor

#1
Thank you! That worked great :)
#2
tgui::Panel::setBackGroundColor

I can't find that function in the newer version, nor can I find a way to change the color of the panel (without themes), am I missing something obvious?

Edit: I should probably mention, I'm porting over my old code tgui 0.7 (5 years ago?) to tgui 1.0, could tgui::Panel perhaps been moved to tgui::PanelRenderer?
#3
General Discussion / Re: TGUI License?
26 June 2016, 23:39:57
awesome, I'll be sure to credit TGUI appropriately! <3
#4
General Discussion / TGUI License?
26 June 2016, 21:48:36
What type of license does TGUI follow exactly? SFML license allows free use of all libraries (including for commercial purposes), as long as SFML is mentioned in the source/documentation ( https://www.sfml-dev.org/license.php ). Can/Should I assume that TGUI is under the same license as SFML?
#5
Installation help / Re: CMAKE Error
25 June 2016, 17:21:24
For some reason Codeblock's MinGW compiler was missing some DLL files that cmake required (Even after several re-installations). I just switched everything to use the standalone MinGW compiler instead.
#6
Installation help / Re: CMAKE Error
25 June 2016, 14:58:33
Solved: Had to manually add MinGW path to enviromental paths, then RESTART computer.
#7
Installation help / Re: CMAKE Error
24 June 2016, 19:48:59
Same error after moving it to C:/ and removing spaces in the folder names. Maybe I'll try to download an older version of cmake or something like that, thanks for you help! Very fast response <3
#8
Installation help / Re: CMAKE Error
24 June 2016, 19:18:16
I should mention I'm building for Code::Block's default compiler.

Edit: I have been deleting cache between configurations.

Here is output log from CMAKE build:




Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: C:/Program Files (x86)/CodeBlocks/MinGW/bin/gcc.exe
Build flags:
Id flags:

The output was:
1


Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: C:/Program Files (x86)/CodeBlocks/MinGW/bin/gcc.exe
Build flags:
Id flags: -c

The output was:
1


Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: C:/Program Files (x86)/CodeBlocks/MinGW/bin/gcc.exe
Build flags:
Id flags: -Aa

The output was:
1
<command-line>:0:1: error: missing '(' after predicate


Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: C:/Program Files (x86)/CodeBlocks/MinGW/bin/gcc.exe
Build flags:
Id flags: -D__CLASSIC_C__

The output was:
1


Checking whether the C compiler is IAR using "" did not match "IAR .+ Compiler":
gcc.exe: fatal error: no input files
compilation terminated.
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: C:/Program Files (x86)/CodeBlocks/MinGW/bin/g++.exe
Build flags:
Id flags:

The output was:
1


Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: C:/Program Files (x86)/CodeBlocks/MinGW/bin/g++.exe
Build flags:
Id flags: -c

The output was:
1


Checking whether the CXX compiler is IAR using "" did not match "IAR .+ Compiler":
g++.exe: fatal error: no input files
compilation terminated.
Determining if the C compiler works failed with the following output:
Change Dir: D:/SFML/TGUI Build/CMakeFiles/CMakeTmp

Run Build Command:"C:/PROGRA~2/CODEBL~1/MinGW/bin/mingw32-make.exe" "cmTC_7e3c5/fast"
C:/PROGRA~2/CODEBL~1/MinGW/bin/mingw32-make.exe -f CMakeFiles\cmTC_7e3c5.dir\build.make CMakeFiles/cmTC_7e3c5.dir/build

mingw32-make.exe[1]: Entering directory 'D:/SFML/TGUI Build/CMakeFiles/CMakeTmp'

Building C object CMakeFiles/cmTC_7e3c5.dir/testCCompiler.c.obj

C:\PROGRA~2\CODEBL~1\MinGW\bin\gcc.exe     -o CMakeFiles\cmTC_7e3c5.dir\testCCompiler.c.obj   -c "D:\SFML\TGUI Build\CMakeFiles\CMakeTmp\testCCompiler.c"

CMakeFiles\cmTC_7e3c5.dir\build.make:64: recipe for target 'CMakeFiles/cmTC_7e3c5.dir/testCCompiler.c.obj' failed

mingw32-make.exe[1]: *** [CMakeFiles/cmTC_7e3c5.dir/testCCompiler.c.obj] Error 1

mingw32-make.exe[1]: Leaving directory 'D:/SFML/TGUI Build/CMakeFiles/CMakeTmp'

Makefile:125: recipe for target 'cmTC_7e3c5/fast' failed

mingw32-make.exe: *** [cmTC_7e3c5/fast] Error 2



#9
Installation help / CMAKE Error
24 June 2016, 19:08:40
Just downloaded the latest stable source and cmake itself doesn't really want to work? Any thoughts?

Error occurs after I click configure (source and build folders are linked correctly). Perhaps it's because I'm not using an external (non)default hard drive?
#10
Quote from: texus on 25 March 2014, 21:40:15
Not only does it include the static versions, it also includes a copy of the sfml extlibs folder (since v0.6.2).
I downloaded the precompiled version, and linked everything up. I've gotten everything to configure and generate fine. And on top of that, I've just finished building the tgui.cbp project with Code::Blocks. Thank you for helping me work through my foolish mistake!
#11
Quote from: texus on 24 March 2014, 10:13:16
When linking statically, sfml now forces you to link to its dependencies yourself.

You can solve your problem by changing the FREETYPE_LIBRARY property to "H:/Program Files/SFML/extlibs/mingw/x68/freetype.a" (or something like that). Same for GLEW_LIBRARY and FREETYPE_LIBRARY.


I actually don't see any of the "extlibs" "mingw" "x68" or "freetype.a" keywords that you used as an example.



Quote from: texus on 24 March 2014, 10:13:16
But what tgui version are u using? I tried to make tgui automatically find these extlibs in v0.6.1. Maybe my fix is no longer working?



Quote from: texus on 24 March 2014, 10:13:16
Any reason why you are not using the precompiled tgui libraries? (if you are using mingw 4.8 then you would have a valid reason).
I thought the precompiled tgui libraries wouldn't include a static version like I needed.



By the way, sorry for the delay on getting back to you.

EDIT:
I just realized that I downloaded the 0.6 version from the tutorial page. (derp)
I'll get the 0.6.2 version right now.
#12
I can't seem to figure out why this isn't working, maybe someone else has an idea?


I have downloaded the Code::Blocks Cmake files, and have hooked everything up correctly (I'm pretty sure). I've successfully configured the files once, and it says I need to specify the location. I type "H:Program Files/SFML" and the thing will configure fine.

IMAGE:



Now when I configure the file but leave the "TGUI_SHARED_LIBS" option unchecked. The thing gives me an error when I configure again.


I don't exactly see what I did wrong, and how I could fix it. So, any ideas?
#13
Please pay attention to the "Down.png" file. It uses a pattern over the actual image. When you click on it, the image is stretched.
#14
Attached.
#15
I want to put a image of a button on my GUI without stretching it. It always ends up stretched though, any solutions?


tgui::Button::Ptr button(gui);
    button->load("gfx/GUI.conf");
    button->setSize(120, 39);
    button->setPosition(630, 250);
    button->setText("Login");
    button->setTextSize(14);
    button->setTextColor(sf::Color(255, 255, 255));
    button->bindCallback(tgui::Button::LeftMouseClicked);
    button->setCallbackId(1);



Button:
    NormalImage_L  = "gui/button/Normal.png" (0, 0, 9, 39)
    NormalImage_M  = "gui/button/Normal.png" (10, 0, 100, 39)
    NormalImage_R  = "gui/button/Normal.png" (111, 0, 9, 39)
    HoverImage_L   = "gui/button/Hover.png"  (0, 0, 9, 39)
    HoverImage_M   = "gui/button/Hover.png"  (10, 0, 100, 39)
    HoverImage_R   = "gui/button/Hover.png"  (111, 0, 9, 39)
    DownImage_L    = "gui/button/Down.png"   (0, 0, 9, 39)
    DownImage_M    = "gui/button/Down.png"   (10, 0, 100, 39)
    DownImage_R    = "gui/button/Down.png"   (111, 0, 9, 39)
   
    TextColor          = (100, 100, 100)
    SeparateHoverImage = true