#Name: Optionality
#Author: Xaos BoredomSux Unltd.
#Version: 0.1

w ((avatar.width +6) + (icon.width +6)) + ((title.width +6) > (text.width +12))
h ((title.height > icon.height > clock.height)+7) + ((avatar.height > text.height)+7)

# ########################
# Background
# ########################
object
    ifnotset 1
		ifnotset 2
	type bitmap
	source backdrop.png
	x 6
	y 6
	w window.width-12
	h window.height-12
end
object
    ifset 1
		ifnotset 2
	type bitmap
	source backdrop.png
	x 6
	y 6
	w window.width-12
	h window.height-12
	mono
end
object
		ifset 1
		ifset 2
	type bitmap
	source backdrop_i.png
	x 6
	y 6
	w window.width-12
	h window.height-12
	mono
end
object
    ifnotset 1
		ifset 2
	type bitmap
	source backdrop_i.png
	x 6
	y 6
	w window.width-12
	h window.height-12
end
# =======================
# TOP
##====T-Left
object
    ifnotset 1
		ifnotset 2
	type bitmap
	source top_left.png
	x 0
	y 0
end
object
		ifset 1
		ifnotset 2
	type bitmap
	source top_left.png
	x 0
	y 0
	mono
end
object
    ifset 1
    ifset 2
	type bitmap
	source top_left_i.png
	x 0
	y 0
	mono
end
object
    ifnotset 1
    ifset 2
	type bitmap
	source top_left_i.png
	x 0
	y 0
end
##====T-Middle
object
    ifnotset 1
 		ifnotset 2
	type bitmap
	source top_top.png
	x 6
	y 0
	w window.width-12
end
object
    ifset 1
    ifnotset 2
	type bitmap
	source top_top.png
	x 6
	y 0
	w window.width-12
	mono
end
object
		ifset 1
		ifset 2
	type bitmap
	source top_top_i.png
	x 6
	y 0
	w window.width-12
	mono
end
object
		ifnotset 1
		ifset 2
	type bitmap
	source top_top_i.png
	x 6
	y 0
	w window.width-12
end
##====T-Right
object
    ifnotset 1
		ifnotset 2
	type bitmap
	source top_right.png
	x window.width-6
	y 0
end
object
		ifset 1
		ifnotset 2
	type bitmap
	source top_right.png
	x window.width-6
	y 0
	mono
end
object
		ifset 1
		ifset 2
	type bitmap
	source top_right_i.png
	x window.width-6
	y 0
	mono
end
object
		ifnotset 1
		ifset 2
	type bitmap
	source top_right_i.png
	x window.width-6
	y 0
end
# =======================
# Sides
##====Left
object
    ifnotset 1
		ifnotset 2
	type bitmap
	source left_side.png
	x 0
	y 6
	h window.height-12
end
object
 		ifset 1
    ifnotset 2
	type bitmap
	source left_side.png
	x 0
	y 6
	h window.height-12
	mono
end
object
		ifset 1
    ifset 2
	type bitmap
	source left_side_i.png
	x 0
	y 6
	h window.height-12
	mono
end
object
		ifnotset 1
    ifset 2
	type bitmap
	source left_side_i.png
	x 0
	y 6
	h window.height-12
end
##====Right
object
    ifnotset 1
		ifnotset 2
	type bitmap
	source right_side.png
	x window.width-6
	y 6
	h window.height-12
end
object
		ifset 1
    ifnotset 2
	type bitmap
	source right_side.png
	x window.width-6
	y 6
	h window.height-12
	mono
end
object
		ifset 1
		ifset 2
	type bitmap
	source right_side_i.png
	x window.width-6
	y 6
	h window.height-12
	mono
end
object
		ifnotset 1
		ifset 2
	type bitmap
	source right_side_i.png
	x window.width-6
	y 6
	h window.height-12
end
# =======================
# BOTTOM
##====B-Left
object
		ifset 1
    ifnotset 2
	type bitmap
	source bottom_left.png
	x 0
	y window.height-6
	mono
end
object
    ifnotset 1
		ifnotset 2
	type bitmap
	source bottom_left.png
	x 0
	y window.height-6
end
object
		ifset 1
    ifset 2
	type bitmap
	source bottom_left_i.png
	x 0
	y window.height-6
	mono
end
object
		ifnotset 1
    ifset 2
	type bitmap
	source bottom_left_i.png
	x 0
	y window.height-6
