This is my first mod and I have made a new gui and buttons all I need to know is how to code the " //720p area. so that if the third button is pressed it changes the minecraft window (browser, frame what ever you call it) to 1280x720p resolution.
please make it so all I have to do is copy and paste (and just change the resolution values eg.1280x720) for any other resolutions I want to put in further down the track!
}
if(guibutton.id == 3)
{
//this is for the 720p resolution
This is my first mod and I have made a new gui and buttons all I need to know is how to code the " //720p area. so that if the third button is pressed it changes the minecraft window (browser, frame what ever you call it) to 1280x720p resolution.
please make it so all I have to do is copy and paste (and just change the resolution values eg.1280x720) for any other resolutions I want to put in further down the track!
}
if(guibutton.id == 3)
{
//this is for the 720p resolution
if (guibutton.id == 3);
{
mc.displayWidth = (1280);
mc.displayHeight = (720);
}
if (mc.displayHeight == 720);
{
}
}
if(guibutton.id == 4)
{
//this is for the 1080p resolution
}
}
Thanks.