<controldefs>
	**
	** Controldefs contains all the general properties for each type of layout control **
	**

	<choicetext _class="UITextButton">
		<font>ramsey</font>
		<hifont>ramsey</hifont>
		<disabledfont>ramsey_off</disabledfont>
		<halign>center</halign>
		<hotsound>highlight</hotsound>
		<selectsound>select</selectsound>
		<cooltime>0.1</cooltime>
		<yshift>-1</yshift>
		<background>
			<left> 
				<bitmap>assets/graphics/ui/textbutton12-left.jpg</bitmap>
				<alphamap>assets/graphics/ui/textbutton12-left-alpha.png</alphamap>
			</left>
			<right> 
				<bitmap>assets/graphics/ui/textbutton12-right.jpg</bitmap>
				<alphamap>assets/graphics/ui/textbutton12-right-alpha.png</alphamap>
			</right>
			<center>
				<bitmap>assets/graphics/ui/textbutton12-mid.jpg</bitmap>
				<alphamap>assets/graphics/ui/textbutton12-mid-alpha.png</alphamap>
			</center>
		</background>
		<backgroundhi>
			<left> 
				<bitmap>assets/graphics/ui/textbutton12-left-hot.jpg</bitmap>
				<alphamap>assets/graphics/ui/textbutton12-left-hot-alpha.png</alphamap>
			</left>
			<right> 
				<bitmap>assets/graphics/ui/textbutton12-right-hot.jpg</bitmap>
				<alphamap>assets/graphics/ui/textbutton12-right-hot-alpha.png</alphamap>
			</right>
			<center>
				<bitmap>assets/graphics/ui/textbutton12-mid-hot.jpg</bitmap>
				<alphamap>assets/graphics/ui/textbutton12-mid-hot-alpha.png</alphamap>
			</center>
		</backgroundhi>
	</choicetext>

	<progress _class="UIProgressBar">
		<halign>left</halign>
		<valign>top</valign>
		<empty>
			<left bitmap="assets/graphics/ui/progressbar-left.png"/>
			<right bitmap="assets/graphics/ui/progressbar-right.png"/>
			<center bitmap="assets/graphics/ui/progressbar-mid.png"/>
		</empty>
		<full>
			<left bitmap="assets/graphics/ui/progressbar-left-full.png"/>
			<right bitmap="assets/graphics/ui/progressbar-right-full.png"/>
			<center bitmap="assets/graphics/ui/progressbar-mid-full.png"/>
		</full>
	</progress>
		
	<label _class="UITextButton">
		<font>ramsey</font>
		<halign>center</halign>
		<yshift>-2</yshift>
		<background>
			<left> 
				<bitmap>assets/graphics/ui/textlabel14-left.jpg</bitmap>
				<alphamap>assets/graphics/ui/textlabel14-left-alpha.png</alphamap>
			</left>
			<right> 
				<bitmap>assets/graphics/ui/textlabel14-right.jpg</bitmap>
				<alphamap>assets/graphics/ui/textlabel14-right-alpha.png</alphamap>
			</right>
			<center>
				<bitmap>assets/graphics/ui/textlabel14-mid.jpg</bitmap>
				<alphamap>assets/graphics/ui/textlabel14-mid-alpha.png</alphamap>
			</center>
		</background>
	</label>

	<buildinglabel _class="UITextButton">
		<font>ramsey</font>
		<halign>left</halign>
		<yshift>1</yshift>
		<background>
			<left> 
				<bitmap>assets/graphics/ui/buildinglabel-left.jpg</bitmap>
				<alphamap>assets/graphics/ui/buildinglabel-left-alpha.png</alphamap>
			</left>
			<right>
				<bitmap>assets/graphics/ui/buildinglabel-right.jpg</bitmap>
				<alphamap>assets/graphics/ui/buildinglabel-right-alpha.png</alphamap>
			</right>
			<center>
				<bitmap>assets/graphics/ui/buildinglabel-mid.jpg</bitmap>
				<alphamap>assets/graphics/ui/buildinglabel-mid-alpha.png</alphamap>
			</center>
		</background>
	</buildinglabel>
	
	<townlabel _class="UITextButton">
		<font>ramsey</font>
		<halign>center</halign>
		<yshift>3</yshift>
		<background>
			<left> 
				<bitmap>assets/graphics/ui/townlabel-left.jpg</bitmap>
				<alphamap>assets/graphics/ui/townlabel-left-alpha.png</alphamap>
			</left>
			<right>
				<bitmap>assets/graphics/ui/townlabel-right.jpg</bitmap>
				<alphamap>assets/graphics/ui/townlabel-right-alpha.png</alphamap>
			</right>
			<center>
				<bitmap>assets/graphics/ui/townlabel-mid.jpg</bitmap>
				<alphamap>assets/graphics/ui/townlabel-mid-alpha.png</alphamap>
			</center>
		</background>
	</townlabel>

	<basictext _class="UIText">
		<font>ramsey</font>
		<halign>left</halign>
		<valign>top</valign>
	</basictext>
	
	<tuttext _class="UIText">
		<font>ramsey_pale</font>
		<halign>left</halign>
		<valign>top</valign>
	</tuttext>

	<smalltext _class="UIText">
		<font>ramsey_small</font>
		<halign>left</halign>
		<valign>top</valign>
	</smalltext>
	
	<cargotext _class="UITextButton">
		<font>ramsey</font>
		<hifont>ramsey_hot</hifont>
		<halign>right</halign>
		<valign>top</valign>
	</cargotext>

	<toggle _class="UITextCycleButton">
		<font>ramsey</font>
		<hifont>ramsey_hot</hifont>
		<disabledfont>ramsey_off</disabledfont>
		<halign>center</halign>
		<hotsound>highlight</hotsound>
		<selectsound>select</selectsound>
		<yshift>-1</yshift>
		<background>
			<left> 
				<bitmap>assets/graphics/ui/textbutton12-left.jpg</bitmap>
				<alphamap>assets/graphics/ui/textbutton12-left-alpha.png</alphamap>
			</left>
			<right> 
				<bitmap>assets/graphics/ui/textbutton12-right.jpg</bitmap>
				<alphamap>assets/graphics/ui/textbutton12-right-alpha.png</alphamap>
			</right>
			<center>
				<bitmap>assets/graphics/ui/textbutton12-mid.jpg</bitmap>
				<alphamap>assets/graphics/ui/textbutton12-mid-alpha.png</alphamap>
			</center>
		</background>
		<backgroundhi>
			<left> 
				<bitmap>assets/graphics/ui/textbutton12-left-hot.jpg</bitmap>
				<alphamap>assets/graphics/ui/textbutton12-left-hot-alpha.png</alphamap>
			</left>
			<right> 
				<bitmap>assets/graphics/ui/textbutton12-right-hot.jpg</bitmap>
				<alphamap>assets/graphics/ui/textbutton12-right-hot-alpha.png</alphamap>
			</right>
			<center>
				<bitmap>assets/graphics/ui/textbutton12-mid-hot.jpg</bitmap>
				<alphamap>assets/graphics/ui/textbutton12-mid-hot-alpha.png</alphamap>
			</center>
		</backgroundhi>
	</toggle>

	<settingslider _class="UISlyder">
		<underlay bitmap="assets/graphics/ui/sliderbar-bg.png"/>
		<overlay bitmap="assets/graphics/ui/sliderbar.png"/>
		<halign>center</halign>
		<selectsound>select</selectsound>
	</settingslider>

	<npctext _class="UISlowText">
		<charspersecond>25</charspersecond>
		<font>ramsey_small</font>
		<halign>left</halign>
		<valign>top</valign>
	</npctext>

	<centertext _class="UIText">
		<font>ramsey</font>
		<halign>center</halign>
		<valign>top</valign>
	</centertext>
	
	<popupframe _class="UIFrame">
		<background>
			<bitmap bitmap="assets/graphics/ui/npcframe_background.jpg"/>
			<xoff>0</xoff>
			<yoff>0</yoff>
		</background>

		<hbordertop>
			<bitmap>
				<bitmap>assets/graphics/ui/npcframe_hbordertop.jpg</bitmap>
				<alphamap>assets/graphics/ui/npcframe_hbordertop-alpha.png</alphamap>
			</bitmap>
			<xoff>0</xoff>
			<yoff>-8</yoff>
		</hbordertop>

		<hborderbottom>
			<bitmap>
				<bitmap>assets/graphics/ui/npcframe_hborderbottom.jpg</bitmap>
				<alphamap>assets/graphics/ui/npcframe_hborderbottom-alpha.png</alphamap>
			</bitmap>
			<xoff>0</xoff>
			<yoff>-42</yoff>
		</hborderbottom>
			   
		<vborderleft>
			<bitmap>
				<bitmap>assets/graphics/ui/npcframe_vborderleft.jpg</bitmap>
				<alphamap>assets/graphics/ui/npcframe_vborderleft-alpha.png</alphamap>
			</bitmap>
			<xoff>-8</xoff>
			<yoff>0</yoff>
		</vborderleft>
			
		<vborderright>
			<bitmap>
				<bitmap>assets/graphics/ui/npcframe_vborderright.jpg</bitmap>
				<alphamap>assets/graphics/ui/npcframe_vborderright-alpha.png</alphamap>
			</bitmap>
			<xoff>-90</xoff>
			<yoff>0</yoff>
		</vborderright>
			
		<topleftbracket>
			<bitmap>
				<bitmap>assets/graphics/ui/npcframe_topleftbracket.jpg</bitmap>
				<alphamap>assets/graphics/ui/npcframe_topleftbracket-alpha.png</alphamap>
			</bitmap>
			<xoff>-8</xoff>
			<yoff>-8</yoff>
	</topleftbracket>
			
		<topcenterbracket>
			<bitmap>
				<bitmap>assets/graphics/ui/npcframe_hbordertop.jpg</bitmap>
				<alphamap>assets/graphics/ui/npcframe_hbordertop-alpha.png</alphamap>
			</bitmap>
			<xoff>0</xoff>
			<yoff>-8</yoff>
		</topcenterbracket>
			
		<toprightbracket>
			<bitmap>
				<bitmap>assets/graphics/ui/npcframe_toprightbracket.jpg</bitmap>
				<alphamap>assets/graphics/ui/npcframe_toprightbracket-alpha.png</alphamap>
			</bitmap>
			<xoff>-90</xoff>
			<yoff>-8</yoff>
		</toprightbracket>
			
		<bottomleftbracket>
			<bitmap>
				<bitmap>assets/graphics/ui/npcframe_bottomleftbracket.jpg</bitmap>
				<alphamap>assets/graphics/ui/npcframe_bottomleftbracket-alpha.png</alphamap>
			</bitmap>
			<xoff>-8</xoff>
			<yoff>-42</yoff>
		</bottomleftbracket>
			
		<bottomcenterbracket>
			<bitmap>
				<bitmap>assets/graphics/ui/npcframe_hborderbottom.jpg</bitmap>
				<alphamap>assets/graphics/ui/npcframe_hborderbottom-alpha.png</alphamap>
			</bitmap>
			<xoff>0</xoff>
			<yoff>-42</yoff>
		</bottomcenterbracket>
			
		<bottomrightbracket>
			<bitmap>
				<bitmap>assets/graphics/ui/npcframe_bottomrightbracket.jpg</bitmap>
				<alphamap>assets/graphics/ui/npcframe_bottomrightbracket-alpha.png</alphamap>
			</bitmap>
			<xoff>-90</xoff>
			<yoff>-42</yoff>
		</bottomrightbracket>
	</popupframe>

	<popupframeactive _class="UIFrame">
		<background>
			<bitmap bitmap="assets/graphics/ui/paper_background.png" />
			<xoff>0</xoff>
			<yoff>0</yoff>
		</background>

		<hbordertop>
			<bitmap bitmap="assets/graphics/ui/paper_hbordertop.png" />
			<xoff>0</xoff>
			<yoff>-16</yoff>
		</hbordertop>

		<hborderbottom>
			<bitmap bitmap="assets/graphics/ui/paper_hborderbottom.png" />
			<xoff>0</xoff>
			<yoff>-25</yoff>
		</hborderbottom>
			   
		<vborderleft>
			<bitmap bitmap="assets/graphics/ui/paper_vborderleft.png" />
			<xoff>-6</xoff>
			<yoff>0</yoff>
		</vborderleft>
			
		<vborderright>
			<bitmap bitmap="assets/graphics/ui/paper_vborderright.png" />
			<xoff>-6</xoff>
			<yoff>0</yoff>
		</vborderright>
			
		<topleftbracket>
			<bitmap bitmap="assets/graphics/ui/paper_topleftbracket.png" />
			<xoff>-6</xoff>
			<yoff>-16</yoff>
		</topleftbracket>
			
		<topcenterbracket>
			<bitmap bitmap="assets/graphics/ui/paper_hbordertop.png" />
			<xoff>-16</xoff>
			<yoff>-16</yoff>
		</topcenterbracket>
			
		<toprightbracket>
			<bitmap bitmap="assets/graphics/ui/paper_toprightbracket.png" />
			<xoff>-6</xoff>
			<yoff>-16</yoff>
		</toprightbracket>
			
		<bottomleftbracket>
			<bitmap bitmap="assets/graphics/ui/paper_bottomleftbracket.png" />
			<xoff>-6</xoff>
			<yoff>-25</yoff>
		</bottomleftbracket>
			
		<bottomcenterbracket>
			<bitmap bitmap="assets/graphics/ui/paper_hborderbottom.png" />
			<xoff>-16</xoff>
			<yoff>-25</yoff>
		</bottomcenterbracket>
			
		<bottomrightbracket>
			<bitmap bitmap="assets/graphics/ui/paper_bottomrightbracket.png" />
			<xoff>-6</xoff>
			<yoff>-25</yoff>
		</bottomrightbracket>
	</popupframeactive>

	<popup _class="UIWindow">
		<halign>center</halign>
		<valign>center</valign>
	</popup>
	
	<quantity _class="UIText">
		<halign>right</halign>
		<valign>top</valign>
		<font>ramsey_small</font>
		<width>70</width>
		<height>23</height>
	</quantity>
	
	<cash_credit _class="UIText">
		<halign>right</halign>
		<valign>top</valign>
		<font>ramsey</font>
	</cash_credit>

	<cash_hotcredit _class="UITextButton">
		<halign>right</halign>
		<valign>top</valign>
		<font>ramsey</font>
	</cash_hotcredit>

	<cash_hotdebt _class="UITextButton">
		<halign>right</halign>
		<valign>top</valign>
		<font>ramsey_emp</font>
	</cash_hotdebt>
	
	<enternumber _class="UIEditBox">
		<maxlen>12</maxlen>
		<bgcolor r="128" g="128" b="128"/>
		<font>ramsey</font>
		<numbersonly>true</numbersonly>
		<width>100</width>
		<height>23</height>
		<yshift>2</yshift>
		<cursor>
			<bitmap>assets/graphics/ui/textcursor.jpg</bitmap>
			<alphamap>assets/graphics/ui/textcursor-alpha.png</alphamap>
		</cursor>
		<background>
			<left> 
				<bitmap>assets/graphics/ui/textentry12-left.jpg</bitmap>
				<alphamap>assets/graphics/ui/textentry12-left-alpha.png</alphamap>
			</left>
			<right>
				<bitmap>assets/graphics/ui/textentry12-right.jpg</bitmap>
				<alphamap>assets/graphics/ui/textentry12-right-alpha.png</alphamap>
			</right>
			<center>
				<bitmap>assets/graphics/ui/textentry12-mid.jpg</bitmap>
				<alphamap>assets/graphics/ui/textentry12-mid-alpha.png</alphamap>
			</center>
			<width>126</width>
		</background>
	</enternumber>
	
	<entersmallnumber _class="UIEditBox">
		<maxlen>4</maxlen>
		<bgcolor r="128" g="128" b="128"/>
		<font>ramsey</font>
		<numbersonly>true</numbersonly>
		<width>50</width>
		<height>23</height>
		<yshift>2</yshift>
		<cursor>
			<bitmap>assets/graphics/ui/textcursor.jpg</bitmap>
			<alphamap>assets/graphics/ui/textcursor-alpha.png</alphamap>
		</cursor>
		<background>
			<left> 
				<bitmap>assets/graphics/ui/textentry12-left.jpg</bitmap>
				<alphamap>assets/graphics/ui/textentry12-left-alpha.png</alphamap>
			</left>
			<right>
				<bitmap>assets/graphics/ui/textentry12-right.jpg</bitmap>
				<alphamap>assets/graphics/ui/textentry12-right-alpha.png</alphamap>
			</right>
			<center>
				<bitmap>assets/graphics/ui/textentry12-mid.jpg</bitmap>
				<alphamap>assets/graphics/ui/textentry12-mid-alpha.png</alphamap>
			</center>
			<width>90</width>
		</background>
	</entersmallnumber>

	<cargoedit _class="UIEditBox">
		<maxlen>5</maxlen>
		<bgcolor r="128" g="192" b="128"/>
		<font>ramsey</font>
		<numbersonly>true</numbersonly>
		<width>60</width>
		<height>23</height>
		<yshift>2</yshift>
		<cursor>
			<bitmap>assets/graphics/ui/textcursor.jpg</bitmap>
			<alphamap>assets/graphics/ui/textcursor-alpha.png</alphamap>
		</cursor>
		<background>
			<left> 
				<bitmap>assets/graphics/ui/textentry12-left.jpg</bitmap>
				<alphamap>assets/graphics/ui/textentry12-left-alpha.png</alphamap>
			</left>
			<right>
				<bitmap>assets/graphics/ui/textentry12-right.jpg</bitmap>
				<alphamap>assets/graphics/ui/textentry12-right-alpha.png</alphamap>
			</right>
			<center>
				<bitmap>assets/graphics/ui/textentry12-mid.jpg</bitmap>
				<alphamap>assets/graphics/ui/textentry12-mid-alpha.png</alphamap>
			</center>
			<width>106</width>
		</background>
	</cargoedit>
	                   

	<npc_frame _extends="/controldefs/popupframe">
		<x>-35</x>
		<y>-20</y>
		<width>470</width>
		<height>245</height>
		<halign>left</halign>
		<valign>top</valign>
	</npc_frame>

	<npc_frame_buyship _extends="/controldefs/popupframe">
		<x>-70</x>
		<y>-5</y>
		<width>540</width>
		<height>225</height>
		<halign>left</halign>
		<valign>top</valign>
	</npc_frame_buyship>

	<npc_large_frame _extends="/controldefs/popupframe">
		<x>-55</x>
		<y>-5</y>
		<width>510</width>
		<height>225</height>
		<halign>left</halign>
		<valign>top</valign>
	</npc_large_frame>

	<choice_frame _extends="/controldefs/popupframe">
		<x>0</x>
		<y>255</y>
		<width>400</width>
		<height>170</height>
		<halign>left</halign>
		<valign>top</valign>
	</choice_frame>

	<choice_large_frame _extends="/controldefs/popupframe">	
		<x>-35</x>
		<y>255</y>
		<width>470</width>
		<height>170</height>
		<halign>left</halign>
		<valign>top</valign>
	</choice_large_frame>


	<ammo1_frame _extends="/controldefs/popupframe">
		<x>0</x>
		<y>-5</y>
		<width>520</width>
		<height>180</height>
		<halign>left</halign>
		<valign>top</valign>
	</ammo1_frame>

	<ammo2_frame _extends="/controldefs/popupframe">
		<x>0</x>
		<y>200</y>
		<width>520</width>
		<height>215</height>
		<halign>left</halign>
		<valign>top</valign>
	</ammo2_frame>
        <rent1_frame _extends="/controldefs/popupframe">
		<x>40</x>
		<y>-10</y>
                <width>430</width>
		<height>205</height>
		<halign>left</halign>
		<valign>top</valign>
                </rent1_frame>

	<rent2_frame _extends="/controldefs/popupframe">
		<x>40</x>
		<y>225</y>
		<width>430</width>
		<height>180</height>
		<halign>left</halign>
		<valign>top</valign>
	</rent2_frame>

	<npc_portrait _class="UIBitmap">
		<x>-7</x>
		<y>15</y>
		<halign>left</halign>
		<valign>top</valign>
	</npc_portrait>

        <npccombat_portrait _class="UIBitmap">
		<x>180</x>
		<y>20</y>
		<halign>left</halign>
		<valign>top</valign>
	</npccombat_portrait>


	<trader_portrait _class="UIBitmap">
		<x>-43</x>
		<y>19</y>
		<halign>left</halign>
		<valign>top</valign>
	</trader_portrait>

	<dec_button _class="UIBitmapButton">
		<bitmap>
			<bitmap>assets/graphics/ui/leftward.jpg</bitmap>
			<alphamap>assets/graphics/ui/leftward-alpha.png</alphamap>
		</bitmap>
		<hotbitmap>
			<bitmap>assets/graphics/ui/leftward-hot.jpg</bitmap>
			<alphamap>assets/graphics/ui/leftward-hot-alpha.png</alphamap>
		</hotbitmap>
		<hold firsttime="1" nexttime="0.2"/>
		<selectsound>select</selectsound>
		<hotsound>highlight</hotsound>
	</dec_button>

	<inc_button _class="UIBitmapButton">
		<bitmap>
			<bitmap>assets/graphics/ui/rightward.jpg</bitmap>
			<alphamap>assets/graphics/ui/rightward-alpha.png</alphamap>
		</bitmap>
		<hotbitmap>
			<bitmap>assets/graphics/ui/rightward-hot.jpg</bitmap>
			<alphamap>assets/graphics/ui/rightward-hot-alpha.png</alphamap>
		</hotbitmap>
		<hold firsttime="1" nexttime="0.2"/>
		<selectsound>select</selectsound>
		<hotsound>highlight</hotsound>
	</inc_button>
	
	<maxbutton _class="UIBitmapButton">
		<clicksound>select</clicksound>
		<bitmap>
			<bitmap>assets/graphics/ui/maxbutton.jpg</bitmap>
			<alphamap>assets/graphics/ui/maxbutton-alpha.png</alphamap>
		</bitmap>
		<hotbitmap>
			<bitmap>assets/graphics/ui/maxbutton-hot.jpg</bitmap>
			<alphamap>assets/graphics/ui/maxbutton-hot-alpha.png</alphamap>
		</hotbitmap>
	</maxbutton>

	<radiobutton _class="UIRadioButton">
		<clicksound>select</clicksound>
		<font>ramsey</font>
		<hifont>ramsey_hot</hifont>
		<disabledfont>ramsey_off</disabledfont>
		<empty>
			<bitmap>assets/graphics/ui/popup/radiobutton.jpg</bitmap>
			<alphamap>assets/graphics/ui/popup/radiobutton-alpha.png</alphamap>
		</empty>
		<full>
			<bitmap>assets/graphics/ui/popup/radiobutton_hot.jpg</bitmap>
			<alphamap>assets/graphics/ui/popup/radiobutton-hot-alpha.png</alphamap>
		</full>
	</radiobutton>
		
</controldefs>