end
##====B-Middle
object
    ifnotset 1
		ifnotset 2
  type bitmap
	source bottom_bottom.png
	x 6
	y window.height-6
	w window.width-12
end
object
		ifset 1
    ifnotset 2
	type bitmap
	source bottom_bottom.png
	x 6
	y window.height-6
	w window.width-12
	mono
end
object
		ifset 1
		ifset 2
	type bitmap
	source bottom_bottom_i.png
	x 6
	y window.height-6
	w window.width-12
	mono
end
object
		ifnotset 1
		ifset 2
	type bitmap
	source bottom_bottom_i.png
	x 6
	y window.height-6
	w window.width-12
end
##====B-Right
object
    ifnotset 1
		ifnotset 2
	type bitmap
	source bottom_right.png
	x window.width-6
	y window.height-6
end
object
		ifset 1
    ifnotset 2
	type bitmap
	source bottom_right.png
	x window.width-6
	y window.height-6
	mono
end
object
		ifset 1
		ifset 2
	type bitmap
	source bottom_right_i.png
	x window.width-6
	y window.height-6
	mono
end
object
		ifnotset 1
		ifset 2
	type bitmap
	source bottom_right_i.png
	x window.width-6
	y window.height-6
end
####= Avatar =#######################
#-Small-TL--ITL-
object
	ifset 3
	ifnotset 4
	ifnotset 5
	ifnotset 6
	ifnotset 8
	ifnotset 9
type avatar
	x 6
	y icon.height +8
	w options.avatarsize
	proportional 1
end
#-Large-TL--ITL-
object
	ifset 3
	ifset 4
	ifnotset 5
	ifnotset 6
	ifnotset 8
	ifnotset 9
type avatar
	x 6
	y icon.height +8
end
#---------------
#-Small-TL--ITR-
object
	ifset 3
	ifnotset 4
	ifnotset 5
	ifnotset 6
	ifset 8
	ifnotset 9
type avatar
	x 6
	y 8
	w options.avatarsize
	proportional 1
end
#-Large-TL--ITR-
object
	ifset 3
	ifset 4
	ifnotset 5
	ifnotset 6
	ifset 8
	ifnotset 9
type avatar
	x 6
	y 8
end
#---------------
#-Small-TL--IBR-
object
	ifset 3
	ifnotset 4
	ifnotset 5
	ifnotset 6
	ifset 8
	ifset 9
type avatar
	x 6
	y 8
	w options.avatarsize
	proportional 1
end
#-Large-TL--IBR-
object
	ifset 3
	ifset 4
	ifnotset 5
	ifnotset 6
	ifset 8
	ifset 9
type avatar
	x 6
	y 8
end
#---------------
#-Small-TL--IBL-
object
	ifset 3
	ifnotset 4
	ifnotset 5
	ifnotset 6
	ifnotset 8
	ifset 9
type avatar
	x 6
	y 8
	w options.avatarsize
	proportional 1
end
#-Large-TL--IBL-
object
	ifset 3
	ifset 4
	ifnotset 5
	ifnotset 6
	ifnotset 8
	ifset 9
type avatar
	x 6
	y 8
end
#---avatar-------
#-Small-TR--ITL-
object
	ifset 3
	ifnotset 4
	ifset 5
	ifnotset 6
	ifnotset 8
	ifnotset 9
type avatar
	x window.width - avatar.width -6
	y clock.height +8
	w options.avatarsize
	proportional 1
end
#-Large-TR--ITL-
object
	ifset 3
	ifset 4
	ifset 5
	ifnotset 6
	ifnotset 8
	ifnotset 9
type avatar
	x window.width - avatar.width -6
	y clock.height +8
end
#----------------
#-Small-TR--ITR-
object
	ifset 3
	ifnotset 4
	ifset 5
	ifnotset 6
	ifset 8
	ifnotset 9
type avatar
	x window.width - avatar.width -6
	y clock.height +8
	w options.avatarsize
	proportional 1
end
#-Large-TR--ITR-
object
	ifset 3
	ifset 4
	ifset 5
	ifnotset 6
	ifset 8
	ifnotset 9
type avatar
	x window.width - avatar.width -6
	y clock.height +8
end
#----------------
#-Small-TR--IBR-
object
	ifset 3
	ifnotset 4
	ifset 5
	ifnotset 6
	ifset 8
	ifset 9
type avatar
	x window.width - avatar.width -6
	y clock.height +8
	w options.avatarsize
	proportional 1
end
#-Large-TR--IBR-
object
	ifset 3
	ifset 4
	ifset 5
	ifnotset 6
	ifset 8
	ifset 9
