Jump to content

Center Windows??


Yue
 Share

Recommended Posts

I don't know what this looks like in Lua but this does it in C
 

window = Leadwerks::Window::Create("Leadwerks", 0, 0, 1280, 720, Leadwerks::Window::Titlebar | Leadwerks::Window::Center);

I wish the documentation mentioned the option.

You could probably also use SetLayout after creating the window but you'd need to get the desktop resolution somehow.

  • Upvote 1
Link to comment
Share on other sites

10 minutes ago, gamecreator said:

I don't know what this looks like in Lua but this does it in C
 


window = Leadwerks::Window::Create("Leadwerks", 0, 0, 1280, 720, Leadwerks::Window::Titlebar | Leadwerks::Window::Center);

 

Thanks!!

 

window=Window:Create(title,0,0,gfxmode.x,gfxmode.y,Window.Titlebar+Window.Center)

 

  • Upvote 1

Mars.jpg.89ab63a64eebc1f5ada0ab82b66a1f8c.jpg

 

 

Link to comment
Share on other sites

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.

 Share

×
×
  • Create New...