internal override void UIDraw() { try { if (visible || ModContent.GetInstance <TeraCADConfig>().isDrawShpes) { toolShape.DrawShapes(); } if (SelectedTool.isShapeTool()) { toolShape.Draw(); } if (ui.isDisplayRangeRectangle && !InfinityRange) { DrawRangeRectangle(); } if (SelectedTool == ToolType.Image) { toolImage.UIDraw(); } if (toolSetting.visible) { toolSetting.UIDraw(); } if (toolLineProperty.visible) { toolLineProperty.UIDraw(); } base.UIDraw(); } catch (Exception ex) { System.Diagnostics.Debug.WriteLine(ex.Message); } }
internal override void UIUpdate() { try { base.UIUpdate(); flyCam.Update(); if (toolLineProperty.visible) { toolLineProperty.UIUpdate(); } if (toolSetting.visible) { toolSetting.UIUpdate(); } if (SelectedTool.isShapeTool()) { toolShape.Update(); } if (SelectedTool == ToolType.Image) { toolImage.UIUpdate(); } } catch (Exception ex) { System.Diagnostics.Debug.WriteLine(ex.Message); } }