<?xml version="1.0" encoding="utf-8">

<UIScene name="SCREEN_HOTBAR" OnAdd0=UIScene_OnAdd_SetupHotbar("HOTBAR_GRID") x=95 y=ALIGN_BOTTOM width=560 height=57 draggable=true priority="SCENE_INGAME" 
OnAdd1=UIObject_Misc_ExecuteServerScript(gui_2d2f_load_wm_spellhook)/>

	<UIText name="CurrentHotBar" align=center valign=middle x=2 y=16 width=20 height=20 fontfamily="Default"
	update=true OnUpdate=UIText_OnUpdate_UpdateHotbarPage("HOTBAR_GRID")/>

	<!-- Grid Scroll Up -->
	<UIButton name="GridUp1" x=23 y=5 width=17 height=20 OnLeftClick=UIButton_Input_HotbarIncrement("HOTBAR_GRID") >
		<UIFrame state=up		fill="b_scrlu_normal.tga" />
		<UIFrame state=down		fill="b_scrlu_pressed.tga" />
		<UIFrame state=focused	fill="b_scrlu_hover.tga" />
		<UIFrame state=hilited	fill="b_scrlu_hover.tga" />
		<UIFrame state=hifocus	fill="b_scrlu_hover_pressed.tga" />
		<UIFrame state=disabled	fill="b_scrlu_normal.tga" />
	</UIButton>
	
	<UIButton name="GridDown1" x=23 y=30 width=17 height=20 OnLeftClick=UIButton_Input_HotbarDecrement("HOTBAR_GRID") >
		<UIFrame state=up		fill="b_scrld_normal.tga" />
		<UIFrame state=down		fill="b_scrld_pressed.tga" />
		<UIFrame state=focused	fill="b_scrld_hover.tga" />
		<UIFrame state=hilited	fill="b_scrld_hover.tga" />
		<UIFrame state=hifocus	fill="b_scrld_hover_pressed.tga" />
		<UIFrame state=disabled	fill="b_scrld_normal.tga" />
	</UIButton>

	<!-- Hotbar Grid -->
	<UIGrid name="HOTBAR_GRID" rows=1 columns=12 x=40 y=7 xPadding=2 yPadding=0 update=true OnUpdate=UIGrid_OnUpdate_UpdateHotbarGrid() >
		<UIHotbarButton name="HOTBAR_BUTTON" height=40 width=40 draggable=true prototype=true 
			hotbartype="HOTBAR_BUTTON"
			MouseDragSFX="gui_drag" MouseDropSFX="gui_drop"
			OnRadialRequest=UIObject_OnRadial_DisplayInventoryRadial()
			OnLeftClick=UIButton_Input_HotbarLeftClick() 
			OnRightClick=UIButton_Input_HotbarRightClick() 
			OnMouseDropReceived=UIButton_OnDropReceived_SetHotbarButton() 
			OnMouseDropFailed=UIButton_OnDropFailed_ClearHotbarButton()
			update=true OnUpdate=UIButton_OnUpdate_UpdateHotbarButton()
			OnToolTip=UIObject_Tooltip_DisplayHotbar(OBJECT_X,OBJECT_Y,SCREEN_TOOLTIP_2,ALIGN_NONE,ALIGN_NONE,0,0,ALIGN_LEFT) >
			<UIText name="HOTBAR_TEXT" width=PARENT_WIDTH color="HotbarText" height=PARENT_HEIGHT align=center valign=middle fontfamily="Body_Font" style="1"/>
			<UIFrame state=base		fill="b_hb_normal.tga" />
			<UIFrame state=up		fill="b_empty.tga" />
			<UIFrame state=down		fill="b_overlay.tga" />
			<UIFrame state=focused	fill="b_empty.tga" />
			<UIFrame state=hilited	fill="b_overlay.tga" />
			<UIFrame state=hifocus	fill="b_overlay.tga" />
			<UIFrame state=disabled fill="b_empty.tga" />
		</UIHotbarButton>
	</UIGrid>

	<!-- Background Image -->
	<UIIcon img="hotbar_bg.tga" width=PARENT_WIDTH height=PARENT_HEIGHT />

