Gamestudio Links
Zorro Links
Newest Posts
Zorro tutorial ideas?
by AndrewAMD. 09/21/26 14:50
Trades during a running bar
by Martin_HH. 09/21/26 12:03
Capital slider is not saving in Z12
by frutza. 09/17/26 13:36
Avoiding pop-up training parameter results
by Martin_HH. 09/16/26 21:31
What are you working on?
by rayp. 09/16/26 20:20
Future of ZorroHFT
by TipmyPip. 09/16/26 09:28
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 1,248 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
lopezsergio07, mistery, lokkalyansamiti, rahulbuilds, speedx
19237 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Video mode toggle help #315056
03/12/10 23:49
03/12/10 23:49
Joined: Jan 2010
Posts: 145
Doc_Savage Offline OP
Member
Doc_Savage  Offline 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: Doc_Savage] #315062
03/13/10 01:21
03/13/10 01:21
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline
Serious User
Widi  Offline
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
I don`t know how do you call the function videomode. You call it in a while(1) loop? if not, set the while(1) loop in the function videomode itself.

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 Offline OP
Member
Doc_Savage  Offline 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 Offline
User
JazzDude  Offline
User

Joined: Sep 2003
Posts: 733
Whitefish, Montana
This works for me.

Code:
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.


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1