Jump to content

Minibike Basket Mod - 32 Slot


Numberz

Recommended Posts

Yup. Yet another Minibike Basket Mod. Basically, just a 32 slot basket mod for the minibike.

 

No DLL required as the base game already has a 32 slot table for the minibike basket. This means there is no risk of losing items between sessions.

 

minibike.jpg.761bd74c8390fc377ef813d9e6200b3c.jpg

 

Replace the windowVehicle, windowVehicleStats, and windowVehicleStorage in the XUi\Windows.xml with the following:

 

<!--#$-IGS BEGIN: Adding cursor area. -$#-->
<window name="windowVehicle" width="380" height="733" panel="Left" controller="VehicleFrameWindow" cursor_area="true" >  
<!--#$-IGS END.-$#-->
	<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="613" />
		<sprite depth="2" name="backgroundMain" sprite="menu_empty3px" pos="3,-3" width="380" height="733" color="[black]" type="sliced" fillcenter="false" on_press="true" />	
		<rect depth="1" pos="3,-3" width="380" height="739">

			<rect pos="3,-3" width="374" height="218">
				<sprite color="[mediumGrey]" type="sliced" />
				<texture depth="2" name="vehiclePreview" material="Materials/Transparent Colored" size="374,218" />
				<label depth="3" pos="14,-20" font_size="26" text="{vehiclequalitytitle}: [DECEA3]{vehiclequality}[-]" width="200" height="30"/> 
				<label depth="3" pos="14,-50" font_size="26" text="{vehicledurabilitytitle}: [DECEA3]{vehicledurability}[-]" width="200" height="30"/>
			</rect>

			<grid name="parts" rows="8" cols="1" pos="3,-222" cell_width="374" cell_height="60" repeat_content="true" controller="VehiclePartStackGrid">
				<vehicle_part_slot />
			</grid>

			<rect name="btnRepair" depth="3" pos="0,-698" 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="[mediumGrey]" hoversprite="ui_game_select_row" hovercolor="[white]" type="sliced" hoverscale="1.0" />
					<sprite depth="2" name="windowIcon" width="24" height="24" pos="126,-4" sprite="ui_game_symbol_wrench" color="[black_half_alpha]"/>
					<sprite depth="2" name="windowIcon" width="24" height="24" pos="124,-4" sprite="ui_game_symbol_wrench" color="[black_half_alpha]"/>

					<sprite depth="2" name="windowIcon" width="24" height="24" pos="124,-2" sprite="ui_game_symbol_wrench" color="[black_half_alpha]"/>
					<sprite depth="2" name="windowIcon" width="24" height="24" pos="126,-2" sprite="ui_game_symbol_wrench" color="[black_half_alpha]"/>

					<sprite depth="2" name="windowIcon" width="24" height="24" pos="125,-3" 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>
		</rect>

	</panel>
</window>

