Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

guiCreateStaticImage unable to us dxTexture as valid image #3271

Open
1 task done
Allerek opened this issue Dec 15, 2023 · 5 comments
Open
1 task done

guiCreateStaticImage unable to us dxTexture as valid image #3271

Allerek opened this issue Dec 15, 2023 · 5 comments
Labels
bug Something isn't working

Comments

@Allerek
Copy link
Contributor

Allerek commented Dec 15, 2023

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

  1. create dx-texture using dxCreateTexture
  2. Try to use it with guiCreateStaticImage

Version

No response

Additional context

No response

Relevant log output

No response

Security Policy

  • I have read and understood the Security Policy and this issue is not security related.
@Allerek Allerek added the bug Something isn't working label Dec 15, 2023
@xLive
Copy link
Member

xLive commented Dec 15, 2023

It's not a bug. guiCreateStaticImage only supports a string path to the image.
image

This should be a feature request and not a bug report.

@Fernando-A-Rocha
Copy link
Contributor

I dont think cegui needs more features. It should be replaced entirely as already discussed many times 😅

@idarrr
Copy link

idarrr commented Jan 5, 2024

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.

@Fernando-A-Rocha
Copy link
Contributor

@idarrr use dx functions in your case

@idarrr
Copy link

idarrr commented Jan 9, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants