Jump to content

Recommended Posts

Posted

How can I implement a change of window to full screen after activating the option in the options menu?

Do I have to force the user to restart the game?
Or can I do it with the program running live?

 

GUI5.thumb.png.ede981fd1ef598a35849f68adf2b50a0.png

 

 

Astrocuco.thumb.png.c76e0fb3de2d6e437e7dca099625e11e.png

Murphy's Law: We don't fix bugs, we document them as features. – Murphy Games

Posted
1 hour ago, reepblue said:

To be honest, I just request the user to restart. This prevents anything relying on the context to not break when the user changes the window mode. 

image.thumb.png.f448a4c638be0fb186401d67b0ac6e95.png

 

 

Astrocuco.thumb.png.c76e0fb3de2d6e437e7dca099625e11e.png

Murphy's Law: We don't fix bugs, we document them as features. – Murphy Games

Posted
8 hours ago, Josh said:

Create a new window and then delete the previous window.

The question is: How do I destroy a wind
image.thumb.png.aeb6f1d1fdcabbdffab58608af7dd1e1.png
 

 

 

Astrocuco.thumb.png.c76e0fb3de2d6e437e7dca099625e11e.png

Murphy's Law: We don't fix bugs, we document them as features. – Murphy Games

Posted
2 minutes ago, Josh said:

Same as any object in Leadwerks, Release():
https://www.leadwerks.com/learn?page=API-Reference_Object_Release

You might try Window::SetShape() first, it might allow resizing a fullscreen window. Just make sure the new size is one of the support graphics resolutions for your monitor.

Thank you very much, always something to learn with Leadwerks. :)

 

 

Astrocuco.thumb.png.c76e0fb3de2d6e437e7dca099625e11e.png

Murphy's Law: We don't fix bugs, we document them as features. – Murphy Games

Posted
2 hours ago, Josh said:

Same as any object in Leadwerks, Release():
https://www.leadwerks.com/learn?page=API-Reference_Object_Release

You might try Window::SetShape() first, it might allow resizing a fullscreen window. Just make sure the new size is one of the support graphics resolutions for your monitor.

When I delete the window, is the context of the window and the world it contains deleted?

 

 

Astrocuco.thumb.png.c76e0fb3de2d6e437e7dca099625e11e.png

Murphy's Law: We don't fix bugs, we document them as features. – Murphy Games

Posted
On 9/14/2021 at 1:42 PM, Josh said:

The context is deleted, but the world is not.

The GUI is also deleted, the thing is that in the resolution change it seems that the GUI is broken, it does not draw the menu correctly in the coordinates, I think I have to delete it and create it again.

 

 

Astrocuco.thumb.png.c76e0fb3de2d6e437e7dca099625e11e.png

Murphy's Law: We don't fix bugs, we document them as features. – Murphy Games

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...