###############################################################################
#
# entername-gui.txt
# original enter name 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.
#
###############################################################################

######### 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 button Ok
	id		= 2
	family		= 2
	value		= 0 0 0 1 1 1
	image		= GUIOkBtn1 GUIOkBtn2 GUIOkBtn3 GUIOkBtn4
	pos		= 450 320
	hitbox		= 454 365 553 410
	checkbox	= f
	radio		= f
	selected	= f
end

def editline NameEditLine
	id		= 3
	pos		= 345 282
	hitbox		= 345 280 445 300
	images		= 0
	font		= EnterNameFont
	checkbox	= f
	radio		= f
	selected	= y
	infocus		= y
	cursor		= EditLineCursor
	maxlen		= 12
	keydelay	= 5	# not used since repeat keying not allowed
end

### END OF GUI ITEM DEFINITIONS

