Jump to content

ضع وظيفة من الويكي وزود مشاركاتك


abu5lf

Recommended Posts

  • Replies 211
  • Created
  • Last Reply

Top Posters In This Topic

  • 3 months later...
centerWindow ;

كـــود تــوســيط الشــاشــة

<>

لازم تحط

centerWindow( اسم النافذة حقتك)
 
  1. function centerWindow (center_window)
  2. local screenW, screenH = guiGetScreenSize()
  3. local windowW, windowH = guiGetSize(center_window, false)
  4. local x, y = (screenW - windowW) /2,(screenH - windowH) /2
  5. return guiSetPosition(center_window, x, y, false)
  6. end
  7.  
Edited by Abu-Solo
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...