<Drconfused_Power_Series1>

<set xpath="/windows/window[@name='windowPowerSourceSlots']/@height">273</set>

<set xpath="/windows/window[@name='windowPowerSourceSlots']/rect[@name='content']/@height">228</set> <!-- seems to make the first unit that has its items placed in the three extra slots overrides all other units, it sits in a buffer essentially and allows you to dupe it from the other units.	-->
<set xpath="/windows/window[@name='windowPowerSourceSlots']/rect[@name='content']/sprite/@height">228</set> 

<set xpath="/windows/window[@name='windowPowerSourceSlots']/rect[@name='content']/grid[@name='inventory']/@rows">3</set>


</Drconfused_Power_Series1>



<!--		
			All this code did was make the icons move closer together, made everything look like crap and out of alignment from the background
	<set xpath="/windows/window[@name='windowPowerSourceSlots']/rect[@name='content']/grid[@name='inventory']/@cell_width">50</set>

	<set xpath="/windows/window[@name='windowPowerSourceSlots']/rect[@name='content']/grid[@name='inventory']/@cell_height">50</set>
-->

<!--
		If adding a row than we need to inform the system of the added height.	
			Try changing the rect name="content" height to 228 from 153
			  75x5 + 3 = 378
			  75x4 + 3 = 303
			  75x3 + 3 = 228
			  75x2 + 3 = 153
			  75x1 + 3 = 78
			  
			  198 - 153 = 45
		
		My assumption is that the WindowPowerSourceSlots needs to mathematically work out in its height range overall.
			Header.panel = where the word Slots is and the electric symbol
			content 
			274
-->
<!--			  
	 in order to make this work the math has to align with the proper controls.
		<required_item_stack> in the controls.xml must be consulted to formulate the proper recipe to add a row of power source slots.
		
		
<append xpath="/windows">
<window name="DrswindowPowerSourceSlots" width="228" height="198" anchor="CenterTop" panel="Left" cursor_area="true">
	<panel style="header.panel">
		<sprite depth="2" name="windowIcon" style="icon32px" pos="5,-5" sprite="ui_game_symbol_electric_power"/>
		<label style="header.name" text="SLOTS" text_key="xuiSlots" />
	</panel>

	<rect name="content" depth="0" pos="0,-46" height="153" disablefallthrough="true" on_press="true"> 
	
		<sprite depth="2" name="background" sprite="menu_empty" color="[darkGrey]" type="sliced" />
		
		<sprite depth="2" name="backgroundMain" sprite="menu_empty3px" height="153" color="[black]" type="sliced" fillcenter="false" on_press="true" />
		
			<grid name="inventory" rows="3" cols="3" pos="3,-3" cell_width="75" cell_height="75" repeat_content="true" controller="PowerSourceSlots">
				<required_item_stack name="0"/>
			</grid>
	</rect>
</window>
</append>
-->

<!--		ORIGINAL

<window name="windowPowerSourceSlots" width="228" height="198" anchor="CenterTop" panel="Left" cursor_area="true">
	
	<panel style="header.panel">
		
		<sprite depth="2" name="windowIcon" style="icon32px" pos="5,-5" sprite="ui_game_symbol_electric_power"/>
		<label style="header.name" text="SLOTS" text_key="xuiSlots" />
	</panel>


	<rect name="content" depth="0" pos="0,-46" height="153" disablefallthrough="true" on_press="true">
		
		<sprite depth="2" name="background" sprite="menu_empty" color="[darkGrey]" type="sliced" />
			
		<sprite depth="2" name="backgroundMain" sprite="menu_empty3px" height="153" color="[black]" type="sliced" fillcenter="false" on_press="true" />
			
			<grid name="inventory" rows="2" cols="3" pos="3,-3" cell_width="75" cell_height="75" repeat_content="true" controller="PowerSourceSlots">
				
				<required_item_stack name="0"/>
			</grid>
	</rect>
</window>



	<window name="windowNonPagingHeader" controller="WindowNonPagingHeader" style="nonpaging.window">
		<sprite style="paging.window.background.border"/>
		<sprite style="nonpaging.window.background"/>
		<sprite style="nonpaging.window.name.background"/>
		<sprite style="nonpaging.window.name.foreground"/>
		<label style="nonpaging.window.name"/>
		
	<style name="paging.window.background.border" type="sprite">
		<style_entry name="depth" value="0"/>
		<style_entry name="sprite" value="ui_game_header_fill"/>
		<style_entry name="type" value="sliced"/>
		<style_entry name="color" value="[black]"/>
	</style>
	
	<style name="nonpaging.window.background" type="sprite">
		<style_entry name="depth" value="1"/>
		<style_entry name="sprite" value="ui_game_header_fill"/>
		<style_entry name="type" value="sliced"/>
		<style_entry name="size" value="394,37"/>
		<style_entry name="pos" value="3,-3"/>
		<style_entry name="color" value="[lightGrey]"/>
	</style>
	
	<style name="nonpaging.window.name.background" type="sprite">
		<style_entry name="depth" value="2"/>
		<style_entry name="sprite" value="ui_game_header_insert"/>
		<style_entry name="type" value="sliced"/>
		<style_entry name="pivot" value="center"/>
		<style_entry name="size" value="250,38"/>
		<style_entry name="pos" value="200,-21"/>
		<style_entry name="color" value="[black]"/>
	</style>
	
	<style name="nonpaging.window.name.foreground" type="sprite">
		<style_entry name="depth" value="3"/>
		<style_entry name="sprite" value="ui_game_header_fill_gradient"/>
		<style_entry name="type" value="sliced"/>
		<style_entry name="pivot" value="center"/>
		<style_entry name="size" value="200,38"/>
		<style_entry name="pos" value="200,-21"/>
		<style_entry name="color" value="[white_half_alpha]"/>
	</style>
	
	<style name="nonpaging.window.name" type="label">
		<style_entry name="depth" value="4"/>
		<style_entry name="font_size" value="36"/>
		<style_entry name="pivot" value="center"/>
		<style_entry name="justify" value="center"/>
		<style_entry name="pos" value="200,-20"/>
		<style_entry name="name" value="lblWindowName"/>
	</style>
		
	
	
	
	
-->



