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

#1
Help requests / Re: About Gaussian Blur...
15 January 2025, 07:00:50
Quote from: texus on 13 January 2025, 08:37:18It's not possible with TGUI directly. You should add a Canvas widget to the panel and somehow render your gaussian blur on that canvas.

Assuming you use the SFML_GRAPHICS renderer: if you can get the wanted effect in SFML with an sf::RenderTexture, then you can get the same effect in TGUI by replacing the sf::RenderTexture with a tgui::CanvasSFML
Okay, thank you!
#2
Help requests / About Gaussian Blur...
13 January 2025, 05:24:01
Hi :) , how to use Gaussian blur effect in the background of Panel?
#3
Quote from: texus on 31 December 2024, 11:58:49Animated textures are not supported directly.

You would have to load each frame into a texture and then call the getRenderer()->setTexture() function with a different texture each time you want to update the visible frame.
thank you
#4
Similar to GIF...
#5
Hi, how to implement dynamic image support for button and picture? :)
#6
Thanks! :)
#7
I use childWindow as the base class to make a custom widget, but the background becomes invisible after drawing. What is the reason for this?  :)
2024-12-26 13-32-29-76.jpg
NewProjectWindow::NewProjectWindow(const char* typeName, bool initRenderer) :
ChildWindow(typeName, false)
{
if (initRenderer)
{
m_renderer = aurora::makeCopied<NewProjectWindowRenderer>();
setRenderer(Theme::getDefault()->getRendererNoThrow(m_type));
}
setTitleButtons(ChildWindow::TitleButton::None);
setTextSize(getGlobalTextSize());

setClientSize({ 450, 350 });
init();
}