type avatar
	x window.width - avatar.width -6
	y clock.height +8
end
#----------------
#-Small-TR--IBL-
object
	ifset 3
	ifnotset 4
	ifset 5
	ifnotset 6
	ifnotset 8
	ifset 9
type avatar
	x window.width - avatar.width -6
	y clock.height +8
	w options.avatarsize
	proportional 1
end
#-Large-TR--IBL-
object
	ifset 3
	ifset 4
	ifset 5
	ifnotset 6
	ifnotset 8
	ifset 9
type avatar
	x window.width - avatar.width -6
	y clock.height +8
end
#---avatar-------
#-Small-BR--ITL-
object
	ifset 3
	ifnotset 4
	ifset 5
	ifset 6
	ifnotset 8
	ifnotset 9
type avatar
	x window.width - avatar.width -6
	y window.height - avatar.height -6
	w options.avatarsize
	proportional 1
end
#-Large-BR--ITL-
object
	ifset 3
	ifset 4
	ifset 5
	ifset 6
	ifnotset 8
	ifnotset 9
type avatar
	x window.width - avatar.width -6
	y window.height - avatar.height -6
end
#----------------
#-Small-BR--ITR-
object
	ifset 3
	ifnotset 4
	ifset 5
	ifset 6
	ifset 8
	ifnotset 9
type avatar
	x window.width - avatar.width -6
	y window.height - avatar.height -6
	w options.avatarsize
	proportional 1
end
#-Large-BR--ITR-
object
	ifset 3
	ifset 4
	ifset 5
	ifset 6
	ifset 8
	ifnotset 9
type avatar
	x window.width - avatar.width -6
	y window.height - avatar.height -6
end
#----------------
#-Small-BR--IBR-
object
	ifset 3
	ifnotset 4
	ifset 5
	ifset 6
	ifset 8
	ifset 9
type avatar
	x window.width - avatar.width -6
	y window.height - avatar.height -6
	w options.avatarsize
	proportional 1
end
#-Large-BR--IBR-
object
	ifset 3
	ifset 4
	ifset 5
	ifset 6
	ifset 8
	ifset 9
type avatar
	x window.width - avatar.width -6
	y window.height - avatar.height -6
end
#----------------
#-Small-BR--IBL-
object
	ifset 3
	ifnotset 4
	ifset 5
	ifset 6
	ifnotset 8
	ifset 9
type avatar
	x window.width - avatar.width -6
	y window.height - avatar.height -6
	w options.avatarsize
	proportional 1
end
#-Large-BR--IBL-
object
	ifset 3
	ifset 4
	ifset 5
	ifset 6
	ifnotset 8
	ifset 9
type avatar
	x window.width - avatar.width -6
	y window.height - avatar.height -6
end
#---avatar-------
#-Small-BL--ITL-
object
	ifset 3
	ifnotset 4
	ifnotset 5
	ifset 6
	ifnotset 8
	ifnotset 9
type avatar
	x 6
	y window.height - avatar.height -6
	w options.avatarsize
	proportional 1
end
#-Large-BL--ITL-
object
	ifset 3
	ifset 4
	ifnotset 5
	ifset 6
	ifnotset 8
	ifnotset 9
type avatar
	x 6
	y window.height - avatar.height -6
end
#----------------
#-Small-BL--ITR-
object
	ifset 3
	ifnotset 4
	ifnotset 5
	ifset 6
	ifset 8
	ifnotset 9
type avatar
	x 6
	y window.height - avatar.height -6
	w options.avatarsize
	proportional 1
end
#-Large-BL--ITR-
object
	ifset 3
	ifset 4
	ifnotset 5
	ifset 6
	ifset 8
	ifnotset 9
type avatar
	x 6
	y window.height - avatar.height -6
end
#----------------
#-Small-BL--IBR-
object
	ifset 3
	ifnotset 4
	ifnotset 5
	ifset 6
	ifset 8
	ifset 9
type avatar
	x 6
	y window.height - avatar.height -6
	w options.avatarsize
	proportional 1
end
#-Large-BL--IBR-
object
	ifset 3
	ifset 4
	ifnotset 5
	ifset 6
	ifset 8
	ifset 9
type avatar
	x 6
	y window.height - avatar.height -6
end
#----------------
#-Small-BL--IBL-
object
	ifset 3
	ifnotset 4
	ifnotset 5
	ifset 6
	ifnotset 8
	ifset 9
