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

#1
Help requests / EditBox not editable
24 April 2023, 18:29:40
Hey,

I added an EditBox to a Panel. If I click it, it highlights and the cursor blinks, but I cannot enter any text.

Any idea what might be the problem?
#2
General Discussion / Signals Memory
20 April 2023, 13:47:23
Hey texus,

I'm wondering if you need to disconnect a signal in order to don't leak memory?
If I create a Signal using a lambda. Will it be freed at any time?

Regards
#3
General Discussion / Localization
06 April 2023, 12:36:07
Hey,

I'm wondering what are you using to localize for different languages?
Any suggestions that are compatible with commercial usage?

Regards
#4
Help requests / [Solved] SVG scaling
05 April 2023, 11:19:20
Hey texus,

I'm wondering what is happening with SVG images in textures.

The following code produces a very blurry image:
auto testTexture = tgui::Texture(resourcePath + "/images/test.svg");
auto testPic = tgui::Picture::create(testTexture);
testPic->setOrigin({0.5f, 0.5f});
testPic->setPosition("50%", "50%");
testPic->setScale(5);

If I scale the image using setSize() it is far less blurry but still not sharp.

2 Questions:
  • Is the image rasterized again if the size is changed?
  • Is High DPI considered for rasterization?
#5
Hey,

I try to use hideWithEffect and it is not working. After calling the function
panel->hideWithEffect(tgui::ShowEffectType::SlideToLeft, std::chrono::milliseconds(500));the Widget is still visible and not moving at all.

Are there any requirements for the function to work?
#6
Help requests / [Solved] Picture with SVG
10 March 2023, 18:04:03
Hey,

I have some trouble getting the Picture Widget to work with SVG. I tried a PNG. That works, but if I use SVG it won't show.
Any idea what might be the problem?
#7
Help requests / [Solved] Sprite from SVG
07 March 2023, 21:38:17
Hey,

I want to draw a SVG in a Widget. I found that I can render a SVG to BackendTexture using SvgImage class.
An Sprite can only be created using a Texture, but I can't find a way to transform a BackendTexture to a Texture. Is there a way to convert the BackendTexture to a Sprite? Or can I directly draw the BackendTexture?

Thanks!
#8
I want to create a Widget that is very similar to the current Tabs class.
Perhaps just adding an Icon to every Tab and adjust the text position.

Any recommendations? Is it possible to create a subclass of the Tabs widget and use the subclass within the current TabContainer widget?

I read the current implementation of the Tabs widget and there is a Tab struct that is private. So I cannot add an image there easily.