Jump to content

robertlong13

Members
  • Posts

    28
  • Joined

  • Last visited

Everything posted by robertlong13

  1. MOARdV, I just noticed you just added a JSISASMenu page handler 20 hours ago. I just finished making my own stock SAS menu handler based on the code Lybodo posted a few weeks ago. For selecting SAS modes, I wanted to avoid the cumbersome "scroll though and select" type of menu, so I made one that assigns a button to each mode. Unavailable modes are greyed out, and the current mode is green. I don't know if this kind of interface is frowned upon (I haven't seen it used on any other pages), but I really like it. If SAS is disabled, all states are grey except "SAS", and clicking it toggles it on; I haven't implemented a way to turn it back off yet though. If SAS cannot be enabled (if an Engineer is flying without SAS module), then it displays a warning. To use my code, you'll have to make some changes to MFD40x20.cfg manually. You will have to add buttonR4 to the globalButtons on line 46 globalButtons = button_UP,button_DOWN,button_ENTER,button_ESC,button_HOME,button_RIGHT,button_LEFT,buttonR9,buttonR10,buttonR4 Add this page (and make sure to disable switching to whichever pages use buttonR4, which is "shipinfo" in the MFD40x20.cfg): PAGE{ name = stock_sas button = button_D text = Autopilot software not installed. disableSwitchingTo = shipinfo PAGEHANDLER { name = RPMSASMenu method = showMenu buttonClickMethod = ButtonProcessor buttonSAS = 9 buttonMAN = 4 buttonPRO = 6 buttonRET = 0 buttonNRM = 5 buttonANM = 1 buttonROT = 7 buttonRIN = 2 buttonTGT = 8 buttonATG = 3 } textureURL = JSI/RasterPropMonitor/Library/Textures/bg01 } Source code and DLL are both provided. As with Lybodo, the license for the source code is "I don't care what you do with it". Download link: https://dl.dropboxusercontent.com/u/28076605/RPMSASMenu.zip This is my first time ever writing code for KSP, or C# for that matter. So forgive anything strange that I may have done. It took me forever to figure out how to toggle the SAS action group. Is there documentation for this stuff? I couldn't find anything for toggling action groups on the community documentation. I had to browse through the RPM source to find an example.
×
×
  • Create New...