} // end of MouseEditToolBox c'tor /// <summary> /// Update for the toolbox and its tools. /// </summary> /// <param name="hovering">Is the user hovering over the toolbar? If so, don't update the active tool.</param> public void Update(bool hovering) { if (active) { if (AuthUI.IsModalActive) { return; } // Keep camera in sync with window size. camera.Resolution = new Point((int)BokuGame.ScreenSize.X, (int)BokuGame.ScreenSize.Y); camera.Update(); if (!hovering) { // Update the active tool. activeTool.Update(camera); } // Update the tool add-ons. brushPicker.Update(camera); materialPicker.Update(camera); waterPicker.Update(camera); } // end if active } // end of MouseEditToolBox Update()
} // end of ToolBox c'tor public void Update() { if (active) { // Update the active tool. activeTool.Update(); // Update the tool add-ons. brushPicker.Update(camera); materialPicker.Update(camera); waterPicker.Update(camera); // Keep camera in sync with window size. camera.Resolution = new Point((int)BokuGame.ScreenSize.X, (int)BokuGame.ScreenSize.Y); camera.Update(); } // end if active } // end of ToolBox Update()