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 - LeeDev

#1
I know this is a skill issue on my part but I cannot find any examples online.

I am trying to make a ColorPicker which was easy enough:

void GuiManager::OnClickColorPickerTool()
{
canDraw = false;
tgui::ColorPicker::Ptr colorPicker = tgui::ColorPicker::create();
gui.add(colorPicker);
}

However I am trying to figure out how I can override the button funtionalliy for Okay and Cancel. I was reading the docs page but no functions seem to match what I am looking for. Can someone help me out? Thank you!
#2
I am currently working on a project using TGUI with SFML in Visual Studio and have encountered a linker error that I'm unable to resolve. The error occurs specifically when I try to use the tgui::Texture class. Other components of TGUI seem to work fine in my project, but any attempt to use tgui::Texture results in a linker error.

LNK2001: unresolved external symbol "private: static bool tgui::Texture::m_defaultSmooth" (?m_defaultSmooth@Texture@tgui@@0_NA)


Project Setup:

IDE: Visual Studio 2022
TGUI Version: TGUI 1.1.0
SFML Version: 2.6.1
Build Configuration: Debug
Platform: Win32

I have checked that my project is set up according to the TGUI documentation:

The TGUI library is correctly linked in the project settings.
I am using the correct build configuration (Debug/Release) for both TGUI and SFML.
The include and library directories are properly set in Visual Studio.
I have tried the following steps to troubleshoot the issue:

Rechecked all linker settings in Visual Studio.
Verified that there are no multiple definitions of TGUI symbols.
Rebuilt the TGUI library to ensure it matches my project settings.
Created a minimal test case where I only use tgui::Texture.
Despite these efforts, the linker error persists. It's puzzling that this issue is specific to tgui::Texture and does not affect other TGUI components.

I would greatly appreciate any insights or suggestions on how to resolve this issue. Has anyone else encountered a similar problem, or can anyone spot something I might be missing in my setup?

Thank you in advance for your help!