type avatar
	x 6
	y window.height - avatar.height -6
	w options.avatarsize
	proportional 1
end
#-Large-BL--IBL-
object
	ifset 3
	ifset 4
	ifnotset 5
	ifset 6
	ifnotset 8
	ifset 9
type avatar
	x 6
	y window.height - avatar.height -6
end
#----------------
####= TITLE TEXT =##################
object
	ifnotset 3
	ifnotset 8
	ifnotset 9
type title
	x icon.width +6
	y 6
end
#-------ITR
object
	ifnotset 3
	ifset 8
	ifnotset 9
type title
	x 6
	y 6
end
#-------IBR
object
	ifnotset 3
	ifset 8
	ifset 9
type title
	x 6
	y 6
end
#-------IBL
object
	ifnotset 3
	ifnotset 8
	ifset 9
type title
	x 6
	y 6
end
#----titletext--
#--ATL--ITL
object
	ifset 3
	ifnotset 5
	ifnotset 6
	ifnotset 8
	ifnotset 9
type title
	x (avatar.width > icon.width) +6
	y 6
end
#--ATL--ITR
object
	ifset 3
	ifnotset 5
	ifnotset 6
	ifset 8
	ifnotset 9
type title
	x avatar.width +6
	y 6
end
#--ATL--IBR
object
	ifset 3
	ifnotset 5
	ifnotset 6
	ifset 8
	ifset 9
type title
	x avatar.width +6
	y 6
end
#--ATL--IBL
object
	ifset 3
	ifnotset 5
	ifnotset 6
	ifnotset 8
	ifset 9
type title
	x avatar.width +6
	y 6
end
#----titletext--
#--ATR--ITL
object
	ifset 3
	ifset 5
	ifnotset 6
	ifnotset 8
	ifnotset 9
type title
	x icon.width +6
	y 6
end
#--ATR--ITR
object
	ifset 3
	ifset 5
	ifnotset 6
	ifset 8
	ifnotset 9
type title
	x 6
	y 6
end
#--ATR--IBR
object
	ifset 3
	ifset 5
	ifnotset 6
	ifset 8
	ifset 9
type title
	x 6
	y 6
end
#--ATR--IBL
object
	ifset 3
	ifset 5
	ifnotset 6
	ifnotset 8
	ifset 9
type title
	x 6
	y 6
end
#----titletext--
#--ABR--ITL
object
	ifset 3
	ifset 5
	ifset 6
	ifnotset 8
	ifnotset 9
type title
	x icon.width +6
	y 6
end
#--ABR--ITR
object
	ifset 3
	ifset 5
	ifset 6
	ifset 8
	ifnotset 9
type title
	x 6
	y 6
end
#--ABR--IBR
object
	ifset 3
	ifset 5
	ifset 6
	ifset 8
	ifset 9
type title
	x 6
	y 6
end
#--ABR--IBL
object
	ifset 3
	ifset 5
	ifset 6
	ifnotset 8
	ifset 9
type title
	x 6
	y 6
end
#----titletext--
#--ABL--ITL
object
	ifset 3
	ifnotset 5
	ifset 6
	ifnotset 8
	ifnotset 9
type title
	x icon.width +6
	y 6
end
#--ABL--ITR
object
	ifset 3
	ifnotset 5
	ifset 6
	ifset 8
	ifnotset 9
type title
	x 6
	y 6
end
#--ABL--IBR
object
	ifset 3
	ifnotset 5
	ifset 6
	ifset 8
	ifset 9
type title
	x 6
	y 6
end
#--ABL--IBL
object
	ifset 3
	ifnotset 5
	ifset 6
	ifnotset 8
	ifset 9
type title
	x 6
	y 6
end
#-----------------
####= TEXT AREA =##################
#-------ITL
object
	ifnotset 3
	ifnotset 8
	ifnotset 9
type text
	x icon.width +6
	y (title.height > icon.height > clock.height) +8
end
#-------ITR
object
	ifnotset 3
	ifset 8
	ifnotset 9
type text
	x 6
	y (title.height > icon.height > clock.height) +8
end
#-------IBR
object
	ifnotset 3
	ifset 8
	ifset 9
type text
	x 6
	y (title.height > icon.height > clock.height) +8
end
#-------IBL
object
	ifnotset 3
	ifnotset 8
	ifset 9
type text
	x icon.width +6
	y (title.height > icon.height > clock.height) +8
