mtasa-blue
mtasa-blue copied to clipboard
guiCreateStaticImage unable to us dxTexture as valid image
Describe the bug
guiCreateStaticImage is unable to take dxImage as valid image, instead it's only possible to specify the path for the image
Did not check for other gui elements.
Steps to reproduce
- create dx-texture using dxCreateTexture
- Try to use it with guiCreateStaticImage
Version
No response
Additional context
No response
Relevant log output
No response
Security Policy
- [X] I have read and understood the Security Policy and this issue is not security related.
It's not a bug. guiCreateStaticImage only supports a string path to the image.
This should be a feature request and not a bug report.
I dont think cegui needs more features. It should be replaced entirely as already discussed many times 😅
I dont think cegui needs more features. It should be replaced entirely as already discussed many times 😅
I think it would be nice to add support for dx image or raw data to cegui image, or even add support for svg image, cause last time i tried cegui image doesn't work with svg and using dxConvertPixels also doesn't work with svg texture. It's useful for creating rounded rectangle with uncertain width and height with svg (tbh idk if it's possible). Instead of replacing entire cegui which I believe require a lot of work.
@idarrr use dx functions in your case
Yes dx functions is amazing, but imo for interactive UI with bunch of text input, it's easier with cegui since it has a lot of built in event like cursor event etc. What about scrollpane? In dx we have to use render target and handle scrolling by ourself, and afaik render target use lots of vram and produce blurry text sometimes (idk if i'm doing it wrong tho), and render target won't work if there's no vram left, most of mta players in my country is still using igpu with 64mb of vram, even if they have 1gb of shared memory available render target won't work sometimes. So "ugly" CEGUI is the best option for me now, but replacing gui window with the help of gui image for creating simple container to UI elements, CEGUI can look beautiful.