var d = 10 - 2 * ~is(os_mac)
var y = (2 + ~is(os_mac)) * $d
var fw = ~formwidth - 2 * $d
var lw = $fw - 2 * $d

gOutline.width = ~formwidth
gOutline.height = ~formheight - 2 * ~is(os_mac) - 5
#added the -5, check on mac?

#group: Signed Players
Modes.X = 2 * $d
Modes.Y = ~formheight - 2 * $y
cmdSign.X = $Modes.X + $Modes.width + 5
cmdSign.Y = ~formheight - 2 * $y

#Need lstSigned.height to determine the others'
#hmm what???-line below should be able to take out but it's not, wtf!
#lstSigned.height = ~height
lstSigned.width = $lw
lstSigned.X = 2 * $d
lstSigned.Y = $Modes.Y - $d - ~height

#+10 ??? is that right? how does it look on win?
cmdSign.width = $lstSigned.width - ($d + $Modes.width + 5) + 10
cmdSign.height = ~height

gSigned.height = $y + $lstSigned.height + $Modes.height + 2 * $d
gSigned.width = $fw
gSigned.X = $d
gSigned.Y = ~formheight - ~height - $d

#Group: Started Games
gGames.X = $d
gGames.Y = 50

var s = ~formheight - $gSigned.height - $gGames.Y - $d
#top ^ : old, - 2 * $d at the end
gGames.height = $s * 2 / 3
gGames.width = $fw
lstGames.width = $lw
lstGames.height = $gGames.height - $y - $d
lstGames.X = 2 * $d
lstGames.Y = $gGames.Y + $y

#check if gOpen.Y works the same on windows !!! if not, fix it with ismac
#Group: Open Games
gOpen.X = $d
gOpen.Y = $gGames.Y + $gGames.height
gOpen.height = $s / 3
gOpen.width = $fw
lstOpenGames.width = $lw
lstOpenGames.height = $gOpen.height - $y - $d
lstOpenGames.X = 2 * $d
lstOpenGames.Y = $gOpen.Y + $y
