-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Finished implementation of Ring visualization for admin menu
- Loading branch information
Showing
6 changed files
with
57 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
using VRage.Game; | ||
using VRageMath; | ||
|
||
namespace SEWorldGenPlugin.Draw | ||
{ | ||
public class RenderSphere : IRenderObject | ||
{ | ||
private Vector3D m_position; | ||
private float m_radius; | ||
private Color m_color; | ||
|
||
public RenderSphere(Vector3D position, float radius, Color color) | ||
{ | ||
m_position = position; | ||
m_radius = radius; | ||
m_color = color; | ||
} | ||
|
||
public void Draw() | ||
{ | ||
MatrixD wm = MatrixD.CreateWorld(m_position); | ||
MySimpleObjectDraw.DrawTransparentSphere(ref wm, m_radius, ref m_color, MySimpleObjectRasterizer.Solid, 20); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using VRage.Game.Components; | ||
|
||
namespace SEWorldGenPlugin.Session | ||
{ | ||
[MySessionComponentDescriptor(MyUpdateOrder.BeforeSimulation)] | ||
public class PluginItemsClipboard : MySessionComponentBase | ||
{ | ||
} | ||
} |