How change gui position + who created this button?

The best Modding forum in the Armada community, some of the best modders come here.

Moderators: MrVulcan, thunderchero

Post Reply
Ali
Cadet 1st Year
Cadet 1st Year
Posts: 3
Joined: Sat Dec 17, 2016 3:18 pm

How change gui position + who created this button?

Post by Ali » Sun Jan 15, 2017 12:55 pm

Hello everybody.

1.) I have almost finished my mod and wanted to publish it, but I don't know, who created this buildbutton (galaxy class) for Armada 1. I need that information for the credits. The tga-file is attached. Does anyone know who created it?
I remember I renamed it, but i don't remember the original name of the file.

2.) I tried to move a gui-window to the left:
folder: Armada/misc/gui_fed.cfg
For example the dilithium panel in the top right corner. I was able to make it more slim in x-direction, but not more wide. And I couldn't change the starting position.
from
dilithiumPanelArea = 495 0 81 16
to
dilithiumPanelArea = 295 0 41 16

Is the starting position hardcoded?
Attachments
Fentd.tga.zip
(3.99 KiB) Downloaded 25 times
Modding is not about creating ships, it's about creating fun! :D

User avatar
MrVulcan
Site Administrator aka Fleet Admiral
Site  Administrator aka Fleet Admiral
Posts: 659
Joined: Fri Apr 25, 2003 2:00 am
Location: TO CA

Re: How change gui position + who created this button?

Post by MrVulcan » Mon Jan 16, 2017 12:20 pm

1) Not sure.. Why not make your own? Buttons are an easy thing to start with, and bit of pixel pushing skills can be helpful anywhere ;)

2) You correctly identified the line that needs to be modified. "dilithiumPanelArea" specifies the invisible background which defines the area of a GUI component with which you can interact. There are two more components that you need to modify: the graphics overlays "dilithiumBackgroundPanelArea" (black background) and "dilithiumBackgroundPanel_0" (the tga texture)

For dilithiumPanelArea, the first two numbers are the x and y coordinates from the top left corner of the screen to the top-left corner of the dilithium panel. These are NOT hardcoded elsewhere, but they are saved per "user" configuration. You can reset the user gui config via some hotkey combination, which I have forgotten, but you can figure out what it is from the hotkeys file. Another way to reset these is to delete the Armada.prf file in the game directory, which will force the game to recreate all game settings.

For more extensive modifications, you would have to edit the corresponding entry in the "gui_federation.spr" file. In the .cfg file you are only changing the gui areas, but not how the actual texture is mapped onto those areas.

Post Reply

Who is online

Users browsing this forum: No registered users and 26 guests