Do you mean integrating the camera feed into the MFD panel, then putting it inside the vehicle, just like sitting inside an APC? I am learning the MFD part, I'll take a look to see if it can be done easily.
Can anyone please tell me how to add another button next to this ToggleMenu button (in Flight/ViewPanel.xml)? I tried everything, but the button doesn't seem to appear.
<ContentButton name="ToggleMenu" class="view-button audio-btn-click" tooltip="Open the menu" onClick="OnToggleMenuButtonClicked();">
I found the solution:
Because ModApi.Ui didn't declare the constant ViewPanel (which contains the Menu button in the flight view), let's extend it and declare:
using ModApi.Ui;
public static class ExtendedUserInterfaceIds
{
public static class Flight
{
public const string ViewPanel = "Ui/Xml/Flight/ViewPanel";
}
}
Then initialize it:
public static void Initialize()
{
var userInterface = Game.Instance.UserInterface;
userInterface.AddBuildUserInterfaceXmlAction(ExtendedUserInterfaceIds.Flight.ViewPanel, OnBuildTimePanel);
}
Do you mean integrating the camera feed into the MFD panel, then putting it inside the vehicle, just like sitting inside an APC? I am learning the MFD part, I'll take a look to see if it can be done easily.
+1 2 months agoGuys, please help upvote this post so I can reach the minimum 50 points needed to unlock normal membership required to post media.
2 months agoIt's done, I have uploaded here: https://www.simplerockets.com/Mods/View/298049/PigeonEye
Can anyone please tell me how to add another button next to this ToggleMenu button (in Flight/ViewPanel.xml)? I tried everything, but the button doesn't seem to appear.
I found the solution:
Because ModApi.Ui didn't declare the constant ViewPanel (which contains the Menu button in the flight view), let's extend it and declare:
Then initialize it:
Now we can modify the Flight/ViewPanel UI.
9 months ago