<!--#$-IGS BEGIN: Adding cursor area. -$#-->
<window name="windowVehicleStats" width="304" height="133" panel="Right" controller="VehicleStats" cursor_area="true" >
<!--#$-IGS END.-$#-->
	<panel name="header" 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="0,-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="304" height="90" pos="0,-3" />
		<rect depth="2" pos="6,-3">
			<grid name="stats" rows="2" cols="2" pos="3,-3" cell_width="150" cell_height="26" repeat_content="false" >
				<panel height="26" width="150" disableautobackground="true">
					<sprite depth="1" name="windowIcon" style="icon22px" pos="2,-2" sprite="ui_game_symbol_speed"/>
					<label depth="1" width="140" pos="27,-3" name="lblSpeed" font_size="16" text="{speedtitle}: [DECEA3]{speed}m/s ({speedtext})[-]" />
				</panel>
				<panel height="26" width="150" disableautobackground="true">
					<sprite depth="1" name="windowIcon" style="icon22px" pos="2,-2" sprite="ui_game_symbol_noise"/>
					<label depth="1" width="140" pos="27,-3" name="lblNoise" font_size="16" text="{noisetitle}: [DECEA3]{noise}[-]" />
				</panel>
				<panel height="26" width="150" disableautobackground="true">
					<sprite depth="1" name="windowIcon" style="icon22px" pos="2,-2" sprite="ui_game_symbol_defense"/>
					<label depth="1" width="140" pos="27,-3" name="lblProtection" font_size="16" text="{protectiontitle}: [DECEA3]{protection}%[-]" />
				</panel>
				<panel height="26" width="150" disableautobackground="true">
					<sprite depth="1" name="windowIcon" style="icon22px" pos="2,-2" sprite="ui_game_symbol_seats"/>
					<label depth="1" width="140" pos="27,-3" name="lblPassengers" font_size="16" text="{passengerstitle}: [DECEA3]{passengers|once}[-]" />
				</panel>
			</grid>
			<grid name="stats2" rows="1" cols="1" pos="73,-56" 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="100" pos="40,-2" font_size="24" text="{fueltitle}: [DECEA3]{fuel}%[-]" />

					<sprite depth="2" width="100" pos="115, -6" height="18" type="sliced" color="[black]" />
					<sprite depth="2" width="98" pos="116, -7" height="16" type="sliced" color="[mediumGrey]" />
					<sprite depth="2" name="sprFillPotential" width="98" pos="116, -8" height="14" type="filled" color="[beige]" fill="{potentialfuelfill}" />
					<sprite depth="2" name="sprFuelFill" width="98" pos="116, -7" height="16" type="filled" color="181,57,57" fill="{fuelfill}" />
				</panel>
			</grid>
		</rect>
		<rect name="btnRefuel" depth="3" pos="0, -59" width="110" height="34" >
			<sprite depth="8" name="backgroundMain" sprite="menu_empty3px" color="[black]" type="sliced" fillcenter="false" />	
			<sprite depth="2" name="background" pos="3,-3" sprite="menu_empty" width="103" height="30" color="[darkGrey]" type="sliced" />
			<rect depth="3" pos="1,-3" width="107" height="30">
				<button name="clickable" sprite="menu_empty" defaultcolor="[mediumGrey]" hoversprite="ui_game_select_row" hovercolor="[white]" type="sliced" hoverscale="1.0" />
				<sprite depth="2" name="windowIcon" width="24" height="24" pos="6,-3" sprite="ui_game_symbol_gas" color="[black_half_alpha]"/>
				<sprite depth="2" name="windowIcon" width="24" height="24" pos="4,-3" sprite="ui_game_symbol_gas" color="[black_half_alpha]"/>

				<sprite depth="2" name="windowIcon" width="24" height="24" pos="4,-1" sprite="ui_game_symbol_gas" color="[black_half_alpha]"/>
				<sprite depth="2" name="windowIcon" width="24" height="24" pos="6,-1" sprite="ui_game_symbol_gas" color="[black_half_alpha]"/>

				<sprite depth="2" name="windowIcon" width="24" height="24" pos="5,-2" color="[iconColor]" sprite="ui_game_symbol_gas"/>
				<label depth="2" name="windowName" pos="8,-2" justify="center" text="REFUEL" text_key="xuiRefuel" font_size="24" />
			</rect>
		</rect>
	</rect>
</window>

<!--#$-IGS BEGIN: Adding cursor area. -$#-->
<window name="windowVehicleStorage" width="304" height="644" depth="5" anchor="CenterTop" panel="Right" backgroundcolor="[black]" cursor_area="true" >
<!--#$-IGS END.-$#-->
	<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,-43" cell_width="75" cell_height="75" repeat_content="true" controller="VehicleContainer">
		<item_stack name="0"/>
	</grid>

	<panel name="emptyPanel" height="600" depth="4" pos="0,-43" 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>

 

and update the basket size in the loot.xml:

 

<!-- minibike storage -->
<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>

Link to comment
Share on other sites

I tried it but did not work! I got no errors just will not give me the slots!

 

Any minbike storage mod that is applied to an already existing mini bike will require the bike to be disassembled, frame picked up then placed again and then reassemble the bike.

 

The slots should now be there for you.

Link to comment
Share on other sites

Any minbike storage mod that is applied to an already existing mini bike will require the bike to be disassembled, frame picked up then placed again and then reassemble the bike.

 

The slots should now be there for you.

 

You are awesome i thought all you had to do was just take out the basket!!

THX

Link to comment
Share on other sites

  • 5 weeks later...
So I tried this and pickup the frame and reassembled the bike however its gives me a 3 x 8 not a 4x8 which I clearly set in the loot.xml.

 

any suggestions?

 

Check to make sure you don't have any multiple copies of any of windowVehicle, windowVehicleStats, and windowVehicleStorage in the windows.xml.

Also, if you are playing on a server, the server would have to also have these changes for it to work on a client.

Link to comment
Share on other sites

I just had to change the Loot.xml for the minibike and the storage boxes and it works.

 

<!-- minibike storage -->
<lootcontainer id="62" count="0" size="[color="#FF0000"]9,11[/color]" sound_open="UseActions/open_shopping_basket" open_time="0" sound_close="UseActions/close_shopping_basket" loot_quality_template="baseTemplate">
</lootcontainer>

 

 

<!-- empty, storage containers the player crafts-->
<lootcontainer id="10" count="0" size="[color="#FF0000"]14,10[/color]" sound_open="UseActions/open_chest" sound_close="UseActions/close_chest" loot_quality_template="baseTemplate">
<item name="cobweb" count="1,2"/>
</lootcontainer>
[/Code]

 

Of course, this change also depends on the resolution. My players wanted larger backpacks, so no problem, you have to be careful and adjust the windows.

 

You only need to change a few numbers

 

:D

Link to comment
Share on other sites

Just wanting to make sure, but this will work with Starvation without issue right? Wanting to add this and the BBM to my Starvation server.

 

These are nothing more than some simple, freely provided xml edits. Nevertheless, as with all such mods, you use them at your own risk/discretion. Just be aware that the Starvation team is unlikely to support any foreign code introduced into their mod, whether it is this or BBM.

Link to comment
Share on other sites

  • 2 months later...

Code for above design...

 

xui.xml:

	<window_group name="vehicle" controller="XUiC_VehicleWindowGroup">
		<window name="windowVehicleStatsFull" />
		<window name="windowVehicleFull"/>
		<window name="windowNonPagingHeader" />
		<window name="windowVehicleCombineRight"/>
		<window name="windowVehicleStorage32" />
	</window_group>

 

xui\controls.xml:

<vehicle_part_slotFull>
	<rect controller="VehiclePartStack" style="vehicleStackFull, hover" >
		<sprite depth="2" name="backgroundMain" sprite="menu_empty3px" pos="-3,3" width="380" height="49" color="[black]" type="sliced" fillcenter="false" />	
		<sprite name="background" color="[darkGrey]" height="45" pos="0,1" type="sliced"/>
		<label depth="4" pos="16,-5" width="250" height="28" text="{partname}" font_size="18" justify="left" />
		<label depth="4" pos="229,-5" width="50" height="28" text="{partquality}" font_size="18" justify="right" />

		<sprite depth="2" width="265" pos="15, -28" height="8" type="sliced" color="[black]" visible="{partvisible}" foregroundlayer="true" />
		<sprite depth="2" width="263" pos="16, -29" height="6" type="sliced" color="[mediumGrey]" visible="{partvisible}" foregroundlayer="true" />
		<sprite depth="2" name="sprFill" width="263" pos="16, -29" height="6" type="filled" color="{partcolor}" fill="{partfill}" visible="{partvisible}" foregroundlayer="true" />

		<sprite name="itemIcon" depth="4" width="49" height="35" atlas="{partatlas}" sprite="{particon}" pos="330,-21" pivot="center" color="{particoncolor}" foregroundlayer="true" />
	</rect>
</vehicle_part_slotFull>

 

xui\styles.xml:

<style name="vehicleStackFull">
	<style_entry name="background_color" value="[darkGrey]"/>
	<style_entry name="highlight_color" value="[lightGrey]"/>
	<style_entry name="width" value="374"/>
	<style_entry name="height" value="44"/>
	<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:

<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>

Link to comment
Share on other sites

xui\windows.xml

<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="windowVehicleFull" width="380" height="782" panel="Left" controller="VehicleFrameWindow" cursor_area="true" >  

	<panel name="header" pos="3,192" 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>

	<rect depth="2" pos="9,145">
		<grid name="stats" rows="1" cols="2" pos="3,-5" 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_diamond"/>
				<label depth="1" width="160" pos="32,-3" font_size="16" text="{vehiclequalitytitle}: [DECEA3]{vehiclequality}[-]"/> 
			</panel>
			<panel height="26" width="190" disableautobackground="true">
				<sprite depth="1" name="windowIcon" style="icon22px" pos="2,-2" sprite="ui_game_symbol_muscle"/>
				<label depth="1" width="160" pos="32,-3" font_size="16" text="{vehicledurabilitytitle}: [DECEA3]{vehicledurability}[-]"/>
			</panel>
		</grid>
	</rect>

	<panel name="content" depth="0" pos="0,0" disableautobackground="true">
		<sprite color="[darkGrey]" pos="3,-3" height="583" />
		<sprite depth="4" name="backgroundMain" sprite="menu_empty3px" pos="3,-3" width="380" height="589" color="[black]" type="sliced" fillcenter="false" on_press="true" />	
		<rect depth="1" pos="3,-3" width="380" height="589">

			<rect pos="3,-2" width="374" height="180">
				<sprite color="[mediumGrey]" type="sliced" />
				<texture depth="2" name="vehiclePreview" material="Materials/Transparent Colored" size="374,180" />
			</rect>

			<rect name="btnRepair" depth="3" pos="0,-182" height="38">
				<sprite depth="4" name="backgroundMain" sprite="menu_empty3px" color="[black]" type="sliced" fillcenter="false" />	
				<rect depth="3" name="background" pos="2,-3" width="375" height="34">
					<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,-4" sprite="ui_game_symbol_wrench" color="[black_half_alpha]"/>
					<sprite depth="2" name="windowIcon" width="24" height="24" pos="124,-4" sprite="ui_game_symbol_wrench" color="[black_half_alpha]"/>

					<sprite depth="2" name="windowIcon" width="24" height="24" pos="124,-2" sprite="ui_game_symbol_wrench" color="[black_half_alpha]"/>
					<sprite depth="2" name="windowIcon" width="24" height="24" pos="126,-2" sprite="ui_game_symbol_wrench" color="[black_half_alpha]"/>

					<sprite depth="2" name="windowIcon" width="24" height="24" pos="125,-3" sprite="ui_game_symbol_wrench"/>
					<label depth="2" name="windowName" pos="0,-1" justify="center" text="REPAIR" text_key="xuiRepair" font_size="28" />
				</rect>
			</rect>

			<grid name="parts" rows="8" cols="1" pos="3,-221" cell_width="374" cell_height="46" repeat_content="true" controller="VehiclePartStackGrid">
				<vehicle_part_slotFull />
			</grid>

		</rect>

	</panel>
</window>


<window name="windowVehicleStatsFull" width="380" height="184" panel="Left" controller="VehicleStats" cursor_area="true" >

	<rect name="content" depth="0" pos="3,-46" height="118">
		<sprite depth="4" name="backgroundMain" sprite="menu_empty3px" color="[black]" type="sliced" fillcenter="false" />	
		<sprite depth="1" color="[darkGrey]" type="sliced" width="380" height="116" pos="0,-2" />
		<rect depth="2" pos="6,-1">

			<grid name="stats" rows="3" cols="2" pos="3,-5" cell_width="190" cell_height="26" repeat_content="false" >
				<panel height="26" width="190" disableautobackground="true">
				</panel>
				<panel height="26" width="190" disableautobackground="true">
				</panel>
				<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,-82" 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,-114" height="38">
			<sprite depth="4" name="backgroundMain" sprite="menu_empty3px" color="[black]" type="sliced" fillcenter="false" />	
			<rect depth="3" name="background" pos="2,-2" width="376" height="34">
				<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>

Link to comment
Share on other sites

Code for the Compact design:

 

xui.xml:

	<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:

<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:

<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:

<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>

Link to comment
Share on other sites

xui\windows.xml

<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>

Link to comment
Share on other sites

  • 5 months later...

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.

Link to comment
Share on other sites

download a free prog called notepad++ https://notepad-plus-plus.org/

 

Get the 32-bit version ( https://notepad-plus-plus.org/repository/7.x/7.5.6/npp.7.5.6.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.

Link to comment
Share on other sites

  • 1 month later...
  • 2 weeks later...
What part is this code for the compact xui\windows.xml suppose to replace? I managed to find the section to replace on all of them except the last one. What am I missing?

 

No need. The “vehicle” window called from the xui.xml calls the new window sections instead of the vanilla ones.

Link to comment
Share on other sites

No need. The “vehicle” window called from the xui.xml calls the new window sections instead of the vanilla ones.

 

Oh crap. lol I think I just replaced the section I thought it was. So far everything seems to run fine. Should I fix it back? lol Thinking I shoulda waited for the reply. Definitely a Homer Simpson moment right now. Doh!!!! Lmao!!!!:boxing::stupid:

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...