###############################################################################
#
# setup-gui.txt
# original setup GUI for XR7: EarthStrike developed by Drake Analytics, Inc.
# www.xandis.com
#
# GUIs are simple in XR7 and represent just enough to get input from
# the player and nothing more. No frills but reasonable flexibility to
# ensure that most "looks" can be supported one way or the other.
#
# Note that the GUI-spec will refer to images that are defined in the
# level data file. Images and references in the GUI are based on screen
# coordinates (transformed). So, they are integers and do not include the
# Z axis. XR7 operates in an 800x600 environment.
#
# *** NOTE ***
#	The 'id' values of the buttons should not be changed since the program
#	itself expects these ids for particular buttons.
#
#	Also, in this case since there are radio buttons, the 'family' values should
#	not be changed.
#
###############################################################################

######### MOUSE ##########
#
def mouse MOUSE
	id		= 1
	hitpoint	= 0 0		# an offset into the mouse sprite
	image		= GUIMouse	# sprite image defined in the level data file
	pos		= 400 300	# starting point for mouse
	speed		= 1		# update mouse rate (bigger means slower rate)
end

########## BUTTONS #########
#
def thumb MusicVolumeSlider
	id		= 2
	family		= 2
	value		= 0 0 0 0 0 0
	image		= GUISliderBtn1 GUISliderBtn2 GUISliderBtn2 GUISliderBtn1 GUISliderBtn2 GUISliderBtn2
	minvalue	= 0
	maxvalue	= 100
	leftright	= t
	areabox		= 240 272 604 292
	hitbox		= 426 273 436 293
	pos		= 416 266
 end

def thumb FXVolumeSlider
	id		= 3
	family		= 3
	value		= 0 0 0 0 0 0
	image		= GUISliderBtn1 GUISliderBtn2 GUISliderBtn2 GUISliderBtn1 GUISliderBtn2 GUISliderBtn2
	minvalue	= 0
	maxvalue	= 100
	leftright	= t
	areabox		= 236 194 600 214
	hitbox		= 426 195 436 213
	pos		= 416 188 
end

def button NumPlayers1
	id		= 144
	family		= 44
	value		= 0 0 0 1 1 1
	image		= GUIRadioBtn1 GUIRadioBtn2 GUIRadioBtn3 GUIRadioBtn4 GUIRadioBtn5 GUIRadioBtn6
	pos		= 245 358
	hitbox		= 245 358 277 390
	radio		= t
	checkbox	= f
	selected	= t
end

def button NumPlayers2
	id		= 244
	family		= 44
	value		= 0 0 0 2 2 2
	image		= GUIRadioBtn1 GUIRadioBtn2 GUIRadioBtn3 GUIRadioBtn4 GUIRadioBtn5 GUIRadioBtn6
	pos		= 325 358
	hitbox		= 325 358 357 390
	radio		= t
	checkbox	= f
	selected	= t
end

def button NumPlayers3
	id		= 344
	family		= 44
	value		= 0 0 0 3 3 3
	image		= GUIRadioBtn1 GUIRadioBtn2 GUIRadioBtn3 GUIRadioBtn4 GUIRadioBtn5 GUIRadioBtn6
	pos		= 405 358
	hitbox		= 405 358 437 390
	radio		= t
	checkbox	= f
	selected	= t
end

def button NumPlayers4
	id		= 444
	family		= 44
	value		= 0 0 0 4 4 4
	image		= GUIRadioBtn1 GUIRadioBtn2 GUIRadioBtn3 GUIRadioBtn4 GUIRadioBtn5 GUIRadioBtn6
	pos		= 485 358
	hitbox		= 485 358 517 390
	radio		= t
	checkbox	= f
	selected	= t
end

# JOYSTICK
def button Device1	
	id		= 155
	family		= 55
	value		= 0 0 0 1 1 1
	image		= GUIRadioBtn1 GUIRadioBtn2 GUIRadioBtn3 GUIRadioBtn4 GUIRadioBtn5 GUIRadioBtn6
	pos		= 244 398
	hitbox		= 244 398 277 430
	radio		= t
	checkbox	= f
	selected	= t
end

# KEYBOARD
def button Device2	 
	id		= 255
	family		= 55
	value		= 0 0 0 2 2 2
	image		= GUIRadioBtn1 GUIRadioBtn2 GUIRadioBtn3 GUIRadioBtn4 GUIRadioBtn5 GUIRadioBtn6
	pos		= 434 398
	hitbox		= 434 398 466 430
	radio		= t
	checkbox	= f
	selected	= t
end

# MOUSE
def button Device3	
	id		= 355
	family		= 55
	value		= 0 0 0 3 3 3
	image		= GUIRadioBtn1 GUIRadioBtn2 GUIRadioBtn3 GUIRadioBtn4 GUIRadioBtn5 GUIRadioBtn6
	pos		= 629 398
	hitbox		= 629 398 661 430
	radio		= t
	checkbox	= f
	selected	= t
end


def button CheatEnable
	id		= 6
	family		= 6
	value		= 0 0 0 1 1 1
	image		= GUICheckBtn1 GUICheckBtn2 GUICheckBtn3 GUICheckBtn4 GUICheckBtn5 GUICheckBtn6
	pos		= 400 456
	hitbox		= 402 456 432 488
	checkbox	= t
	radio		= f
	selected	= f
end
 
def button Okay
	id		= 7
	family		= 7
	value		= 0 0 0 1 1 1
	image		= GUIOKBtn1 GUIOKBtn2 GUIOKBtn3 GUIOKBtn4
	pos		= 500 500
	hitbox		= 502 546 625 584
	checkbox	= f
	radio		= f
	selected	= f
end

def button Cancel
	id		= 8
	family		= 8
	value		= 0 0 0 1 1 1
	image		= GUICancelBtn1 GUICancelBtn2 GUICancelBtn3 GUICancelBtn4
	pos		= 640 500
	hitbox		= 642 546 765 584
	checkbox	= f
	radio		= f
	selected	= f
end

### END OF GUI ITEM DEFINITIONS

