Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- set %userx 1060
- set %usery 800
- menu show
- set %clixres #clixres
- set %cliyres #cliyres
- start:
- set #menubutton N/A
- menu clear
- menu window size 215 210
- menu window title Zmieniacz Rozdzialki
- menu window color black
- menu font bgcolor black
- menu font size 11
- menu Font Style b
- menu font color white
- menu font size 9
- menu Font Style bu
- menu text 1 20 3 Rozdzielczosc
- menu text 1 150 3 Przywroc
- menu text 1 162 63 Inne
- menu Font Style b
- menu text 1 32 110 Rozdzielczosc
- menu text 1 48 185 Ekran (%)
- menu Font Style
- menu text 1 20 23 1024 x 768
- menu text 1 20 43 1280 x 1024
- menu text 1 20 63 1600 x 1200
- menu text 1 20 83 %userx x %usery
- menu text 1 5 133 X
- menu text 1 125 133 Y
- menu text 1 5 163 %
- menu text 1 125 163 %
- menu button set1024 95 24 45 16 Ustaw
- menu button set1280 95 44 45 16 Ustaw
- menu button set1600 95 64 45 16 Ustaw
- menu button setuser 95 84 45 16 Ustaw
- menu button setcust 145 130 55 25 Ustaw
- menu button update 145 160 55 25 Update
- menu button restore600 150 24 55 16 640x480
- menu button restore800 150 44 55 16 800x600
- menu button hold 150 84 50 15 Hold
- menu button exit 150 104 50 15 Exit
- menu edit customx 20 130 50 #clixres
- menu edit customy 70 130 50 #cliyres
- menu edit ratiox 20 160 50 100
- menu edit ratioy 70 160 50 100
- menu hideeuo
- loop:
- menu show
- menu getnum ratiox
- if #menures <> %ratiox
- {
- set %ratiox #menures
- set %newvalue ( #clixres * %ratiox ) / 100
- menu delete customx
- menu edit customx 20 130 50 %newvalue
- }
- menu getnum ratioy
- if #menures <> %ratioy
- {
- set %ratioy #menures
- set %newvalue ( #cliyres * %ratioy ) / 100
- menu delete customy
- menu edit customy 70 130 50 %newvalue
- }
- if #menubutton = set1024
- {
- set #clixres 1020
- set #cliyres 745
- goto start
- }
- if #menubutton = set1280
- {
- set #clixres 1270
- set #cliyres 990
- goto start
- }
- if #menubutton = set1600
- {
- set #clixres 1595
- set #cliyres 1175
- goto start
- }
- if #menubutton = setcust
- {
- menu getnum customx
- set #clixres #menures
- menu getnum customy
- set #cliyres #menures
- goto start
- }
- if #menubutton = setuser
- {
- if %userx = N/A
- {
- display ok Set your custom resolution in the script and save... =)
- goto start
- }
- set #clixres %userx
- set #cliyres %usery
- goto start
- }
- if #menubutton = restore600
- {
- set #clixres 640
- set #cliyres 480
- goto start
- }
- if #menubutton = restore800
- {
- set #clixres 800
- set #cliyres 600
- goto start
- }
- if #menubutton = hold
- {
- menu getnum customx
- set %clixres #menures
- menu getnum customy
- set %cliyres #menures
- loop2:
- if #menubutton = hold
- {
- set #clixres %clixres
- set #cliyres %cliyres
- goto loop2
- }
- if #menubutton = exit
- {
- terminate euo
- }
- if #menubutton = update
- {
- goto start
- }
- goto loop
Add Comment
Please, Sign In to add comment