<?xml version="1.0" encoding="UTF-8"?>
<window>
	<!-- mediasource -->
	<defaultcontrol always="true">100</defaultcontrol>
	<include>PropertyIncludes</include>
	<onload>RunScript(script.embuary.helper,action=txtfile,path='"special://home/addons/$INFO[ListItem.Property(Addon.ID)]/changelog.txt"',prop=LocalChangelog)</onload>
	<onunload>ClearProperty(LocalChangelog,home)</onunload>
	<controls>
		<!-- Hidden -->
		<control id="96" type="scrollbar">
			<left>-1200</left>
			<width>100</width>
			<height>1</height>
			<showonepage>false</showonepage>
			<orientation>vertical</orientation>
		</control>
		<control type="button" id="6">
			<include>HiddenObject</include>
		</control>
		<control type="button" id="7">
			<include>HiddenObject</include>
		</control>
		<control type="button" id="8">
			<include>HiddenObject</include>
		</control>
		<control type="button" id="9">
			<include>HiddenObject</include>
		</control>
		<control type="button" id="12">
			<include>HiddenObject</include>
		</control>
		<!-- Background -->
		<include>Background</include>
		<!-- Info -->
		<control type="group">
			<include>Window_OpenClose</include>
			<include>FullscreenDimensions</include>
			<control type="group">
				<top>90</top>
				<!-- Thumb image -->
				<include>MetaSquareThumb</include>
				<!-- meta -->
				<control type="group">
					<top>-5</top>
					<left>434</left>
					<height>1020</height>
					<right>70</right>
					<control type="label">
						<width>100%</width>
						<height>60</height>
						<label>$INFO[ListItem.Addonname]</label>
						<font>Reg37</font>
						<aligny>top</aligny>
					</control>
					<!-- meta -->
					<control type="group">
						<top>60</top>
						<height>40</height>
						<include>MetaAddonInfos</include>
					</control>
					<!-- flags -->
					<control type="group">
						<top>100</top>
						<include content="MetaFlags">
							<param name="type" value="AddonFlags"/>
						</include>
					</control>
					<!-- buttons -->
					<control type="list" id="100">
						<top>148</top>
						<height>130</height>
						<width>100%</width>
						<orientation>horizontal</orientation>
						<defaultcontrol always="true">0</defaultcontrol>
						<onright>noop</onright>
						<onleft>900</onleft>
						<include>FocusBounce</include>
						<itemlayout height="130" width="146">
							<include content="IconMenu">
								<param name="id" value="100"/>
							</include>
						</itemlayout>
						<focusedlayout height="130" width="146">
							<include content="IconMenu">
								<param name="id" value="100"/>
								<param name="focused" value="true"/>
							</include>
						</focusedlayout>
						<content>
							<item>
								<visible>Control.IsEnabled(12)</visible>
								<label>$LOCALIZE[518]</label>
								<property name="icon">&#xf327;</property>
								<onclick>SendClick(12)</onclick>
							</item>
							<item>
								<visible>Control.IsEnabled(9)</visible>
								<label>$LOCALIZE[24020]</label>
								<property name="icon">&#xf493;</property>
								<onclick>SendClick(9)</onclick>
							</item>
							<item>
								<visible>String.IsEqual(Control.GetLabel(6),$LOCALIZE[24038])</visible>
								<label>$LOCALIZE[24038]</label>
								<property name="icon">&#xf1da;</property>
								<onclick>SendClick(6)</onclick>
							</item>
							<item>
								<visible>Control.IsEnabled(8)</visible>
								<label>$LOCALIZE[24069]</label>
								<property name="icon">&#xf1da;</property>
								<onclick>SendClick(8)</onclick>
							</item>
							<item>
								<visible>!String.IsEmpty(ListItem.AddonNews)</visible>
								<label>$LOCALIZE[31343]</label>
								<property name="icon">&#xf394;</property>
								<onclick>RunScript(script.embuary.helper,action=textviewer,header=$LOCALIZE[24036],message='$ESCINFO[ListItem.AddonNews]')</onclick>
							</item>
							<item>
								<visible>!String.IsEmpty(Window(home).Property(LocalChangelog)) + !String.IsEqual(ListItem.AddonNews,Window(home).Property(LocalChangelog))</visible>
								<label>Changelog.txt</label>
								<property name="icon">&#xfb54;</property>
								<onclick>RunScript(script.embuary.helper,action=textviewer,header=changelog.txt,message='$ESCINFO[Window(home).Property(LocalChangelog)]')</onclick>
							</item>
							<item>
								<visible>!String.IsEmpty(ListItem.AddonDescription)</visible>
								<label>$LOCALIZE[21821]</label>
								<property name="icon">&#xf9a9;</property>
								<onclick>RunScript(script.embuary.helper,action=textviewer,header='$ESCINFO[ListItem.Label]',message='$ESCINFO[ListItem.AddonDescription]')</onclick>
							</item>
							<item>
								<visible>Control.IsEnabled(7) | Control.IsEnabled(13)</visible>
								<label>$LOCALIZE[31366]</label>
								<property name="icon">&#xf1d8;</property>
								<onclick>SetFocus(4000)</onclick>
							</item>
						</content>
					</control>
					<!-- type -->
					<control type="group">
						<top>269</top>
						<include>MetaGenre</include>
					</control>
					<!-- Desc -->
					<control type="textbox">
						<top>306</top>
						<width>100%</width>
						<height max="630">auto</height>
						<align>justify</align>
						<aligny>top</aligny>
						<label>$INFO[ListItem.AddonSummary,[B],[/B][CR][CR]]$INFO[ListItem.AddonDisclaimer,,[CR][CR]]$INFO[ListItem.AddonDescription]</label>
						<font>Light24</font>
						<autoscroll>false</autoscroll>
					</control>
				</control>
			</control>
		</control>
		<!-- Menu control -->
		<control type="group">
			<include>FullscreenDimensions</include>
			<include content="DiffuseMask">
				<param name="visible">ControlGroup(4000).HasFocus + !Window.IsVisible(selectdialog) + !Window.IsVisible(filebrowser) + !Window.IsVisible(DialogConfirm.xml)</param>
			</include>
			<control type="group">
				<visible>ControlGroup(4000).HasFocus + !Window.IsVisible(selectdialog) + !Window.IsVisible(filebrowser) + !Window.IsVisible(DialogConfirm.xml)</visible>
				<include>Visible_PopupOpenClose</include>
				<centerleft>50%</centerleft>
				<width>500</width>
				<centertop>50%</centertop>
				<height>982</height>
				<control type="grouplist" id="4000">
					<orientation>vertical</orientation>
					<height>auto</height>
					<align>center</align>
					<itemgap>0</itemgap>
					<onright>100</onright>
					<onleft>100</onleft>
					<onback>100</onback>
					<usecontrolcoords>true</usecontrolcoords>
					<control type="image" id="4001">
						<width>100%</width>
						<height>61</height>
						<texture border="65,0,65,0" colordiffuse="context_color">dialogs/context/top.png</texture>
					</control>
					<control type="radiobutton" id="13">
						<include content="ContextButton"/>
						<visible>Control.IsEnabled(13)</visible>
					</control>
					<control type="button" id="4003">
						<include content="ContextButton"/>
						<label>$INFO[Control.GetLabel(7)]</label>
						<onclick>SendClick(7)</onclick>
						<onclick>Dialog.Close(addoninformation)</onclick>
						<visible>Control.IsEnabled(7)</visible>
					</control>
					<control type="button" id="10">
						<include content="ContextButton"/>
						<label>$LOCALIZE[39024]</label>
						<visible>Control.IsEnabled(10)</visible>
					</control>
					<control type="button" id="4002">
						<include content="ContextButton"/>
						<label>$LOCALIZE[24037]</label>
						<onclick>SendClick(6)</onclick>
						<visible>!String.IsEqual(Control.GetLabel(6),$LOCALIZE[24038])</visible>
					</control>
					<control type="image" id="4005">
						<width>100%</width>
						<height>61</height>
						<texture border="65,0,65,0" colordiffuse="context_color">dialogs/context/bottom.png</texture>
					</control>
				</control>
			</control>
		</control>
		<!-- header bar -->
		<include content="HeaderBar">
			<param name="id">100</param>
			<param name="auto_hide">false</param>
		</include>
		<!-- side panel -->
		<include content="SidePanel">
			<param name="onright">100</param>
		</include>
	</controls>
</window>