public Gizmos(ActionManager am, Selection selection, MeshRenderables renderlist) { ActionManager = am; TranslateGizmoX = new DebugPrimitives.DbgPrimGizmoTranslateArrow(Axis.PosX); TranslateGizmoY = new DebugPrimitives.DbgPrimGizmoTranslateArrow(Axis.PosY); TranslateGizmoZ = new DebugPrimitives.DbgPrimGizmoTranslateArrow(Axis.PosZ); TranslateGizmoXProxy = new DebugPrimitiveRenderableProxy(renderlist, TranslateGizmoX); TranslateGizmoXProxy.BaseColor = Color.FromArgb(0xF3, 0x36, 0x53); TranslateGizmoXProxy.HighlightedColor = Color.FromArgb(0xFF, 0x66, 0x83); TranslateGizmoYProxy = new DebugPrimitiveRenderableProxy(renderlist, TranslateGizmoY); TranslateGizmoYProxy.BaseColor = Color.FromArgb(0x86, 0xC8, 0x15); TranslateGizmoYProxy.HighlightedColor = Color.FromArgb(0xB6, 0xF8, 0x45); TranslateGizmoZProxy = new DebugPrimitiveRenderableProxy(renderlist, TranslateGizmoZ); TranslateGizmoZProxy.BaseColor = Color.FromArgb(0x38, 0x90, 0xED); TranslateGizmoZProxy.HighlightedColor = Color.FromArgb(0x68, 0xB0, 0xFF); RotateGizmoX = new DebugPrimitives.DbgPrimGizmoRotateRing(Axis.PosX); RotateGizmoY = new DebugPrimitives.DbgPrimGizmoRotateRing(Axis.PosY); RotateGizmoZ = new DebugPrimitives.DbgPrimGizmoRotateRing(Axis.PosZ); RotateGizmoXProxy = new DebugPrimitiveRenderableProxy(renderlist, RotateGizmoX); RotateGizmoXProxy.BaseColor = Color.FromArgb(0xF3, 0x36, 0x53); RotateGizmoXProxy.HighlightedColor = Color.FromArgb(0xFF, 0x66, 0x83); RotateGizmoYProxy = new DebugPrimitiveRenderableProxy(renderlist, RotateGizmoY); RotateGizmoYProxy.BaseColor = Color.FromArgb(0x86, 0xC8, 0x15); RotateGizmoYProxy.HighlightedColor = Color.FromArgb(0xB6, 0xF8, 0x45); RotateGizmoZProxy = new DebugPrimitiveRenderableProxy(renderlist, RotateGizmoZ); RotateGizmoZProxy.BaseColor = Color.FromArgb(0x38, 0x90, 0xED); RotateGizmoZProxy.HighlightedColor = Color.FromArgb(0x68, 0xB0, 0xFF); _selection = selection; }
public RenderableProxy GetRegionDrawable(Map map, Entity obj) { if (obj.WrappedObject is IMsbRegion r && r.Shape is MSB.Shape.Box b) { var mesh = DebugPrimitiveRenderableProxy.GetBoxRegionProxy(_renderScene); mesh.World = obj.GetWorldMatrix(); mesh.SetSelectable(obj); return(mesh); }