public static changeConicsMode ( int mode ) : void | ||
mode | int | The conics render mode to use, one of 0, 1, 2, 3, or 4. Arguments outside those will be set to 3. |
return | void |
internal void pageConicsMode() { conicsMode++; if (conicsMode < 0 || conicsMode > 4) { conicsMode = 0; } NodeTools.changeConicsMode(conicsMode); }
/// <summary> /// Overridden function from MonoBehavior /// </summary> public void OnGUI() { // Porcess any scheduled functions if (Event.current.type == EventType.Layout && !FlightDriver.Pause && scheduledForLayout.Count > 0) { foreach (Action a in scheduledForLayout) { a(); } scheduledForLayout.Clear(); } if (canShowNodeEditor) { if (Event.current.type == EventType.Layout && !FlightDriver.Pause) { // On layout we should see if we have nodes to act on. if (curState.resizeMainWindow) { options.mainWindowPos.height = 250; } if (curState.resizeClockWindow) { options.clockWindowPos.height = 65; } showEncounter = curState.encounter; // this prevents the clock window from showing the time to // next node when the next state is created during repaint. showTimeNext = curState.hasNode(); } if (!conicsLoaded) { NodeTools.changeConicsMode(options.conicsMode); conicsLoaded = true; } if (shown) { drawGUI(); } else if (canShowConicsWindow) { drawConicsGUI(); } } else if (canShowConicsWindow) { drawConicsGUI(); } if (canShowClock) { drawClockGUI(); } }
internal void setConicsMode(int mode) { conicsMode = mode; NodeTools.changeConicsMode(conicsMode); }