<?xml version="1.0" encoding="UTF-8"?>
<window id="1124" type="dialog">

<!-- Again, huge thanks to MikeSiLVO, this is adapted from his skin code to show a text viewer dialog for plot -->


	<defaultcontrol always="true">64</defaultcontrol>
	<onunload>ClearProperty(TextViewerHeader,Home)</onunload>
    <onunload>ClearProperty(TextViewerSubHeader,Home)</onunload>
	<onunload>ClearProperty(TextViewerContent,Home)</onunload>
    <include>DialogOpenClose</include>
	<controls>
        <include>DialogBackgroundFade</include>
		<control type="button" id="64">
			<oninfo>Dialog.Close(1124)</oninfo>
			<onclick>Dialog.Close(1124)</onclick>
			<onleft>Dialog.Close(1124)</onleft>
			<onright>Dialog.Close(1124)</onright>
            <onback>Dialog.Close(1124)</onback>
			<onup>PageUp(61)</onup>
			<ondown>PageDown(61)</ondown>
			<include>HiddenButton</include>
		</control>
		<control type="group">
			<left>270</left>
			<top>88</top>
			<control type="image" description="Menu BG">
				<width>1380</width>
				<height>904</height>
				<texture border="0,40,0,40">dialogs/DialogBG.png</texture>
				<colordiffuse>$VAR[DialogBGColor]</colordiffuse>
			</control>
			<control type="label">
				<left>62</left>
				<top>32</top>
				<width>1256</width>
				<height>40</height>
				<align>center</align>
				<aligny>center</aligny>
				<textcolor>$VAR[HighlightColor]</textcolor>
				<label>$INFO[Window(Home).Property(TextViewerHeader)]</label>
			</control>
			<control type="image" description="Line Split">
				<left>42</left>
                <posy>90</posy>
				<width>1280</width>
				<height>1</height>
				<texture>img/LineL.png</texture>
				<aspectratio>stretch</aspectratio>
			</control>
			<control type="label">
				<left>62</left>
				<top>95</top>
				<width>1256</width>
				<height>80</height>
				<align>center</align>
                <aligny>center</aligny>
                <font>InfoPlot</font>
				<label>[B]$INFO[Window(Home).Property(TextViewerSubHeader)][/B]</label>
                <wrapmultiline>true</wrapmultiline>
			</control>
			<control type="textbox">
				<left>62</left>
				<top>195</top>
				<width>1256</width>
				<height>625</height>
				<font>InfoPlot</font>
				<pagecontrol>61</pagecontrol>
				<label fallback="19055">$INFO[Window(Home).Property(TextViewerContent)]</label>
                <visible>!String.IsEmpty(Window(Home).Property(TextViewerSubHeader))</visible>
                <autoscroll delay="3000" time="2000" repeat="10000">Skin.HasSetting(AutoScroll)</autoscroll>
			</control>
			<control type="textbox">
				<left>62</left>
				<top>145</top>
				<width>1256</width>
				<height>715</height>
				<font>InfoPlot</font>
				<pagecontrol>61</pagecontrol>
				<label fallback="19055">$INFO[Window(Home).Property(TextViewerContent)]</label>
                <visible>String.IsEmpty(Window(Home).Property(TextViewerSubHeader))</visible>
                <autoscroll delay="3000" time="2000" repeat="10000">Skin.HasSetting(AutoScroll)</autoscroll>
			</control>
			<control type="scrollbar" id="61">
				<left>1366</left>
				<top>32</top>
				<width>14</width>
				<height>840</height>
				<ondown>61</ondown>
				<onup>61</onup>
				<texturesliderbackground></texturesliderbackground>
				<texturesliderbar></texturesliderbar>
				<texturesliderbarfocus></texturesliderbarfocus>
				<textureslidernib border="18">OSD/ScrollbarNibNF.png</textureslidernib>
				<textureslidernibfocus border="18" colordiffuse="$VAR[HighlightColor]">OSD/ScrollbarNibFO.png</textureslidernibfocus>
				<showonepage>false</showonepage>
				<orientation>vertical</orientation>
			</control>
		</control>
	</controls>
</window>