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

guiCreateWindow/guiCreateStaticImage is broken #2616

Open
1 task done
MrDadosz opened this issue May 14, 2022 · 0 comments
Open
1 task done

guiCreateWindow/guiCreateStaticImage is broken #2616

MrDadosz opened this issue May 14, 2022 · 0 comments
Labels
bug Something isn't working upstream Related to vendor library

Comments

@MrDadosz
Copy link

MrDadosz commented May 14, 2022

Describe the bug

guiCreateStaticImage with first/second argument set to 0 will break if in a guiCreateWindow. You have to add "padding" to make it work properly. Check attached files.
1 broken.txt
2 working.txt
1 broken
2 working
box

Steps to reproduce

  1. write your code
  2. think 1 hour why this shit isnt working

Version

Client: Multi Theft Auto v1.5.9-release-21210
Server: -

Additional context

No response

Relevant log output

1 working:
1:1   0.01,0.01
1:2   0.21,0.01
1:3   0.41,0.01
1:4   0.61,0.01
1:5   0.81,0.01
2:1   0.01,0.17666666666667
2:2   0.21,0.17666666666667
2:3   0.41,0.17666666666667
2:4   0.61,0.17666666666667
2:5   0.81,0.17666666666667
3:1   0.01,0.34333333333333
3:2   0.21,0.34333333333333
3:3   0.41,0.34333333333333
3:4   0.61,0.34333333333333
3:5   0.81,0.34333333333333
4:1   0.01,0.51
4:2   0.21,0.51
4:3   0.41,0.51
4:4   0.61,0.51
4:5   0.81,0.51
5:1   0.01,0.67666666666667
5:2   0.21,0.67666666666667
5:3   0.41,0.67666666666667
5:4   0.61,0.67666666666667
5:5   0.81,0.67666666666667
6:1   0.01,0.84333333333333
6:2   0.21,0.84333333333333
6:3   0.41,0.84333333333333
6:4   0.61,0.84333333333333
6:5   0.81,0.84333333333333

2 broken:
1:1   0,0
1:2   0.2,0
1:3   0.4,0
1:4   0.6,0
1:5   0.8,0
2:1   0,0.16666666666667
2:2   0.2,0.16666666666667
2:3   0.4,0.16666666666667
2:4   0.6,0.16666666666667
2:5   0.8,0.16666666666667
3:1   0,0.33333333333333
3:2   0.2,0.33333333333333
3:3   0.4,0.33333333333333
3:4   0.6,0.33333333333333
3:5   0.8,0.33333333333333
4:1   0,0.5
4:2   0.2,0.5
4:3   0.4,0.5
4:4   0.6,0.5
4:5   0.8,0.5
5:1   0,0.66666666666667
5:2   0.2,0.66666666666667
5:3   0.4,0.66666666666667
5:4   0.6,0.66666666666667
5:5   0.8,0.66666666666667
6:1   0,0.83333333333333
6:2   0.2,0.83333333333333
6:3   0.4,0.83333333333333
6:4   0.6,0.83333333333333
6:5   0.8,0.83333333333333

Security Policy

  • I have read and understood the Security Policy and this issue is not security related.
@MrDadosz MrDadosz added the bug Something isn't working label May 14, 2022
@patrikjuvonen patrikjuvonen changed the title guiCreateWindow is broken guiCreateWindow/guiCreateStaticImage is broken Jan 2, 2023
@patrikjuvonen patrikjuvonen added the upstream Related to vendor library label Apr 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working upstream Related to vendor library
Projects
None yet
Development

No branches or pull requests

2 participants