Blockland Forums
Home
Help
Login
Register
Blockland Forums
»
Blockland Forums
»
Modification Help
»
Centering a resizing GUI [SOLVED]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Centering a resizing GUI [SOLVED] (Read 568 times)
Thorfin25
June 18, 2014, 07:50:11 AM
/title
Now if I use someone's pref for $pref::Video::resolution how would I get the variables from it, ie for me it'd be "1280 600 32 60"
I don't care about the 32 or 60 to much, just the 1280 and 600. How should I go about grabbing just the first 2 numbers?
«
Last Edit: June 18, 2014, 09:12:04 AM by Thorfin25
»
Ad Bot
Advertisement
jes00
June 18, 2014, 08:04:44 AM
%size = getWords($pref::Video::resolution, 0, 1);
Or
%x = getWord($pref::Video::resolution, 0);
%y = getWord($pref::Video::resolution, 1);
Ninjaman 4
June 18, 2014, 08:07:40 AM
You can also do
%x = getWord(getRes(), 0);
%y = getWord(getRes(), 1);
Thorfin25
June 18, 2014, 09:11:49 AM
Thanks, worked out great.
Print
Pages: [
1
]
« previous
next »
Blockland Forums
»
Blockland Forums
»
Modification Help
»
Centering a resizing GUI [SOLVED]