end
#----textarea---
#--ATL--ITL
object
	ifset 3
	ifnotset 5
	ifnotset 6
	ifnotset 8
	ifnotset 9
type text
	x (avatar.width > icon.width) +6
	y (title.height > icon.height > clock.height) +8
	w window.width - (avatar.width +6)
end
#--ATL--ITR
object
	ifset 3
	ifnotset 5
	ifnotset 6
	ifset 8
	ifnotset 9
type text
	x avatar.width +6
	y (title.height > icon.height > clock.height) +8
	w window.width - (avatar.width +6)
end
#--ATL--IBR
object
	ifset 3
	ifnotset 5
	ifnotset 6
	ifset 8
	ifset 9
type text
	x avatar.width +6
	y (title.height > icon.height > clock.height) +8
end
#--ATL--IBL
object
	ifset 3
	ifnotset 5
	ifnotset 6
	ifnotset 8
	ifset 9
type text
	x (avatar.width > icon.width) +6
	y (title.height > icon.height > clock.height) +8
	w window.width - (avatar.width +6)
end
#----textarea---
#--ATR--ITL
object
	ifset 3
	ifset 5
	ifnotset 6
	ifnotset 8
	ifnotset 9
type text
	x icon.width +6
	y (title.height > icon.height > clock.height) +8
end
#--ATR--ITR
object
	ifset 3
	ifset 5
	ifnotset 6
	ifset 8
	ifnotset 9
type text
	x 6
	y (title.height > icon.height > clock.height) +8
	w window.width
end
#--ATR--IBR
object
	ifset 3
	ifset 5
	ifnotset 6
	ifset 8
	ifset 9
type text
	x 6
	y (title.height > icon.height > clock.height) +8
	w window.width
end
#--ATR--IBL
object
	ifset 3
	ifset 5
	ifnotset 6
	ifnotset 8
	ifset 9
type text
	x icon.width +6
	y (title.height > icon.height > clock.height) +8
	w window.width
end
#----textarea---
#--ABR--ITL
object
	ifset 3
	ifset 5
	ifset 6
	ifnotset 8
	ifnotset 9
type text
	x icon.width +6
	y (title.height > icon.height > clock.height) +8
	w window.width
end
#--ABR--ITR
object
	ifset 3
	ifset 5
	ifset 6
	ifset 8
	ifnotset 9
type text
	x 6
	y (title.height > icon.height > clock.height) +8
	w window.width
end
#--ABR--IBR
object
	ifset 3
	ifset 5
	ifset 6
	ifset 8
	ifset 9
type text
	x 6
	y (title.height > icon.height > clock.height) +8
	w window.width
end
#--ABR--IBL
object
	ifset 3
	ifset 5
	ifset 6
	ifnotset 8
	ifset 9
type text
	x icon.width +6
	y (title.height > icon.height > clock.height) +8
	w window.width
end
#----textarea---
#--ABL--ITL
object
	ifset 3
	ifnotset 5
	ifset 6
	ifnotset 8
	ifnotset 9
type text
	x (avatar.width > icon.width) +6
	y (title.height > icon.height > clock.height) +8
	w window.width
end
#--ABL--ITR
object
	ifset 3
	ifnotset 5
	ifset 6
	ifset 8
	ifnotset 9
type text
	x avatar.width +6
	y (title.height > icon.height > clock.height) +8
	w window.width
end
#--ABL--IBR
object
	ifset 3
	ifnotset 5
	ifset 6
	ifset 8
	ifset 9
type text
	x avatar.width +6
	y (title.height > icon.height > clock.height) +8
	w window.width
end
#--ABL--IBL
object
	ifset 3
	ifnotset 5
	ifset 6
	ifnotset 8
	ifset 9
type text
	x (avatar.width > icon.width) +6
	y (title.height > icon.height > clock.height) +8
	w window.width
end
####= CLOCK =######################
object
	type clock
	x window.width - clock.width
	y 6
end
####= ICON =######################
#------TL---
object
	ifnotset 7
	ifnotset 8
	ifnotset 9
type icon
 	x 6
	y 6
end
#------TR---
object
	ifnotset 7
	ifset 8
	ifnotset 9
type icon
 	x window.width - icon.width -6
	y clock.height +8
end
#------BR---
object
	ifnotset 7
	ifset 8
	ifset 9
type icon
 	x window.width - icon.width -6
	y window.height - icon.height -6
end
#------BL---
object
	ifnotset 7
	ifnotset 8
	ifset 9
type icon
 	x 6
	y window.height - icon.height -6
end
#-------------------