Shas to ShapeHelper
This commit is contained in:
@@ -286,7 +286,7 @@ namespace _2DGAMELIB
|
||||
base_ = new ShapePart
|
||||
{
|
||||
Tag = Name + "_ベース",
|
||||
InitializeOP = new CurveOutline[1] { Shas.GetSquare() },
|
||||
InitializeOP = new CurveOutline[1] { ShapeHelper.GetSquare() },
|
||||
PositionBase = Position,
|
||||
SizeBase = Size,
|
||||
SizeXBase = Width,
|
||||
@@ -300,7 +300,7 @@ namespace _2DGAMELIB
|
||||
frame1 = new ShapePart
|
||||
{
|
||||
Tag = Name + "_フレーム1",
|
||||
InitializeOP = new CurveOutline[1] { Shas.GetSquare() },
|
||||
InitializeOP = new CurveOutline[1] { ShapeHelper.GetSquare() },
|
||||
PositionBase = Position,
|
||||
SizeBase = Size,
|
||||
SizeXBase = Width * GetWidthMag(),
|
||||
@@ -315,7 +315,7 @@ namespace _2DGAMELIB
|
||||
frame2 = new ShapePart
|
||||
{
|
||||
Tag = Name + "_フレーム2",
|
||||
InitializeOP = new CurveOutline[1] { Shas.GetSquare() },
|
||||
InitializeOP = new CurveOutline[1] { ShapeHelper.GetSquare() },
|
||||
PositionBase = Position,
|
||||
SizeBase = Size,
|
||||
SizeXBase = Width * GetWidthMag(),
|
||||
@@ -329,7 +329,7 @@ namespace _2DGAMELIB
|
||||
gauge = new ShapePart
|
||||
{
|
||||
Tag = Name + "_ゲージ",
|
||||
InitializeOP = new CurveOutline[1] { Shas.GetSquare() },
|
||||
InitializeOP = new CurveOutline[1] { ShapeHelper.GetSquare() },
|
||||
PositionBase = GetGaugePosition(),
|
||||
SizeBase = Size,
|
||||
SizeXBase = Width * GetWidthMag() * GetGaugeWidthMag(Margin),
|
||||
@@ -343,7 +343,7 @@ namespace _2DGAMELIB
|
||||
this.knob = new ShapePart
|
||||
{
|
||||
Tag = Name + "_ノブ",
|
||||
InitializeOP = new CurveOutline[1] { Shas.GetSquare() },
|
||||
InitializeOP = new CurveOutline[1] { ShapeHelper.GetSquare() },
|
||||
SizeBase = Size,
|
||||
SizeXBase = GetKnobWidthMag(Width),
|
||||
SizeYBase = GetKnobHeightMag(Height),
|
||||
|
||||
@@ -48,7 +48,7 @@ namespace _2DGAMELIB
|
||||
this.Are = Are;
|
||||
this.Width = Width;
|
||||
|
||||
CurveOutline[] array = new CurveOutline[1] { Shas.GetSquare() };
|
||||
CurveOutline[] array = new CurveOutline[1] { ShapeHelper.GetSquare() };
|
||||
if (FramColor == Color.Empty || FramColor == Color.Transparent)
|
||||
{
|
||||
array.OutlineFalse();
|
||||
|
||||
@@ -3,7 +3,7 @@ using System.Linq;
|
||||
|
||||
namespace _2DGAMELIB
|
||||
{
|
||||
public static class Shas
|
||||
public static class ShapeHelper
|
||||
{
|
||||
//rectangle coords
|
||||
|
||||
@@ -204,7 +204,7 @@ namespace _2DGAMELIB
|
||||
private void SetParT(string Name, ref Vector2D Position, double Size, double Width, double Height, Font Font, double TextSize, string Text, ref Color TextColor, ref Color ShadColor, ref Color BackColor)
|
||||
{
|
||||
_partGroup = new PartGroup();
|
||||
CurveOutline[] array = new CurveOutline[1] { Shas.GetSquare() };
|
||||
CurveOutline[] array = new CurveOutline[1] { ShapeHelper.GetSquare() };
|
||||
array.OutlineFalse();
|
||||
_shapePartT = new ShapePartT
|
||||
{
|
||||
@@ -231,7 +231,7 @@ namespace _2DGAMELIB
|
||||
|
||||
private void SetFeed(string Name, double Size, ref Color FeedColor)
|
||||
{
|
||||
CurveOutline[] array = new CurveOutline[1] { Shas.GetTriangle() };
|
||||
CurveOutline[] array = new CurveOutline[1] { ShapeHelper.GetTriangle() };
|
||||
feed = new ShapePart
|
||||
{
|
||||
Tag = Name + "_Feed",
|
||||
|
||||
Reference in New Issue
Block a user