Esempio n. 1
0
 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);
     }
 }
Esempio n. 2
0
 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);
     }
 }