Thread: Great interface placement

Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1 Great interface placement 
    ¯\_(ツ)_/¯


    Join Date
    Jul 2014
    Posts
    1,803
    Thanks given
    928
    Thanks received
    550
    Rep Power
    299
    Hello, today i'm going to show off my interface placing.

    Most clients (with fullscreen/resizable) just make the interface get placed in the middle of the screen, but that's buggy because if some buttons overlap the minimap or chatbox, you can't click on them.

    Other clients might have it so that when you resize, it checks the size of the client, and if the client's height & width are not big enough, interfaces just get drawn at coordinates 0,0 which in my opinion just looks ugly.

    So today what I've done was made it so that when you resize the client, it places the interface in the middle of the screen, and avoids the minimap and the chatbox, so the interface is placed close to the middle of the screen, so it looks good

    I made a video, I haven't watched it or anything, it's probably super laggy cus of my shit laptop (2 core processor @ 2.13ghz + 4gb ram > lmao)
    but I hope you think it's cool, i don't think I've seen a client who actually has something like this, and it's kinda sad.

    Features:
    -Places itself nicely on the screen so you can click on it (near center if the client is not big enough)
    -If client height is low, the interface still centers itself by the width.
    -If client width is low, the interface still centers itself by the height.
    -The clicking areas for the things on the interface adjust to the placement of the interface automatically...

    Watch the video.
    Feedback plox!


    I might release this if enough people like it and want it




    VIDEO:
    Reply With Quote  
     


  2. #2  
    Retired. Stop PMing me.


    Galkon's Avatar
    Join Date
    Nov 2007
    Age
    17
    Posts
    7,526
    Thanks given
    1,805
    Thanks received
    2,830
    Rep Power
    5000
    Nice, surprised no one has actually done anything about that yet actually.
    Attached image
    Reply With Quote  
     

  3. Thankful users:


  4. #3  
    Banned

    Join Date
    May 2007
    Posts
    2,175
    Thanks given
    558
    Thanks received
    261
    Rep Power
    0
    goodjob, seen some great work form you lately
    Reply With Quote  
     

  5. #4  
    ¯\_(ツ)_/¯


    Join Date
    Jul 2014
    Posts
    1,803
    Thanks given
    928
    Thanks received
    550
    Rep Power
    299
    Quote Originally Posted by Ophion View Post
    goodjob, seen some great work form you lately
    thanks hehe

    Quote Originally Posted by Galkon View Post
    Nice, surprised no one has actually done anything about that yet actually.
    yeah lol, I remember every server I played with fullscreen/resizable, and all of them had it so the interfaces were placed directly in the middle of the screen, and I found that really annoying when you want to play on resizable but with a smaller screen, and the interfaces overlap the minimap. So I fixed it
    Tanks for the reply



    Omg Galkon replied to my thread
    Brb cleaning my pants.
    Reply With Quote  
     

  6. #5  
    Donator


    Join Date
    Aug 2013
    Posts
    610
    Thanks given
    288
    Thanks received
    123
    Rep Power
    162
    Quote Originally Posted by Retarded View Post
    Hello, today i'm going to show off my interface placing.

    Most clients (with fullscreen/resizable) just make the interface get placed in the middle of the screen, but that's buggy because if some buttons overlap the minimap or chatbox, you can't click on them.

    Other clients might have it so that when you resize, it checks the size of the client, and if the client's height & width are not big enough, interfaces just get drawn at coordinates 0,0 which in my opinion just looks ugly.

    So today what I've done was made it so that when you resize the client, it places the interface in the middle of the screen, and avoids the minimap and the chatbox, so the interface is placed close to the middle of the screen, so it looks good

    I made a video, I haven't watched it or anything, it's probably super laggy cus of my shit laptop (2 core processor @ 2.13ghz + 4gb ram > lmao)
    but I hope you think it's cool, i don't think I've seen a client who actually has something like this, and it's kinda sad.

    Features:
    -Places itself nicely on the screen so you can click on it (near center if the client is not big enough)
    -If client height is low, the interface still centers itself by the width.
    -If client width is low, the interface still centers itself by the height.
    -The clicking areas for the things on the interface adjust to the placement of the interface automatically...

    Watch the video.
    Feedback plox!


    I might release this if enough people like it and want it




    VIDEO:
    Nice , your getting better bro
    Reply With Quote  
     

  7. #6  
    I'm Back

    Stewie's Avatar
    Join Date
    Jul 2008
    Age
    29
    Posts
    7,987
    Thanks given
    1,877
    Thanks received
    1,491
    Rep Power
    5000



    Its the little things man.


    Reply With Quote  
     

  8. Thankful user:


  9. #7  
    Rune-Server Affiliate

    Join Date
    Apr 2014
    Posts
    1,761
    Thanks given
    75
    Thanks received
    714
    Rep Power
    1073
    epic nice interface placement11!!1
    Reply With Quote  
     

  10. Thankful users:


  11. #8  
    ¯\_(ツ)_/¯


    Join Date
    Jul 2014
    Posts
    1,803
    Thanks given
    928
    Thanks received
    550
    Rep Power
    299
    Quote Originally Posted by Stewie View Post



    Its the little things man.
    amg galkon & stewie :O
    I just shat myself

    thanks for the replies
    Reply With Quote  
     

  12. Thankful user:


  13. #9  
    Registered Member
    natsu's Avatar
    Join Date
    Apr 2007
    Age
    32
    Posts
    3,435
    Thanks given
    1,084
    Thanks received
    676
    Rep Power
    1096
    ya i found that out last week when i was doing fight caves interface looks good

    @release plz
    Reply With Quote  
     

  14. Thankful user:


  15. #10  
    Номер 1


    Leanbow's Avatar
    Join Date
    Feb 2008
    Posts
    5,895
    Thanks given
    1,564
    Thanks received
    2,624
    Rep Power
    5000
    Good job, I think jagex added that on 508+.
    Code:
    	static final void updateInterfacePosition(final JagexInterface jagexInterface, final int screenWidth, final int screenHeight) {
    		if (jagexInterface.dynamicXValue == 0) {
    			jagexInterface.x = jagexInterface.originalX;
    		} else if (jagexInterface.dynamicXValue == 1) {
    			jagexInterface.x = jagexInterface.originalX + (screenWidth - jagexInterface.width) / 2;
    		} else if (jagexInterface.dynamicXValue == 2) {
    			jagexInterface.x = -jagexInterface.originalX + -jagexInterface.width + screenWidth;
    		} else if (jagexInterface.dynamicXValue == 3) {
    			jagexInterface.x = jagexInterface.originalX * screenWidth >> 14;
    		} else if (jagexInterface.dynamicXValue == 4) {
    			jagexInterface.x = (jagexInterface.originalX * screenWidth >> 14) + (screenWidth - jagexInterface.width) / 2;
    		} else {
    			jagexInterface.x = -(screenWidth * jagexInterface.originalX >> 14) + -jagexInterface.width + screenWidth;
    		}
    		if (jagexInterface.dynamicYValue == 0) {
    			jagexInterface.y = jagexInterface.originalY;
    		} else if (jagexInterface.dynamicYValue == 1) {
    			jagexInterface.y = jagexInterface.originalY + (-jagexInterface.height + screenHeight) / 2;
    		} else if (jagexInterface.dynamicYValue == 2) {
    			jagexInterface.y = screenHeight + -jagexInterface.height - jagexInterface.originalY;
    		} else if (jagexInterface.dynamicYValue == 3) {
    			jagexInterface.y = screenHeight * jagexInterface.originalY >> 14;
    		} else if (jagexInterface.dynamicYValue == 4) {
    			jagexInterface.y = (jagexInterface.originalY * screenHeight >> 14) + (screenHeight - jagexInterface.height) / 2;
    		} else {
    			jagexInterface.y = -(jagexInterface.originalY * screenHeight >> 14) + screenHeight + -jagexInterface.height;
    		}
    		if (Class120_Sub30_Sub1.qaOpTestEnabled && (client.getClickMask(jagexInterface).optionMask != 0 || jagexInterface.type == 0)) {
    			if (jagexInterface.x < 0) {
    				jagexInterface.x = 0;
    			} else if (jagexInterface.x + jagexInterface.width > screenWidth) {
    				jagexInterface.x = screenWidth - jagexInterface.width;
    			}
    			if (jagexInterface.y < 0) {
    				jagexInterface.y = 0;
    			} else if (jagexInterface.height + jagexInterface.y > screenHeight) {
    				jagexInterface.y = screenHeight - jagexInterface.height;
    			}
    		}
    	}
    heres the code if anyone is interested
    Reply With Quote  
     

  16. Thankful users:


Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. fullscreen/resizable Interface Placement Fix
    By Seth Rogen in forum Snippets
    Replies: 37
    Last Post: 03-07-2017, 02:10 PM
  2. fullscreen/resizable Interface Placement Fix
    By Seth Rogen in forum Tutorials
    Replies: 35
    Last Post: 08-12-2014, 07:20 AM
  3. Replies: 11
    Last Post: 06-13-2012, 09:48 PM
  4. [Req]Great Interface Maker for PAY
    By Akinz in forum Buying
    Replies: 0
    Last Post: 03-07-2012, 03:34 AM
  5. OMG great godwars interface (must see)
    By 1skullkid in forum Show-off
    Replies: 12
    Last Post: 04-07-2011, 01:12 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •