Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[EA] Fullscreen mode


santa-clause
 Share

Recommended Posts

Hello,

I made a tutorial so if you press the maximize button the screen expands and the buttons still work.

All Client side.

Open the picture below to know what to change for borderstyle resizable:

>! ![](http://www.freemmorpgmaker.com/files/imagehost/pics/643e633c37a54152e7c54e6f7870adb5.png)

In modgraphics

In Public Sub Render_Graphics()

Replace:

```

Direct3D_Device.Present srcRect, ByVal 0, 0, ByVal 0

```
Whit this:

```

Direct3D_Device.Present ByVal 0, ByVal 0, 0, ByVal 0

```

In modinput

In Public Sub HandleMouseMove

Replace:

```

GlobalX = X

GlobalY = Y

GlobalX_Map = GlobalX + (TileView.Left * PIC_X) + Camera.Left

GlobalY_Map = GlobalY + (TileView.Top * PIC_Y) + Camera.Top

```
Whit this:

```

GlobalX = (ScreenWidth / frmMain.ScaleWidth) * X

GlobalY = (ScreenHeight / frmMain.ScaleHeight) * Y

GlobalX_Map = GlobalX + (TileView.Left * PIC_X) + Camera.Left

GlobalY_Map = GlobalY + (TileView.Top * PIC_Y) + Camera.Top

```

In The same sub

Replace:

```

CurX = TileView.Left + ((X + Camera.Left) \ PIC_X)

CurY = TileView.Top + ((Y + Camera.Top) \ PIC_Y)

```
Whit this

```

CurX = TileView.Left + ((GlobalX + Camera.Left) \ PIC_X)

CurY = TileView.Top + ((GlobalY + Camera.Top) \ PIC_Y)

```
Link to comment
Share on other sites

> Yeah , now if you can make it so that the window would keep the screen ratio that would help people with a widescreen too.

'

We should like make a screen resolution changer

Example

1920 × 1080

1280 x 720

and etc

Such a good tutorial all its missing are the resolution ratios
Link to comment
Share on other sites

> Când this be done for ER? And can you make the GUI have the same size while maximising only the windows? of view?

This is already inplented in ER ![-_-](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/sleep.png)

You just need to change the form state to resizable
Link to comment
Share on other sites

  • 4 months later...
  • 1 month later...
> How to use this in EO 3.0 :(?

You first have to render everything to frmmain before you can actually use this in EO 3.0 and that's what thomas actually did in Eclipse Advanced.

He rendered everything to frmMain.

Use [this](http://www.eclipseorigins.com/community/index.php?/topic/127753-eo-event-system-30-resolution-changer/) for fullscreen in EO3.0
Link to comment
Share on other sites

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
 Share

×
×
  • Create New...