Page 2 of 2 FirstFirst 12
Results 16 to 21 of 21

Thread: Minibike Basket Mod - 32 Slot

  1. #16
    Reconstructionist
    Join Date
    Oct 2015
    Posts
    591
    Rep Power
    1
    Code for the Compact design:

    xui.xml:
    Code:
    		<window_group name="vehicle" controller="XUiC_VehicleWindowGroup">
    			<window name="windowVehicleCompact"/>
    			<window name="windowVehicleStatsCompact" />
    			<window name="windowNonPagingHeader" />
    			<window name="windowVehicleCombineRight"/>
    			<window name="windowVehicleStorage32" />
    		</window_group>
    xui\controls.xml:
    Code:
    	<vehicle_part_slotCompact>
    		<rect controller="VehiclePartStack" style="vehicleStackCompact, hover" >
    			<sprite depth="2" name="backgroundMain" sprite="menu_empty3px" pos="-2,3" width="190" height="63" color="[black]" type="sliced" fillcenter="false" />	
    			<sprite name="background" color="[darkGrey]" height="59" pos="0,1" type="sliced"/>
    			<label depth="4" pos="8,-10" width="120" height="28" text="{partname}" font_size="14" justify="left" />
    			<label depth="4" pos="99,-10" width="26" height="28" text="{partquality}" font_size="14" justify="right" />
    			
    			<sprite depth="2" width="118" pos="8, -37" height="10" type="sliced" color="[black]" visible="{partvisible}" foregroundlayer="true" />
    			<sprite depth="2" width="116" pos="9, -38" height="8" type="sliced" color="[mediumGrey]" visible="{partvisible}" foregroundlayer="true" />
    			<sprite depth="2" name="sprFill" width="116" pos="9, -38" height="8" type="filled" color="{partcolor}" fill="{partfill}" visible="{partvisible}" foregroundlayer="true" />
    			
    			<sprite name="itemIcon" depth="4" width="56" height="40" atlas="{partatlas}" sprite="{particon}" pos="156,-30" pivot="center" color="{particoncolor}" foregroundlayer="true" />
    		</rect>
    	</vehicle_part_slotCompact>
    xui\styles.xml:
    Code:
    	<style name="vehicleStackCompact">
    		<style_entry name="background_color" value="[darkGrey]"/>
    		<style_entry name="highlight_color" value="[lightGrey]"/>
    		<style_entry name="width" value="188"/>
    		<style_entry name="height" value="58"/>
    		<style_entry name="hover_icon_grow" value="1.5"/>
    		<style_entry name="on_press" value="true"/>
    		<style_entry name="sound_volume" value="0.75"/>
    		<style_entry name="pickup_sound" value="[pickup_click]"/>
    		<style_entry name="place_sound" value="[place_click]"/>
    	</style>
    loot.xml:
    Code:
    <lootcontainer id="62" count="0" size="4,8" sound_open="UseActions/open_shopping_basket" open_time="0" sound_close="UseActions/close_shopping_basket" loot_quality_template="baseTemplate">
    </lootcontainer>

  2. #17
    Reconstructionist
    Join Date
    Oct 2015
    Posts
    591
    Rep Power
    1
    xui\windows.xml
    Code:
    	<window name="windowVehicleCombineRight" width="304" height="127" panel="Right" cursor_area="true" >
    		<panel style="header.panel">			
    			<sprite style="header.icon" sprite="ui_game_symbol_add"/>
    			<label style="header.name" text="COMBINE" text_key="xuiCombine"/>
    		</panel>
    		
    		<rect pos="0, -47" height="88" width="304" controller="CombineGrid">
    			<sprite depth="2" name="backgroundMain" sprite="menu_empty3px" pos="0,1" width="304" height="88" color="[black]" type="sliced" fillcenter="false" />
    			<sprite name="background" color="[darkGrey]" pos="0,1" type="sliced"/>
    			
    			<grid name="parts" rows="1" cols="3" pos="16,-7" cell_width="100" cell_height="76" repeat_content="true" >
    				<required_item_stack />
    			</grid>
    			<label depth="3" pos="94,-22" text="+" font_size="40"/>
    			<label depth="3" pos="194,-22" text="=" font_size="40"/>
    		</rect>
    	</window>
    
    	<window name="windowVehicleCompact" width="380" height="599" panel="Left" controller="VehicleFrameWindow" cursor_area="true" >
    		<panel name="header" pos="3,0" height="43" depth="1" backgroundspritename="ui_game_panel_header">	
    			<sprite depth="2" name="windowIcon" style="icon32px" pos="5,-5" sprite="ui_game_symbol_minibike"/>
    			<label style="header.name" text="{vehiclenamequality}" />
    			<sprite depth="2" width="112" pos="260, -17" height="10" type="sliced" color="[black]" />
    			<sprite depth="2" width="110" pos="261, -18" height="8" type="sliced" color="[mediumGrey]" />
    			<sprite depth="2" name="sprVehicleQuality" width="110" pos="261, -18" height="8" type="filled" color="{vehiclequalitycolor}" />
    		</panel>
    		
    		<panel name="content" depth="0" pos="0,-43" disableautobackground="true">
    			<sprite color="[darkGrey]" pos="3,-3" height="373" />
    			<sprite depth="2" name="backgroundMain" sprite="menu_empty3px" pos="3,-3" width="380" height="554" color="[black]" type="sliced" fillcenter="false" on_press="true" />	
    			<rect depth="1" pos="3,-3" width="380" height="556">
    
    				<sprite depth="2" name="backgroundMain" sprite="menu_empty3px" width="380" height="75" color="[black]" type="sliced" fillcenter="false" />	
    				<rect pos="3,-3" width="374" height="71">
    					<sprite color="[darkGrey]" type="sliced" />
    					<sprite depth="1" name="windowIcon" style="icon22px" pos="10,-9" sprite="ui_game_symbol_diamond"/>
    					<label depth="3" pos="40,-7" font_size="26" text="{vehiclequalitytitle}: [DECEA3]{vehiclequality}[-]" width="280" height="30"/> 
    					<sprite depth="1" name="windowIcon" style="icon22px" pos="10,-39" sprite="ui_game_symbol_muscle"/>
    					<label depth="3" pos="40,-37" font_size="26" text="{vehicledurabilitytitle}: [DECEA3]{vehicledurability}[-]" width="280" height="30"/>
    				</rect>
    			
    				<rect pos="3,-75" width="374" height="200">
    					<sprite color="[mediumGrey]" type="sliced" />
    					<texture depth="2" name="vehiclePreview" material="Materials/Transparent Colored" size="374,200" />
    				</rect>
    
    				<rect name="btnRepair" depth="3" pos="0, -275" height="41">
    					<sprite depth="4" name="backgroundMain" sprite="menu_empty3px" color="[black]" type="sliced" fillcenter="false" />	
    					<rect depth="3" name="background" pos="3,-3" width="375" height="35">
    						<button name="clickable" sprite="menu_empty" defaultcolor="8,72,72" hoversprite="ui_game_select_row" hovercolor="16,255,255" type="sliced" hoverscale="1.0" />
    						<sprite depth="2" name="windowIcon" width="24" height="24" pos="126,-5" sprite="ui_game_symbol_wrench" color="[black_half_alpha]"/>
    						<sprite depth="2" name="windowIcon" width="24" height="24" pos="124,-5" sprite="ui_game_symbol_wrench" color="[black_half_alpha]"/>
    						
    						<sprite depth="2" name="windowIcon" width="24" height="24" pos="124,-3" sprite="ui_game_symbol_wrench" color="[black_half_alpha]"/>
    						<sprite depth="2" name="windowIcon" width="24" height="24" pos="126,-3" sprite="ui_game_symbol_wrench" color="[black_half_alpha]"/>
    						
    						<sprite depth="2" name="windowIcon" width="24" height="24" pos="125,-4" sprite="ui_game_symbol_wrench"/>
    						<label depth="2" name="windowName" pos="0,-2" justify="center" text="REPAIR" text_key="xuiRepair" font_size="28" />
    					</rect>
    				</rect>
    
    				<grid name="parts" rows="4" cols="2" pos="3,-315" cell_width="188" cell_height="60" repeat_content="true" controller="VehiclePartStackGrid">
    					<vehicle_part_slotCompact />
    				</grid>
    			</rect>
    		</panel>
    	</window>
    
    	<window name="windowVehicleStatsCompact" width="380" height="135" panel="Left" controller="VehicleStats" cursor_area="true" >
    		<panel name="header" pos="3,0" height="43" depth="1" backgroundspritename="ui_game_panel_header">
    			<sprite depth="2" name="windowIcon" style="icon32px" pos="5,-5" sprite="ui_game_symbol_minibike"/>
    			<label style="header.name" text="{vehiclename} {vehiclestatstitle}" />
    		</panel>
    		
    		<rect name="content" depth="0" pos="3,-46" height="94">
    			<sprite depth="4" name="backgroundMain" sprite="menu_empty3px" color="[black]" type="sliced" fillcenter="false" />	
    			<sprite depth="1" color="[darkGrey]" type="sliced" width="380" height="90" pos="0,-3" />
    			<rect depth="2" pos="6,-3">
    
    				<grid name="stats" rows="2" cols="2" pos="3,-7" cell_width="190" cell_height="26" repeat_content="false" >
    					<panel height="26" width="190" disableautobackground="true">
    						<sprite depth="1" name="windowIcon" style="icon22px" pos="2,-2" sprite="ui_game_symbol_speed"/>
    						<label depth="1" width="160" pos="32,-3" name="lblSpeed" font_size="16" text="{speedtitle}: [DECEA3]{speed}m/s ({speedtext})[-]" />
    					</panel>
    					<panel height="26" width="190" disableautobackground="true">
    						<sprite depth="1" name="windowIcon" style="icon22px" pos="2,-2" sprite="ui_game_symbol_noise"/>
    						<label depth="1" width="160" pos="32,-3" name="lblNoise" font_size="16" text="{noisetitle}: [DECEA3]{noise}[-]" />
    					</panel>
    					<panel height="26" width="190" disableautobackground="true">
    						<sprite depth="1" name="windowIcon" style="icon22px" pos="2,-2" sprite="ui_game_symbol_defense"/>
    						<label depth="1" width="160" pos="32,-3" name="lblProtection" font_size="16" text="{protectiontitle}: [DECEA3]{protection}%[-]" />
    					</panel>
    					<panel height="26" width="190" disableautobackground="true">
    						<sprite depth="1" name="windowIcon" style="icon22px" pos="2,-2" sprite="ui_game_symbol_seats"/>
    						<label depth="1" width="160" pos="32,-3" name="lblPassengers" font_size="16" text="{passengerstitle}: [DECEA3]{passengers|once}[-]" />
    					</panel>
    				</grid>
    				<grid name="stats2" rows="1" cols="1" pos="3,-58" cell_width="150" cell_height="26" repeat_content="false" >
    					<panel height="26" width="200" disableautobackground="true">
    						<sprite depth="1" name="windowIcon" style="icon22px" pos="2,-2" sprite="ui_game_symbol_gas"/>
    						<label depth="1" width="60" pos="32,-3" font_size="24" text="{fueltitle}: [DECEA3]{fuel}%[-]" />
    						
    						<sprite depth="2" width="236" pos="110, -6" height="18" type="sliced" color="[black]" />
    						<sprite depth="2" width="234" pos="111, -7" height="16" type="sliced" color="[mediumGrey]" />
    						<sprite depth="2" name="sprFillPotential" width="234" pos="111, -8" height="14" type="filled" color="[beige]" fill="{potentialfuelfill}" />
    						<sprite depth="2" name="sprFuelFill" width="234" pos="111, -7" height="16" type="filled" color="181,57,57" fill="{fuelfill}" />
    					</panel>
    				</grid>
    			</rect>
    
    			<rect name="btnRefuel" depth="3" pos="0, -90" height="41">
    				<sprite depth="4" name="backgroundMain" sprite="menu_empty3px" color="[black]" type="sliced" fillcenter="false" />	
    				<rect depth="3" name="background" pos="2,-3" width="376" height="36">
    					<button name="clickable" sprite="menu_empty" defaultcolor="8,72,72" hoversprite="ui_game_select_row" hovercolor="16,255,255" type="sliced" hoverscale="1.0" />
    					<sprite depth="2" name="windowIcon" width="24" height="24" pos="126,-5" sprite="ui_game_symbol_gas" color="[black_half_alpha]"/>
    					<sprite depth="2" name="windowIcon" width="24" height="24" pos="124,-5" sprite="ui_game_symbol_gas" color="[black_half_alpha]"/>
    						
    					<sprite depth="2" name="windowIcon" width="24" height="24" pos="124,-3" sprite="ui_game_symbol_gas" color="[black_half_alpha]"/>
    					<sprite depth="2" name="windowIcon" width="24" height="24" pos="126,-3" sprite="ui_game_symbol_gas" color="[black_half_alpha]"/>
    						
    					<sprite depth="2" name="windowIcon" width="24" height="24" pos="125,-4" sprite="ui_game_symbol_gas"/>
    					<label depth="2" name="windowName" pos="0,-2" justify="center" text="REFUEL" text_key="xuiRefuel" font_size="28" />
    				</rect>
    			</rect>
    		</rect>
    	</window>
    
    	<window name="windowVehicleStorage32" width="304" height="644" depth="5" anchor="CenterTop" panel="Right" backgroundcolor="[black]" cursor_area="true" >
    		<panel name="header" height="43" depth="1" backgroundspritename="ui_game_panel_header">
    			<button depth="1" name="btnSort" style="icon32px, press, hover" pivot="center" pos="21,-21" sprite="ui_game_symbol_minibike" tooltip_key="lblSortContainer" sound="[paging_click]" />
    			<label style="header.name" text="MINIBIKE STORAGE" text_key="xuiMinibikeStorage" />
    		</panel>
    		
    		<grid depth="2" name="inventory" rows="8" cols="4" pos="3,-49" cell_width="75" cell_height="75" repeat_content="true" controller="VehicleContainer">
    			<item_stack name="0"/>
    		</grid>
    		
    		<panel name="emptyPanel" height="603" depth="4" pos="0,-46" backgroundcolor="[darkGrey]" bordercolor="[black]" visible="false">			
    			<sprite depth="4" name="backgroundMain" sprite="menu_empty3px" color="[black]" type="sliced" fillcenter="false" />	
    			<label pos="0,-180" depth="3" name="descriptionText" width="100%" height="80" text="ADD BASKET TO ACCESS STORAGE." text_key="xuiEmptyVehicleStorage" justify="center" font_size="24"/>			
    		</panel>
    	</window>

  3. #18
    Survivor r1cochet's Avatar
    Join Date
    Apr 2016
    Posts
    62
    Rep Power
    0
    A little side bar but how do i get my notepad to display text the way you guys are displaying it with the indention's etc. My text in notepad is just one line of text. So when editing it's pretty hard to follow. I sure would appreciate the help.

  4. #19
    Tracker
    Join Date
    Mar 2017
    Posts
    150
    Rep Power
    0
    download a free prog called notepad++ https://notepad-plus-plus.org/

  5. #20
    Colony Founder sphereii's Avatar
    Join Date
    Dec 2015
    Posts
    2,870
    Rep Power
    1
    Quote Originally Posted by Data View Post
    download a free prog called notepad++ https://notepad-plus-plus.org/
    Get the 32-bit version ( https://notepad-plus-plus.org/reposi....Installer.exe ), which will give you easy access to the Plugin Manager ( "Plugins" menu, then "Plugin Manager" sub-menu, then Plugin Managers ). Do all the updates, then look for "XML Tools". It'll help a lot.

  6. #21
    Survivor r1cochet's Avatar
    Join Date
    Apr 2016
    Posts
    62
    Rep Power
    0
    OH man that is sooo much better. You guys are the best. Thank you

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •