Jump to content
Sign in to follow this  
You need to play a total of 5 battles to post in this section.
MatroseFuchs

[FAQ] Icon modification "Detect Indicator"

1 comment in this topic

Recommended Posts

Administrator
80 posts
22 battles

Hi, everyone!

In this topic We’d like to explain how to change visibility icons in battle interface.

From this (default view)

IconVisibilityVolley IconVisibilityShip IconVisibilityPlane IconVisibilityRLS IconVisibilitySonar IconVisibilityCommonXray

c06ad38119bb172237104627d01a1e24.png

1330b0c8c578352a14ca0fa12fc4bb01.png

b48b61017222443d50d4370995aee647.png

a510c4128c6aa8ba606449f97f832d09.png

7f1154ce9e6c18a174f8249900441975.png

d8667744cbb9fd0a5b12b30b8f0a9846.png

To this (these icons are used as an example):

IconVisibilityVolley IconVisibilityShip IconVisibilityPlane IconVisibilityRLS IconVisibilitySonar IconVisibilityCommonXray

7739267e76542e32b7c391c2f108323b.png

2fb2b9b2045d0146ca5470aa1425a831.png

fb7bd0dc1321232e9a110f1e1c00ec6a.png

4efbbfe95ccb0d86a6aba9de5a1940bd.png

f1cc1adf669ed01498cdd270e9ec98aa.png

c97eecfe1b1fd8ec629029c90cdb3c02.png

 

The collection contains more than six clips, here’s the full list of events triggering the display of info icons:

  • IconVisibilityFightersWarning
  • IconVisibilityFightersCritical
  • IconVisibilityAntiAir
  • IconVisibilityVolley
  • IconVisibilityShip
  • IconVisibilityPlane
  • IconVisibilityRadar
  • IconVisibilityAircarrierAttacked
  • IconVisibilityRLS
  • IconVisibilitySonar
  • IconVisibilityCommonXray

First step is to prepare the future icons in the required size. Icons should be created in *.PNG (preferably already optimized for lesser file size).

Them using the client unpack tool unpack the file: World_of_Warships/res_unpack/gui/unbound/main_hud_pc.xml

In the main_hud_pc.xml search for required event, for example, being spotted by enemy ship:

	<block className="IconVisibilityShip">
		<style>
			<width value="6px"/>
			<height value="24px"/>
			<backgroundImage value="symbol:icon_visibility_ship"/>
		</style>
	</block>

 

This block sets the main (defaults) parameter for the image:

<width value="6px"/> image width

<height value="24px"/> image length

<backgroundImage value="symbol:icon_visibility_ship"/> location in depository (in this example – in hud_lib.swf file)

 

Assume you have an image with 70x70 pixels size Changing the lenght nad width paremeters accordingly in the block:

<width value="70px"/>

<height value="70px"/>

 

Then you need to put the path to the external depository where the image is stored where the game will be taking this image from.

Assume you have it stored in res_mods/<game_version>/gui/VisibilityItemsClip - then we need to put the path to this directory (VisibilityItemsClip):

<backgroundImage value="url:../VisibilityItemsClip/IconVisibilityShip.png"/>

 

In the end the changed block will look like this:

	<block className="IconVisibilityShip">
		<style>
			<width value="70px"/>
			<height value="70px"/>
			<backgroundImage value="url:../VisibilityItemsClip/IconVisibilityShip.png"/>
		</style>
	</block>

 

Save the changed file in according folder World_of_Warships/res_mods/<game_version>/gui/unbound/main_hud_pc.xml

4d3b000f32357b09eb06aabe724aab35.png

add folder with your images World_of_Warships/res_mods/<game_version>/gui/VisibilityItemsClip

4f6bf502a515121bc74e13c0a4873ef2.png

 

Log in to battle and see the results!

29cf01ebf27aca5db3710a4a5c7052ad.png

Share this post


Link to post
Share on other sites
Sign in to follow this  

×