In Star Trek: Armada a great many functions are triggered by basically clicking on a button, like triggering a construction command in a yard or using a special weapon.
All buttons come in one of the following five different forms:
Form | Type/Usage |
---|---|
![]() | Offensive: This type is used for weapons that deal damage to opponents or attack them in some fashion. |
![]() | Passive/Defensive: This type is used for special weapons, that deal no damage (by themselves) or might even be beneficial to the target. |
![]() | Command: This type is used for functions, that are issued, e.g. moving a unit somewhere or open the construction menu. Everything that is not a weapon of sorts of a construction item should use this template. |
![]() | Construction: This type issues the construction of an actual ship or station. |
![]() | Construction quadruple: Basically the same as the Construction type, but storing four button images at the same time. Sprites may use them, instead of using the entire image for one button. |
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 Textures\RGB, where you can find examples. Also your modded button image files have to go there.
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 Holding Beam) or use a commonly known symbolism (e.g. the stop sign for making a unit stop moving). These are not described here.
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 Storm 3D or similar model viewers. For this section it is assumed you use Storm 3D and have the SOD file already at hand/finished, including texturing your model and placed in the SOD folder of your Armada installation. You can use other model viewing means, such as actual model editors as well, to get the unit/station image to work with.
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.
Your new button image is now ready to be used for a button sprite in file Sprites\gui_global.spr. If you are not yet familiar with how sprite files work, check out the article Sprites first.
Button sprite names are preceded by b_
, followed by the name of the ODF file of the unit, station or special weapon, that it is used for, but leaving out the .odf extension. E.g. when your new ship is defined in the file fgalaxy.odf, the button is named b_fgalaxy
. The rest follows the general sprite concept. Example:
@reference=64 b_fgalaxy gbgalaxy 0 0 64 64
[ Back to Modding ]