[SCRIPT] Fullscreen 0

[SCRIPT] Fullscreen 0

Messaggioda Andrez » 19/07/2012, 18:22

Codice: Seleziona tutto
//Fullscreen 0
//by RandumKiwi
//Permette di cambiare risoluzione quando si è in modalità finestra, premendo F5.

bind F5 "unmaximisemenu"
alias unmaximisemenu [ if (= $fullscreen 0) [ fullscreen 1
screenres $oldscrw $oldscrh
resetgl ] [
showmenu "Un-maximise" ] ]

newmenu Un-maximise
menuitem "Windowed mode: 640x480" "windowed640x480"
menuitem "Windowed mode: 800x600" "windowed800x600"
menuitem "Windowed mode: 1024x768" "windowed1024x768"
menuitem "Windowed mode: 1280x600" "windowed1280x600"
menuitem "Windowed mode: 1280x768" "windowed1280x768"
menuitem "" -1
menuitem "Choose manually..." [ showmenu "Choose a resolution to Un-maximise" ]

alias windowed640x480 [ if (= $fullscreen 1) [ alias oldscrw $scr_w
alias oldscrh $scr_h
screenres 640 480
fullscreen 0
resetgl
] [ screenres $oldscrw $oldscrh
fullscreen 1
resetgl ] ]
alias windowed800x600 [ if (= $fullscreen 1) [ alias oldscrw $scr_w
alias oldscrh $scr_h
screenres 800 600
fullscreen 0
resetgl ] [
screenres $oldscrw $oldscrh
fullscreen 1
resetgl ] ]
alias windowed1024x768 [ if (= $fullscreen 1) [ alias oldscrw $scr_w
alias oldscrh $scr_h
screenres 1024 768
fullscreen 0
resetgl ] [
screenres $oldscrw $oldscrh
fullscreen 1
resetgl ] ]
alias windowed1280x600 [ if (= $fullscreen 1) [ alias oldscrw $scr_w
alias oldscrh $scr_h
screenres 1280 600
fullscreen 0
resetgl ] [
screenres $oldscrw $oldscrh
fullscreen 1
resetgl ] ]
alias windowed1280x768 [ if (= $fullscreen 1) [ alias oldscrw $scr_w
alias oldscrh $scr_h
screenres 1280 768
fullscreen 0
resetgl ] [ screenres $oldscrw $oldscrh
fullscreen 1
resetgl ] ]

newmenu "Choose a resolution to Un-maximise"
menuinit [ alias manualscrw $scr_w; alias manualscrh $scr_h ]
menuitemtextinput "Width: " "$scr_w" [ alias manualscrw $arg1 ]
menuitemtextinput "Height: " "$scr_h" [ alias manualscrh $arg1 ]
menuitem "" -1
menuitem " 2 [ OK ]" "manualres-selection"

alias manualres-selection [ if (= $fullscreen 1) [ alias oldscrw $scr_w
alias oldscrh $scr_h
screenres $manualscrw $manualscrh
fullscreen 0
resetgl ] [ screenres $oldscrw $oldscrh
fullscreen 1
resetgl ] ]
Avatar utente
Andrez
 
Messaggi: 27
Iscritto il: 14/05/2012, 12:15
Località: Sicilia

Torna a Mapping, Modding & Scripting

Chi c’è in linea

Visitano il forum: Nessuno e 1 ospite

cron