|
0 registered members (),
1,248
guests, and 1
spider. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
Video mode toggle help
#315056
03/12/10 23:49
03/12/10 23:49
|
Joined: Jan 2010
Posts: 145
Doc_Savage
OP
Member
|
OP
Member
Joined: Jan 2010
Posts: 145
|
im working on a script to change the video mode from fullscreen to windowed, and back via a keystroke. just having a bit of trouble, when i hit the key i can see my player model as if im inside it. nothing else happens.
here is the script:
function videomode(){ if(key_0){ video_screen=0; } }
i already have the variable for video_screen in the script, so thats not the problem.. any ideas guys?
Do not concern yourself with my race, personality or origin. find my record in the pits, and then make your wager.
|
|
|
Re: Video mode toggle help
[Re: Widi]
#315069
03/13/10 03:26
03/13/10 03:26
|
Joined: Jan 2010
Posts: 145
Doc_Savage
OP
Member
|
OP
Member
Joined: Jan 2010
Posts: 145
|
OH, ok let me try that thank you.
i tried it, it does the same thing. its ok i guess, i wanted to be able to set the video with something other than alt + enter, that way i could apply it to the menu im going to make for it.
Last edited by Doc_Savage; 03/13/10 03:33.
Do not concern yourself with my race, personality or origin. find my record in the pits, and then make your wager.
|
|
|
Re: Video mode toggle help
[Re: Doc_Savage]
#315188
03/13/10 18:54
03/13/10 18:54
|
Joined: Sep 2003
Posts: 733 Whitefish, Montana
JazzDude
User
|
User
Joined: Sep 2003
Posts: 733
Whitefish, Montana
|
This works for me.
function set_screen() //put this on a menu button
{
resolution.visible = on; //background panel
resolution_txt.visible = on; //explanation
}
var screen_change;
Function set_window() //will toggle between window and full
{
if(screen_change == 0)
{
screen_change = 1;
video_set(1024,768,0,0); //change for size
video_switch (8, 32, 2); //change depth, mode
resolution.visible = off;
resolution_txt.visible = off;
}
else
{
screen_change = 0;
video_switch (8, 32, 1);
resolution.visible = off;
resolution_txt.visible = off;
}
}
Make the mouse visible during the resolution panel.
|
|
|
|