no more windows??
This commit is contained in:
@@ -3,403 +3,404 @@ using System.Drawing;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
|
||||
namespace _2DGAMELIB;
|
||||
|
||||
public class Tex
|
||||
namespace _2DGAMELIB
|
||||
{
|
||||
private Pars pars;
|
||||
public class Tex
|
||||
{
|
||||
private Pars pars;
|
||||
|
||||
private ParT parT;
|
||||
private ParT parT;
|
||||
|
||||
private Par feed;
|
||||
private Par feed;
|
||||
|
||||
public int Space;
|
||||
public int Space;
|
||||
|
||||
private string text;
|
||||
private string text;
|
||||
|
||||
private double speed = 1.0;
|
||||
private double speed = 1.0;
|
||||
|
||||
private Action<Tex> Action = delegate
|
||||
{
|
||||
};
|
||||
private Action<Tex> Action = delegate
|
||||
{
|
||||
};
|
||||
|
||||
private MotV mv;
|
||||
private MotV mv;
|
||||
|
||||
private bool f1;
|
||||
private bool f1;
|
||||
|
||||
private bool f2;
|
||||
private bool f2;
|
||||
|
||||
private double Count;
|
||||
private double Count;
|
||||
|
||||
private int Max;
|
||||
private int Max;
|
||||
|
||||
public Action<Tex> Done;
|
||||
public Action<Tex> Done;
|
||||
|
||||
private byte a0;
|
||||
private byte a0;
|
||||
|
||||
private byte a1;
|
||||
private byte a1;
|
||||
|
||||
private string ConfigPath = Directory.GetCurrentDirectory() + "\\Config.ini";
|
||||
private string ConfigPath = Directory.GetCurrentDirectory() + "\\Config.ini";
|
||||
|
||||
private bool FastText;
|
||||
private bool FastText;
|
||||
|
||||
public Pars Pars => pars;
|
||||
public Pars Pars => pars;
|
||||
|
||||
public ParT ParT => parT;
|
||||
public ParT ParT => parT;
|
||||
|
||||
public Par Feed => feed;
|
||||
public Par Feed => feed;
|
||||
|
||||
public string TextIm
|
||||
{
|
||||
get
|
||||
{
|
||||
return text.Substring(Space, text.Length - Space);
|
||||
}
|
||||
set
|
||||
{
|
||||
if (feed != null)
|
||||
{
|
||||
a0 = feed.BrushColor.A;
|
||||
a1 = feed.PenColor.A;
|
||||
feed.BrushColor = Color.FromArgb(0, feed.BrushColor);
|
||||
feed.PenColor = Color.FromArgb(0, feed.PenColor);
|
||||
}
|
||||
text = new string(' ', Space) + value;
|
||||
Max = text.Length;
|
||||
Count = Max;
|
||||
f1 = false;
|
||||
if (parT != null)
|
||||
{
|
||||
parT.Text = text;
|
||||
}
|
||||
}
|
||||
}
|
||||
public string TextIm
|
||||
{
|
||||
get
|
||||
{
|
||||
return text.Substring(Space, text.Length - Space);
|
||||
}
|
||||
set
|
||||
{
|
||||
if (feed != null)
|
||||
{
|
||||
a0 = feed.BrushColor.A;
|
||||
a1 = feed.PenColor.A;
|
||||
feed.BrushColor = Color.FromArgb(0, feed.BrushColor);
|
||||
feed.PenColor = Color.FromArgb(0, feed.PenColor);
|
||||
}
|
||||
text = new string(' ', Space) + value;
|
||||
Max = text.Length;
|
||||
Count = Max;
|
||||
f1 = false;
|
||||
if (parT != null)
|
||||
{
|
||||
parT.Text = text;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public string Text
|
||||
{
|
||||
get
|
||||
{
|
||||
return text.Substring(Space, text.Length - Space);
|
||||
}
|
||||
set
|
||||
{
|
||||
if (feed != null)
|
||||
{
|
||||
a0 = feed.BrushColor.A;
|
||||
a1 = feed.PenColor.A;
|
||||
feed.BrushColor = Color.FromArgb(0, feed.BrushColor);
|
||||
feed.PenColor = Color.FromArgb(0, feed.PenColor);
|
||||
}
|
||||
text = new string(' ', Space) + value;
|
||||
Max = text.Length;
|
||||
Count = Space;
|
||||
f1 = false;
|
||||
}
|
||||
}
|
||||
public string Text
|
||||
{
|
||||
get
|
||||
{
|
||||
return text.Substring(Space, text.Length - Space);
|
||||
}
|
||||
set
|
||||
{
|
||||
if (feed != null)
|
||||
{
|
||||
a0 = feed.BrushColor.A;
|
||||
a1 = feed.PenColor.A;
|
||||
feed.BrushColor = Color.FromArgb(0, feed.BrushColor);
|
||||
feed.PenColor = Color.FromArgb(0, feed.PenColor);
|
||||
}
|
||||
text = new string(' ', Space) + value;
|
||||
Max = text.Length;
|
||||
Count = Space;
|
||||
f1 = false;
|
||||
}
|
||||
}
|
||||
|
||||
public double Speed
|
||||
{
|
||||
get
|
||||
{
|
||||
return speed;
|
||||
}
|
||||
set
|
||||
{
|
||||
speed = value;
|
||||
}
|
||||
}
|
||||
public double Speed
|
||||
{
|
||||
get
|
||||
{
|
||||
return speed;
|
||||
}
|
||||
set
|
||||
{
|
||||
speed = value;
|
||||
}
|
||||
}
|
||||
|
||||
public Vector2D Position
|
||||
{
|
||||
get
|
||||
{
|
||||
return parT.PositionBase;
|
||||
}
|
||||
set
|
||||
{
|
||||
parT.PositionBase = value;
|
||||
if (feed != null)
|
||||
{
|
||||
feed.PositionBase = parT.ToGlobal(parT.OP[0].ps[2] * 0.95);
|
||||
}
|
||||
}
|
||||
}
|
||||
public Vector2D Position
|
||||
{
|
||||
get
|
||||
{
|
||||
return parT.PositionBase;
|
||||
}
|
||||
set
|
||||
{
|
||||
parT.PositionBase = value;
|
||||
if (feed != null)
|
||||
{
|
||||
feed.PositionBase = parT.ToGlobal(parT.OP[0].ps[2] * 0.95);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public bool IsPlaying => !f1;
|
||||
public bool IsPlaying => !f1;
|
||||
|
||||
public Tex(string Name, ref Vector2D Position, double Size, double Width, double Height, Font Font, double TextSize, int Space, string Text, ref Color TextColor, ref Color ShadColor, ref Color BackColor, double Speed, ref Color FeedColor, Action<Tex> Action)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (!File.Exists(ConfigPath))
|
||||
{
|
||||
this.Speed = Speed;
|
||||
speed = Speed;
|
||||
}
|
||||
else
|
||||
{
|
||||
string[] source = ConfigPath.ReadLines();
|
||||
FastText = source.First((string s) => s.StartsWith("FastText:")).Last() == '1';
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
this.Speed = Speed;
|
||||
speed = Speed;
|
||||
}
|
||||
if (FastText)
|
||||
{
|
||||
this.Speed = 50.0;
|
||||
speed = 50.0;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.Speed = Speed;
|
||||
speed = Speed;
|
||||
}
|
||||
this.Space = Space;
|
||||
this.Text = Text;
|
||||
this.Action = Action;
|
||||
SetParT(Name, ref Position, Size, Width, Height, Font, TextSize, Text, ref TextColor, ref ShadColor, ref BackColor);
|
||||
SetFeed(Name, Size, ref FeedColor);
|
||||
mv = new MotV(0.0, 255.0);
|
||||
mv.BaseSpeed = 2.0;
|
||||
}
|
||||
public Tex(string Name, ref Vector2D Position, double Size, double Width, double Height, Font Font, double TextSize, int Space, string Text, ref Color TextColor, ref Color ShadColor, ref Color BackColor, double Speed, ref Color FeedColor, Action<Tex> Action)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (!File.Exists(ConfigPath))
|
||||
{
|
||||
this.Speed = Speed;
|
||||
speed = Speed;
|
||||
}
|
||||
else
|
||||
{
|
||||
string[] source = ConfigPath.ReadLines();
|
||||
FastText = source.First((string s) => s.StartsWith("FastText:")).Last() == '1';
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
this.Speed = Speed;
|
||||
speed = Speed;
|
||||
}
|
||||
if (FastText)
|
||||
{
|
||||
this.Speed = 50.0;
|
||||
speed = 50.0;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.Speed = Speed;
|
||||
speed = Speed;
|
||||
}
|
||||
this.Space = Space;
|
||||
this.Text = Text;
|
||||
this.Action = Action;
|
||||
SetParT(Name, ref Position, Size, Width, Height, Font, TextSize, Text, ref TextColor, ref ShadColor, ref BackColor);
|
||||
SetFeed(Name, Size, ref FeedColor);
|
||||
mv = new MotV(0.0, 255.0);
|
||||
mv.BaseSpeed = 2.0;
|
||||
}
|
||||
|
||||
public Tex(string Name, Vector2D Position, double Size, double Width, double Height, Font Font, double TextSize, int Space, string Text, Color TextColor, Color ShadColor, Color BackColor, double Speed, Color FeedColor, Action<Tex> Action)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (!File.Exists(ConfigPath))
|
||||
{
|
||||
this.Speed = Speed;
|
||||
speed = Speed;
|
||||
}
|
||||
else
|
||||
{
|
||||
string[] source = ConfigPath.ReadLines();
|
||||
FastText = source.First((string s) => s.StartsWith("FastText:")).Last() == '1';
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
this.Speed = Speed;
|
||||
speed = Speed;
|
||||
}
|
||||
if (FastText)
|
||||
{
|
||||
this.Speed = 50.0;
|
||||
speed = 50.0;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.Speed = Speed;
|
||||
speed = Speed;
|
||||
}
|
||||
this.Space = Space;
|
||||
this.Text = Text;
|
||||
this.Action = Action;
|
||||
SetParT(Name, ref Position, Size, Width, Height, Font, TextSize, Text, ref TextColor, ref ShadColor, ref BackColor);
|
||||
SetFeed(Name, Size, ref FeedColor);
|
||||
mv = new MotV(0.0, 255.0);
|
||||
mv.BaseSpeed = 2.0;
|
||||
}
|
||||
public Tex(string Name, Vector2D Position, double Size, double Width, double Height, Font Font, double TextSize, int Space, string Text, Color TextColor, Color ShadColor, Color BackColor, double Speed, Color FeedColor, Action<Tex> Action)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (!File.Exists(ConfigPath))
|
||||
{
|
||||
this.Speed = Speed;
|
||||
speed = Speed;
|
||||
}
|
||||
else
|
||||
{
|
||||
string[] source = ConfigPath.ReadLines();
|
||||
FastText = source.First((string s) => s.StartsWith("FastText:")).Last() == '1';
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
this.Speed = Speed;
|
||||
speed = Speed;
|
||||
}
|
||||
if (FastText)
|
||||
{
|
||||
this.Speed = 50.0;
|
||||
speed = 50.0;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.Speed = Speed;
|
||||
speed = Speed;
|
||||
}
|
||||
this.Space = Space;
|
||||
this.Text = Text;
|
||||
this.Action = Action;
|
||||
SetParT(Name, ref Position, Size, Width, Height, Font, TextSize, Text, ref TextColor, ref ShadColor, ref BackColor);
|
||||
SetFeed(Name, Size, ref FeedColor);
|
||||
mv = new MotV(0.0, 255.0);
|
||||
mv.BaseSpeed = 2.0;
|
||||
}
|
||||
|
||||
public Tex(string Name, ref Vector2D Position, double Size, double Width, double Height, Font Font, double TextSize, int Space, string Text, ref Color TextColor, ref Color ShadColor, ref Color BackColor, double Speed)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (!File.Exists(ConfigPath))
|
||||
{
|
||||
this.Speed = Speed;
|
||||
speed = Speed;
|
||||
}
|
||||
else
|
||||
{
|
||||
string[] source = ConfigPath.ReadLines();
|
||||
FastText = source.First((string s) => s.StartsWith("FastText:")).Last() == '1';
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
this.Speed = Speed;
|
||||
speed = Speed;
|
||||
}
|
||||
if (FastText)
|
||||
{
|
||||
this.Speed = 50.0;
|
||||
speed = 50.0;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.Speed = Speed;
|
||||
speed = Speed;
|
||||
}
|
||||
this.Space = Space;
|
||||
this.Text = Text;
|
||||
SetParT(Name, ref Position, Size, Width, Height, Font, TextSize, Text, ref TextColor, ref ShadColor, ref BackColor);
|
||||
}
|
||||
public Tex(string Name, ref Vector2D Position, double Size, double Width, double Height, Font Font, double TextSize, int Space, string Text, ref Color TextColor, ref Color ShadColor, ref Color BackColor, double Speed)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (!File.Exists(ConfigPath))
|
||||
{
|
||||
this.Speed = Speed;
|
||||
speed = Speed;
|
||||
}
|
||||
else
|
||||
{
|
||||
string[] source = ConfigPath.ReadLines();
|
||||
FastText = source.First((string s) => s.StartsWith("FastText:")).Last() == '1';
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
this.Speed = Speed;
|
||||
speed = Speed;
|
||||
}
|
||||
if (FastText)
|
||||
{
|
||||
this.Speed = 50.0;
|
||||
speed = 50.0;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.Speed = Speed;
|
||||
speed = Speed;
|
||||
}
|
||||
this.Space = Space;
|
||||
this.Text = Text;
|
||||
SetParT(Name, ref Position, Size, Width, Height, Font, TextSize, Text, ref TextColor, ref ShadColor, ref BackColor);
|
||||
}
|
||||
|
||||
public Tex(string Name, Vector2D Position, double Size, double Width, double Height, Font Font, double TextSize, int Space, string Text, Color TextColor, Color ShadColor, Color BackColor, double Speed)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (!File.Exists(ConfigPath))
|
||||
{
|
||||
this.Speed = Speed;
|
||||
speed = Speed;
|
||||
}
|
||||
else
|
||||
{
|
||||
string[] source = ConfigPath.ReadLines();
|
||||
FastText = source.First((string s) => s.StartsWith("FastText:")).Last() == '1';
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
this.Speed = Speed;
|
||||
speed = Speed;
|
||||
}
|
||||
if (FastText)
|
||||
{
|
||||
this.Speed = 50.0;
|
||||
speed = 50.0;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.Speed = Speed;
|
||||
speed = Speed;
|
||||
}
|
||||
this.Space = Space;
|
||||
this.Text = Text;
|
||||
SetParT(Name, ref Position, Size, Width, Height, Font, TextSize, Text, ref TextColor, ref ShadColor, ref BackColor);
|
||||
}
|
||||
public Tex(string Name, Vector2D Position, double Size, double Width, double Height, Font Font, double TextSize, int Space, string Text, Color TextColor, Color ShadColor, Color BackColor, double Speed)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (!File.Exists(ConfigPath))
|
||||
{
|
||||
this.Speed = Speed;
|
||||
speed = Speed;
|
||||
}
|
||||
else
|
||||
{
|
||||
string[] source = ConfigPath.ReadLines();
|
||||
FastText = source.First((string s) => s.StartsWith("FastText:")).Last() == '1';
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
this.Speed = Speed;
|
||||
speed = Speed;
|
||||
}
|
||||
if (FastText)
|
||||
{
|
||||
this.Speed = 50.0;
|
||||
speed = 50.0;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.Speed = Speed;
|
||||
speed = Speed;
|
||||
}
|
||||
this.Space = Space;
|
||||
this.Text = Text;
|
||||
SetParT(Name, ref Position, Size, Width, Height, Font, TextSize, Text, ref TextColor, ref ShadColor, ref BackColor);
|
||||
}
|
||||
|
||||
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)
|
||||
{
|
||||
pars = new Pars();
|
||||
Out[] array = new Out[1] { Shas.Get正方形() };
|
||||
array.OutlineFalse();
|
||||
parT = new ParT
|
||||
{
|
||||
Tag = Name,
|
||||
InitializeOP = array,
|
||||
PositionBase = Position,
|
||||
SizeBase = Size,
|
||||
Closed = true,
|
||||
BrushColor = BackColor,
|
||||
Font = Font,
|
||||
FontSize = TextSize,
|
||||
TextColor = TextColor,
|
||||
RectSize = new Vector2D(Width, Height),
|
||||
Text = Text
|
||||
};
|
||||
ParT.OP.ScalingX(ParT.BasePointBase, Width);
|
||||
ParT.OP.ScalingY(ParT.BasePointBase, Height);
|
||||
if (ShadColor != Color.Empty)
|
||||
{
|
||||
parT.ShadBrush = new SolidBrush(ShadColor);
|
||||
}
|
||||
pars.Add(parT.Tag, parT);
|
||||
}
|
||||
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)
|
||||
{
|
||||
pars = new Pars();
|
||||
Out[] array = new Out[1] { Shas.Get正方形() };
|
||||
array.OutlineFalse();
|
||||
parT = new ParT
|
||||
{
|
||||
Tag = Name,
|
||||
InitializeOP = array,
|
||||
PositionBase = Position,
|
||||
SizeBase = Size,
|
||||
Closed = true,
|
||||
BrushColor = BackColor,
|
||||
Font = Font,
|
||||
FontSize = TextSize,
|
||||
TextColor = TextColor,
|
||||
RectSize = new Vector2D(Width, Height),
|
||||
Text = Text
|
||||
};
|
||||
ParT.OP.ScalingX(ParT.BasePointBase, Width);
|
||||
ParT.OP.ScalingY(ParT.BasePointBase, Height);
|
||||
if (ShadColor != Color.Empty)
|
||||
{
|
||||
parT.ShadBrush = new SolidBrush(ShadColor);
|
||||
}
|
||||
pars.Add(parT.Tag, parT);
|
||||
}
|
||||
|
||||
private void SetFeed(string Name, double Size, ref Color FeedColor)
|
||||
{
|
||||
Out[] array = new Out[1] { Shas.Get三角形() };
|
||||
feed = new Par
|
||||
{
|
||||
Tag = Name + "_Feed",
|
||||
InitializeOP = array,
|
||||
BasePointBase = array.GetCenter(),
|
||||
PositionBase = parT.ToGlobal(parT.OP[0].ps[2] * 0.96),
|
||||
SizeBase = Size * 0.07,
|
||||
SizeYBase = 0.9,
|
||||
Closed = true,
|
||||
PenColor = Color.FromArgb(0, Color.Black),
|
||||
BrushColor = Color.FromArgb(0, FeedColor),
|
||||
Hit = false
|
||||
};
|
||||
feed.OP.ReverseY(feed.BasePointBase);
|
||||
pars.Add(feed.Tag, feed);
|
||||
}
|
||||
private void SetFeed(string Name, double Size, ref Color FeedColor)
|
||||
{
|
||||
Out[] array = new Out[1] { Shas.Get三角形() };
|
||||
feed = new Par
|
||||
{
|
||||
Tag = Name + "_Feed",
|
||||
InitializeOP = array,
|
||||
BasePointBase = array.GetCenter(),
|
||||
PositionBase = parT.ToGlobal(parT.OP[0].ps[2] * 0.96),
|
||||
SizeBase = Size * 0.07,
|
||||
SizeYBase = 0.9,
|
||||
Closed = true,
|
||||
PenColor = Color.FromArgb(0, Color.Black),
|
||||
BrushColor = Color.FromArgb(0, FeedColor),
|
||||
Hit = false
|
||||
};
|
||||
feed.OP.ReverseY(feed.BasePointBase);
|
||||
pars.Add(feed.Tag, feed);
|
||||
}
|
||||
|
||||
public void SetHitColor(Med Med)
|
||||
{
|
||||
if (parT.HitColor != Color.Transparent)
|
||||
{
|
||||
Med.RemUniqueColor(parT.HitColor);
|
||||
}
|
||||
parT.HitColor = Med.GetUniqueColor();
|
||||
}
|
||||
public void SetHitColor(Med Med)
|
||||
{
|
||||
if (parT.HitColor != Color.Transparent)
|
||||
{
|
||||
Med.RemUniqueColor(parT.HitColor);
|
||||
}
|
||||
parT.HitColor = Med.GetUniqueColor();
|
||||
}
|
||||
|
||||
public void Progression(FPS FPS)
|
||||
{
|
||||
if (!f1)
|
||||
{
|
||||
Count += Speed / FPS.Value;
|
||||
int num = (int)Count;
|
||||
if (num <= Max)
|
||||
{
|
||||
parT.Text = text.Substring(0, num);
|
||||
return;
|
||||
}
|
||||
parT.Text = text;
|
||||
f1 = true;
|
||||
if (feed != null)
|
||||
{
|
||||
feed.BrushColor = Color.FromArgb(a0, feed.BrushColor);
|
||||
feed.PenColor = Color.FromArgb(a1, feed.PenColor);
|
||||
}
|
||||
if (Done != null)
|
||||
{
|
||||
Done(this);
|
||||
Done = null;
|
||||
}
|
||||
}
|
||||
else if (feed != null && feed.Dra)
|
||||
{
|
||||
mv.GetValue(FPS);
|
||||
feed.BrushColor = Color.FromArgb((int)mv.Value, feed.BrushColor);
|
||||
feed.PenColor = Color.FromArgb(feed.BrushColor.A, feed.PenColor);
|
||||
}
|
||||
}
|
||||
public void Progression(FPS FPS)
|
||||
{
|
||||
if (!f1)
|
||||
{
|
||||
Count += Speed / FPS.Value;
|
||||
int num = (int)Count;
|
||||
if (num <= Max)
|
||||
{
|
||||
parT.Text = text.Substring(0, num);
|
||||
return;
|
||||
}
|
||||
parT.Text = text;
|
||||
f1 = true;
|
||||
if (feed != null)
|
||||
{
|
||||
feed.BrushColor = Color.FromArgb(a0, feed.BrushColor);
|
||||
feed.PenColor = Color.FromArgb(a1, feed.PenColor);
|
||||
}
|
||||
if (Done != null)
|
||||
{
|
||||
Done(this);
|
||||
Done = null;
|
||||
}
|
||||
}
|
||||
else if (feed != null && feed.Dra)
|
||||
{
|
||||
mv.GetValue(FPS);
|
||||
feed.BrushColor = Color.FromArgb((int)mv.Value, feed.BrushColor);
|
||||
feed.PenColor = Color.FromArgb(feed.BrushColor.A, feed.PenColor);
|
||||
}
|
||||
}
|
||||
|
||||
public bool Down(ref Color HitColor)
|
||||
{
|
||||
if (parT.HitColor == HitColor)
|
||||
{
|
||||
f2 = true;
|
||||
if (!f1 && Speed == speed)
|
||||
{
|
||||
Speed *= 10.0;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
public bool Down(ref Color HitColor)
|
||||
{
|
||||
if (parT.HitColor == HitColor)
|
||||
{
|
||||
f2 = true;
|
||||
if (!f1 && Speed == speed)
|
||||
{
|
||||
Speed *= 10.0;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public bool Up(ref Color HitColor)
|
||||
{
|
||||
if (f1 && f2 && parT.HitColor == HitColor && Speed == speed)
|
||||
{
|
||||
f1 = false;
|
||||
f2 = false;
|
||||
if (feed != null)
|
||||
{
|
||||
feed.BrushColor = Color.FromArgb(0, feed.BrushColor);
|
||||
feed.PenColor = Color.FromArgb(feed.BrushColor.A, feed.PenColor);
|
||||
mv.ResetValue();
|
||||
}
|
||||
Action(this);
|
||||
return true;
|
||||
}
|
||||
Speed = speed;
|
||||
f2 = false;
|
||||
return false;
|
||||
}
|
||||
public bool Up(ref Color HitColor)
|
||||
{
|
||||
if (f1 && f2 && parT.HitColor == HitColor && Speed == speed)
|
||||
{
|
||||
f1 = false;
|
||||
f2 = false;
|
||||
if (feed != null)
|
||||
{
|
||||
feed.BrushColor = Color.FromArgb(0, feed.BrushColor);
|
||||
feed.PenColor = Color.FromArgb(feed.BrushColor.A, feed.PenColor);
|
||||
mv.ResetValue();
|
||||
}
|
||||
Action(this);
|
||||
return true;
|
||||
}
|
||||
Speed = speed;
|
||||
f2 = false;
|
||||
return false;
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
pars.Dispose();
|
||||
}
|
||||
public void Dispose()
|
||||
{
|
||||
pars.Dispose();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user