Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Intrebal

Pages: [1]
1
Modification Help / Place button on screen center?
« on: July 26, 2009, 07:03:46 PM »
Basically, I want to have a button (Floating, no gui window) in the center of the users window no matter what resolution they are running at. The one little flaw to my plan is that I've got no idea how to do it.

I've searched for a topic that may contain the answer, but I couldn't find one. Thanks to anyone that can help.

Edit: I partially got it working. I made the position a variable and then got the resolution from getRes();, then divided by two. The problem with this is that it's placing the button in the center from the buttons top left corner. Can anyone suggest a way to make it in the dead center?


Pages: [1]