Jump to content

Join our Slack

Talk to other users and have a great time
Slack Server

Welcome to our Community

Click here to get your Exiled Bot license
Donation Store
Sign in to follow this  
d4ns0ul

Ability to use EB on FullScreen Mode !

Recommended Posts

Ability to use EB on FullScreen Mode !

 

=)

Being that everything is based on coordinates the logic behind scaling it up/down shouldn't be too difficult so I'm not sure why this wasn't an option from the start. Of course I don't know the exact inner workings of the bot so without seeing the code I could be completely wrong.

EDIT: Untested but you could probably edit the coordinates.ini file and update all of the coords, however it would certainly be much easier just scaling the coordinates

The logic required would be something like:


    # Hardcoded resolution just for the example, however this bit should be grabbing the window/dekstops resolution.
    $WinHeight = 1920
    $WinWidth = 1080

    $WinResolution = $WinHeight & "x" & $WinWidth

    Switch $WinResolution
        Case '640x360', '852x480', '720x405', '848x480', '960x540', '1024x576', '1280x720', '1366x768', '1536x864', '1600x900', '1920x1080', '2048x1152', '2560x1440', '2880x1620', '3200x1800', '3840x2160', '4096x2304', '5120x2880', '7680x4320', '15360x8640' ;16:9
            $UpdatedXCoord = ($WinWidth / 1920) * $XCoord
            $UpdatedYCoord = ($WinHeight / 1080) * $YCoord
        Case '320x200', '640x400', '1280x800', '1440x900', '1680x1050', '1920x1200', '2560x1600', '3840x2400', '7680x4800' # 16:10
            $UpdatedXCoord = ($WinWidth / 1680) * $XCoord
            $UpdatedYCoord = ($WinHeight / 1050) * $YCoord
        Case '640×480', '800x600', '960x720', '1024x768', '1152x864', '1280x960', '1360x1024', '1400x1050', '1440x1080', '1600x1200', '1856x1392', '1920x1440', '2048x1536', '3200x2400', '4000x3000', '6400x4800' # 4:3
            $UpdatedXCoord = ($WinWidth / 1440) * $XCoord
            $UpdatedYCoord = ($WinHeight / 1080) * $YCoord
        Case '1280x1024' # 5/4
            $UpdatedXCoord = ($WinWidth / 1280) * $XCoord
            $UpdatedYCoord = ($WinHeight / 1024) * $YCoord
        Case '768x1024' # 3/4
            $UpdatedXCoord = ($WinWidth / 768) * $XCoord
            $UpdatedYCoord = ($WinHeight / 1024) * $YCoord
        Case '1360x768' # 85/48
            $UpdatedXCoord = ($WinWidth / 1360) * $XCoord
            $UpdatedYCoord = ($WinHeight / 768) * $YCoord
        Case Else
            #Throw up an error regarding unsupported resolution.
    EndSwitch
 
I haven't bothered with the very rare aspect ratios but I've done most of them, I've also done most of the common resolutions.

You could quite easily setup a function to feed original coordinates in with the resolution and return the adjusted coordinates using this method.

Edited by DSRyan

Share this post


Link to post
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.

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.

Loading...
Sign in to follow this  

×
×
  • Create New...