en:games:star_trek_armada_1:modding:buttons
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
en:games:star_trek_armada_1:modding:buttons [2025-03-03-19-06] – created 7saturn | en:games:star_trek_armada_1:modding:buttons [2025-03-03-20-26] (current) – [Creating a Button Image] 7saturn | ||
---|---|---|---|
Line 13: | Line 13: | ||
All of them are meant to be stored as **uncompressed** TGA files and of course require some sort of pictograph indicating their function. Their color depth is 24 bit and the size of one button is 64 pixels x 64 pixels (double of course for the quad button files). They are stored in the folder // | All of them are meant to be stored as **uncompressed** TGA files and of course require some sort of pictograph indicating their function. Their color depth is 24 bit and the size of one button is 64 pixels x 64 pixels (double of course for the quad button files). They are stored in the folder // | ||
+ | |||
+ | ===== Creating a Button Image ===== | ||
+ | As said in the above section, buttons require some sort of pictograph, to convey what their function is, or to distinguish them from the other buttons. For Offensive, Defensive and Command buttons, the pictograph is not necessarily something that comes from the game itself. The stock images very often have some sort of pictograph that optically resembles what they do (e.g. the green rays of the [[..: | ||
+ | |||
+ | However, the construction buttons in particular are usually following the concept of depicting the unit or station they are supposed to build, including research buttons issuing construction of their corresponding research pod. Specifically for the ships, there are means to create them relatively easy, by means of [[..: | ||
+ | |||
+ | - Start //Storm 3D// and hit the < | ||
+ | - Hit the < | ||
+ | - Place it by hitting < | ||
+ | - Load the SOD file of your model and again place it with < | ||
+ | - You can now turn your model freely in the 3D space. Adjust them: | ||
+ | * For buttons looking similar to the stock button images, turn ships in a way, that their stern is facing the upper left corner, while the bow is facing the lower right corner. The top of the ship should face the viewer (you can see it's entire top). See examples placed in // | ||
+ | * Stations on the other hand are often shown in a fashion where they are tilted slightly towards the viewer, so that you can see a small part of their top while the majority of the seen parts if one of their surface facing sideways. | ||
+ | - Adjust the team color: Many ships and stations have parts of their model colored differently. This is where the team color will be applied, to make ships or stations of the same kind but different factions distinguishable in terms of faction/ | ||
+ | - De-select the ship model by pressing < | ||
+ | - Use your OS' means to create a screenshot. That may be the < | ||
+ | - Paste the image into your favorite graphics editor (or open the resulting file in it). If your are satisfied with the image you have created so far, you can close //Storm 3D//. It is not required for the remaining steps. | ||
+ | - Crop the image so that the ship is still in one piece, surrounded by a small black border (it should have some padding), **eventually fitting a square**. Example: {{ : | ||
+ | - Resize the image to 48 pixels x 48 pixels. This is just enough to fit well into the button templates from above. | ||
+ | - If you want to, apply filters, e.g. softening, to improve the image quality (48 x 48 can give a very edgy result). | ||
+ | - The next step may depend on your graphics editor: Remove the strictly black background. (This is what placing the black background in one of the former steps is helping you with.) Some editors allow for automatic selection of parts of the same color and subsequent deletion or replacement with another color. Others only allow for replacing a specific color with another. The result should be **the ship alone, before a transparent background** or alternatively **only** the ship marked, not it's surroundings, | ||
+ | - Copy the proper button template (see [[# | ||
+ | - Copy the just created ship or station image onto the new (still empty) button template. Position it in a way, that it is roughly centered in the white space of the button. Example: {{ : | ||
+ | - Save your resulting image as an **uncompressed** TGA file, to folder // | ||
+ | |||
+ | You can in theory use higher resolutions here as well (e.g. 128 x 128) but it is uncommon. (But may yield better results on modern hardware with high resolution settings.) If you do, the above sizes of course have to be adapted. It makes little sense to create a 128 pixel x 128 pixel button image based on a 48 pixels x 48 pixels ship image. | ||
+ | ===== Adding the Sprite ===== | ||
+ | Your new button image is now ready to be used for a button [[Sprites|sprite]] in file // | ||
+ | |||
+ | Button sprite names are preceded by '' | ||
+ | |||
+ | < | ||
+ | @reference=64 | ||
+ | b_fgalaxy gbgalaxy 0 0 64 64 | ||
+ | </ | ||
{{page> | {{page> | ||
[\_[[..: | [\_[[..: |
en/games/star_trek_armada_1/modding/buttons.1741028797.txt.gz · Last modified: 2025-03-03-19-06 by 7saturn