Jump to content

Precisce Control mode color change control


Recommended Posts

Alright, I have now spent a couple hours on this and am completely stonewalled.

I am turning on Precise Control mode via FlightInputHandler.fetch.precisionMode = true;, however this does not change the color on the gauges in the bottom left to show that Precise control mode is engaged.

I have found that on-screen gauges at FlightUIController.fetch.stgPitch (pitch gauge, other two are stgRoll and stgYaw), but I can't find any sort of color option I can set to change the color.

Anyone have any ideas? I am totally out.

D.

Link to comment
Share on other sites

Well, it looks like SQUAD's tried to be helpful and made a reference to all the gauges in the inputGaugeRenderers field.

if (aaPM.setPrecCtrl) //set precise mode enabled if this bool is true
{
FlightInputHandler.fetch.precisionMode = true; //enable precise mode
foreach(Renderer rend in FlightInputHandler.fetch.inputGaugeRenderers)
{
rend.material.color = new Color(0.255f, 0.992f, 0.996f); //update all the gauge colors, pulled the values from the game by printing them to the console
}
}
else
{
FlightInputHandler.fetch.precisionMode = false; //disable precise mode
foreach (Renderer rend in FlightInputHandler.fetch.inputGaugeRenderers)
{
rend.material.color = new Color(0.976f, 0.451f, 0.024f); //update all the gauge colors
}
}
}

Hope this helps someone,

D.

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...