-
Notifications
You must be signed in to change notification settings - Fork 83
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
[WIP] Improved version of menu screen. #104
base: master
Are you sure you want to change the base?
Conversation
Looks great! I'll review this PR shortly... the only issue I have right now is that I'm not able to run it on my PC (I'll send over the details next time I'm on my PC) - could you clarify what exactly needs to be installed, and add that to the readme? |
The |
I think we should probably delete start.bat and replace it with a requirements.txt. |
I agree. |
Here is the issue I'm getting w.r.t. not being able to run the program. It seems to be ImGUI-related more than anything, but I'm not excluding the possibility that something is being done in the MCPY code to alter the state of the OpenGL context s.t. it causes issues in ImGUI: Logs
I don't have time to debug this in detail today, but you can try setting: pyglet.options["debug_gl"] = True |
Co-authored-by: Aymeric Wibo <[email protected]>
Co-authored-by: Aymeric Wibo <[email protected]>
Co-authored-by: Aymeric Wibo <[email protected]>
That error could be happening because internally imgui uses PyOpenGL instead of Pyglet's gl, so I should probably modify my extra image loading function to use PyOpenGl instead of Pyglet's gl. For me I do not get this error, maybe we have different graphics drivers. |
I don't think it's to do with a difference between different gl bindings. The OpenGL state is common between the two, and is stored in the graphics driver. If you enable |
Didn't see your message until now, but I have made my extra load function use PyOpenGL. Could you try if that works for you? Also I thought the same about the state being common, and I'm using NVIDIA's Windows drivers. |
I still have the same issue |
Could you provide your system information (found in the latest log from the
|
Replacement of #61
Currently there is a menu screen but it is not functional yet. The UI is made with PyImGUI. I will add an image of the menu tomorrow. Using PyImGUI means we no longer have resizing issues that were present in #61, in addition, we do not need to code the UI elements that we want in the future.
Also, if you do find a way into the world, the F3 screen is rendered with PyImGUI, in addition, this fixes a bug where the F3 text could go behind blocks a certain camera angles.