But -> ButtonBase, But1 -> Button

This commit is contained in:
2026-06-14 00:53:08 +02:00
parent 72c181950b
commit d54695d014
9 changed files with 155 additions and 155 deletions

View File

@@ -5,7 +5,7 @@ using System.Linq;
namespace _2DGAMELIB namespace _2DGAMELIB
{ {
public class But1 : But public class Button : ButtonBase
{ {
public List<Color> BaseColors = new List<Color>(); public List<Color> BaseColors = new List<Color>();
@@ -15,7 +15,7 @@ namespace _2DGAMELIB
public List<Color> TextColors = new List<Color>(); public List<Color> TextColors = new List<Color>();
public But1(ShapePartT ShapePartT, Action<But> Action) public Button(ShapePartT ShapePartT, Action<ButtonBase> Action)
: base(ShapePartT, Action) : base(ShapePartT, Action)
{ {
Setting(); Setting();

View File

@@ -3,7 +3,7 @@ using System.Drawing;
namespace _2DGAMELIB namespace _2DGAMELIB
{ {
public class But public class ButtonBase
{ {
private bool dra = true; private bool dra = true;
@@ -11,23 +11,23 @@ namespace _2DGAMELIB
protected PartGroup partGroup; protected PartGroup partGroup;
protected Action<But> Over = delegate protected Action<ButtonBase> Over = delegate
{ {
}; };
protected Action<But> Push = delegate protected Action<ButtonBase> Push = delegate
{ {
}; };
protected Action<But> Release = delegate protected Action<ButtonBase> Release = delegate
{ {
}; };
protected Action<But> Out = delegate protected Action<ButtonBase> Out = delegate
{ {
}; };
public Action<But> Action = delegate public Action<ButtonBase> Action = delegate
{ {
}; };
@@ -50,7 +50,7 @@ namespace _2DGAMELIB
public PartGroup PartGroup => partGroup; public PartGroup PartGroup => partGroup;
public But(ShapePartT ShapePartT, Action<But> Action) public ButtonBase(ShapePartT ShapePartT, Action<ButtonBase> Action)
{ {
partGroup = new PartGroup(ShapePartT); partGroup = new PartGroup(ShapePartT);
this.Action = Action; this.Action = Action;

View File

@@ -6,20 +6,20 @@ namespace _2DGAMELIB
{ {
public class ButtonMap public class ButtonMap
{ {
private OrderedDictionary<string, But> buts = new OrderedDictionary<string, But>(); private OrderedDictionary<string, ButtonBase> buts = new OrderedDictionary<string, ButtonBase>();
public But this[string Name] => buts[Name]; public ButtonBase this[string Name] => buts[Name];
public IEnumerable<But> EnumBut => buts.Values; public IEnumerable<ButtonBase> EnumBut => buts.Values;
public void Add(string Name, But But) public void Add(string Name, ButtonBase ButtonBase)
{ {
buts.Add(Name, But); buts.Add(Name, ButtonBase);
} }
public void Down(ref Color HitColor) public void Down(ref Color HitColor)
{ {
using IEnumerator<But> enumerator = buts.Values.GetEnumerator(); using IEnumerator<ButtonBase> enumerator = buts.Values.GetEnumerator();
while (enumerator.MoveNext() && !enumerator.Current.Down(ref HitColor)) while (enumerator.MoveNext() && !enumerator.Current.Down(ref HitColor))
{ {
} }
@@ -27,7 +27,7 @@ namespace _2DGAMELIB
public void Up(ref Color HitColor) public void Up(ref Color HitColor)
{ {
using IEnumerator<But> enumerator = buts.Values.GetEnumerator(); using IEnumerator<ButtonBase> enumerator = buts.Values.GetEnumerator();
while (enumerator.MoveNext() && !enumerator.Current.Up(ref HitColor)) while (enumerator.MoveNext() && !enumerator.Current.Up(ref HitColor))
{ {
} }
@@ -35,7 +35,7 @@ namespace _2DGAMELIB
public void Move(ref Color HitColor) public void Move(ref Color HitColor)
{ {
foreach (But value in buts.Values) foreach (ButtonBase value in buts.Values)
{ {
value.Move(ref HitColor); value.Move(ref HitColor);
} }
@@ -43,7 +43,7 @@ namespace _2DGAMELIB
public void Leave() public void Leave()
{ {
using IEnumerator<But> enumerator = buts.Values.GetEnumerator(); using IEnumerator<ButtonBase> enumerator = buts.Values.GetEnumerator();
while (enumerator.MoveNext() && !enumerator.Current.Leave()) while (enumerator.MoveNext() && !enumerator.Current.Leave())
{ {
} }
@@ -51,7 +51,7 @@ namespace _2DGAMELIB
public void SetHitColor(ModeEventDispatcher Med) public void SetHitColor(ModeEventDispatcher Med)
{ {
foreach (But item in EnumBut) foreach (ButtonBase item in EnumBut)
{ {
item.SetHitColor(Med); item.SetHitColor(Med);
} }
@@ -59,7 +59,7 @@ namespace _2DGAMELIB
public void Draw(RenderArea Are) public void Draw(RenderArea Are)
{ {
foreach (But value in buts.Values) foreach (ButtonBase value in buts.Values)
{ {
value.Draw(Are); value.Draw(Are);
} }
@@ -67,7 +67,7 @@ namespace _2DGAMELIB
public void Dispose() public void Dispose()
{ {
foreach (But value in buts.Values) foreach (ButtonBase value in buts.Values)
{ {
value.Dispose(); value.Dispose();
} }

View File

@@ -41,7 +41,7 @@ namespace _2DGAMELIB
}; };
settings.Converters.Add(new OrderedDictionaryConverter<string, VariantGrid>()); settings.Converters.Add(new OrderedDictionaryConverter<string, VariantGrid>());
settings.Converters.Add(new OrderedDictionaryConverter<string, object>()); settings.Converters.Add(new OrderedDictionaryConverter<string, object>());
settings.Converters.Add(new OrderedDictionaryConverter<string, But>()); settings.Converters.Add(new OrderedDictionaryConverter<string, ButtonBase>());
settings.Converters.Add(new OrderedDictionaryConverter<string, Lab>()); settings.Converters.Add(new OrderedDictionaryConverter<string, Lab>());
return settings; return settings;
} }

View File

@@ -18,9 +18,9 @@ namespace _2DGAMELIB
this.OnColor = OnColor; this.OnColor = OnColor;
} }
public void OnOff(But But) public void OnOff(ButtonBase ButtonBase)
{ {
But1 but = (But1)But; Button but = (Button)ButtonBase;
if (!flag) if (!flag)
{ {
flag = true; flag = true;
@@ -89,9 +89,9 @@ namespace _2DGAMELIB
} }
} }
public void SetFlag(But But, bool On) public void SetFlag(ButtonBase ButtonBase, bool On)
{ {
But1 but = (But1)But; Button but = (Button)ButtonBase;
if (On) if (On)
{ {
flag = true; flag = true;

View File

@@ -41,9 +41,9 @@ namespace SlaveMatrix
private ShapePartT np; private ShapePartT np;
public But1 yb; public Button yb;
public But1 nb; public Button nb;
public string TextIm public string TextIm
{ {
@@ -119,22 +119,22 @@ namespace SlaveMatrix
} }
} }
public Action<But> yAct public Action<ButtonBase> yAct
{ {
set set
{ {
yb.Action = delegate(But a) yb.Action = delegate(ButtonBase a)
{ {
value(a); value(a);
}; };
} }
} }
public Action<But> nAct public Action<ButtonBase> nAct
{ {
set set
{ {
nb.Action = delegate(But a) nb.Action = delegate(ButtonBase a)
{ {
value(a); value(a);
}; };
@@ -237,7 +237,7 @@ namespace SlaveMatrix
yp.StringFormat.LineAlignment = StringAlignment.Center; yp.StringFormat.LineAlignment = StringAlignment.Center;
yp.PositionBase = new Vector2D(MaiB.Position.X + 0.001, MaiB.Position.Y); yp.PositionBase = new Vector2D(MaiB.Position.X + 0.001, MaiB.Position.Y);
yp.Dra = false; yp.Dra = false;
yb = new But1(yp, delegate yb = new Button(yp, delegate
{ {
}); });
np = new ShapePartT(); np = new ShapePartT();
@@ -257,7 +257,7 @@ namespace SlaveMatrix
np.StringFormat.LineAlignment = StringAlignment.Center; np.StringFormat.LineAlignment = StringAlignment.Center;
np.PositionBase = new Vector2D(MaiB.Position.X + 0.001, MaiB.Position.Y); np.PositionBase = new Vector2D(MaiB.Position.X + 0.001, MaiB.Position.Y);
np.Dra = false; np.Dra = false;
nb = new But1(np, delegate nb = new Button(np, delegate
{ {
}); });
} }

View File

@@ -10,9 +10,9 @@ namespace SlaveMatrix
{ {
public string Text; public string Text;
public Action<But> act; public Action<ButtonBase> act;
public TA(string Text, Action<But> act) public TA(string Text, Action<ButtonBase> act)
{ {
this.Text = Text; this.Text = Text;
this.act = act; this.act = act;
@@ -93,7 +93,7 @@ namespace SlaveMatrix
} }
pt[i].BrushColor = BackColor; pt[i].BrushColor = BackColor;
pt[i].PenColor = FramColor; pt[i].PenColor = FramColor;
bs.Add(i.ToString(), new But1(pt[i], acts[i].act)); bs.Add(i.ToString(), new Button(pt[i], acts[i].act));
} }
this.Position = Position; this.Position = Position;
LocalHeight = Are.LocalHeight; LocalHeight = Are.LocalHeight;

View File

@@ -17,7 +17,7 @@ namespace SlaveMatrix
public static class MyUI public static class MyUI
{ {
//normal rectangular buttons //normal rectangular buttons
public static But1 Button(ModeEventDispatcher med, RenderArea buffer, string text, Vector2D pos, Action<But> on_click) { public static Button Button(ModeEventDispatcher med, RenderArea buffer, string text, Vector2D pos, Action<ButtonBase> on_click) {
ShapePartT shapePartT = new ShapePartT(); ShapePartT shapePartT = new ShapePartT();
shapePartT.Font = new Font("MS Gothic", 0.1f); shapePartT.Font = new Font("MS Gothic", 0.1f);
@@ -71,11 +71,11 @@ namespace SlaveMatrix
shapePartT4.StringFormat.LineAlignment = StringAlignment.Center; shapePartT4.StringFormat.LineAlignment = StringAlignment.Center;
*/ */
return new But1(shapePartT, on_click); return new Button(shapePartT, on_click);
} }
//rhombus shaped buttons //rhombus shaped buttons
public static But1 Button2(ModeEventDispatcher med, RenderArea buffer, string text, Vector2D pos, Action<But> on_click) { public static Button Button2(ModeEventDispatcher med, RenderArea buffer, string text, Vector2D pos, Action<ButtonBase> on_click) {
ShapePartT shapePartT = new ShapePartT(); ShapePartT shapePartT = new ShapePartT();
shapePartT.Font = new Font("MS Gothic", 0.1f); shapePartT.Font = new Font("MS Gothic", 0.1f);
shapePartT.PositionBase = buffer.GetPosition(pos); shapePartT.PositionBase = buffer.GetPosition(pos);
@@ -93,7 +93,7 @@ namespace SlaveMatrix
shapePartT.StringFormat.Alignment = StringAlignment.Center; shapePartT.StringFormat.Alignment = StringAlignment.Center;
shapePartT.StringFormat.LineAlignment = StringAlignment.Center; shapePartT.StringFormat.LineAlignment = StringAlignment.Center;
return new But1(shapePartT, on_click); return new Button(shapePartT, on_click);
} }
public static ListView Select(RenderArea buffer, Vector2D pos, params TA[] acts) { public static ListView Select(RenderArea buffer, Vector2D pos, params TA[] acts) {
@@ -2013,7 +2013,7 @@ namespace SlaveMatrix
Color lv初期縁色 = ColorHelper.Black; Color lv初期縁色 = ColorHelper.Black;
Action lv縁色初期化 = delegate Action lv縁色初期化 = delegate
{ {
foreach (But item in lv.bs.EnumBut) foreach (ButtonBase item in lv.bs.EnumBut)
{ {
item.PartGroup.Values.First().ToParT().PenColor = lv初期縁色; item.PartGroup.Values.First().ToParT().PenColor = lv初期縁色;
} }
@@ -2074,7 +2074,7 @@ namespace SlaveMatrix
if (u == null) if (u == null)
{ {
e.Text = "No Slave"; e.Text = "No Slave";
e.act = delegate(But b) e.act = delegate(ButtonBase b)
{ {
lv縁色初期化(); lv縁色初期化();
b.PartGroup.Values.First().ToParT().PenColor = Color.Red; b.PartGroup.Values.First().ToParT().PenColor = Color.Red;
@@ -2090,7 +2090,7 @@ namespace SlaveMatrix
else else
{ {
e.Text = GameText. + u.Number; e.Text = GameText. + u.Number;
e.act = delegate(But b) e.act = delegate(ButtonBase b)
{ {
lv縁色初期化(); lv縁色初期化();
b.PartGroup.Values.First().ToParT().PenColor = Color.Red; b.PartGroup.Values.First().ToParT().PenColor = Color.Red;
@@ -2122,7 +2122,7 @@ namespace SlaveMatrix
Color bs初期縁色 = ColorHelper.Black; Color bs初期縁色 = ColorHelper.Black;
Action bs縁色初期化 = delegate Action bs縁色初期化 = delegate
{ {
foreach (But item2 in bs.EnumBut.Skip(1).Take(3)) foreach (ButtonBase item2 in bs.EnumBut.Skip(1).Take(3))
{ {
item2.PartGroup.Values.First().ToParT().PenColor = bs初期縁色; item2.PartGroup.Values.First().ToParT().PenColor = bs初期縁色;
} }
@@ -2130,12 +2130,12 @@ namespace SlaveMatrix
Color f初期縁色 = ColorHelper.Black; Color f初期縁色 = ColorHelper.Black;
Action f縁色初期化 = delegate Action f縁色初期化 = delegate
{ {
foreach (But item3 in bs.EnumBut.Skip(10)) foreach (ButtonBase item3 in bs.EnumBut.Skip(10))
{ {
item3.PartGroup.Values.First().ToParT().PenColor = f初期縁色; item3.PartGroup.Values.First().ToParT().PenColor = f初期縁色;
} }
}; };
Action<But, int> = delegate (But b, int o) Action<ButtonBase, int> = delegate (ButtonBase b, int o)
{ {
f縁色初期化(); f縁色初期化();
b.PartGroup.Values.First().ToParT().PenColor = Color.Red; b.PartGroup.Values.First().ToParT().PenColor = Color.Red;
@@ -2348,7 +2348,7 @@ namespace SlaveMatrix
Wheel = delegate (MouseButtons mb, Vector2D cp, int dt, Color hc) Wheel = delegate (MouseButtons mb, Vector2D cp, int dt, Color hc)
{ {
int num2 = 0; int num2 = 0;
using (IEnumerator<But> enumerator2 = bs.EnumBut.Skip(12).GetEnumerator()) using (IEnumerator<ButtonBase> enumerator2 = bs.EnumBut.Skip(12).GetEnumerator())
{ {
while (enumerator2.MoveNext() && !(enumerator2.Current.PartGroup.Values.First().ToParT().PenColor == Color.Red)) while (enumerator2.MoveNext() && !(enumerator2.Current.PartGroup.Values.First().ToParT().PenColor == Color.Red))
{ {
@@ -2356,7 +2356,7 @@ namespace SlaveMatrix
} }
} }
int num3 = 0; int num3 = 0;
using (IEnumerator<But> enumerator2 = lv.bs.EnumBut.GetEnumerator()) using (IEnumerator<ButtonBase> enumerator2 = lv.bs.EnumBut.GetEnumerator())
{ {
while (enumerator2.MoveNext() && !(enumerator2.Current.PartGroup.Values.First().ToParT().PenColor == Color.Red)) while (enumerator2.MoveNext() && !(enumerator2.Current.PartGroup.Values.First().ToParT().PenColor == Color.Red))
{ {
@@ -2367,18 +2367,18 @@ namespace SlaveMatrix
d = false; d = false;
if (num4 < 0 && num2 > 0) if (num4 < 0 && num2 > 0)
{ {
But but3 = bs["ボタン" + num2]; ButtonBase but3 = bs["ボタン" + num2];
but3.Action(but3); but3.Action(but3);
num4 = 14; num4 = 14;
} }
else if (num4 > 14 && num2 < Sta.GameData. - 1) else if (num4 > 14 && num2 < Sta.GameData. - 1)
{ {
But but4 = bs["ボタン" + (num2 + 2)]; ButtonBase but4 = bs["ボタン" + (num2 + 2)];
but4.Action(but4); but4.Action(but4);
num4 = 0; num4 = 0;
} }
d = true; d = true;
But but5 = lv.bs[num4.Limit(0, 15).ToString()]; ButtonBase but5 = lv.bs[num4.Limit(0, 15).ToString()];
but5.Action(but5); but5.Action(but5);
if (ip.Mai2Show) if (ip.Mai2Show)
{ {
@@ -2417,8 +2417,8 @@ namespace SlaveMatrix
Player.UI. = false; Player.UI. = false;
if (Sta.GameData.TrainingTarget != null) if (Sta.GameData.TrainingTarget != null)
{ {
But but = bs["ボタン" + (Sta.GameData.TrainingTarget. + 1)]; ButtonBase buttonBase = bs["ボタン" + (Sta.GameData.TrainingTarget. + 1)];
but.Action(but); buttonBase.Action(buttonBase);
lv縁色初期化(); lv縁色初期化();
lv.bs[Sta.GameData.TrainingTarget.RoomNumber.ToString()].PartGroup.Values.First().ToParT().PenColor = Color.Red; lv.bs[Sta.GameData.TrainingTarget.RoomNumber.ToString()].PartGroup.Values.First().ToParT().PenColor = Color.Red;
bs["子"].Action(bs["子"]); bs["子"].Action(bs["子"]);
@@ -2429,14 +2429,14 @@ namespace SlaveMatrix
(bs["ボタン" + (f / 15 + 1)], f); (bs["ボタン" + (f / 15 + 1)], f);
SetUI(null); SetUI(null);
int num = 0; int num = 0;
using (IEnumerator<But> enumerator = lv.bs.EnumBut.GetEnumerator()) using (IEnumerator<ButtonBase> enumerator = lv.bs.EnumBut.GetEnumerator())
{ {
while (enumerator.MoveNext() && !(enumerator.Current.PartGroup.Values.First().ToParT().PenColor == Color.Red)) while (enumerator.MoveNext() && !(enumerator.Current.PartGroup.Values.First().ToParT().PenColor == Color.Red))
{ {
num++; num++;
} }
} }
But but2 = lv.bs[num.Limit(0, 15).ToString()]; ButtonBase but2 = lv.bs[num.Limit(0, 15).ToString()];
but2.Action(but2); but2.Action(but2);
} }
d = true; d = true;
@@ -2475,7 +2475,7 @@ namespace SlaveMatrix
//TODO colors? //TODO colors?
//shapePartT2.PenColor = Color.Red; //shapePartT2.PenColor = Color.Red;
bs.Add("子", MyUI.Button2(Med, DrawBuffer, GameText., new Vector2D(0.85, 0.1), delegate (But b) bs.Add("子", MyUI.Button2(Med, DrawBuffer, GameText., new Vector2D(0.85, 0.1), delegate (ButtonBase b)
{ {
if (d) if (d)
{ {
@@ -2497,7 +2497,7 @@ namespace SlaveMatrix
} }
})); }));
bs.Add("親形質1", MyUI.Button2(Med, DrawBuffer, GameText.1, new Vector2D(0.85, 0.18), delegate(But b) bs.Add("親形質1", MyUI.Button2(Med, DrawBuffer, GameText.1, new Vector2D(0.85, 0.18), delegate(ButtonBase b)
{ {
////Sounds.操作.Play(); ////Sounds.操作.Play();
bs縁色初期化(); bs縁色初期化();
@@ -2541,7 +2541,7 @@ namespace SlaveMatrix
} }
})); }));
bs.Add("親形質2", MyUI.Button2(Med, DrawBuffer, GameText.2, new Vector2D(0.85, 0.26), delegate(But b) bs.Add("親形質2", MyUI.Button2(Med, DrawBuffer, GameText.2, new Vector2D(0.85, 0.26), delegate(ButtonBase b)
{ {
////Sounds.操作.Play(); ////Sounds.操作.Play();
bs縁色初期化(); bs縁色初期化();
@@ -2585,7 +2585,7 @@ namespace SlaveMatrix
} }
})); }));
bs.Add("保守", MyUI.Button2(Med, DrawBuffer, GameText., new Vector2D(0.85, 0.34), delegate(But b) bs.Add("保守", MyUI.Button2(Med, DrawBuffer, GameText., new Vector2D(0.85, 0.34), delegate(ButtonBase b)
{ {
////Sounds.操作.Play(); ////Sounds.操作.Play();
if (Sta.GameData.TrainingTarget != null) if (Sta.GameData.TrainingTarget != null)
@@ -2597,7 +2597,7 @@ namespace SlaveMatrix
} }
})); }));
bs.Add("一般労働", MyUI.Button2(Med, DrawBuffer, GameText., new Vector2D(0.85, 0.42), delegate(But b) bs.Add("一般労働", MyUI.Button2(Med, DrawBuffer, GameText., new Vector2D(0.85, 0.42), delegate(ButtonBase b)
{ {
////Sounds.操作.Play(); ////Sounds.操作.Play();
if (Sta.GameData.TrainingTarget != null) if (Sta.GameData.TrainingTarget != null)
@@ -2613,7 +2613,7 @@ namespace SlaveMatrix
} }
})); }));
bs.Add("娼婦労働", MyUI.Button2(Med, DrawBuffer, GameText., new Vector2D(0.85, 0.5), delegate (But b) bs.Add("娼婦労働", MyUI.Button2(Med, DrawBuffer, GameText., new Vector2D(0.85, 0.5), delegate (ButtonBase b)
{ {
////Sounds.操作.Play(); ////Sounds.操作.Play();
if (Sta.GameData.TrainingTarget != null) if (Sta.GameData.TrainingTarget != null)
@@ -2722,9 +2722,9 @@ namespace SlaveMatrix
set(f); set(f);
ip.SubInfoIm = GameText. + Sta.GameData.TrainingTarget.Number + GameText. + " \r\n+" + price.ToString("#,0"); ip.SubInfoIm = GameText. + Sta.GameData.TrainingTarget.Number + GameText. + " \r\n+" + price.ToString("#,0");
d = false; d = false;
But but8 = bs["ボタン" + (Sta.GameData.TrainingTarget. + 1)]; ButtonBase but8 = bs["ボタン" + (Sta.GameData.TrainingTarget. + 1)];
but8.Action(but8); but8.Action(but8);
But but9 = lv.bs.EnumBut.ToArray()[Sta.GameData.TrainingTarget.RoomNumber]; ButtonBase but9 = lv.bs.EnumBut.ToArray()[Sta.GameData.TrainingTarget.RoomNumber];
but9.Action(but9); but9.Action(but9);
if (Sta.GameData.TrainingTarget == null) if (Sta.GameData.TrainingTarget == null)
{ {
@@ -2788,9 +2788,9 @@ namespace SlaveMatrix
{ {
if (!Sta.GameData.TrainingTarget.) if (!Sta.GameData.TrainingTarget.)
{ {
But but6 = bs["ボタン" + (Sta.GameData.TrainingTarget. + 1)]; ButtonBase but6 = bs["ボタン" + (Sta.GameData.TrainingTarget. + 1)];
but6.Action(but6); but6.Action(but6);
But but7 = lv.bs.EnumBut.ToArray()[Sta.GameData.TrainingTarget.RoomNumber]; ButtonBase but7 = lv.bs.EnumBut.ToArray()[Sta.GameData.TrainingTarget.RoomNumber];
but7.Action(but7); but7.Action(but7);
} }
else if (Sta.AlwaysUseName) else if (Sta.AlwaysUseName)
@@ -2837,7 +2837,7 @@ namespace SlaveMatrix
shapePartT13.StringFormat.Alignment = StringAlignment.Center; shapePartT13.StringFormat.Alignment = StringAlignment.Center;
shapePartT13.StringFormat.LineAlignment = StringAlignment.Center; shapePartT13.StringFormat.LineAlignment = StringAlignment.Center;
shapePartT13.PenColor = Color.Red; shapePartT13.PenColor = Color.Red;
bs.Add("ボタン1", new But1(shapePartT13, delegate(But b) bs.Add("ボタン1", new Button(shapePartT13, delegate(ButtonBase b)
{ {
if (d) if (d)
{ {
@@ -2863,7 +2863,7 @@ namespace SlaveMatrix
shapePartT14.ShadBrush = new SolidBrush(Color.FromArgb(64, ColorHelper.Black)); shapePartT14.ShadBrush = new SolidBrush(Color.FromArgb(64, ColorHelper.Black));
shapePartT14.StringFormat.Alignment = StringAlignment.Center; shapePartT14.StringFormat.Alignment = StringAlignment.Center;
shapePartT14.StringFormat.LineAlignment = StringAlignment.Center; shapePartT14.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("ボタン2", new But1(shapePartT14, delegate(But b) bs.Add("ボタン2", new Button(shapePartT14, delegate(ButtonBase b)
{ {
if (d) if (d)
{ {
@@ -2887,7 +2887,7 @@ namespace SlaveMatrix
shapePartT15.ShadBrush = new SolidBrush(Color.FromArgb(64, ColorHelper.Black)); shapePartT15.ShadBrush = new SolidBrush(Color.FromArgb(64, ColorHelper.Black));
shapePartT15.StringFormat.Alignment = StringAlignment.Center; shapePartT15.StringFormat.Alignment = StringAlignment.Center;
shapePartT15.StringFormat.LineAlignment = StringAlignment.Center; shapePartT15.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("ボタン3", new But1(shapePartT15, delegate(But b) bs.Add("ボタン3", new Button(shapePartT15, delegate(ButtonBase b)
{ {
if (d) if (d)
{ {
@@ -2911,7 +2911,7 @@ namespace SlaveMatrix
shapePartT16.ShadBrush = new SolidBrush(Color.FromArgb(64, ColorHelper.Black)); shapePartT16.ShadBrush = new SolidBrush(Color.FromArgb(64, ColorHelper.Black));
shapePartT16.StringFormat.Alignment = StringAlignment.Center; shapePartT16.StringFormat.Alignment = StringAlignment.Center;
shapePartT16.StringFormat.LineAlignment = StringAlignment.Center; shapePartT16.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("ボタン4", new But1(shapePartT16, delegate(But b) bs.Add("ボタン4", new Button(shapePartT16, delegate(ButtonBase b)
{ {
if (d) if (d)
{ {
@@ -2935,7 +2935,7 @@ namespace SlaveMatrix
shapePartT17.ShadBrush = new SolidBrush(Color.FromArgb(64, ColorHelper.Black)); shapePartT17.ShadBrush = new SolidBrush(Color.FromArgb(64, ColorHelper.Black));
shapePartT17.StringFormat.Alignment = StringAlignment.Center; shapePartT17.StringFormat.Alignment = StringAlignment.Center;
shapePartT17.StringFormat.LineAlignment = StringAlignment.Center; shapePartT17.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("ボタン5", new But1(shapePartT17, delegate(But b) bs.Add("ボタン5", new Button(shapePartT17, delegate(ButtonBase b)
{ {
if (d) if (d)
{ {
@@ -2959,7 +2959,7 @@ namespace SlaveMatrix
shapePartT18.ShadBrush = new SolidBrush(Color.FromArgb(64, ColorHelper.Black)); shapePartT18.ShadBrush = new SolidBrush(Color.FromArgb(64, ColorHelper.Black));
shapePartT18.StringFormat.Alignment = StringAlignment.Center; shapePartT18.StringFormat.Alignment = StringAlignment.Center;
shapePartT18.StringFormat.LineAlignment = StringAlignment.Center; shapePartT18.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("ボタン6", new But1(shapePartT18, delegate(But b) bs.Add("ボタン6", new Button(shapePartT18, delegate(ButtonBase b)
{ {
if (d) if (d)
{ {
@@ -2983,7 +2983,7 @@ namespace SlaveMatrix
shapePartT19.ShadBrush = new SolidBrush(Color.FromArgb(64, ColorHelper.Black)); shapePartT19.ShadBrush = new SolidBrush(Color.FromArgb(64, ColorHelper.Black));
shapePartT19.StringFormat.Alignment = StringAlignment.Center; shapePartT19.StringFormat.Alignment = StringAlignment.Center;
shapePartT19.StringFormat.LineAlignment = StringAlignment.Center; shapePartT19.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("ボタン7", new But1(shapePartT19, delegate(But b) bs.Add("ボタン7", new Button(shapePartT19, delegate(ButtonBase b)
{ {
if (d) if (d)
{ {
@@ -3007,7 +3007,7 @@ namespace SlaveMatrix
shapePartT20.ShadBrush = new SolidBrush(Color.FromArgb(64, ColorHelper.Black)); shapePartT20.ShadBrush = new SolidBrush(Color.FromArgb(64, ColorHelper.Black));
shapePartT20.StringFormat.Alignment = StringAlignment.Center; shapePartT20.StringFormat.Alignment = StringAlignment.Center;
shapePartT20.StringFormat.LineAlignment = StringAlignment.Center; shapePartT20.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("ボタン8", new But1(shapePartT20, delegate(But b) bs.Add("ボタン8", new Button(shapePartT20, delegate(ButtonBase b)
{ {
if (d) if (d)
{ {
@@ -3031,7 +3031,7 @@ namespace SlaveMatrix
shapePartT21.ShadBrush = new SolidBrush(Color.FromArgb(64, ColorHelper.Black)); shapePartT21.ShadBrush = new SolidBrush(Color.FromArgb(64, ColorHelper.Black));
shapePartT21.StringFormat.Alignment = StringAlignment.Center; shapePartT21.StringFormat.Alignment = StringAlignment.Center;
shapePartT21.StringFormat.LineAlignment = StringAlignment.Center; shapePartT21.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("ボタン9", new But1(shapePartT21, delegate(But b) bs.Add("ボタン9", new Button(shapePartT21, delegate(ButtonBase b)
{ {
if (d) if (d)
{ {
@@ -3332,13 +3332,13 @@ namespace SlaveMatrix
Action<ButtonMap> rs1 = delegate(ButtonMap bs_) Action<ButtonMap> rs1 = delegate(ButtonMap bs_)
{ {
Color penColor = bs_["ボタン0"].PartGroup.Values.First().ToParT().PenColor; Color penColor = bs_["ボタン0"].PartGroup.Values.First().ToParT().PenColor;
foreach (But item in bs_.EnumBut.Skip(1)) foreach (ButtonBase item in bs_.EnumBut.Skip(1))
{ {
item.PartGroup.Values.First().ToParT().PenColor = penColor; item.PartGroup.Values.First().ToParT().PenColor = penColor;
} }
}; };
bs.Add("子", MyUI.Button2(Med, DrawBuffer, GameText., new Vector2D(0.85, 0.1), delegate(But bu) bs.Add("子", MyUI.Button2(Med, DrawBuffer, GameText., new Vector2D(0.85, 0.1), delegate(ButtonBase bu)
{ {
if (d) if (d)
{ {
@@ -3381,7 +3381,7 @@ namespace SlaveMatrix
} }
})); }));
bs.Add("親形質1", MyUI.Button2(Med, DrawBuffer, GameText.1, new Vector2D(0.85, 0.18), delegate(But bu) bs.Add("親形質1", MyUI.Button2(Med, DrawBuffer, GameText.1, new Vector2D(0.85, 0.18), delegate(ButtonBase bu)
{ {
//Sounds.操作.Play(); //Sounds.操作.Play();
rs1(bs); rs1(bs);
@@ -3421,7 +3421,7 @@ namespace SlaveMatrix
} }
})); }));
bs.Add("親形質2", MyUI.Button2(Med, DrawBuffer, GameText.2, new Vector2D(0.85, 0.26), delegate(But bu) bs.Add("親形質2", MyUI.Button2(Med, DrawBuffer, GameText.2, new Vector2D(0.85, 0.26), delegate(ButtonBase bu)
{ {
//Sounds.操作.Play(); //Sounds.操作.Play();
rs1(bs); rs1(bs);
@@ -3653,7 +3653,7 @@ namespace SlaveMatrix
shapePartT.ShadBrush = new SolidBrush(Color.FromArgb(64, ColorHelper.Black)); shapePartT.ShadBrush = new SolidBrush(Color.FromArgb(64, ColorHelper.Black));
shapePartT.StringFormat.Alignment = StringAlignment.Center; shapePartT.StringFormat.Alignment = StringAlignment.Center;
shapePartT.StringFormat.LineAlignment = StringAlignment.Center; shapePartT.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("ボタン0", new But1(shapePartT, delegate bs.Add("ボタン0", new Button(shapePartT, delegate
{ {
//Sounds.操作.Play(); //Sounds.操作.Play();
if (!PassTime(Med)) if (!PassTime(Med))
@@ -3676,7 +3676,7 @@ namespace SlaveMatrix
shapePartT2.ShadBrush = new SolidBrush(Color.FromArgb(64, ColorHelper.Black)); shapePartT2.ShadBrush = new SolidBrush(Color.FromArgb(64, ColorHelper.Black));
shapePartT2.StringFormat.Alignment = StringAlignment.Center; shapePartT2.StringFormat.Alignment = StringAlignment.Center;
shapePartT2.StringFormat.LineAlignment = StringAlignment.Center; shapePartT2.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("ボタン1", new But1(shapePartT2, delegate bs.Add("ボタン1", new Button(shapePartT2, delegate
{ {
//Sounds.操作.Play(); //Sounds.操作.Play();
Med.Mode = "Debt"; Med.Mode = "Debt";
@@ -3696,7 +3696,7 @@ namespace SlaveMatrix
shapePartT3.ShadBrush = new SolidBrush(Color.FromArgb(64, ColorHelper.Black)); shapePartT3.ShadBrush = new SolidBrush(Color.FromArgb(64, ColorHelper.Black));
shapePartT3.StringFormat.Alignment = StringAlignment.Center; shapePartT3.StringFormat.Alignment = StringAlignment.Center;
shapePartT3.StringFormat.LineAlignment = StringAlignment.Center; shapePartT3.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("ボタン2", new But1(shapePartT3, delegate bs.Add("ボタン2", new Button(shapePartT3, delegate
{ {
//Sounds.操作.Play(); //Sounds.操作.Play();
Med.Mode = "SlaveShop"; Med.Mode = "SlaveShop";
@@ -3716,7 +3716,7 @@ namespace SlaveMatrix
shapePartT4.ShadBrush = new SolidBrush(Color.FromArgb(64, ColorHelper.Black)); shapePartT4.ShadBrush = new SolidBrush(Color.FromArgb(64, ColorHelper.Black));
shapePartT4.StringFormat.Alignment = StringAlignment.Center; shapePartT4.StringFormat.Alignment = StringAlignment.Center;
shapePartT4.StringFormat.LineAlignment = StringAlignment.Center; shapePartT4.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("ボタン3", new But1(shapePartT4, delegate bs.Add("ボタン3", new Button(shapePartT4, delegate
{ {
//Sounds.操作.Play(); //Sounds.操作.Play();
Med.SwitchMode("ViolaBlessing", DrawBuffer, ); Med.SwitchMode("ViolaBlessing", DrawBuffer, );
@@ -3925,7 +3925,7 @@ namespace SlaveMatrix
shapePartT2.ShadBrush = new SolidBrush(Color.FromArgb(64, ColorHelper.Black)); shapePartT2.ShadBrush = new SolidBrush(Color.FromArgb(64, ColorHelper.Black));
shapePartT2.StringFormat.Alignment = StringAlignment.Center; shapePartT2.StringFormat.Alignment = StringAlignment.Center;
shapePartT2.StringFormat.LineAlignment = StringAlignment.Center; shapePartT2.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("nc", new But1(shapePartT2, delegate bs.Add("nc", new Button(shapePartT2, delegate
{ {
//Sounds.操作.Play(); //Sounds.操作.Play();
ip.TextIm = "0"; ip.TextIm = "0";
@@ -3945,7 +3945,7 @@ namespace SlaveMatrix
shapePartT3.ShadBrush = new SolidBrush(Color.FromArgb(64, ColorHelper.Black)); shapePartT3.ShadBrush = new SolidBrush(Color.FromArgb(64, ColorHelper.Black));
shapePartT3.StringFormat.Alignment = StringAlignment.Center; shapePartT3.StringFormat.Alignment = StringAlignment.Center;
shapePartT3.StringFormat.LineAlignment = StringAlignment.Center; shapePartT3.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("nm", new But1(shapePartT3, delegate bs.Add("nm", new Button(shapePartT3, delegate
{ {
//Sounds.操作.Play(); //Sounds.操作.Play();
ip.TextIm = 9999999999999uL.ToString("#,0"); ip.TextIm = 9999999999999uL.ToString("#,0");
@@ -3974,7 +3974,7 @@ namespace SlaveMatrix
shapePartT4.ShadBrush = new SolidBrush(Color.FromArgb(64, ColorHelper.Black)); shapePartT4.ShadBrush = new SolidBrush(Color.FromArgb(64, ColorHelper.Black));
shapePartT4.StringFormat.Alignment = StringAlignment.Center; shapePartT4.StringFormat.Alignment = StringAlignment.Center;
shapePartT4.StringFormat.LineAlignment = StringAlignment.Center; shapePartT4.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("n7", new But1(shapePartT4, delegate bs.Add("n7", new Button(shapePartT4, delegate
{ {
//Sounds.操作.Play(); //Sounds.操作.Play();
SetNum("7"); SetNum("7");
@@ -3994,7 +3994,7 @@ namespace SlaveMatrix
shapePartT5.ShadBrush = new SolidBrush(Color.FromArgb(64, ColorHelper.Black)); shapePartT5.ShadBrush = new SolidBrush(Color.FromArgb(64, ColorHelper.Black));
shapePartT5.StringFormat.Alignment = StringAlignment.Center; shapePartT5.StringFormat.Alignment = StringAlignment.Center;
shapePartT5.StringFormat.LineAlignment = StringAlignment.Center; shapePartT5.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("n8", new But1(shapePartT5, delegate bs.Add("n8", new Button(shapePartT5, delegate
{ {
//Sounds.操作.Play(); //Sounds.操作.Play();
SetNum("8"); SetNum("8");
@@ -4014,7 +4014,7 @@ namespace SlaveMatrix
shapePartT6.ShadBrush = new SolidBrush(Color.FromArgb(64, ColorHelper.Black)); shapePartT6.ShadBrush = new SolidBrush(Color.FromArgb(64, ColorHelper.Black));
shapePartT6.StringFormat.Alignment = StringAlignment.Center; shapePartT6.StringFormat.Alignment = StringAlignment.Center;
shapePartT6.StringFormat.LineAlignment = StringAlignment.Center; shapePartT6.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("n9", new But1(shapePartT6, delegate bs.Add("n9", new Button(shapePartT6, delegate
{ {
//Sounds.操作.Play(); //Sounds.操作.Play();
SetNum("9"); SetNum("9");
@@ -4034,7 +4034,7 @@ namespace SlaveMatrix
shapePartT7.ShadBrush = new SolidBrush(Color.FromArgb(64, ColorHelper.Black)); shapePartT7.ShadBrush = new SolidBrush(Color.FromArgb(64, ColorHelper.Black));
shapePartT7.StringFormat.Alignment = StringAlignment.Center; shapePartT7.StringFormat.Alignment = StringAlignment.Center;
shapePartT7.StringFormat.LineAlignment = StringAlignment.Center; shapePartT7.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("n4", new But1(shapePartT7, delegate bs.Add("n4", new Button(shapePartT7, delegate
{ {
//Sounds.操作.Play(); //Sounds.操作.Play();
SetNum("4"); SetNum("4");
@@ -4054,7 +4054,7 @@ namespace SlaveMatrix
shapePartT8.ShadBrush = new SolidBrush(Color.FromArgb(64, ColorHelper.Black)); shapePartT8.ShadBrush = new SolidBrush(Color.FromArgb(64, ColorHelper.Black));
shapePartT8.StringFormat.Alignment = StringAlignment.Center; shapePartT8.StringFormat.Alignment = StringAlignment.Center;
shapePartT8.StringFormat.LineAlignment = StringAlignment.Center; shapePartT8.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("n5", new But1(shapePartT8, delegate bs.Add("n5", new Button(shapePartT8, delegate
{ {
//Sounds.操作.Play(); //Sounds.操作.Play();
SetNum("5"); SetNum("5");
@@ -4074,7 +4074,7 @@ namespace SlaveMatrix
shapePartT9.ShadBrush = new SolidBrush(Color.FromArgb(64, ColorHelper.Black)); shapePartT9.ShadBrush = new SolidBrush(Color.FromArgb(64, ColorHelper.Black));
shapePartT9.StringFormat.Alignment = StringAlignment.Center; shapePartT9.StringFormat.Alignment = StringAlignment.Center;
shapePartT9.StringFormat.LineAlignment = StringAlignment.Center; shapePartT9.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("n6", new But1(shapePartT9, delegate bs.Add("n6", new Button(shapePartT9, delegate
{ {
//Sounds.操作.Play(); //Sounds.操作.Play();
SetNum("6"); SetNum("6");
@@ -4094,7 +4094,7 @@ namespace SlaveMatrix
shapePartT10.ShadBrush = new SolidBrush(Color.FromArgb(64, ColorHelper.Black)); shapePartT10.ShadBrush = new SolidBrush(Color.FromArgb(64, ColorHelper.Black));
shapePartT10.StringFormat.Alignment = StringAlignment.Center; shapePartT10.StringFormat.Alignment = StringAlignment.Center;
shapePartT10.StringFormat.LineAlignment = StringAlignment.Center; shapePartT10.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("n1", new But1(shapePartT10, delegate bs.Add("n1", new Button(shapePartT10, delegate
{ {
//Sounds.操作.Play(); //Sounds.操作.Play();
SetNum("1"); SetNum("1");
@@ -4114,7 +4114,7 @@ namespace SlaveMatrix
shapePartT11.ShadBrush = new SolidBrush(Color.FromArgb(64, ColorHelper.Black)); shapePartT11.ShadBrush = new SolidBrush(Color.FromArgb(64, ColorHelper.Black));
shapePartT11.StringFormat.Alignment = StringAlignment.Center; shapePartT11.StringFormat.Alignment = StringAlignment.Center;
shapePartT11.StringFormat.LineAlignment = StringAlignment.Center; shapePartT11.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("n2", new But1(shapePartT11, delegate bs.Add("n2", new Button(shapePartT11, delegate
{ {
//Sounds.操作.Play(); //Sounds.操作.Play();
SetNum("2"); SetNum("2");
@@ -4134,7 +4134,7 @@ namespace SlaveMatrix
shapePartT12.ShadBrush = new SolidBrush(Color.FromArgb(64, ColorHelper.Black)); shapePartT12.ShadBrush = new SolidBrush(Color.FromArgb(64, ColorHelper.Black));
shapePartT12.StringFormat.Alignment = StringAlignment.Center; shapePartT12.StringFormat.Alignment = StringAlignment.Center;
shapePartT12.StringFormat.LineAlignment = StringAlignment.Center; shapePartT12.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("n3", new But1(shapePartT12, delegate bs.Add("n3", new Button(shapePartT12, delegate
{ {
//Sounds.操作.Play(); //Sounds.操作.Play();
SetNum("3"); SetNum("3");
@@ -4154,7 +4154,7 @@ namespace SlaveMatrix
shapePartT13.ShadBrush = new SolidBrush(Color.FromArgb(64, ColorHelper.Black)); shapePartT13.ShadBrush = new SolidBrush(Color.FromArgb(64, ColorHelper.Black));
shapePartT13.StringFormat.Alignment = StringAlignment.Center; shapePartT13.StringFormat.Alignment = StringAlignment.Center;
shapePartT13.StringFormat.LineAlignment = StringAlignment.Center; shapePartT13.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("n0", new But1(shapePartT13, delegate bs.Add("n0", new Button(shapePartT13, delegate
{ {
//Sounds.操作.Play(); //Sounds.操作.Play();
SetNum("0"); SetNum("0");
@@ -4174,7 +4174,7 @@ namespace SlaveMatrix
shapePartT14.ShadBrush = new SolidBrush(Color.FromArgb(64, ColorHelper.Black)); shapePartT14.ShadBrush = new SolidBrush(Color.FromArgb(64, ColorHelper.Black));
shapePartT14.StringFormat.Alignment = StringAlignment.Center; shapePartT14.StringFormat.Alignment = StringAlignment.Center;
shapePartT14.StringFormat.LineAlignment = StringAlignment.Center; shapePartT14.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("nb", new But1(shapePartT14, delegate bs.Add("nb", new Button(shapePartT14, delegate
{ {
if (Sta.GameData. != 0) if (Sta.GameData. != 0)
{ {
@@ -4221,7 +4221,7 @@ namespace SlaveMatrix
shapePartT15.ShadBrush = new SolidBrush(Color.FromArgb(64, ColorHelper.Black)); shapePartT15.ShadBrush = new SolidBrush(Color.FromArgb(64, ColorHelper.Black));
shapePartT15.StringFormat.Alignment = StringAlignment.Center; shapePartT15.StringFormat.Alignment = StringAlignment.Center;
shapePartT15.StringFormat.LineAlignment = StringAlignment.Center; shapePartT15.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("nr", new But1(shapePartT15, delegate bs.Add("nr", new Button(shapePartT15, delegate
{ {
if (Sta.GameData. != 0) if (Sta.GameData. != 0)
{ {
@@ -4432,7 +4432,7 @@ namespace SlaveMatrix
shapePartT.ShadBrush = new SolidBrush(Color.FromArgb(64, ColorHelper.Black)); shapePartT.ShadBrush = new SolidBrush(Color.FromArgb(64, ColorHelper.Black));
shapePartT.StringFormat.Alignment = StringAlignment.Center; shapePartT.StringFormat.Alignment = StringAlignment.Center;
shapePartT.StringFormat.LineAlignment = StringAlignment.Center; shapePartT.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("ボタン0", new But1(shapePartT, delegate bs.Add("ボタン0", new Button(shapePartT, delegate
{ {
//Sounds.操作.Play(); //Sounds.操作.Play();
if (Sta.GameData.) if (Sta.GameData.)
@@ -4460,7 +4460,7 @@ namespace SlaveMatrix
shapePartT2.StringFormat.Alignment = StringAlignment.Center; shapePartT2.StringFormat.Alignment = StringAlignment.Center;
shapePartT2.StringFormat.LineAlignment = StringAlignment.Center; shapePartT2.StringFormat.LineAlignment = StringAlignment.Center;
shapePartT2.PenColor = Color.Red; shapePartT2.PenColor = Color.Red;
bs.Add("ボタン1", new But1(shapePartT2, delegate bs.Add("ボタン1", new Button(shapePartT2, delegate
{ {
//Sounds.操作.Play(); //Sounds.操作.Play();
Med.Mode = "SlaveShop"; Med.Mode = "SlaveShop";
@@ -4480,7 +4480,7 @@ namespace SlaveMatrix
shapePartT3.ShadBrush = new SolidBrush(Color.FromArgb(64, ColorHelper.Black)); shapePartT3.ShadBrush = new SolidBrush(Color.FromArgb(64, ColorHelper.Black));
shapePartT3.StringFormat.Alignment = StringAlignment.Center; shapePartT3.StringFormat.Alignment = StringAlignment.Center;
shapePartT3.StringFormat.LineAlignment = StringAlignment.Center; shapePartT3.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("ボタン2", new But1(shapePartT3, delegate bs.Add("ボタン2", new Button(shapePartT3, delegate
{ {
//Sounds.操作.Play(); //Sounds.操作.Play();
Med.Mode = "ToolShop"; Med.Mode = "ToolShop";
@@ -4488,7 +4488,7 @@ namespace SlaveMatrix
Color bs初期縁色 = ColorHelper.Black; Color bs初期縁色 = ColorHelper.Black;
Action bs縁色初期化 = delegate Action bs縁色初期化 = delegate
{ {
foreach (But item in bs.EnumBut.Skip(3).Take(10)) foreach (ButtonBase item in bs.EnumBut.Skip(3).Take(10))
{ {
item.PartGroup.Values.First().ToParT().PenColor = bs初期縁色; item.PartGroup.Values.First().ToParT().PenColor = bs初期縁色;
} }
@@ -4510,7 +4510,7 @@ namespace SlaveMatrix
shapePartT4.StringFormat.Alignment = StringAlignment.Center; shapePartT4.StringFormat.Alignment = StringAlignment.Center;
shapePartT4.StringFormat.LineAlignment = StringAlignment.Center; shapePartT4.StringFormat.LineAlignment = StringAlignment.Center;
shapePartT4.PenColor = Color.Red; shapePartT4.PenColor = Color.Red;
bs.Add("対象0", new But1(shapePartT4, delegate(But bu) bs.Add("対象0", new Button(shapePartT4, delegate(ButtonBase bu)
{ {
if (d) if (d)
{ {
@@ -4535,7 +4535,7 @@ namespace SlaveMatrix
shapePartT5.ShadBrush = new SolidBrush(Color.FromArgb(64, ColorHelper.Black)); shapePartT5.ShadBrush = new SolidBrush(Color.FromArgb(64, ColorHelper.Black));
shapePartT5.StringFormat.Alignment = StringAlignment.Center; shapePartT5.StringFormat.Alignment = StringAlignment.Center;
shapePartT5.StringFormat.LineAlignment = StringAlignment.Center; shapePartT5.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("対象1", new But1(shapePartT5, delegate(But bu) bs.Add("対象1", new Button(shapePartT5, delegate(ButtonBase bu)
{ {
//Sounds.操作.Play(); //Sounds.操作.Play();
bs縁色初期化(); bs縁色初期化();
@@ -4556,7 +4556,7 @@ namespace SlaveMatrix
shapePartT6.ShadBrush = new SolidBrush(Color.FromArgb(64, ColorHelper.Black)); shapePartT6.ShadBrush = new SolidBrush(Color.FromArgb(64, ColorHelper.Black));
shapePartT6.StringFormat.Alignment = StringAlignment.Center; shapePartT6.StringFormat.Alignment = StringAlignment.Center;
shapePartT6.StringFormat.LineAlignment = StringAlignment.Center; shapePartT6.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("対象2", new But1(shapePartT6, delegate(But bu) bs.Add("対象2", new Button(shapePartT6, delegate(ButtonBase bu)
{ {
//Sounds.操作.Play(); //Sounds.操作.Play();
bs縁色初期化(); bs縁色初期化();
@@ -4577,7 +4577,7 @@ namespace SlaveMatrix
shapePartT7.ShadBrush = new SolidBrush(Color.FromArgb(64, ColorHelper.Black)); shapePartT7.ShadBrush = new SolidBrush(Color.FromArgb(64, ColorHelper.Black));
shapePartT7.StringFormat.Alignment = StringAlignment.Center; shapePartT7.StringFormat.Alignment = StringAlignment.Center;
shapePartT7.StringFormat.LineAlignment = StringAlignment.Center; shapePartT7.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("対象3", new But1(shapePartT7, delegate(But bu) bs.Add("対象3", new Button(shapePartT7, delegate(ButtonBase bu)
{ {
//Sounds.操作.Play(); //Sounds.操作.Play();
bs縁色初期化(); bs縁色初期化();
@@ -4598,7 +4598,7 @@ namespace SlaveMatrix
shapePartT8.ShadBrush = new SolidBrush(Color.FromArgb(64, ColorHelper.Black)); shapePartT8.ShadBrush = new SolidBrush(Color.FromArgb(64, ColorHelper.Black));
shapePartT8.StringFormat.Alignment = StringAlignment.Center; shapePartT8.StringFormat.Alignment = StringAlignment.Center;
shapePartT8.StringFormat.LineAlignment = StringAlignment.Center; shapePartT8.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("対象4", new But1(shapePartT8, delegate(But bu) bs.Add("対象4", new Button(shapePartT8, delegate(ButtonBase bu)
{ {
//Sounds.操作.Play(); //Sounds.操作.Play();
bs縁色初期化(); bs縁色初期化();
@@ -4619,7 +4619,7 @@ namespace SlaveMatrix
shapePartT9.ShadBrush = new SolidBrush(Color.FromArgb(64, ColorHelper.Black)); shapePartT9.ShadBrush = new SolidBrush(Color.FromArgb(64, ColorHelper.Black));
shapePartT9.StringFormat.Alignment = StringAlignment.Center; shapePartT9.StringFormat.Alignment = StringAlignment.Center;
shapePartT9.StringFormat.LineAlignment = StringAlignment.Center; shapePartT9.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("対象5", new But1(shapePartT9, delegate(But bu) bs.Add("対象5", new Button(shapePartT9, delegate(ButtonBase bu)
{ {
//Sounds.操作.Play(); //Sounds.操作.Play();
bs縁色初期化(); bs縁色初期化();
@@ -4640,7 +4640,7 @@ namespace SlaveMatrix
shapePartT10.ShadBrush = new SolidBrush(Color.FromArgb(64, ColorHelper.Black)); shapePartT10.ShadBrush = new SolidBrush(Color.FromArgb(64, ColorHelper.Black));
shapePartT10.StringFormat.Alignment = StringAlignment.Center; shapePartT10.StringFormat.Alignment = StringAlignment.Center;
shapePartT10.StringFormat.LineAlignment = StringAlignment.Center; shapePartT10.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("対象6", new But1(shapePartT10, delegate(But bu) bs.Add("対象6", new Button(shapePartT10, delegate(ButtonBase bu)
{ {
//Sounds.操作.Play(); //Sounds.操作.Play();
bs縁色初期化(); bs縁色初期化();
@@ -4661,7 +4661,7 @@ namespace SlaveMatrix
shapePartT11.ShadBrush = new SolidBrush(Color.FromArgb(64, ColorHelper.Black)); shapePartT11.ShadBrush = new SolidBrush(Color.FromArgb(64, ColorHelper.Black));
shapePartT11.StringFormat.Alignment = StringAlignment.Center; shapePartT11.StringFormat.Alignment = StringAlignment.Center;
shapePartT11.StringFormat.LineAlignment = StringAlignment.Center; shapePartT11.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("対象7", new But1(shapePartT11, delegate(But bu) bs.Add("対象7", new Button(shapePartT11, delegate(ButtonBase bu)
{ {
//Sounds.操作.Play(); //Sounds.操作.Play();
bs縁色初期化(); bs縁色初期化();
@@ -4682,7 +4682,7 @@ namespace SlaveMatrix
shapePartT12.ShadBrush = new SolidBrush(Color.FromArgb(64, ColorHelper.Black)); shapePartT12.ShadBrush = new SolidBrush(Color.FromArgb(64, ColorHelper.Black));
shapePartT12.StringFormat.Alignment = StringAlignment.Center; shapePartT12.StringFormat.Alignment = StringAlignment.Center;
shapePartT12.StringFormat.LineAlignment = StringAlignment.Center; shapePartT12.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("対象8", new But1(shapePartT12, delegate(But bu) bs.Add("対象8", new Button(shapePartT12, delegate(ButtonBase bu)
{ {
//Sounds.操作.Play(); //Sounds.操作.Play();
bs縁色初期化(); bs縁色初期化();
@@ -4703,7 +4703,7 @@ namespace SlaveMatrix
shapePartT13.ShadBrush = new SolidBrush(Color.FromArgb(64, ColorHelper.Black)); shapePartT13.ShadBrush = new SolidBrush(Color.FromArgb(64, ColorHelper.Black));
shapePartT13.StringFormat.Alignment = StringAlignment.Center; shapePartT13.StringFormat.Alignment = StringAlignment.Center;
shapePartT13.StringFormat.LineAlignment = StringAlignment.Center; shapePartT13.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("対象9", new But1(shapePartT13, delegate(But bu) bs.Add("対象9", new Button(shapePartT13, delegate(ButtonBase bu)
{ {
//Sounds.操作.Play(); //Sounds.操作.Play();
bs縁色初期化(); bs縁色初期化();
@@ -4859,7 +4859,7 @@ namespace SlaveMatrix
shapePartT14.ShadBrush = new SolidBrush(Color.FromArgb(64, ColorHelper.Black)); shapePartT14.ShadBrush = new SolidBrush(Color.FromArgb(64, ColorHelper.Black));
shapePartT14.StringFormat.Alignment = StringAlignment.Center; shapePartT14.StringFormat.Alignment = StringAlignment.Center;
shapePartT14.StringFormat.LineAlignment = StringAlignment.Center; shapePartT14.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("変更", new But1(shapePartT14, delegate bs.Add("変更", new Button(shapePartT14, delegate
{ {
if (!ip.Mai.TextIm.StartsWith(GameText.)) if (!ip.Mai.TextIm.StartsWith(GameText.))
{ {
@@ -4886,7 +4886,7 @@ namespace SlaveMatrix
shapePartT15.StringFormat.Alignment = StringAlignment.Center; shapePartT15.StringFormat.Alignment = StringAlignment.Center;
shapePartT15.StringFormat.LineAlignment = StringAlignment.Center; shapePartT15.StringFormat.LineAlignment = StringAlignment.Center;
ulong ; ulong ;
bs.Add("購入", new But1(shapePartT15, delegate bs.Add("購入", new Button(shapePartT15, delegate
{ {
if (Sta.GameData.Is地下室一杯()) if (Sta.GameData.Is地下室一杯())
{ {
@@ -5008,7 +5008,7 @@ namespace SlaveMatrix
mod.Wheel = delegate(MouseButtons mb, Vector2D cp, int dt, Color hc) mod.Wheel = delegate(MouseButtons mb, Vector2D cp, int dt, Color hc)
{ {
int num3 = 0; int num3 = 0;
using (IEnumerator<But> enumerator = bs.EnumBut.Skip(3).Take(10).GetEnumerator()) using (IEnumerator<ButtonBase> enumerator = bs.EnumBut.Skip(3).Take(10).GetEnumerator())
{ {
while (enumerator.MoveNext() && !(enumerator.Current.PartGroup.Values.First().ToParT().PenColor == Color.Red)) while (enumerator.MoveNext() && !(enumerator.Current.PartGroup.Values.First().ToParT().PenColor == Color.Red))
{ {
@@ -5022,8 +5022,8 @@ namespace SlaveMatrix
num5 = num4 - 1; num5 = num4 - 1;
} }
num5 %= num4; num5 %= num4;
But but = bs["対象" + num5]; ButtonBase buttonBase = bs["対象" + num5];
but.Action(but); buttonBase.Action(buttonBase);
}; };
mod.Setting = delegate mod.Setting = delegate
{ {
@@ -5133,17 +5133,17 @@ namespace SlaveMatrix
bs.SetHitColor(Med); bs.SetHitColor(Med);
ListView lv = null; ListView lv = null;
Action<But, int, ulong> buy = delegate(But but, int ind, ulong pri) Action<ButtonBase, int, ulong> buy = delegate(ButtonBase ButtonBase, int ind, ulong pri)
{ {
if (Sta.GameData. >= pri) if (Sta.GameData. >= pri)
{ {
but.Dra = false; ButtonBase.Dra = false;
Sta.GameData.PurchasedTools[ind] = true; Sta.GameData.PurchasedTools[ind] = true;
Sta.GameData. -= pri; Sta.GameData. -= pri;
//Sounds.精算.Play(); //Sounds.精算.Play();
ip.UpdateSub2(); ip.UpdateSub2();
ip.TextIm = " "; ip.TextIm = " ";
if (!lv.bs.EnumBut.Any((But e) => e.Dra)) if (!lv.bs.EnumBut.Any((ButtonBase e) => e.Dra))
{ {
ip.SubInfo = GameText.; ip.SubInfo = GameText.;
ip.TextIm = GameText.; ip.TextIm = GameText.;
@@ -5157,49 +5157,49 @@ namespace SlaveMatrix
}; };
lv = new ListView(DrawBuffer, DrawBuffer.GetPosition(0.01, 0.03), 0.5, new Font("MS Gothic", 1f), 0.07, ColorHelper.White, ColorHelper.Empty, Color.FromArgb(160, ColorHelper.Black), ColorHelper.Black, new TA(GameText. + " 35,000,000", delegate(But b) lv = new ListView(DrawBuffer, DrawBuffer.GetPosition(0.01, 0.03), 0.5, new Font("MS Gothic", 1f), 0.07, ColorHelper.White, ColorHelper.Empty, Color.FromArgb(160, ColorHelper.Black), ColorHelper.Black, new TA(GameText. + " 35,000,000", delegate(ButtonBase b)
{ {
buy(b, 0, 35000000uL); buy(b, 0, 35000000uL);
}), new TA(GameText. + " 40,000,000", delegate(But b) }), new TA(GameText. + " 40,000,000", delegate(ButtonBase b)
{ {
buy(b, 1, 40000000uL); buy(b, 1, 40000000uL);
}), new TA(GameText. + " 60,000,000", delegate(But b) }), new TA(GameText. + " 60,000,000", delegate(ButtonBase b)
{ {
buy(b, 2, 60000000uL); buy(b, 2, 60000000uL);
}), new TA(GameText. + " 50,000,000", delegate(But b) }), new TA(GameText. + " 50,000,000", delegate(ButtonBase b)
{ {
buy(b, 3, 50000000uL); buy(b, 3, 50000000uL);
}), new TA(GameText. + " 45,000,000", delegate(But b) }), new TA(GameText. + " 45,000,000", delegate(ButtonBase b)
{ {
buy(b, 4, 45000000uL); buy(b, 4, 45000000uL);
}), new TA(GameText.調 + " 30,000,000", delegate(But b) }), new TA(GameText.調 + " 30,000,000", delegate(ButtonBase b)
{ {
buy(b, 5, 30000000uL); buy(b, 5, 30000000uL);
}), new TA(GameText. + " 20,000,000", delegate(But b) }), new TA(GameText. + " 20,000,000", delegate(ButtonBase b)
{ {
buy(b, 6, 20000000uL); buy(b, 6, 20000000uL);
}), new TA(GameText.T字剃刀 + " 20,000,000", delegate(But b) }), new TA(GameText.T字剃刀 + " 20,000,000", delegate(ButtonBase b)
{ {
buy(b, 7, 20000000uL); buy(b, 7, 20000000uL);
}), new TA(GameText. + " 30,000,000", delegate(But b) }), new TA(GameText. + " 30,000,000", delegate(ButtonBase b)
{ {
buy(b, 8, 30000000uL); buy(b, 8, 30000000uL);
}), new TA(GameText. + " 20,000,000", delegate(But b) }), new TA(GameText. + " 20,000,000", delegate(ButtonBase b)
{ {
buy(b, 9, 20000000uL); buy(b, 9, 20000000uL);
}), new TA(GameText. + " 20,000,000", delegate(But b) }), new TA(GameText. + " 20,000,000", delegate(ButtonBase b)
{ {
buy(b, 10, 20000000uL); buy(b, 10, 20000000uL);
}), new TA(GameText. + " 25,000,000", delegate(But b) }), new TA(GameText. + " 25,000,000", delegate(ButtonBase b)
{ {
buy(b, 11, 25000000uL); buy(b, 11, 25000000uL);
}), new TA(GameText. + " 20,000,000", delegate(But b) }), new TA(GameText. + " 20,000,000", delegate(ButtonBase b)
{ {
buy(b, 12, 20000000uL); buy(b, 12, 20000000uL);
}), new TA(GameText. + " 100,000,000", delegate(But b) }), new TA(GameText. + " 100,000,000", delegate(ButtonBase b)
{ {
buy(b, 13, 100000000uL); buy(b, 13, 100000000uL);
}), new TA(GameText. + " 300,000,000", delegate(But b) }), new TA(GameText. + " 300,000,000", delegate(ButtonBase b)
{ {
ulong num = 300000000uL; ulong num = 300000000uL;
if (Sta.GameData. >= num) if (Sta.GameData. >= num)
@@ -5213,7 +5213,7 @@ namespace SlaveMatrix
//Sounds.精算.Play(); //Sounds.精算.Play();
ip.UpdateSub2(); ip.UpdateSub2();
ip.TextIm = " "; ip.TextIm = " ";
if (!lv.bs.EnumBut.Any((But e) => e.Dra)) if (!lv.bs.EnumBut.Any((ButtonBase e) => e.Dra))
{ {
ip.SubInfo = GameText.; ip.SubInfo = GameText.;
ip.TextIm = GameText.; ip.TextIm = GameText.;
@@ -5230,7 +5230,7 @@ namespace SlaveMatrix
Action subinfo = delegate Action subinfo = delegate
{ {
if (lv.bs.EnumBut.Any((But e) => e.Dra)) if (lv.bs.EnumBut.Any((ButtonBase e) => e.Dra))
{ {
ip.SubInfo = GameText.; ip.SubInfo = GameText.;
} }
@@ -5544,7 +5544,7 @@ namespace SlaveMatrix
double num = 0.2; double num = 0.2;
double num2 = 0.039; double num2 = 0.039;
double num3 = 0.15; double num3 = 0.15;
But1 = MyUI.Button(Med, DrawBuffer, GameText., new Vector2D(num2 + 0.19, num3 + 0.72), delegate Button = MyUI.Button(Med, DrawBuffer, GameText., new Vector2D(num2 + 0.19, num3 + 0.72), delegate
{ {
Sta.GameData. = new (Sta.GameData.); Sta.GameData. = new (Sta.GameData.);
Player.UI..(Sta.GameData.); Player.UI..(Sta.GameData.);

View File

@@ -91,15 +91,15 @@ namespace SlaveMatrix
//ui elements //ui elements
public But 調; public ButtonBase 調;
public But ; public ButtonBase ;
public But ; public ButtonBase ;
public But ; public ButtonBase ;
public But ; public ButtonBase ;
public But ; public ButtonBase ;
public But ; public ButtonBase ;
public But SlaveStamina; public ButtonBase SlaveStamina;
public But PlayerStamina; public ButtonBase PlayerStamina;
private Swi sw = new Swi(Color.OrangeRed); private Swi sw = new Swi(Color.OrangeRed);
private Swi sw = new Swi(Color.OrangeRed); private Swi sw = new Swi(Color.OrangeRed);
@@ -2176,7 +2176,7 @@ namespace SlaveMatrix
shapePartT.StringFormat.LineAlignment = StringAlignment.Center; shapePartT.StringFormat.LineAlignment = StringAlignment.Center;
shapePartT.PositionBase = Are.GetPosition(1.0 - (shapePartT.OP[0].ps[1].X * shapePartT.SizeBase / Are.LocalWidth + 0.005), 1.0 - shapePartT.OP[0].ps[2].Y * shapePartT.SizeBase / Are.LocalHeight).AddY(-0.001); shapePartT.PositionBase = Are.GetPosition(1.0 - (shapePartT.OP[0].ps[1].X * shapePartT.SizeBase / Are.LocalWidth + 0.005), 1.0 - shapePartT.OP[0].ps[2].Y * shapePartT.SizeBase / Are.LocalHeight).AddY(-0.001);
shapePartT.PositionBase = new Vector2D(ip.SubB.PositionBase.X, shapePartT.PositionBase.Y); shapePartT.PositionBase = new Vector2D(ip.SubB.PositionBase.X, shapePartT.PositionBase.Y);
調 = new But1(shapePartT, null); 調 = new Button(shapePartT, null);
ShapePartT shapePartT2 = new ShapePartT(); ShapePartT shapePartT2 = new ShapePartT();
shapePartT2.Text = GameText.; shapePartT2.Text = GameText.;
shapePartT2.SizeBase = 0.095; shapePartT2.SizeBase = 0.095;
@@ -2193,7 +2193,7 @@ namespace SlaveMatrix
shapePartT2.StringFormat.Alignment = StringAlignment.Center; shapePartT2.StringFormat.Alignment = StringAlignment.Center;
shapePartT2.StringFormat.LineAlignment = StringAlignment.Center; shapePartT2.StringFormat.LineAlignment = StringAlignment.Center;
shapePartT2.PositionBase = Are.GetPosition(0.08, 0.7); shapePartT2.PositionBase = Are.GetPosition(0.08, 0.7);
= new But1(shapePartT2, delegate(But a) = new Button(shapePartT2, delegate(ButtonBase a)
{ {
if (調UI2.sw.Flag) if (調UI2.sw.Flag)
{ {
@@ -2225,7 +2225,7 @@ namespace SlaveMatrix
shapePartT3.StringFormat.Alignment = StringAlignment.Center; shapePartT3.StringFormat.Alignment = StringAlignment.Center;
shapePartT3.StringFormat.LineAlignment = StringAlignment.Center; shapePartT3.StringFormat.LineAlignment = StringAlignment.Center;
shapePartT3.PositionBase = shapePartT2.PositionBase.AddY(0.015); shapePartT3.PositionBase = shapePartT2.PositionBase.AddY(0.015);
= new But1(shapePartT3, delegate(But a) = new Button(shapePartT3, delegate(ButtonBase a)
{ {
調UI2.sw.OnOff(a); 調UI2.sw.OnOff(a);
Sta.GameData. = 調UI2.sw.Flag; Sta.GameData. = 調UI2.sw.Flag;
@@ -2248,7 +2248,7 @@ namespace SlaveMatrix
shapePartT4.StringFormat.Alignment = StringAlignment.Center; shapePartT4.StringFormat.Alignment = StringAlignment.Center;
shapePartT4.StringFormat.LineAlignment = StringAlignment.Center; shapePartT4.StringFormat.LineAlignment = StringAlignment.Center;
shapePartT4.PositionBase = shapePartT3.PositionBase.AddY(0.015); shapePartT4.PositionBase = shapePartT3.PositionBase.AddY(0.015);
= new But1(shapePartT4, delegate(But a) = new Button(shapePartT4, delegate(ButtonBase a)
{ {
調UI2.sw.OnOff(a); 調UI2.sw.OnOff(a);
Sta.GameData. = 調UI2.sw.Flag; Sta.GameData. = 調UI2.sw.Flag;
@@ -2271,7 +2271,7 @@ namespace SlaveMatrix
shapePartT5.StringFormat.Alignment = StringAlignment.Center; shapePartT5.StringFormat.Alignment = StringAlignment.Center;
shapePartT5.StringFormat.LineAlignment = StringAlignment.Center; shapePartT5.StringFormat.LineAlignment = StringAlignment.Center;
shapePartT5.PositionBase = shapePartT4.PositionBase.AddY(0.015); shapePartT5.PositionBase = shapePartT4.PositionBase.AddY(0.015);
= new But1(shapePartT5, delegate(But a) = new Button(shapePartT5, delegate(ButtonBase a)
{ {
double v = 0.0; double v = 0.0;
if (調UI2..Is膣) if (調UI2..Is膣)
@@ -2377,7 +2377,7 @@ namespace SlaveMatrix
shapePartT6.StringFormat.Alignment = StringAlignment.Center; shapePartT6.StringFormat.Alignment = StringAlignment.Center;
shapePartT6.StringFormat.LineAlignment = StringAlignment.Center; shapePartT6.StringFormat.LineAlignment = StringAlignment.Center;
shapePartT6.PositionBase = shapePartT5.PositionBase.AddY(0.015); shapePartT6.PositionBase = shapePartT5.PositionBase.AddY(0.015);
= new But1(shapePartT6, delegate = new Button(shapePartT6, delegate
{ {
if (Sta.GameData. < 調UI2.) if (Sta.GameData. < 調UI2.)
{ {
@@ -2414,7 +2414,7 @@ namespace SlaveMatrix
shapePartT7.PositionBase = shapePartT6.PositionBase.AddY(0.015); shapePartT7.PositionBase = shapePartT6.PositionBase.AddY(0.015);
string Path = "Photo"; string Path = "Photo";
Film = new RenderArea(Med, Hit: false); Film = new RenderArea(Med, Hit: false);
= new But1(shapePartT7, delegate = new Button(shapePartT7, delegate
{ {
//Sounds.撮影.Play(); //Sounds.撮影.Play();
Med.flash(); Med.flash();
@@ -3083,7 +3083,7 @@ namespace SlaveMatrix
shapePartT.StringFormat.Alignment = StringAlignment.Center; shapePartT.StringFormat.Alignment = StringAlignment.Center;
shapePartT.StringFormat.LineAlignment = StringAlignment.Center; shapePartT.StringFormat.LineAlignment = StringAlignment.Center;
shapePartT.PositionBase = Are.GetPosition(x, y); shapePartT.PositionBase = Are.GetPosition(x, y);
SlaveStamina = new But1(shapePartT, delegate SlaveStamina = new Button(shapePartT, delegate
{ {
//Sounds.操作.Play(); //Sounds.操作.Play();
ip.UpdateSub2(); ip.UpdateSub2();
@@ -3105,7 +3105,7 @@ namespace SlaveMatrix
shapePartT2.StringFormat.Alignment = StringAlignment.Center; shapePartT2.StringFormat.Alignment = StringAlignment.Center;
shapePartT2.StringFormat.LineAlignment = StringAlignment.Center; shapePartT2.StringFormat.LineAlignment = StringAlignment.Center;
shapePartT2.PositionBase = shapePartT.PositionBase.AddY(0.015); shapePartT2.PositionBase = shapePartT.PositionBase.AddY(0.015);
PlayerStamina = new But1(shapePartT2, delegate PlayerStamina = new Button(shapePartT2, delegate
{ {
//Sounds.操作.Play(); //Sounds.操作.Play();
ip.UpdateSub2(); ip.UpdateSub2();