Author Topic: How to add Scroll buttons to Command briefing Screen  (Read 209 times)

0 Members and 1 Guest are viewing this topic.

Offline starbug

  • 210
    • DarkSide Animations
How to add Scroll buttons to Command briefing Screen
I am currently replaying and really enjoying Solaris TC love. And I am starting to do some FREDing for it. Solaris for its briefings uses LUA scripting to do its command briefings and mission briefings etc. Which i really struggle to do. So i decided to use the standard Command briefing editor and mission briefing editor in FRED. I noticed that Solaris doesn't have the scroll options on the Command briefings like Blue Planet does, as my messages are pretty long. As i am doing my story through Emails, News articles etc.

So i had a look at LUA scripting and i just can't get my head round it. My Brain really struggles to understand scripting like LUA(pretty much all coding) due to my dyslexia, its all blurs and becomes gibberish to me. So i thought about adding scroll buttons to the command briefings as the button graphics are already in the interface folder, but i have no idea on actually how to do it.

So is there a tutorial etc, something easy to understand on how to add this feature?
http://www.youtube.com/user/AnubisX1

if there is any consistancy with the Shivans, it's their lack of consistancy - -Norbert-

 

Offline 0rph3u5

  • 211
  • I want to be here less...
    • Steam
    • Twitter
Re: How to add Scroll buttons to Command briefing Screen
It might be that Solaris lacks the correct mask file (tl;dr FS uses at least two files for each non-cockpit UI, one of them is contains the information where each button is).

To enable scrolling text in the Command Briefing you need the following files in data/interface:
2_CommandBriefb
2_CommandBrief-Mb
CommandBriefb
CommandBrief-Mb

there files should be either .pcx (old) or .png (new)

Data interface might already contain CommandBrief.[extension] and CommandBrief-M.[extension] (as well as their 2_ counterparts), these handle the Command Briefing Screen if it is already functional, but don't have irnformation for the scrolling buttons. You can simply copy and paste CommandBrief.[externsion] to make a CommandBriefb.[extension] (that file is just the background) - same for 2_CommandBriefb.
To get functional scrolling buttons you need to the get a CommandBrief-Mb (and 2_CommandBrief-Mb) from a mod that has them working in thier UI - as per usual the MediaVPs should provide.
"When you work with water, you have to know and respect it. When you labour to subdue it, you have to understand that one day it may rise up and turn all your labours into nothing. For what is water, which seeks to make all things level, which has no taste or colour of its own, but a liquid form of Nothing?" - Graham Swift, Waterland

==================

"I am Curiosity, and I've always wondered what would become of you, here at the end of the world." - The Guide/The Curious Other, Othercide

"As you sought to steal a kingdom for yourself, so must you do again, a thousand times over. For a theft, a true theft, must be practiced to be earned." - The terms of Nyrissa's curse, Pathfinder: Kingmaker

"...because they are not Dragons."

 

Offline starbug

  • 210
    • DarkSide Animations
Re: How to add Scroll buttons to Command briefing Screen
Thank you so much Orph3u5 :)
http://www.youtube.com/user/AnubisX1

if there is any consistancy with the Shivans, it's their lack of consistancy - -Norbert-

 

Offline 0rph3u5

  • 211
  • I want to be here less...
    • Steam
    • Twitter
Re: How to add Scroll buttons to Command briefing Screen
You're welcome .... if it worked that is (no thanks required if I was off base).
"When you work with water, you have to know and respect it. When you labour to subdue it, you have to understand that one day it may rise up and turn all your labours into nothing. For what is water, which seeks to make all things level, which has no taste or colour of its own, but a liquid form of Nothing?" - Graham Swift, Waterland

==================

"I am Curiosity, and I've always wondered what would become of you, here at the end of the world." - The Guide/The Curious Other, Othercide

"As you sought to steal a kingdom for yourself, so must you do again, a thousand times over. For a theft, a true theft, must be practiced to be earned." - The terms of Nyrissa's curse, Pathfinder: Kingmaker

"...because they are not Dragons."

 

Offline starbug

  • 210
    • DarkSide Animations
Re: How to add Scroll buttons to Command briefing Screen
I will let you know, will try it out tonight when i get home from work
http://www.youtube.com/user/AnubisX1

if there is any consistancy with the Shivans, it's their lack of consistancy - -Norbert-

  

Offline starbug

  • 210
    • DarkSide Animations
Re: How to add Scroll buttons to Command briefing Screen
Ok so i have got the interface screen with the scroll buttons Yay! but none of the actually buttons are working. I may have messed up something as i am tired so will look again tomorrow
http://www.youtube.com/user/AnubisX1

if there is any consistancy with the Shivans, it's their lack of consistancy - -Norbert-