Those working on this mod do so in their own free time and for no pay.
Show your support for them by enabling ads on this site!

- Chatbox: For random chatting, mod questions/suggestions go in the actual forums.

Author Topic: GUI Mod Questions  (Read 592 times)

0 Members and 1 Guest are viewing this topic.

August 12, 2020, 08:08:03 PM

Offline rambleman2033

  • Recruit
  • *
  • Posts: 1
  • Approval: +0/-0
    • View Profile
GUI Mod Questions
« on: August 12, 2020, 08:08:03 PM »
From what I understand (and could be wrong about):

1) Images for all the GUI buttons are stored in the Mt_Commandbar.tga and Mt_Commandbar.mtd files.
2) The GUI button functions are defined in the commandbarcomponents.xml file.
3) The new GUI buttons are coded as filters, not the actual space and land tabs. So the filter buttons for Capital, Frigate, Structure, and Story are physically positioned over the top of the space tab in TR...?

How does the game define where the .tga button images are placed on the GUI?  Is it possible to add more filters for the land tab as was done for Space?  I've spent the last few days looking through files trying to trace everything before asking for help and have finally hit a wall.  I would love to know more about how this was done, what the limitations are, and why.  Thank you for your time.  I admire your (TR team's) work very much.

August 13, 2020, 01:54:17 PMReply #1

Offline Slornie

  • Mod Team Member
  • Moff
  • ****
  • Posts: 2,758
  • Approval: +54/-13
  • Every Silver Lining has a Cloud
    • View Profile
Re: GUI Mod Questions
« Reply #1 on: August 13, 2020, 01:54:17 PM »
I believe the object names in commandbarcomponents.xml directly reference bones on the GUI model (i_galactic_controls.alo as per the "i_main_commandbar" object).  The buttons (and other components) are rendered by the game in the position defined by the corresponding bone.  So for the space filters etc additional bones were added to the GUI model and then referenced by the xml objects that define the new buttons.
Quote from: RonMaverick291 (Gametrailers)
why do u hate america? if it were not for us u guys would be lost. i mean we invented the tv, we invented the internet, cars and we even went to the planet moon. we won all the wars and we always help the little countries who cant fight and we give food to poor people.

 

Those working on this mod do so in their own free time and for no pay.
Show your support for them by enabling ads on this site!