Files
SlaveMatrix-SDL/SlaveMatrix/SlaveMatrix/GameClasses/Mods.cs
2025-05-07 10:45:18 -07:00

8273 lines
259 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using _2DGAMELIB;
using SlaveMatrix.Properties;
namespace SlaveMatrix
{
public static class Mods
{
private static SubInfo si;
public static ;
public static ;
private static ListView SaveData;
private static InfoPanel ip;
private static Buts dbs;
private static Cha TrainingTarget;
public static ;
private static Cha Viola;
public static ;
private static Lab npl;
public static Are DrawBuffer;
public static Are BlackBackground;
public static Are BasementBackground;
public static Are OfficeBackground;
public static Are drawArea;
private static MotV mv;
private static bool sta;
private static double v;
private static Action<Are, FPS> ;
private static Action<Are, FPS> 調;
public static Action<Are, FPS> ;
private static Action<Are, FPS> ;
private static Action<Are, FPS> DrawBlessing;
private static Action<Are, FPS> DrawOffice;
private static Action<Are, FPS> DrawDebt;
private static Action<Are, FPS> DrawSlaveShop;
private static Action<Are, FPS> DrawToolShop;
private static Action<Are, FPS> ;
private static Action<Are, FPS> DrawOP0;
private static Action<Are, FPS> DrawOP1;
private static Action<Are, FPS> ;
private static Action<Are, FPS> ;
private static Action<Are, FPS> ;
private static Action<Are, FPS> ;
private static Action<Are, FPS> PlayerInformationSliders;
public const double = 0.002;
public const ulong = 5000000000uL;
public const ulong = 50000000uL;
public static ulong ;
public const ulong MaxMoney = 9999999999999uL;
public const ulong MinMoney = 0uL;
public static double DemandMax;
public static bool SDShow;
public static bool save;
public static bool title;
public static bool processing;
private static Action UI初期化;
private static Action UI初期化;
private static string[] a;
public static ulong ;
public static ulong ;
public static ulong ;
private const int ml = 19;
private static bool dayp;
private static CancellationTokenSource cts;
public static Task t1;
private static bool start;
private const ulong = 10000000uL;
public const int = 9;
private static bool 調調;
public const bool v3 = false;
public const bool = false;
public static int MaxRoomNumber => 135;
public static Dictionary<string, Module> GetMods(Med Med)
{
Sta.LoadConfig();
Sta.();
Sta.Set擬音();
Sta.Set喘ぎ();
drawArea = new Are(Med, Hit: false);
drawArea.Setting();
DrawBuffer = new Are(Med, Hit: true);
DrawBuffer.Setting();
BlackBackground = new Are(Med, Hit: true);
BlackBackground.Setting();
BlackBackground.Clear(Col.Black);
BasementBackground = new Are(Med, Hit: true);
BasementBackground.Setting();
using (Bitmap image = new Bitmap(new MemoryStream(Resources.dangeon01_ex2)))
{
BasementBackground.GD.DrawImage(image, BasementBackground.Dis.GetRect());
}
OfficeBackground = new Are(Med, Hit: true);
OfficeBackground.Setting();
using (Bitmap image2 = new Bitmap(new MemoryStream(Resources.li_room10a_c_ex2)))
{
OfficeBackground.GD.DrawImage(image2, OfficeBackground.Dis.GetRect());
}
SaveData = new ListView(DrawBuffer, Dat.Vec2DZero.AddY(0.0025), 0.25, new Font("MS Gothic", 1f), 0.11, Col.White, Col.Empty, Col.Black, Col.Empty, Enumerable.Repeat(new TA(new string('A', 15), delegate
{
}), 10).ToArray());
SaveData.SetHitColor(Med);
dbs = new Buts();
ParT parT = new ParT();
double y = 0.9075;
if (Program.biggerWindow)
{
y = 0.932;
}
parT.Font = new Font("MS Gothic", 0.1f);
parT.PositionBase = DrawBuffer.GetPosition(-0.001, y);
parT.Text = "Player";
parT.FontSize = 0.14;
parT.SizeBase = 0.05;
parT.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT.OP.ScalingXY(parT.OP.GetCenter(), 0.87, 0.23);
parT.Closed = true;
parT.TextColor = Col.White;
parT.BrushColor = Color.FromArgb(160, Col.Black);
parT.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT.StringFormat.Alignment = StringAlignment.Center;
parT.StringFormat.LineAlignment = StringAlignment.Center;
dbs.Add("プレイヤー", new But1(parT, delegate
{
if (Sta.GameData. < 10000000)
{
ip.SubInfoIm = GameText.;
}
else
{
//TODO fix?
//Sounds.精算.Play();
Sta.GameData. -= 10000000uL;
ip.UpdateSub2();
//note: removed 50ms timeout -- could add back with mot...
Med.InvokeL(delegate
{
Med.SwitchMode("PlayerInformation", DrawBuffer, PlayerInformationSliders);
});
}
}));
ParT parT2 = new ParT();
parT2.Font = new Font("MS Gothic", 0.1f);
double x = 0.699;
if (Program.biggerWindow)
{
x = 0.77;
}
parT2.PositionBase = DrawBuffer.GetPosition(x, y);
parT2.Text = "Title";
parT2.FontSize = 0.14;
parT2.SizeBase = 0.05;
parT2.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT2.OP.ScalingXY(parT2.OP.GetCenter(), 0.87, 0.23);
parT2.Closed = true;
parT2.TextColor = Col.White;
parT2.BrushColor = Color.FromArgb(160, Col.Black);
parT2.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT2.StringFormat.Alignment = StringAlignment.Center;
parT2.StringFormat.LineAlignment = StringAlignment.Center;
dbs.Add("タイトル", new But1(parT2, delegate
{
//TODO fix?
//Sounds.操作.Play();
string tb = ((ip.TextIm == "") ? " " : ip.TextIm);
bool sb = ip.MaiShow;
ip.MaiShow = true;
ip.TextIm = GameText.;
ip.yAct = delegate
{
//TODO fix?
//Sounds.操作.Play();
Med.Mode = "Title";
Color HitColor4 = Col.Empty;
dbs.Move(ref HitColor4);
ip. = false;
};
ip.nAct = delegate
{
//TODO fix?
//Sounds.操作.Play();
ip.TextIm = tb;
ip.MaiShow = sb;
Color HitColor3 = Col.Empty;
dbs.Move(ref HitColor3);
ip. = false;
};
ip. = true;
}));
ParT parT3 = new ParT();
parT3.Font = new Font("MS Gothic", 0.1f);
x = 0.895;
if (Program.biggerWindow)
{
x = 0.92;
}
parT3.PositionBase = DrawBuffer.GetPosition(x, y);
parT3.Text = "Save";
parT3.FontSize = 0.14;
parT3.SizeBase = 0.05;
parT3.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT3.OP.ScalingXY(parT3.OP.GetCenter(), 0.87, 0.23);
parT3.Closed = true;
parT3.TextColor = Col.White;
parT3.BrushColor = Color.FromArgb(160, Col.Black);
parT3.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT3.StringFormat.Alignment = StringAlignment.Center;
parT3.StringFormat.LineAlignment = StringAlignment.Center;
dbs.Add("セーブ", new But1(parT3, delegate
{
//TODO fix?
//Sounds.操作.Play();
SaveData.bs["0"].Dra = false;
save = true;
SetSLlv(Med);
Color HitColor2 = Col.Empty;
SaveData.Move(ref HitColor2);
SDShow = true;
ip.SubInfoIm = "RCl:" + GameText.;
}));
ParT parT4 = new ParT();
parT4.Font = new Font("MS Gothic", 0.1f);
x = 0.797;
if (Program.biggerWindow)
{
x = 0.845;
}
parT4.PositionBase = DrawBuffer.GetPosition(x, y);
parT4.Text = "Load";
parT4.FontSize = 0.14;
parT4.SizeBase = 0.05;
parT4.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT4.OP.ScalingXY(parT4.OP.GetCenter(), 0.87, 0.23);
parT4.Closed = true;
parT4.TextColor = Col.White;
parT4.BrushColor = Color.FromArgb(160, Col.Black);
parT4.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT4.HitColor = Med.GetUniqueColor();
parT4.StringFormat.Alignment = StringAlignment.Center;
parT4.StringFormat.LineAlignment = StringAlignment.Center;
dbs.Add("ロード", new But1(parT4, delegate
{
//Sounds.操作.Play();
SaveData.bs["0"].Dra = true;
save = false;
title = false;
SetSLlv(Med);
Color HitColor = Col.Empty;
SaveData.Move(ref HitColor);
SDShow = true;
ip.SubInfoIm = "RCl:" + GameText.;
}));
NewButtons(Med);
dbs.SetHitColor(Med);
ip = new InfoPanel(Med, DrawBuffer);
ip.SetHitColor(Med);
= new (DrawBuffer, : false, new Font("MS Gothic", 1f), 0.08, " ", Col.White, Col.Black, Color.FromArgb(160, Col.Black), 19.0, Dis: false, Col.White, delegate
{
});
.SetHitColor(Med);
= new (DrawBuffer, : false, new Font("MS Gothic", 1f), 0.08, " ", Col.White, Col.Black, Color.FromArgb(160, Col.Black), 19.0, Dis: true);
.SetHitColor(Med);
si = new SubInfo(Med, ip);
= new (Med, );
= new (Med, );
npl = new Lab(Med, DrawBuffer, "ラベル1", new Vector2D(ip.MaiB.Position.X, 0.026), 0.1, 1.5, new Font("MS Gothic", 1f), 0.085, "No Slave", Col.White, Col.Black, ip.MaiB.BrushColor, Col.Black, Input: false);
return new Dictionary<string, Module>
{
{
"Start",
Start(Med)
},
{
"Credit",
Credit(Med)
},
{
"Title",
Title(Med)
},
{
"メインフォーム",
(Med)
},
{
"対象",
(Med)
},
{
"Training",
Training(Med)
},
{
"Blessing",
Blessing(Med)
},
{
"Office",
Office(Med)
},
{
"Debt",
Debt(Med)
},
{
"SlaveShop",
SlaveShop(Med)
},
{
"ToolShop",
ToolShop(Med)
},
{
"調教中継行",
調(Med)
},
{
"調教中継帰",
調(Med)
},
{
"StartOfDay",
StartOfDay(Med)
},
{
"PlayerInformation",
PlayerInformation(Med)
},
{
"OP0",
OP0(Med)
},
{
"OP1",
OP1(Med)
},
{
"説明",
(Med)
},
{
"初事務所",
(Med)
},
{
"RepaymentEvent1",
RepaymentEvent1(Med)
},
{
"RepaymentEvent2",
RepaymentEvent2(Med)
},
{
"RepaymentEvent3",
RepaymentEvent3(Med)
},
{
"ViolaBlessing",
ViolaBlessing(Med)
}
};
}
public static void Dispose()
{
drawArea.Dispose();
DrawBuffer.Dispose();
BlackBackground.Dispose();
BasementBackground.Dispose();
OfficeBackground.Dispose();
if (TrainingTarget != null)
{
TrainingTarget.Dispose();
}
.Dispose();
if (Viola != null)
{
Viola.Dispose();
}
.Dispose();
SaveData.Dispose();
ip.Dispose();
dbs.Dispose();
npl.Dispose();
}
private static void SwitchMode(Med Med, Are Are, FPS FPS, Action<Are, FPS> )
{
if (sta)
{
if (v < mv.Max)
{
mv.GetValue(FPS);
v = mv.Value;
if (sta)
{
Med.FadeIn(v);
}
}
else
{
sta = false;
v = 0.0;
mv.ResetValue();
}
}
else
{
(Are, FPS);
}
}
public static void SwitchMode(this Med Med, string Mode, Are Are)
{
Med.Mode = Mode;
Med.DrawStart(Are);
Med.DrawEnd(BlackBackground);
sta = true;
}
public static void SwitchMode(this Med Med, string Mode, Are Are, Action<Are, FPS> )
{
Med.Mode = Mode;
(drawArea, Med.FPSF);
Med.DrawStart(Are);
Med.DrawEnd(drawArea);
sta = true;
}
public static void SetDemandMaximum()
{
if (Sta.GameData.RepaymentStage == 0)
{
DemandMax = 8.0;
}
else if (Sta.GameData.RepaymentStage == 1)
{
DemandMax = 9.0;
}
else if (Sta.GameData.RepaymentStage == 2)
{
DemandMax = 10.0;
}
else
{
DemandMax = 11.0;
}
}
public static ulong (this ulong u0, ulong u1)
{
checked
{
try
{
if (u0 + u1 > 9999999999999L)
{
return 9999999999999uL;
}
return u0 + u1;
}
catch
{
return 9999999999999uL;
}
}
}
public static ulong (this ulong u0, ulong u1)
{
if (u0 < u1)
{
return 0uL;
}
return u0 - u1;
}
public static void SetSLlv(Med Med)
{
SaveData.Acts = sllv(Med);
}
private static IEnumerable<TA> sllv(Med Med)
{
int j = 0;
string[] array = Sta.SDPaths();
foreach (string text in array)
{
string path = text;
int i = j;
bool f = path == null;
yield return new TA(f ? (i + ": No data") : Path.GetFileNameWithoutExtension(path).Replace("", ":").Replace("_", "/"), delegate
{
if (!processing)
{
//////Sounds.操作.Play();
if (save)
{
processing = true;
Save(path, i, Med);
}
else if (!f)
{
processing = true;
Load(path, i, Med);
}
}
});
j++;
}
}
private static void AutoSave()
{
string s = Sta.SavePath + "\\0 ";
foreach (string item in from e in Directory.EnumerateFiles(Sta.SavePath)
where e.StartsWith(s)
select e)
{
System.IO.File.Delete(item);
}
Sta.GDSave(0);
}
private static void Save(string Path, int i, Med Med)
{
ip.SubInfoIm = GameText. + "\r\n" + GameText.;
if (Path != null)
{
System.IO.File.Delete(Path);
}
Sta.GDSave(i);
SetSLlv(Med);
SDShow = false;
ip.SubInfoIm = i + ": " + Sta.GameData.GetSaveDateString() + "\r\n" + GameText.;
processing = false;
//Med.InvokeL(Sounds.完了.Play);
}
private static void Load(string Path, int i, Med Med)
{
cts.Cancel();
ip.SubInfoIm = GameText. + "\r\n" + GameText.;
Sta.GameData = Path.LoadExMod<GameState>();
Cha d = Viola;
Viola = new Cha(Med, DrawBuffer, Sta.GameData..ChaD);
Viola.Set衣装(Sta.GameData..);
.(Viola.Bod.._接続点);
Med.InvokeL(delegate
{
Initialize();
if (d != null)
{
d.Dispose();
}
if (TrainingTarget != null)
{
TrainingTarget.Dispose();
TrainingTarget = null;
}
SDShow = false;
if (title)
{
Med.SwitchMode("メインフォーム", DrawBuffer, );
}
else
{
Med.Mode = "メインフォーム";
ip.SubInfoIm = i + ": " + Sta.GameData.GetSaveDateString() + "\r\n" + GameText.;
}
processing = false;
SetDemandMaximum();
if (Sta.GameData.Slaves.Length < MaxRoomNumber)
{
Unit[] array = new Unit[MaxRoomNumber];
Array.Copy(Sta.GameData.Slaves, array, Sta.GameData.Slaves.Length);
Sta.GameData.Slaves = array;
}
//Med.InvokeL(Sounds.完了.Play);
});
}
private static void Initialize()
{
();
UI初期化();
UI初期化();
}
private static void al(string s, int i)
{
ref string reference = ref a[i];
reference = reference + s + "\r\n";
}
public static void ()
{
Player.RecoverPlayerStamina();
Player.RecoverPlayerStamina();
Sta.GameData. = 0uL;
= 0uL;
= 0uL;
= Sta.GameData.;
a = new string[MaxRoomNumber];
int num = 0;
Unit[] Slaves = Sta.GameData.Slaves;
foreach (Unit unit in Slaves)
{
if (unit != null)
{
unit.RecoverStamina();
unit.RecoverStamina();
unit.ChaD. = (unit.ChaD. + 0.05).Clamp(0.0, 1.0);
int num2 = ((unit. <= 0) ? 1 : unit.);
bool flag = Sta.GameData. % (ulong)(num2 * 2) == 0;
if (unit. && flag && !unit.ChaD.)
{
unit. = false;
}
else if (flag)
{
unit. = true;
}
checked
{
if (unit.Pregnant)
{
if (unit.)
{
al(GameText. + unit.Number + "/" + unit.Name + GameText. + ((unit.Laboror || unit.Prostitute) ? ("\r\n" + GameText.) : ""), num);
unit. = false;
}
if (unchecked(Sta.GameData. % (ulong)num2) == 0L)
{
if (unit. == 4)
{
unit.();
unit.();
unit.();
al(GameText. + unit.Number + "/" + unit.Name + GameText., num);
if (Sta.GameData.Is地下室一杯())
{
ulong price = unit.Child.GetPrice();
al(GameText. + "+" + price.ToString("#,0"), num);
try
{
+= price;
}
catch
{
= 9999999999999uL;
}
}
else
{
al(GameText., num);
Sta.GameData.Add地下室(unit.Child);
}
unit.Child = null;
unit. = -1;
unit.ChaD. = 0.0;
unit.Pregnant = false;
unit. = true;
}
else
{
unchecked
{
unit.++;
unit.ChaD. += 0.2;
}
}
}
}
else if (unit.Trained && unit.Is増殖可 && unit.ChaD.Stamina == 1.0 && 0.3.Lot())
{
unit.();
unit.();
unit.();
al(GameText. + unit.Number + "/" + unit.Name + GameText., num);
if (Sta.GameData.Is地下室一杯())
{
ulong price2 = unit.GetPrice();
al(GameText. + "+" + price2.ToString("#,0"), num);
try
{
+= price2;
}
catch
{
= 9999999999999uL;
}
}
else
{
al(GameText., num);
Sta.GameData.Add地下室(unit.DeepCopy().Reset());
}
}
if (unit.)
{
try
{
if (unit.Laboror)
{
+= (ulong)(500000.0 * ((double)unit.. / 9.0) * (double)unit.LaborCount * unit.()).RoundDown(0);
}
else if (unit.Prostitute)
{
+= (ulong)((double)unit.GetPrice() * 0.012 * ((double)unit.. / 9.0 + unit.ChaD.Lust + unit.ChaD.Affection + unit.ChaD.Taming + unit.ChaD.SkillL) * (double)unit.ProstituteCount * unit.() * (unit.Virgin ? 0.4 : 1.0)).RoundDown(0);
}
}
catch
{
= 9999999999999uL;
}
}
unit.LaborCount = 0;
unit.ProstituteCount = 0;
}
}
num++;
}
checked
{
try
{
+= ;
}
catch
{
= 9999999999999uL;
}
dayp = false;
Sta.GameData. = true;
}
}
public static void ()
{
Player.RecoverPlayerStamina();
//Parallel.ForEach(Sta.GameData.Slaves, Sta.po3, delegate(Unit u)
foreach(Unit u in Sta.GameData.Slaves)
{
if (u != null)
{
if (u. && u.Laboror && u.ChaD.Stamina > 0.333)
{
u.LaborCount++;
u.();
u..(u.);
}
else if (u. && u.Prostitute && u.ChaD.Stamina > 0.333)
{
u.ProstituteCount++;
u.();
u..(u.);
u.ChaD.調(u.MaxSkillL);
if (!u.Pregnant && (0.002 * (u. ? 1.5 : 1.0) * ((u.Race == GameText.) ? 2.0 : 1.0)).Lot())
{
u.Virgin = false;
u.();
}
}
else
{
u.RecoverStamina();
}
}
}
}
private static void ()
{
();
AutoSave();
}
public static bool (Med Med)
{
bool flag = Sta.GameData. == GameText.;
();
if (flag)
{
while (dayp)
{
}
dayp = true;
cts.Cancel();
Sta.GameData.Refresh = false;
cts = new CancellationTokenSource();
t1 = Task.Factory.StartNew(, cts.Token);
Med.SwitchMode("StartOfDay", DrawBuffer, );
}
else
{
Sta.GameData.();
}
return flag;
}
public static void (Med Med)
{
while (!(Med))
{
}
}
public static void ()
{
while (dayp)
{
}
cts.Cancel();
Sta.GameData.Refresh = false;
}
public static void ()
{
if (Sta.GameData.TrainingTarget. > -1)
{
TrainingTarget.Bod.i = Sta.GameData.TrainingTarget.;
TrainingTarget.Bod._表示 = true;
if (!TrainingTarget.Bod.Is獣)
{
TrainingTarget.Bod._人. = Sta.GameData.TrainingTarget. > 2;
}
}
else
{
TrainingTarget.Bod.i = 0;
TrainingTarget.Bod._表示 = false;
}
TrainingTarget.Bod._表示 = TrainingTarget.Bod._表示;
TrainingTarget.Bod.();
}
public static void Setnpl(Unit u)
{
npl.Text = GameText. + u.Number + "\r\n" + (Sta.AlwaysUseName ? u.Name : (u.Trained ? u.Name : u.Race));
}
public static void ResetTrainingTarget()
{
Player.Cha = TrainingTarget;
Player.SetState();
Player.();
Player.ModBox();
Player.SensBox();
();
TrainingTarget.SetInitialExpression();
TrainingTarget.Emotion();
TrainingTarget.UpdateExpression();
TrainingTarget.();
if (Sta.GameData.TrainingTarget.Trained)
{
TrainingTarget.Bod._表示 = false;
TrainingTarget.Bod._表示 = true;
TrainingTarget.Set基本姿勢();
}
else
{
TrainingTarget.Bod._表示 = true;
TrainingTarget.Set拘束姿勢();
}
if (Sta.GameData.TrainingTarget.ChaD.)
{
TrainingTarget.Bod.();
}
if (Sta.GameData.TrainingTarget.ChaD.)
{
TrainingTarget.Bod.();
}
if (Sta.GameData.TrainingTarget.ChaD.)
{
TrainingTarget.Bod.();
}
if (Sta.GameData.TrainingTarget. != null)
{
TrainingTarget.Set衣装(Sta.GameData.TrainingTarget.);
}
TrainingTarget.Bod.Join();
TrainingTarget.Bod.Update();
}
public static void Set調教対象(Med Med, Unit u)
{
Sta.GameData.TrainingTarget = u;
if (TrainingTarget != null)
{
TrainingTarget.Dispose();
}
TrainingTarget = new Cha(Med, DrawBuffer, Sta.GameData.TrainingTarget.ChaD);
.(TrainingTarget.Bod.._接続点);
Setnpl(u);
double d = ((u.Trained && Sta.MoveInsectMask) ? 1.0 : 0.0);
if (TrainingTarget.Bod.Is顔面)
{
TrainingTarget.Bod.._接続.SetEle(delegate( )
{
.0 = d;
.1 = d;
});
TrainingTarget.Bod.._接続.SetEle(delegate( )
{
. = d;
});
TrainingTarget.Bod.._接続.SetEle(delegate(1_ )
{
. = d;
});
}
ResetTrainingTarget();
}
public static void ()
{
Player.SetState();
TrainingTarget.Crying = false;
if (TrainingTarget.Bod. != null)
{
TrainingTarget.Bod.. = false;
TrainingTarget.Bod.. = false;
}
if (TrainingTarget.Bod. != null)
{
TrainingTarget.Bod.. = false;
TrainingTarget.Bod.. = false;
}
TrainingTarget.Bod.. = false;
TrainingTarget.Bod.. = false;
TrainingTarget. = 0.0;
TrainingTarget.Bod.T染み = 0.0;
TrainingTarget.SetInitialExpression();
TrainingTarget.Emotion();
TrainingTarget.UpdateExpression();
if (Sta.GameData.TrainingTarget.Trained)
{
TrainingTarget.Set基本姿勢();
}
else
{
TrainingTarget.Set拘束姿勢();
}
Player.();
Player.ModBox();
Player.SensBox();
}
public static void Player説明(ref Color hc, Action Reset)
{
if (dbs["プレイヤー"].Pars.Values.First().ToPar().HitColor == hc)
{
ip.SubInfoIm = GameText. + "(-" + 10000000uL.ToString("#,0") + ")";
}
else if (ip.SubInfoIm == GameText. + "(-" + 10000000uL.ToString("#,0") + ")")
{
Reset();
}
}
public static void (this Med Med)
{
調(drawArea, Med.FPSF);
Med.ClearSta(Color.FromArgb(128, Color.White));
Med.DrawEnd(drawArea);
sta = true;
}
public static Module Start(Med Med)
{
return new Module
{
Setting = delegate
{
Med.Mode = "Credit";
}
};
}
public static Module Credit(Med Med) {
MotV mv = new MotV(0.0, 1.0){BaseSpeed = 0.5};
double v = 0.0;
bool fadeIn = true;
bool fadeOut = false;
double num = 0.15;
Lab label = new Lab(Med, DrawBuffer, "クレジット", DrawBuffer.GetPosition(ref Shas.), num, 1.0, new Font("", 1f), 0.06, "Auto Eden Presents.", Col.White, Col.Empty, Col.Empty, Col.Empty, Input: false);
label.ParT.PositionBase -= new Vector2D(label.ParT.RectSize.X - 0.07, label.ParT.RectSize.Y * 3.0) * 0.5 * num;
return new Module()
{
Setting = delegate
{
DrawBuffer.Clear(Col.Black);
DrawBuffer.Draw(label.ParT);
Med.DrawStart(BlackBackground);
Med.DrawEnd(DrawBuffer);
v = 0.0;
fadeIn = true;
fadeOut = false;
mv.ResetValue();
},
Down = delegate
{
Med.Mode = "Title";
},
Draw = delegate (FPS FPS)
{
if (fadeIn || fadeOut)
{
if (v < mv.Max)
{
mv.GetValue(FPS);
v = mv.Value;
if (fadeIn)
{
Med.FadeIn(v);
}
if (fadeOut)
{
Med.FadeOut(v);
}
}
else
{
if (fadeOut)
{
v = 0.0;
fadeOut = false;
mv.ResetValue();
Med.Draw(BlackBackground);
}
if (fadeIn)
{
v = 0.0;
fadeIn = false;
mv.ResetValue();
Med.Draw(DrawBuffer);
fadeOut = true;
Med.DrawStart(DrawBuffer);
Med.DrawEnd(BlackBackground);
}
}
}
else
{
Med.Draw(BlackBackground);
Med.Mode = "Title";
}
},
Dispose = delegate
{
label.Dispose();
}
};
}
public static Module Title(Med Med)
{
MotV mv = new MotV(0.0, 1.0)
{
BaseSpeed = 0.5
};
bool ll = false;
double v = 0.0;
bool b1 = true;
double num = 0.2;
Lab label = new Lab(Med, DrawBuffer, "タイトル", DrawBuffer.GetPosition(ref Shas.), num, 1.0, new Font("", 1f), 0.07, "Slave Matrix", Col.White, Col.Empty, Col.Empty, Col.Empty, Input: false);
label.ParT.PositionBase -= new Vector2D(label.ParT.RectSize.X - 0.07, label.ParT.RectSize.Y * 3.0) * 0.5 * num;
ListView listView = new ListView(DrawBuffer, label.ParT.PositionBase.MulXY(1.015, 1.2), 0.25, new Font("MS Gothic", 1f), 0.09, Col.White, Col.Empty, Col.Empty, Col.Empty,
new TA("Start", delegate
{
////Sounds.操作.Play();
Sta.GameData.SetDefault();
Viola?.Dispose();
TrainingTarget?.Dispose();
TrainingTarget = null;
Initialize();
start = true;
SetDemandMaximum();
Med.SwitchMode("PlayerInformation", DrawBuffer, PlayerInformationSliders);
}),
new TA("Load", delegate
{
////Sounds.操作.Play();
SaveData.bs["0"].Dra = true;
save = false;
title = true;
SetSLlv(Med);
ll = true;
ip.SubInfoIm = "RCl:" + GameText.;
})
);
listView.SetHitColor(Med);
return new Module
{
Setting = delegate
{
ip.MaiShow = false;
ip.Mai2Show = false;
ip.SubShow = true;
ip.Sub2Show = false;
ll = false;
DrawBuffer.Clear(Col.Black);
DrawBuffer.Draw(label.ParT);
Med.DrawStart(BlackBackground);
Med.DrawEnd(DrawBuffer);
v = 0.0;
b1 = true;
mv.ResetValue();
//Sounds.日常BGM.Stop();
//Sounds.OPBGM.Play();
},
Down = delegate (MouseButtons mb, Vector2D cp, Color hc)
{
if (!processing)
{
if (mb == MouseButtons.Left)
{
if (ll)
{
SaveData.Down(ref hc);
}
else
{
listView.Down(ref hc);
}
}
else if (ll && mb == MouseButtons.Right)
{
ll = false;
}
}
},
Up = delegate (MouseButtons mb, Vector2D cp, Color hc)
{
if (!processing && mb == MouseButtons.Left)
{
if (ll)
{
SaveData.Up(ref hc);
}
else
{
listView.Up(ref hc);
}
}
},
Move = delegate (MouseButtons mb, Vector2D cp, Color hc)
{
if (!processing)
{
SaveData.Move(ref hc);
listView.Move(ref hc);
}
},
Leave = delegate
{
if (!processing)
{
if (ll)
{
SaveData.Leave();
}
else
{
listView.Leave();
}
}
},
Draw = delegate (FPS FPS)
{
if (b1)
{
if (v < mv.Max)
{
mv.GetValue(FPS);
v = mv.Value;
if (b1)
{
Med.FadeIn(v);
}
}
else
{
v = 0.0;
b1 = false;
mv.ResetValue();
Med.Draw(DrawBuffer);
}
}
else
{
DrawBuffer.Draw(BlackBackground);
if (ll)
{
ip.Draw(DrawBuffer, FPS);
SaveData.Draw(DrawBuffer);
}
else
{
DrawBuffer.Draw(label.ParT);
listView.Draw(DrawBuffer);
}
Med.Draw(DrawBuffer);
}
},
Dispose = delegate
{
label.Dispose();
listView.Dispose();
}
};
}
public static Module (Med Med)
{
Module mod = new Module();
Buts bs = new Buts();
ParT parT = new ParT();
parT.Font = new Font("MS Gothic", 0.1f);
parT.PositionBase = DrawBuffer.GetPosition(0.85, 0.02);
parT.Text = GameText.;
parT.FontSize = 0.15;
parT.SizeBase = 0.05;
parT.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT.OP.ScalingY(parT.OP.GetCenter(), 0.47);
parT.OP.Rotation(parT.OP.GetCenter(), -26.0);
parT.Closed = true;
parT.TextColor = Col.White;
parT.BrushColor = Color.FromArgb(160, Col.Black);
parT.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT.StringFormat.Alignment = StringAlignment.Center;
parT.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("ボタン1", new But1(parT, delegate
{
////Sounds.操作.Play();
Med.SwitchMode("Office", DrawBuffer, DrawOffice);
}));
ParT parT2 = new ParT();
parT2.Font = new Font("MS Gothic", 0.1f);
parT2.PositionBase = DrawBuffer.GetPosition(0.85, 0.1);
parT2.Text = GameText.調;
parT2.FontSize = 0.15;
parT2.SizeBase = 0.05;
parT2.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT2.OP.ScalingY(parT2.OP.GetCenter(), 0.47);
parT2.OP.Rotation(parT2.OP.GetCenter(), -26.0);
parT2.Closed = true;
parT2.TextColor = Col.White;
parT2.BrushColor = Color.FromArgb(160, Col.Black);
parT2.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT2.StringFormat.Alignment = StringAlignment.Center;
parT2.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("ボタン2", new But1(parT2, delegate
{
////Sounds.操作.Play();
Med.SwitchMode("調教中継行", DrawBuffer, );
}));
ParT parT3 = new ParT();
parT3.Font = new Font("MS Gothic", 0.1f);
parT3.PositionBase = DrawBuffer.GetPosition(0.85, 0.18);
parT3.Text = GameText.;
parT3.FontSize = 0.15;
parT3.SizeBase = 0.05;
parT3.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT3.OP.ScalingY(parT3.OP.GetCenter(), 0.47);
parT3.OP.Rotation(parT3.OP.GetCenter(), -26.0);
parT3.Closed = true;
parT3.TextColor = Col.White;
parT3.BrushColor = Color.FromArgb(160, Col.Black);
parT3.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT3.StringFormat.Alignment = StringAlignment.Center;
parT3.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("ボタン3", new But1(parT3, delegate
{
////Sounds.操作.Play();
Med.Mode = "対象";
}));
ParT parT4 = new ParT();
parT4.Font = new Font("MS Gothic", 0.1f);
parT4.PositionBase = DrawBuffer.GetPosition(0.85, 0.26);
parT4.Text = GameText.;
parT4.FontSize = 0.15;
parT4.SizeBase = 0.05;
parT4.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT4.OP.ScalingY(parT4.OP.GetCenter(), 0.47);
parT4.OP.Rotation(parT4.OP.GetCenter(), -26.0);
parT4.Closed = true;
parT4.TextColor = Col.White;
parT4.BrushColor = Color.FromArgb(160, Col.Black);
parT4.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT4.StringFormat.Alignment = StringAlignment.Center;
parT4.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("ボタン4", new But1(parT4, delegate
{
////Sounds.操作.Play();
si.Set(bre: true);
(Med);
ip.UpdateSub2();
}));
ParT parT5 = new ParT();
parT5.Font = new Font("MS Gothic", 0.1f);
parT5.PositionBase = DrawBuffer.GetPosition(0.85, 0.34);
parT5.Text = GameText.;
parT5.FontSize = 0.15;
parT5.SizeBase = 0.05;
parT5.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT5.OP.ScalingY(parT5.OP.GetCenter(), 0.47);
parT5.OP.Rotation(parT5.OP.GetCenter(), -26.0);
parT5.Closed = true;
parT5.TextColor = Col.White;
parT5.BrushColor = Color.FromArgb(160, Col.Black);
parT5.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT5.StringFormat.Alignment = StringAlignment.Center;
parT5.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("ボタン5", new But1(parT5, delegate
{
////Sounds.操作.Play();
(Med);
}));
ParT parT6 = new ParT();
parT6.Font = new Font("MS Gothic", 0.1f);
parT6.PositionBase = DrawBuffer.GetPosition(0.85, 0.42);
parT6.Text = GameText.;
parT6.FontSize = 0.15;
parT6.SizeBase = 0.05;
parT6.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT6.OP.ScalingY(parT6.OP.GetCenter(), 0.47);
parT6.OP.Rotation(parT6.OP.GetCenter(), -26.0);
parT6.Closed = true;
parT6.TextColor = Col.White;
parT6.BrushColor = Color.FromArgb(160, Col.Black);
parT6.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT6.StringFormat.Alignment = StringAlignment.Center;
parT6.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("ボタン6", new But1(parT6, delegate
{
////Sounds.操作.Play();
Med.Mode = "Blessing";
}));
ParT parT7 = new ParT();
parT7.Font = new Font("MS Gothic", 0.1f);
parT7.PositionBase = DrawBuffer.GetPosition(0.85, 0.58);
parT7.Text = GameText.;
parT7.FontSize = 0.15;
parT7.SizeBase = 0.05;
parT7.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT7.OP.ScalingY(parT7.OP.GetCenter(), 0.47);
parT7.OP.Rotation(parT7.OP.GetCenter(), -26.0);
parT7.Closed = true;
parT7.TextColor = Col.White;
parT7.BrushColor = Color.FromArgb(160, Col.Black);
parT7.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT7.StringFormat.Alignment = StringAlignment.Center;
parT7.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("ボタン7", new But1(parT7, delegate
{
Unit unit = null;
unit = ((Sta.GameData.TrainingTarget == null) ? (from e in Sta.GameData.Slaves
where e != null
orderby RNG.XS.Next()
select e).First() : (from e in Sta.GameData.Slaves
where e != null && e != Sta.GameData.TrainingTarget
orderby RNG.XS.Next()
select e).FirstOrDefault());
if (unit != null)
{
if (unit.Trained)
{
//Sounds.変更3.Play();
}
else
{
Sounds.Play();
}
Set調教対象(Med, unit);
bs["ボタン2"].Dra = true;
}
else
{
////Sounds.操作.Play();
ip.SubInfoIm = GameText.;
}
}));
bs.SetHitColor(Med);
mod.Down = delegate(MouseButtons mb, Vector2D cp, Color hc)
{
if (!processing)
{
if (SDShow)
{
SaveData.Down(ref hc);
if (mb == MouseButtons.Right)
{
////Sounds.操作.Play();
SDShow = false;
ip.Up(ref hc);
dbs.Move(ref hc);
}
}
else
{
switch (mb)
{
case MouseButtons.Left:
if (!ip.)
{
dbs.Down(ref hc);
bs.Down(ref hc);
}
ip.Down(ref hc);
break;
case MouseButtons.Right:
if (ip.TextIm == GameText.)
{
ip.nb.Action(ip.nb);
}
break;
}
}
}
};
mod.Up = delegate(MouseButtons mb, Vector2D cp, Color hc)
{
if (!processing)
{
if (SDShow)
{
SaveData.Up(ref hc);
}
else if (mb == MouseButtons.Left)
{
if (!ip.)
{
dbs.Up(ref hc);
bs.Up(ref hc);
}
ip.Up(ref hc);
}
}
};
mod.Move = delegate(MouseButtons mb, Vector2D cp, Color hc)
{
if (!processing)
{
if (SDShow)
{
SaveData.Move(ref hc);
}
else
{
if (!ip.)
{
if (TrainingTarget != null)
{
TrainingTarget.CP = cp;
}
dbs.Move(ref hc);
bs.Move(ref hc);
if (bs["ボタン7"].Pars.Values.First().ToPar().HitColor == hc)
{
ip.SubInfoIm = GameText.;
}
else if (ip.SubInfoIm == GameText.)
{
si.Set(bre: false);
}
Player説明(ref hc, delegate
{
si.Set(bre: false);
});
}
ip.Move(ref hc);
}
}
};
mod.Leave = delegate
{
if (!processing)
{
if (SDShow)
{
SaveData.Leave();
}
else if (!ip.)
{
dbs.Leave();
bs.Leave();
}
}
};
mod.Wheel = delegate
{
};
mod.Setting = delegate
{
if (Med.Modeb != "PlayerInformation")
{
ip.UpdateSub2();
ip.MaiShow = false;
ip.Mai.Feed.Dra = false;
ip.Mai2Show = false;
ip.SubShow = true;
ip.Sub2Show = true;
Player.UI. = Sta.GameData.;
if (TrainingTarget == null && Sta.GameData.TrainingTarget != null)
{
Set調教対象(Med, Sta.GameData.TrainingTarget);
}
bs["ボタン2"].Dra = Sta.GameData.TrainingTarget != null;
bs["ボタン3"].Dra = !Sta.GameData. && Sta.GameData.Slaves.Count((Unit e) => e != null) > 0;
bs["ボタン4"].Dra = !Sta.GameData.;
bs["ボタン5"].Dra = !Sta.GameData.;
bs["ボタン6"].Dra = !Sta.GameData.;
bs["ボタン7"].Dra = !Sta.GameData. && Sta.GameData.Slaves.Count((Unit e) => e != null) > 0;
si.Set(bre: false);
Color HitColor = Col.Empty;
ip.Up(ref HitColor);
//Sounds.OPBGM.Stop();
//Sounds.日常BGM.Play();
npl.ParT.PositionBase = new Vector2D(Player.UI..Position.X, 0.026);
}
};
= delegate(Are a, FPS FPS)
{
Med.GH.Clear(Col.Transparent);
if (a.GH != null)
{
a.GH.Clear(Col.Transparent);
}
a.Draw(BasementBackground);
if (TrainingTarget != null)
{
TrainingTarget.Draw(a, FPS);
Player.UI.DrawState(a);
a.Draw(npl.ParT);
}
bs.Draw(a);
dbs.Draw(a);
ip.Draw(a, FPS);
if (SDShow)
{
SaveData.Draw(a);
}
Med.Draw(a);
};
mod.Draw = delegate(FPS FPS)
{
SwitchMode(Med, DrawBuffer, FPS, );
};
mod.Dispose = delegate
{
bs.Dispose();
};
return mod;
}
public static Module Training(Med Med)
{
Module mod = new Module();
調 BackgroundDrawing = new 調();
Are TrainingBackground = new Are(Med, Hit: false);
TrainingBackground.Setting();
TrainingBackground.GD.Clear(Color.Gray);
Player.UI = new TrainingUI(Med, DrawBuffer, ip);
Player.UI.調.Action = delegate
{
////Sounds.操作.Play();
Med.SwitchMode("調教中継帰", DrawBuffer, );
};
bool 調 = false;
bool 調 = true;
Action 調 = delegate
{
if (TrainingTarget.EyeTracking.Run)
{
TrainingTarget.EyeTracking.End();
}
if (TrainingTarget.Bod.Is双眉)
{
TrainingTarget.Bod.._表示 = false;
TrainingTarget.Bod.._表示 = false;
}
if (TrainingTarget.Bod.Is双眼)
{
TrainingTarget._半1左();
TrainingTarget._半1右();
TrainingTarget._見つめ左();
TrainingTarget._見つめ右();
}
if (TrainingTarget.Bod.Is頬眼)
{
TrainingTarget._半1左();
TrainingTarget._半1右();
TrainingTarget._見つめ左();
TrainingTarget._見つめ右();
}
if (TrainingTarget.Bod.Is単眼)
{
TrainingTarget._半1();
TrainingTarget._見つめ();
}
if (TrainingTarget.Bod.Is額眼)
{
TrainingTarget._半1();
TrainingTarget._見つめ();
}
if (!TrainingTarget.Bod._表示)
{
TrainingTarget._閉笑();
}
};
mod.Setting = delegate
{
TrainingBackground.GD.Clear(Color.Gray);
BackgroundDrawing.Reset();
BackgroundDrawing.(TrainingBackground);
ip.MaiShow = false;
ip.Mai.Feed.Dra = true;
ip.Mai2Show = false;
ip.SubShow = true;
ip.Sub2Show = false;
Med.CursorHide();
Player.UI.CM.Show = Sta.GameData.PurchasedTools[0];
Player.UI.CM.Show = Sta.GameData.PurchasedTools[1];
Player.UI.CM.Show = Sta.GameData.PurchasedTools[2];
Player.UI.CM.Show = Sta.GameData.PurchasedTools[3];
Player.UI.CM.Show = Sta.GameData.PurchasedTools[4];
Player.UI.調CM.Show = Sta.GameData.PurchasedTools[5];
Player.UI.CM.Show = Sta.GameData.PurchasedTools[6];
Player.UI.T剃刀CM.Show = Sta.GameData.PurchasedTools[7];
Player.UI.1CM.Show = Sta.GameData.PurchasedTools[8];
Player.UI.2CM.Show = Sta.GameData.PurchasedTools[8];
Player.UI.3CM.Show = Sta.GameData.PurchasedTools[8];
Player.UI.CM.Show = Sta.GameData.PurchasedTools[9];
Player.UI.CM.Show = Sta.GameData.PurchasedTools[10];
Player.UI..Dra = Sta.GameData.PurchasedTools[11];
Player.UI..Dra = Sta.GameData.PurchasedTools[12];
Player.UI..Dra = Sta.GameData.PurchasedTools[13];
Player.();
Player.ModBox();
Player.SensBox();
if (TrainingTarget.Bod.Is獣)
{
TrainingTarget.Bod..B = Med.Base.GetPosition(ref Shas.).AddY(-0.03);
}
else if (TrainingTarget.Bod.Is半身)
{
TrainingTarget.Bod..B = Med.Base.GetPosition(ref Shas.).AddY(-0.02);
}
TrainingTarget.Bod.Join();
TrainingTarget.Bod.Update();
.();
TrainingTarget.Bod. = 1.0;
調 = true;
調調 = Sta.GameData.TrainingTarget.Trained;
if (調 = Sta.GameData.TrainingTarget.IsTrained())
{
調();
}
};
ContactD cd = default(ContactD);
Vector2D op = Dat.Vec2DZero;
mod.Down = delegate(MouseButtons mb, Vector2D cp, Color hc)
{
Player.UI.Down(ref mb, ref cp, ref op, ref hc, ref cd);
ip.Down(ref hc);
};
mod.Up = delegate(MouseButtons mb, Vector2D cp, Color hc)
{
Player.UI.Up(ref mb, ref cp, ref hc, ref cd);
ip.Up(ref hc);
};
mod.Move = delegate(MouseButtons mb, Vector2D cp, Color hc)
{
TrainingTarget.CP = cp;
cd = TrainingTarget.GetContact(ref hc);
Player.UI.Move(ref mb, ref cp, ref op, ref hc, ref cd);
ip.Move(ref hc);
op = cp;
};
mod.Leave = delegate(MouseButtons mb, Vector2D cp, Color hc)
{
Player.UI.Leave(ref mb, ref cp, ref hc);
};
mod.Wheel = delegate(MouseButtons mb, Vector2D cp, int dt, Color hc)
{
Player.UI.Wheel(ref mb, ref cp, ref dt, ref hc, ref cd);
};
調 = delegate(Are a, FPS FPS)
{
Player.UI.Mots.Drive(FPS);
Med.GH.Clear(Col.Transparent);
if (a.GH != null)
{
a.GH.Clear(Col.Transparent);
}
a.Draw(TrainingBackground);
TrainingTarget.Draw(a, FPS);
.Draw(a, FPS);
Player.UI.StaDraw(a, FPS);
ip.Draw(a, FPS);
Med.Draw(a);
if (調)
{
if (調)
{
調();
.Set状態();
if (TrainingTarget.Bod.Is顔面)
{
Action<Tex> o_done = .Tex.Done;
.Tex.Done = delegate (Tex tex)
{
o_done(tex);
TrainingTarget..Start();
};
}
}
調 = false;
}
};
= delegate(Are a, FPS FPS)
{
a.Draw(TrainingBackground);
TrainingTarget.Draw(a, FPS);
};
mod.Draw = delegate(FPS FPS)
{
SwitchMode(Med, DrawBuffer, FPS, 調);
};
mod.Dispose = delegate
{
TrainingBackground.Dispose();
Player.UI.Dispose();
};
return mod;
}
public static Module 調(Med Med)
{
Module obj = new Module
{
Down = delegate
{
Med.SwitchMode("Training", DrawBuffer, 調);
},
Up = delegate
{
},
Move = delegate
{
},
Leave = delegate
{
},
Wheel = delegate
{
},
Setting = delegate
{
ip.MaiShow = true;
ip.Mai.Feed.Dra = true;
ip.Mai2Show = false;
ip.SubShow = true;
ip.Sub2Show = false;
ip.Text = GameText.6;
if (!TrainingTarget.Bod.Setピアス._表示)
{
TrainingTarget.Bod.();
}
Player.UI.SetTarget(Sta.GameData.TrainingTarget, TrainingTarget);
Player.SetStateTraining();
Player.();
Player.ModBox();
Player.SensBox();
TrainingTarget.Bod._表示 = true;
si.Set(bre: false);
Player.UI.Reset();
Player.UI..Clear();
Player.UI..Clear();
}
};
= delegate(Are a, FPS FPS)
{
Med.GH.Clear(Col.Transparent);
if (a.GH != null)
{
a.GH.Clear(Col.Transparent);
}
a.Draw(BlackBackground);
ip.Draw(a, FPS);
Med.Draw(a);
};
obj.Draw = delegate(FPS FPS)
{
SwitchMode(Med, DrawBuffer, FPS, );
};
obj.Dispose = delegate
{
};
return obj;
}
public static Module 調(Med Med)
{
Module mod = new Module();
bool Result2 = false;
bool Result3 = false;
bool b1 = false;
bool b2 = false;
bool b3 = false;
mod.Down = delegate
{
if (!Result2)
{
Player.Result2();
Result2 = true;
b1 = Sta.GameData.TrainingTarget.Pregnant && Sta.GameData.TrainingTarget.;
b2 = !調調 && Sta.GameData.TrainingTarget.Trained;
b3 = Sta.GameData.TrainingTarget.Trained && Sta.GameData. == null;
Result3 = !(b1 || b2 || b3);
}
else if (!Result3)
{
ip.TextIm = "";
if (b1)
{
InfoPanel 2 = ip;
2.TextIm = 2.TextIm + GameText. + Sta.GameData.TrainingTarget.Number + "/" + Sta.GameData.TrainingTarget.Name + GameText. + ((Sta.GameData.TrainingTarget.Laboror || Sta.GameData.TrainingTarget.Prostitute) ? ("\r\n" + GameText.) : "") + "\r\n";
Sta.GameData.TrainingTarget. = false;
}
if (b2)
{
InfoPanel 2 = ip;
2.TextIm = 2.TextIm + GameText. + Sta.GameData.TrainingTarget.Number + "/" + Sta.GameData.TrainingTarget.Name + GameText.調 + "\r\n";
}
if (b3)
{
Sta.GameData. = Sta.GameData.TrainingTarget;
InfoPanel 2 = ip;
2.TextIm = 2.TextIm + GameText. + Sta.GameData.TrainingTarget.Number + "/" + Sta.GameData.TrainingTarget.Name + GameText.;
//Sounds.祝福.Play();
}
Result3 = true;
}
else if (!(Med))
{
Player.UI.Reset();
Med.SwitchMode("メインフォーム", DrawBuffer, );
}
};
mod.Up = delegate
{
};
mod.Move = delegate
{
};
mod.Leave = delegate
{
};
mod.Wheel = delegate
{
};
mod.Setting = delegate
{
ip.MaiShow = true;
ip.Mai.Feed.Dra = true;
ip.Mai2Show = false;
ip.SubShow = true;
ip.Sub2Show = false;
Med.CursorShow();
Color HitColor = Col.Empty;
Player.UI.調.Up(ref HitColor);
Player.Result1();
if (Player.UI.)
{
Sta.GameData. = Player.UI.bu;
}
Sta.GameData.TrainingTarget. = Player.UI.bu;
Player.調();
TrainingTarget..End();
TrainingTarget..End();
TrainingTarget.尿();
Player._();
Player._();
TrainingTarget.Bod.. = 0.0;
TrainingTarget.Bod.. = 0.0;
TrainingTarget.Bod.Clear();
TrainingTarget.Bod..B = Med.Base.GetPosition(ref Shas.);
TrainingTarget.Bod. = 0.0;
TrainingTarget.Bod. = 0.0;
TrainingTarget.Bod. = 0.0;
TrainingTarget.Bod.尿 = 0.0;
if (!TrainingTarget.Bod.Is粘)
{
TrainingTarget.Bod._表示 = false;
}
TrainingTarget.EyeTracking.End();
TrainingTarget..End();
TrainingTarget..End();
TrainingTarget..End();
TrainingTarget..End();
TrainingTarget.Bod.Set腰();
if (Sta.GameData.TrainingTarget.Trained)
{
TrainingTarget.Bod._表示 = false;
TrainingTarget.Bod._表示 = true;
TrainingTarget.Set基本姿勢();
}
else
{
TrainingTarget.Bod._表示 = true;
TrainingTarget.Set拘束姿勢();
}
TrainingTarget.Emotion();
TrainingTarget.SetInitialExpression();
TrainingTarget.();
TrainingTarget._無し();
TrainingTarget.Set衣装(Sta.GameData.TrainingTarget.);
Player.SetState();
Player.();
Player.ModBox();
Player.SensBox();
TrainingTarget.Bod. = null;
TrainingTarget.Bod.Join();
TrainingTarget.Bod.Update();
.();
..End();
Result2 = false;
Result3 = false;
si.Set(bre: false);
Sta.GameData. = false;
Sta.GameData. = false;
Sta.GameData. = false;
Sta.GameData. = false;
};
mod.Draw = delegate(FPS FPS)
{
SwitchMode(Med, DrawBuffer, FPS, );
};
mod.Dispose = delegate
{
};
return mod;
}
public static Module (Med Med)
{
try
{
uint = 10000000u;
uint = 10000000u;
uint = 10000000u;
uint = 10000000u;
bool d = false;
Module mod = new Module();
Buts bs = new Buts();
Swi sw = new Swi(Color.DarkRed);
Swi sw = new Swi(Color.DarkRed);
Swi sw = new Swi(Color.DarkRed);
int i = 0;
int f = 0;
ListView lv = new ListView(DrawBuffer, DrawBuffer.GetPosition(0.01, 0.08), 0.4, new Font("MS Gothic", 1f), 0.08, Col.White, Col.Empty, Color.FromArgb(160, Col.Black), Col.Black, Enumerable.Repeat(new TA("No Slave".PadLeft(15, ' '), delegate
{
}), 15).ToArray());
Color lv初期縁色 = Col.Black;
Action lv縁色初期化 = delegate
{
foreach (But item in lv.bs.EnumBut)
{
item.Pars.Values.First().ToParT().PenColor = lv初期縁色;
}
};
Action<Unit> SetUI = delegate(Unit u)
{
if (u != null)
{
ip.TextIm = u.GetStatus();
bs["MoveRoomDown"].Dra = Sta.MoveButton;
bs["MoveRoomUp"].Dra = Sta.MoveButton;
bs["MoveFloorDown"].Dra = Sta.MoveButton;
bs["MoveFloorUp"].Dra = Sta.MoveButton;
bs["子"].Dra = true;
bs["親形質1"].Dra = true;
bs["親形質2"].Dra = true;
sw.SetFlag(bs["保守"], u.);
sw.SetFlag(bs["一般労働"], u.Laboror);
sw.SetFlag(bs["娼婦労働"], u.Prostitute);
bs["保守"].Dra = true;
bs["一般労働"].Dra = u. && u.Trained;
bs["娼婦労働"].Dra = u. && u.Trained;
bs["売却"].Dra = !u.;
bs["胸施術"].Dra = Sta.GameData. && !u.ChaD. && u.ChaD.Is胸甲殻();
bs["股施術"].Dra = Sta.GameData. && !u.ChaD. && u.ChaD.Is股防御();
bs["淫紋"].Dra = Sta.GameData. && u.Trained && !u.ChaD. && !u.ChaD.Isタトゥ();
bs["衣装"].Dra = Sta.GameData. && u.Trained;
}
else
{
npl.Text = "No Slave";
ip.TextIm = " ";
bs["MoveRoomDown"].Dra = false;
bs["MoveRoomUp"].Dra = false;
bs["MoveFloorDown"].Dra = false;
bs["MoveFloorUp"].Dra = false;
bs["子"].Dra = false;
bs["親形質1"].Dra = false;
bs["親形質2"].Dra = false;
bs["保守"].Dra = false;
bs["一般労働"].Dra = false;
bs["娼婦労働"].Dra = false;
bs["売却"].Dra = false;
bs["胸施術"].Dra = false;
bs["股施術"].Dra = false;
bs["淫紋"].Dra = false;
bs["衣装"].Dra = false;
}
};
Action<int> set = delegate(int n)
{
i = 0;
lv.Acts = Enumerable.Repeat(new TA("", delegate
{
}), 15).Select(delegate(TA e)
{
Unit u = Sta.GameData.Slaves[n + i];
if (u == null)
{
e.Text = "No Slave";
e.act = delegate(But b)
{
lv縁色初期化();
b.Pars.Values.First().ToParT().PenColor = Color.Red;
Sta.GameData.TrainingTarget = null;
if (TrainingTarget != null)
{
TrainingTarget.Dispose();
TrainingTarget = null;
}
SetUI(null);
};
}
else
{
e.Text = GameText. + u.Number;
e.act = delegate(But b)
{
lv縁色初期化();
b.Pars.Values.First().ToParT().PenColor = Color.Red;
Sta.GameData.TrainingTarget = u;
bs["子"].Action(bs["子"]);
if (ip.Mai2Show)
{
if (Sta.GameData.TrainingTarget == null)
{
ip.Mai2Im = " ";
ip. = false;
}
else
{
d = false;
bs["売却"].Action(bs["売却"]);
d = true;
}
}
};
}
int num8 = i;
i = num8 + 1;
return e;
});
};
lv.SetHitColor(Med);
ParT parT = new ParT();
parT.Font = new Font("MS Gothic", 0.1f);
parT.PositionBase = DrawBuffer.GetPosition(0.85, 0.02);
parT.Text = GameText.;
parT.FontSize = 0.15;
parT.SizeBase = 0.05;
parT.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT.OP.ScalingY(parT.OP.GetCenter(), 0.47);
parT.OP.Rotation(parT.OP.GetCenter(), -26.0);
parT.Closed = true;
parT.TextColor = Col.White;
parT.BrushColor = Color.FromArgb(160, Col.Black);
parT.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT.StringFormat.Alignment = StringAlignment.Center;
parT.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("ボタン0", new But1(parT, delegate
{
////Sounds.操作.Play();
if (Sta.GameData.TrainingTarget != null && bs["子"].Pars.Values.First().ToParT().PenColor != Color.Red)
{
Set調教対象(Med, Sta.GameData.TrainingTarget);
SetUI(Sta.GameData.TrainingTarget);
}
Med.Mode = "メインフォーム";
}));
Color bs初期縁色 = Col.Black;
Action bs縁色初期化 = delegate
{
foreach (But item2 in bs.EnumBut.Skip(1).Take(3))
{
item2.Pars.Values.First().ToParT().PenColor = bs初期縁色;
}
};
ParT parT2 = new ParT();
parT2.Font = new Font("MS Gothic", 0.1f);
parT2.PositionBase = DrawBuffer.GetPosition(0.85, 0.1);
parT2.Text = GameText.;
parT2.FontSize = 0.15;
parT2.SizeBase = 0.05;
parT2.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT2.OP.ScalingY(parT2.OP.GetCenter(), 0.47);
parT2.OP.Rotation(parT2.OP.GetCenter(), -26.0);
parT2.Closed = true;
parT2.TextColor = Col.White;
parT2.BrushColor = Color.FromArgb(160, Col.Black);
parT2.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT2.StringFormat.Alignment = StringAlignment.Center;
parT2.StringFormat.LineAlignment = StringAlignment.Center;
parT2.PenColor = Color.Red;
bs.Add("子", new But1(parT2, delegate(But b)
{
if (d)
{
////Sounds.操作.Play();
}
bs縁色初期化();
b.Pars.Values.First().ToParT().PenColor = Color.Red;
if (Sta.GameData.TrainingTarget != null)
{
if (TrainingTarget == null || TrainingTarget.ChaD != Sta.GameData.TrainingTarget.ChaD)
{
Set調教対象(Med, Sta.GameData.TrainingTarget);
}
SetUI(Sta.GameData.TrainingTarget);
bs["胸施術"].Dra = Sta.GameData. && !Sta.GameData.TrainingTarget.ChaD. && Sta.GameData.TrainingTarget.ChaD.Is胸甲殻();
bs["股施術"].Dra = Sta.GameData. && !Sta.GameData.TrainingTarget.ChaD. && Sta.GameData.TrainingTarget.ChaD.Is股防御();
bs["淫紋"].Dra = Sta.GameData. && Sta.GameData.TrainingTarget.Trained && !Sta.GameData.TrainingTarget.ChaD. && !Sta.GameData.TrainingTarget.ChaD.Isタトゥ();
bs["衣装"].Dra = Sta.GameData. && Sta.GameData.TrainingTarget.Trained;
}
}));
ParT parT3 = new ParT();
parT3.Font = new Font("MS Gothic", 0.1f);
parT3.PositionBase = DrawBuffer.GetPosition(0.85, 0.18);
parT3.Text = GameText.1;
parT3.FontSize = 0.15;
parT3.SizeBase = 0.05;
parT3.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT3.OP.ScalingY(parT3.OP.GetCenter(), 0.47);
parT3.OP.Rotation(parT3.OP.GetCenter(), -26.0);
parT3.Closed = true;
parT3.TextColor = Col.White;
parT3.BrushColor = Color.FromArgb(160, Col.Black);
parT3.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT3.StringFormat.Alignment = StringAlignment.Center;
parT3.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("親形質1", new But1(parT3, delegate(But b)
{
////Sounds.操作.Play();
bs縁色初期化();
b.Pars.Values.First().ToParT().PenColor = Color.Red;
if (Sta.GameData.TrainingTarget != null)
{
if (TrainingTarget != null)
{
TrainingTarget.Dispose();
}
TrainingTarget = new Cha(Med, DrawBuffer, Sta.GameData.TrainingTarget.Mother.ChaD);
if (TrainingTarget.Bod.Is双眼)
{
TrainingTarget._見つめ();
}
if (TrainingTarget.Bod.Is頬眼)
{
TrainingTarget._見つめ();
}
if (TrainingTarget.Bod.Is単眼)
{
TrainingTarget._見つめ();
}
if (TrainingTarget.Bod.Is額眼)
{
TrainingTarget._見つめ();
}
if (Sta.GameData.TrainingTarget.Mother.Race == GameText.)
{
TrainingTarget._卑();
TrainingTarget._半1();
}
TrainingTarget._閉笑();
TrainingTarget.Set基本姿勢();
npl.Text = GameText. + Sta.GameData.TrainingTarget.Number + "\r\n" + GameText.1;
ip.TextIm = Sta.GameData.TrainingTarget.Mother.GetStatus();
bs["胸施術"].Dra = false;
bs["股施術"].Dra = false;
bs["淫紋"].Dra = false;
bs["衣装"].Dra = false;
}
}));
ParT parT4 = new ParT();
parT4.Font = new Font("MS Gothic", 0.1f);
parT4.PositionBase = DrawBuffer.GetPosition(0.85, 0.26);
parT4.Text = GameText.2;
parT4.FontSize = 0.15;
parT4.SizeBase = 0.05;
parT4.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT4.OP.ScalingY(parT4.OP.GetCenter(), 0.47);
parT4.OP.Rotation(parT4.OP.GetCenter(), -26.0);
parT4.Closed = true;
parT4.TextColor = Col.White;
parT4.BrushColor = Color.FromArgb(160, Col.Black);
parT4.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT4.StringFormat.Alignment = StringAlignment.Center;
parT4.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("親形質2", new But1(parT4, delegate(But b)
{
////Sounds.操作.Play();
bs縁色初期化();
b.Pars.Values.First().ToParT().PenColor = Color.Red;
if (Sta.GameData.TrainingTarget != null)
{
if (TrainingTarget != null)
{
TrainingTarget.Dispose();
}
TrainingTarget = new Cha(Med, DrawBuffer, Sta.GameData.TrainingTarget.Father.ChaD);
if (TrainingTarget.Bod.Is双眼)
{
TrainingTarget._見つめ();
}
if (TrainingTarget.Bod.Is頬眼)
{
TrainingTarget._見つめ();
}
if (TrainingTarget.Bod.Is単眼)
{
TrainingTarget._見つめ();
}
if (TrainingTarget.Bod.Is額眼)
{
TrainingTarget._見つめ();
}
if (Sta.GameData.TrainingTarget.Father.Race == GameText.)
{
TrainingTarget._卑();
TrainingTarget._半1();
}
TrainingTarget._閉笑();
TrainingTarget.Set基本姿勢();
npl.Text = GameText. + Sta.GameData.TrainingTarget.Number + "\r\n" + GameText.2;
ip.TextIm = Sta.GameData.TrainingTarget.Father.GetStatus();
bs["胸施術"].Dra = false;
bs["股施術"].Dra = false;
bs["淫紋"].Dra = false;
bs["衣装"].Dra = false;
}
}));
ParT parT5 = new ParT();
parT5.Font = new Font("MS Gothic", 0.1f);
parT5.PositionBase = DrawBuffer.GetPosition(0.85, 0.34);
parT5.Text = GameText.;
parT5.FontSize = 0.15;
parT5.SizeBase = 0.05;
parT5.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT5.OP.ScalingY(parT5.OP.GetCenter(), 0.47);
parT5.OP.Rotation(parT5.OP.GetCenter(), -26.0);
parT5.Closed = true;
parT5.TextColor = Col.White;
parT5.BrushColor = Color.FromArgb(160, Col.Black);
parT5.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT5.StringFormat.Alignment = StringAlignment.Center;
parT5.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("保守", new But1(parT5, delegate(But b)
{
////Sounds.操作.Play();
if (Sta.GameData.TrainingTarget != null)
{
sw.OnOff(b);
Sta.GameData.TrainingTarget. = sw.Flag;
bs["売却"].Dra = !Sta.GameData.TrainingTarget.;
ip.SubInfoIm = (Sta.GameData.TrainingTarget. ? GameText. : GameText.);
}
}));
ParT parT6 = new ParT();
parT6.Font = new Font("MS Gothic", 0.1f);
parT6.PositionBase = DrawBuffer.GetPosition(0.85, 0.42);
parT6.Text = GameText.;
parT6.FontSize = 0.15;
parT6.SizeBase = 0.05;
parT6.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT6.OP.ScalingY(parT6.OP.GetCenter(), 0.47);
parT6.OP.Rotation(parT6.OP.GetCenter(), -26.0);
parT6.Closed = true;
parT6.TextColor = Col.White;
parT6.BrushColor = Color.FromArgb(160, Col.Black);
parT6.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT6.StringFormat.Alignment = StringAlignment.Center;
parT6.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("一般労働", new But1(parT6, delegate(But b)
{
////Sounds.操作.Play();
if (Sta.GameData.TrainingTarget != null)
{
sw.OnOff(b);
Sta.GameData.TrainingTarget.Laboror = sw.Flag;
if (sw.Flag && sw.Flag)
{
sw.SetFlag(bs["娼婦労働"], On: false);
}
Sta.GameData.TrainingTarget.Prostitute = sw.Flag;
ip.SubInfoIm = (Sta.GameData.TrainingTarget.Laboror ? GameText. : GameText.);
}
}));
ParT parT7 = new ParT();
parT7.Font = new Font("MS Gothic", 0.1f);
parT7.PositionBase = DrawBuffer.GetPosition(0.85, 0.5);
parT7.Text = GameText.;
parT7.FontSize = 0.15;
parT7.SizeBase = 0.05;
parT7.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT7.OP.ScalingY(parT7.OP.GetCenter(), 0.47);
parT7.OP.Rotation(parT7.OP.GetCenter(), -26.0);
parT7.Closed = true;
parT7.TextColor = Col.White;
parT7.BrushColor = Color.FromArgb(160, Col.Black);
parT7.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT7.StringFormat.Alignment = StringAlignment.Center;
parT7.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("娼婦労働", new But1(parT7, delegate(But b)
{
////Sounds.操作.Play();
if (Sta.GameData.TrainingTarget != null)
{
sw.OnOff(b);
Sta.GameData.TrainingTarget.Prostitute = sw.Flag;
if (sw.Flag && sw.Flag)
{
sw.SetFlag(bs["一般労働"], On: false);
}
Sta.GameData.TrainingTarget.Laboror = sw.Flag;
ip.SubInfoIm = (Sta.GameData.TrainingTarget.Prostitute ? GameText. : GameText.);
}
}));
ParT parT8 = new ParT();
parT8.Font = new Font("MS Gothic", 0.1f);
parT8.PositionBase = DrawBuffer.GetPosition(0.75, 0.405);
parT8.Text = GameText.;
parT8.FontSize = 0.15;
parT8.SizeBase = 0.05;
parT8.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT8.OP.ScalingY(parT8.OP.GetCenter(), 0.47);
parT8.OP.Rotation(parT8.OP.GetCenter(), -26.0);
parT8.Closed = true;
parT8.TextColor = Col.White;
parT8.BrushColor = Color.FromArgb(160, Col.Black);
parT8.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT8.StringFormat.Alignment = StringAlignment.Center;
parT8.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("全一般", new But1(parT8, delegate
{
////Sounds.操作.Play();
if (Sta.GameData.TrainingTarget != null)
{
sw.SetFlag(bs["一般労働"], On: true);
sw.SetFlag(bs["娼婦労働"], On: false);
}
Unit[] 3 = Sta.GameData.Slaves;
foreach (Unit unit3 in 3)
{
if (unit3 != null && unit3.Trained && unit3.)
{
unit3.Laboror = true;
unit3.Prostitute = false;
}
}
ip.SubInfoIm = GameText.;
}));
ParT parT9 = new ParT();
parT9.Font = new Font("MS Gothic", 0.1f);
parT9.PositionBase = DrawBuffer.GetPosition(0.75, 0.485);
parT9.Text = GameText.;
parT9.FontSize = 0.15;
parT9.SizeBase = 0.05;
parT9.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT9.OP.ScalingY(parT9.OP.GetCenter(), 0.47);
parT9.OP.Rotation(parT9.OP.GetCenter(), -26.0);
parT9.Closed = true;
parT9.TextColor = Col.White;
parT9.BrushColor = Color.FromArgb(160, Col.Black);
parT9.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT9.StringFormat.Alignment = StringAlignment.Center;
parT9.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("全娼婦", new But1(parT9, delegate
{
////Sounds.操作.Play();
if (Sta.GameData.TrainingTarget != null)
{
sw.SetFlag(bs["一般労働"], On: false);
sw.SetFlag(bs["娼婦労働"], On: true);
}
Unit[] 2 = Sta.GameData.Slaves;
foreach (Unit unit2 in 2)
{
if (unit2 != null && unit2.Trained && unit2.)
{
unit2.Laboror = false;
unit2.Prostitute = true;
}
}
ip.SubInfoIm = GameText.;
}));
ParT parT10 = new ParT();
parT10.Font = new Font("MS Gothic", 0.1f);
parT10.PositionBase = DrawBuffer.GetPosition(0.75, 0.565);
parT10.Text = GameText.;
parT10.FontSize = 0.15;
parT10.SizeBase = 0.05;
parT10.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT10.OP.ScalingY(parT10.OP.GetCenter(), 0.47);
parT10.OP.Rotation(parT10.OP.GetCenter(), -26.0);
parT10.Closed = true;
parT10.TextColor = Col.White;
parT10.BrushColor = Color.FromArgb(160, Col.Black);
parT10.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT10.StringFormat.Alignment = StringAlignment.Center;
parT10.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("全解除", new But1(parT10, delegate
{
////Sounds.操作.Play();
if (Sta.GameData.TrainingTarget != null)
{
sw.SetFlag(bs["一般労働"], On: false);
sw.SetFlag(bs["娼婦労働"], On: false);
}
Unit[] = Sta.GameData.Slaves;
foreach (Unit unit in )
{
if (unit != null && unit.Trained)
{
unit.Laboror = false;
unit.Prostitute = false;
}
}
ip.SubInfoIm = GameText.;
}));
ParT parT11 = new ParT();
parT11.Font = new Font("MS Gothic", 0.1f);
parT11.PositionBase = DrawBuffer.GetPosition(0.85, 0.58);
parT11.Text = GameText.;
parT11.FontSize = 0.15;
parT11.SizeBase = 0.05;
parT11.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT11.OP.ScalingY(parT11.OP.GetCenter(), 0.47);
parT11.OP.Rotation(parT11.OP.GetCenter(), -26.0);
parT11.Closed = true;
parT11.TextColor = Col.White;
parT11.BrushColor = Color.FromArgb(160, Col.Black);
parT11.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT11.StringFormat.Alignment = StringAlignment.Center;
parT11.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("売却", new But1(parT11, delegate
{
if (d)
{
//TODO fix?
////Sounds.操作.Play();
}
ip.Mai2Im = Sta.GameData.TrainingTarget.GetPriceInfo();
ip.Mai2Show = true;
if (!Sta.GameData.TrainingTarget.)
{
ip.TextIm = GameText.;
}
ip.yAct = delegate
{
Color HitColor4 = Col.Empty;
bs.Move(ref HitColor4);
ulong price = Sta.GameData.TrainingTarget.GetPrice();
Sta.GameData. = Sta.GameData..(price);
//Sounds.精算.Play();
ip.UpdateSub2();
for (int m = 0; m < Sta.GameData.Slaves.Length; m++)
{
if (Sta.GameData.Slaves[m] == Sta.GameData.TrainingTarget)
{
Sta.GameData.Slaves[m] = null;
break;
}
}
Sta.GameData.();
set(f);
ip.SubInfoIm = GameText. + Sta.GameData.TrainingTarget.Number + GameText. + " \r\n+" + price.ToString("#,0");
d = false;
But but8 = bs["ボタン" + (Sta.GameData.TrainingTarget. + 1)];
but8.Action(but8);
But but9 = lv.bs.EnumBut.ToArray()[Sta.GameData.TrainingTarget.RoomNumber];
but9.Action(but9);
if (Sta.GameData.TrainingTarget == null)
{
ip.Mai2Im = " ";
ip. = false;
}
else
{
d = false;
bs["売却"].Action(bs["売却"]);
}
d = true;
};
ip.nAct = delegate
{
//Sounds.操作.Play();
Color HitColor3 = Col.Empty;
bs.Move(ref HitColor3);
ip.Mai2Show = false;
if (Sta.GameData.TrainingTarget == null)
{
ip.TextIm = " ";
}
else
{
ip.TextIm = Sta.GameData.TrainingTarget.GetStatus();
}
ip.SubInfoIm = GameText.;
ip. = false;
};
ip. = !Sta.GameData.TrainingTarget.;
}));
ParT parT12 = new ParT();
parT12.Font = new Font("MS Gothic", 0.1f);
parT12.PositionBase = DrawBuffer.GetPosition(0.75, 0.645);
parT12.Text = GameText.;
parT12.FontSize = 0.15;
parT12.SizeBase = 0.05;
parT12.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT12.OP.ScalingY(parT12.OP.GetCenter(), 0.47);
parT12.OP.Rotation(parT12.OP.GetCenter(), -26.0);
parT12.Closed = true;
parT12.TextColor = Col.White;
parT12.BrushColor = Color.FromArgb(160, Col.Black);
parT12.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT12.StringFormat.Alignment = StringAlignment.Center;
parT12.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("全売却", new But1(parT12, delegate
{
//Sounds.操作.Play();
string tb = ip.TextIm;
ip.Mai2Im = Sta.GameData.GetPriceInfo(out var p);
ip.Mai2Show = true;
ip.TextIm = GameText.;
ip.yAct = delegate
{
Color HitColor2 = Col.Empty;
bs.Move(ref HitColor2);
ip.Mai2Show = false;
Sta.GameData. = Sta.GameData..(p);
//TODO fix?
////Sounds.精算.Play();
ip.UpdateSub2();
for (int l = 0; l < Sta.GameData.Slaves.Length; l++)
{
if (Sta.GameData.Slaves[l] != null && !Sta.GameData.Slaves[l].)
{
Sta.GameData.Slaves[l] = null;
}
}
Sta.GameData.();
set(f);
d = false;
if (Sta.GameData.TrainingTarget != null)
{
if (!Sta.GameData.TrainingTarget.)
{
But but6 = bs["ボタン" + (Sta.GameData.TrainingTarget. + 1)];
but6.Action(but6);
But but7 = lv.bs.EnumBut.ToArray()[Sta.GameData.TrainingTarget.RoomNumber];
but7.Action(but7);
}
else if (Sta.AlwaysUseName)
{
setName();
}
else
{
npl.Text = GameText. + Sta.GameData.TrainingTarget.Number + (Sta.GameData.TrainingTarget.Trained ? ("\r\n" + Sta.GameData.TrainingTarget.Name) : Sta.GameData.TrainingTarget.Race);
}
}
ip.SubInfoIm = GameText. + " \r\n+" + p.ToString("#,0");
ip.TextIm = " ";
d = true;
ip. = false;
};
ip.nAct = delegate
{
//Sounds.操作.Play();
Color HitColor = Col.Empty;
bs.Move(ref HitColor);
ip.Mai2Show = false;
ip.TextIm = tb;
ip.SubInfoIm = GameText.;
ip. = false;
};
ip. = true;
}));
Color f初期縁色 = Col.Black;
Action f縁色初期化 = delegate
{
foreach (But item3 in bs.EnumBut.Skip(10))
{
item3.Pars.Values.First().ToParT().PenColor = f初期縁色;
}
};
Action<But, int> = delegate(But b, int o)
{
f縁色初期化();
b.Pars.Values.First().ToParT().PenColor = Color.Red;
set(o);
};
Action = delegate
{
lv縁色初期化();
if (Sta.GameData.TrainingTarget != null && f == Sta.GameData.TrainingTarget. * 15)
{
lv.bs[Sta.GameData.TrainingTarget.RoomNumber.ToString()].Pars.Values.First().ToParT().PenColor = Color.Red;
}
};
ParT parT13 = new ParT();
parT13.Font = new Font("MS Gothic", 0.1f);
parT13.PositionBase = DrawBuffer.GetPosition(0.03, 0.03);
parT13.Text = "1F";
parT13.FontSize = 0.15;
parT13.SizeBase = 0.05;
parT13.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT13.BasePointBase = parT13.OP.GetCenter();
parT13.OP.ScalingXY(parT13.BasePointBase, 0.3);
parT13.Closed = true;
parT13.TextColor = Col.White;
parT13.BrushColor = Color.FromArgb(160, Col.Black);
parT13.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT13.StringFormat.Alignment = StringAlignment.Center;
parT13.StringFormat.LineAlignment = StringAlignment.Center;
parT13.PenColor = Color.Red;
bs.Add("ボタン1", new But1(parT13, delegate(But b)
{
if (d)
{
//Sounds.操作.Play();
}
(b, f = 0);
();
}));
ParT parT14 = new ParT();
parT14.Font = new Font("MS Gothic", 0.1f);
parT14.PositionBase = DrawBuffer.GetPosition(0.07, 0.03);
parT14.Text = "2F";
parT14.FontSize = 0.15;
parT14.SizeBase = 0.05;
parT14.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT14.BasePointBase = parT14.OP.GetCenter();
parT14.OP.ScalingXY(parT14.BasePointBase, 0.3);
parT14.Closed = true;
parT14.TextColor = Col.White;
parT14.BrushColor = Color.FromArgb(160, Col.Black);
parT14.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT14.StringFormat.Alignment = StringAlignment.Center;
parT14.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("ボタン2", new But1(parT14, delegate(But b)
{
if (d)
{
//Sounds.操作.Play();
}
(b, f = 15);
();
}));
ParT parT15 = new ParT();
parT15.Font = new Font("MS Gothic", 0.1f);
parT15.PositionBase = DrawBuffer.GetPosition(0.11, 0.03);
parT15.Text = "3F";
parT15.FontSize = 0.15;
parT15.SizeBase = 0.05;
parT15.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT15.BasePointBase = parT15.OP.GetCenter();
parT15.OP.ScalingXY(parT15.BasePointBase, 0.3);
parT15.Closed = true;
parT15.TextColor = Col.White;
parT15.BrushColor = Color.FromArgb(160, Col.Black);
parT15.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT15.StringFormat.Alignment = StringAlignment.Center;
parT15.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("ボタン3", new But1(parT15, delegate(But b)
{
if (d)
{
//Sounds.操作.Play();
}
(b, f = 30);
();
}));
ParT parT16 = new ParT();
parT16.Font = new Font("MS Gothic", 0.1f);
parT16.PositionBase = DrawBuffer.GetPosition(0.15, 0.03);
parT16.Text = "4F";
parT16.FontSize = 0.15;
parT16.SizeBase = 0.05;
parT16.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT16.BasePointBase = parT16.OP.GetCenter();
parT16.OP.ScalingXY(parT16.BasePointBase, 0.3);
parT16.Closed = true;
parT16.TextColor = Col.White;
parT16.BrushColor = Color.FromArgb(160, Col.Black);
parT16.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT16.StringFormat.Alignment = StringAlignment.Center;
parT16.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("ボタン4", new But1(parT16, delegate(But b)
{
if (d)
{
//Sounds.操作.Play();
}
(b, f = 45);
();
}));
ParT parT17 = new ParT();
parT17.Font = new Font("MS Gothic", 0.1f);
parT17.PositionBase = DrawBuffer.GetPosition(0.19, 0.03);
parT17.Text = "5F";
parT17.FontSize = 0.15;
parT17.SizeBase = 0.05;
parT17.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT17.BasePointBase = parT17.OP.GetCenter();
parT17.OP.ScalingXY(parT17.BasePointBase, 0.3);
parT17.Closed = true;
parT17.TextColor = Col.White;
parT17.BrushColor = Color.FromArgb(160, Col.Black);
parT17.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT17.StringFormat.Alignment = StringAlignment.Center;
parT17.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("ボタン5", new But1(parT17, delegate(But b)
{
if (d)
{
//Sounds.操作.Play();
}
(b, f = 60);
();
}));
ParT parT18 = new ParT();
parT18.Font = new Font("MS Gothic", 0.1f);
parT18.PositionBase = DrawBuffer.GetPosition(0.23, 0.03);
parT18.Text = "6F";
parT18.FontSize = 0.15;
parT18.SizeBase = 0.05;
parT18.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT18.BasePointBase = parT18.OP.GetCenter();
parT18.OP.ScalingXY(parT18.BasePointBase, 0.3);
parT18.Closed = true;
parT18.TextColor = Col.White;
parT18.BrushColor = Color.FromArgb(160, Col.Black);
parT18.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT18.StringFormat.Alignment = StringAlignment.Center;
parT18.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("ボタン6", new But1(parT18, delegate(But b)
{
if (d)
{
//Sounds.操作.Play();
}
(b, f = 75);
();
}));
ParT parT19 = new ParT();
parT19.Font = new Font("MS Gothic", 0.1f);
parT19.PositionBase = DrawBuffer.GetPosition(0.27, 0.03);
parT19.Text = "7F";
parT19.FontSize = 0.15;
parT19.SizeBase = 0.05;
parT19.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT19.BasePointBase = parT19.OP.GetCenter();
parT19.OP.ScalingXY(parT19.BasePointBase, 0.3);
parT19.Closed = true;
parT19.TextColor = Col.White;
parT19.BrushColor = Color.FromArgb(160, Col.Black);
parT19.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT19.StringFormat.Alignment = StringAlignment.Center;
parT19.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("ボタン7", new But1(parT19, delegate(But b)
{
if (d)
{
//Sounds.操作.Play();
}
(b, f = 90);
();
}));
ParT parT20 = new ParT();
parT20.Font = new Font("MS Gothic", 0.1f);
parT20.PositionBase = DrawBuffer.GetPosition(0.31, 0.03);
parT20.Text = "8F";
parT20.FontSize = 0.15;
parT20.SizeBase = 0.05;
parT20.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT20.BasePointBase = parT20.OP.GetCenter();
parT20.OP.ScalingXY(parT20.BasePointBase, 0.3);
parT20.Closed = true;
parT20.TextColor = Col.White;
parT20.BrushColor = Color.FromArgb(160, Col.Black);
parT20.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT20.StringFormat.Alignment = StringAlignment.Center;
parT20.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("ボタン8", new But1(parT20, delegate(But b)
{
if (d)
{
//Sounds.操作.Play();
}
(b, f = 105);
();
}));
ParT parT21 = new ParT();
parT21.Font = new Font("MS Gothic", 0.1f);
parT21.PositionBase = DrawBuffer.GetPosition(0.35, 0.03);
parT21.Text = "9F";
parT21.FontSize = 0.15;
parT21.SizeBase = 0.05;
parT21.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT21.BasePointBase = parT21.OP.GetCenter();
parT21.OP.ScalingXY(parT21.BasePointBase, 0.3);
parT21.Closed = true;
parT21.TextColor = Col.White;
parT21.BrushColor = Color.FromArgb(160, Col.Black);
parT21.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT21.StringFormat.Alignment = StringAlignment.Center;
parT21.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("ボタン9", new But1(parT21, delegate(But b)
{
if (d)
{
//Sounds.操作.Play();
}
(b, f = 120);
();
}));
ParT parT22 = new ParT();
parT22.Font = new Font("MS Gothic", 0.1f);
parT22.PositionBase = DrawBuffer.GetPosition(0.75, 0.085);
parT22.Text = GameText.;
parT22.FontSize = 0.15;
parT22.SizeBase = 0.05;
parT22.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT22.OP.ScalingY(parT8.OP.GetCenter(), 0.47);
parT22.OP.Rotation(parT8.OP.GetCenter(), -26.0);
parT22.Closed = true;
parT22.TextColor = Col.White;
parT22.BrushColor = Color.FromArgb(160, Col.Black);
parT22.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT22.StringFormat.Alignment = StringAlignment.Center;
parT22.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("胸施術", new But1(parT22, delegate
{
if (Sta.GameData. < )
{
//Sounds.操作.Play();
ip.SubInfoIm = GameText.;
}
else
{
Sta.GameData. -= ;
//TODO fix?
////Sounds.精算.Play();
ip.UpdateSub2();
Sta.GameData.TrainingTarget.ChaD. = true;
TrainingTarget.Bod.();
if (Sta.GameData.TrainingTarget. != null)
{
TrainingTarget.Set衣装(Sta.GameData.TrainingTarget.);
}
Sta.GameData.TrainingTarget.();
bs["胸施術"].Dra = false;
ip.SubInfoIm = GameText.;
TrainingTarget.SetInitialExpression();
TrainingTarget.Emotion();
TrainingTarget.UpdateExpression();
if (Sta.GameData.TrainingTarget.Trained)
{
TrainingTarget.Bod._表示 = false;
TrainingTarget.Bod._表示 = true;
TrainingTarget.Set基本姿勢();
}
else
{
TrainingTarget.Bod._表示 = true;
TrainingTarget.Set拘束姿勢();
}
}
}));
ParT parT23 = new ParT();
parT23.Font = new Font("MS Gothic", 0.1f);
parT23.PositionBase = DrawBuffer.GetPosition(0.75, 0.165);
parT23.Text = GameText.;
parT23.FontSize = 0.15;
parT23.SizeBase = 0.05;
parT23.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT23.OP.ScalingY(parT8.OP.GetCenter(), 0.47);
parT23.OP.Rotation(parT8.OP.GetCenter(), -26.0);
parT23.Closed = true;
parT23.TextColor = Col.White;
parT23.BrushColor = Color.FromArgb(160, Col.Black);
parT23.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT23.StringFormat.Alignment = StringAlignment.Center;
parT23.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("股施術", new But1(parT23, delegate
{
if (Sta.GameData. < )
{
//Sounds.操作.Play();
ip.SubInfoIm = GameText.;
}
else
{
Sta.GameData. -= ;
//Sounds.精算.Play();
ip.UpdateSub2();
Sta.GameData.TrainingTarget.ChaD. = true;
TrainingTarget.Bod.();
if (Sta.GameData.TrainingTarget. != null)
{
TrainingTarget.Set衣装(Sta.GameData.TrainingTarget.);
}
Sta.GameData.TrainingTarget.();
bs["股施術"].Dra = false;
ip.SubInfoIm = GameText. + (TrainingTarget.Bod.Is蠍 ? GameText. : GameText.) + GameText.;
TrainingTarget.SetInitialExpression();
TrainingTarget.Emotion();
TrainingTarget.UpdateExpression();
if (Sta.GameData.TrainingTarget.Trained)
{
TrainingTarget.Bod._表示 = false;
TrainingTarget.Bod._表示 = true;
TrainingTarget.Set基本姿勢();
}
else
{
TrainingTarget.Bod._表示 = true;
TrainingTarget.Set拘束姿勢();
}
}
}));
ParT parT24 = new ParT();
parT24.Font = new Font("MS Gothic", 0.1f);
parT24.PositionBase = DrawBuffer.GetPosition(0.75, 0.245);
parT24.Text = GameText.;
parT24.FontSize = 0.15;
parT24.SizeBase = 0.05;
parT24.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT24.OP.ScalingY(parT8.OP.GetCenter(), 0.47);
parT24.OP.Rotation(parT8.OP.GetCenter(), -26.0);
parT24.Closed = true;
parT24.TextColor = Col.White;
parT24.BrushColor = Color.FromArgb(160, Col.Black);
parT24.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT24.StringFormat.Alignment = StringAlignment.Center;
parT24.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("淫紋", new But1(parT24, delegate
{
if (Sta.GameData. < )
{
//Sounds.操作.Play();
ip.SubInfoIm = GameText.;
}
else
{
Sta.GameData. -= ;
//Sounds.精算.Play();
ip.UpdateSub2();
Sta.GameData.TrainingTarget.ChaD. = true;
TrainingTarget.Bod.();
Sta.GameData.TrainingTarget. = true;
Sta.GameData.TrainingTarget.();
bs["淫紋"].Dra = false;
ip.SubInfoIm = GameText.;
TrainingTarget.SetInitialExpression();
TrainingTarget.Emotion();
TrainingTarget.UpdateExpression();
if (Sta.GameData.TrainingTarget.Trained)
{
TrainingTarget.Bod._表示 = false;
TrainingTarget.Bod._表示 = true;
TrainingTarget.Set基本姿勢();
}
else
{
TrainingTarget.Bod._表示 = true;
TrainingTarget.Set拘束姿勢();
}
if (TrainingTarget.Bod.Is獣)
{
TrainingTarget.Bod.EI半中1.Updatef = true;
}
}
}));
ParT parT25 = new ParT();
parT25.Font = new Font("MS Gothic", 0.1f);
parT25.PositionBase = DrawBuffer.GetPosition(0.75, 0.325);
parT25.Text = GameText.;
parT25.FontSize = 0.15;
parT25.SizeBase = 0.05;
parT25.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT25.OP.ScalingY(parT9.OP.GetCenter(), 0.47);
parT25.OP.Rotation(parT9.OP.GetCenter(), -26.0);
parT25.Closed = true;
parT25.TextColor = Col.White;
parT25.BrushColor = Color.FromArgb(160, Col.Black);
parT25.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT25.StringFormat.Alignment = StringAlignment.Center;
parT25.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("衣装", new But1(parT25, delegate
{
if (Sta.GameData. < )
{
//TODO fix?
////Sounds.操作.Play();
ip.SubInfoIm = GameText.;
}
else
{
Sta.GameData. -= ;
//TODO fix?
////Sounds.精算.Play();
ip.UpdateSub2();
Sta.GameData.TrainingTarget.Change衣装();
TrainingTarget.Set衣装(Sta.GameData.TrainingTarget.);
ip.SubInfoIm = GameText.;
TrainingTarget.SetInitialExpression();
TrainingTarget.Emotion();
TrainingTarget.UpdateExpression();
if (Sta.GameData.TrainingTarget.Trained)
{
TrainingTarget.Bod._表示 = false;
TrainingTarget.Bod._表示 = true;
TrainingTarget.Set基本姿勢();
}
else
{
TrainingTarget.Bod._表示 = true;
TrainingTarget.Set拘束姿勢();
}
}
}));
bs.Add("MoveRoomDown", MoveRoomDownButton(mod));
bs.Add("MoveRoomUp", MoveRoomUpButton(mod));
bs.Add("MoveFloorDown", MoveFloorDownButton(mod));
bs.Add("MoveFloorUp", MoveFloorUpButton(mod));
bs.SetHitColor(Med);
mod.Down = delegate(MouseButtons mb, Vector2D cp, Color hc)
{
if (!processing)
{
if (SDShow)
{
SaveData.Down(ref hc);
if (mb == MouseButtons.Right && !processing)
{
//TODO fix?
//Sounds.操作.Play();
SDShow = false;
ip.Up(ref hc);
dbs.Move(ref hc);
}
}
else
{
switch (mb)
{
case MouseButtons.Left:
if (!ip.Mai2Show)
{
dbs.Down(ref hc);
bs.Down(ref hc);
}
lv.Down(ref hc);
ip.Down(ref hc);
break;
case MouseButtons.Right:
if (!ip.Mai2Show)
{
bs["ボタン0"].Action(bs["ボタン0"]);
}
else
{
ip.nb.Action(ip.nb);
}
break;
}
}
}
};
mod.Up = delegate(MouseButtons mb, Vector2D cp, Color hc)
{
if (!processing)
{
if (SDShow)
{
SaveData.Up(ref hc);
}
else if (mb == MouseButtons.Left)
{
if (!ip.Mai2Show)
{
dbs.Up(ref hc);
bs.Up(ref hc);
}
lv.Up(ref hc);
ip.Up(ref hc);
}
}
};
mod.Move = delegate(MouseButtons mb, Vector2D cp, Color hc)
{
if (!processing)
{
if (SDShow)
{
SaveData.Move(ref hc);
}
else
{
if (!ip.Mai2Show)
{
dbs.Move(ref hc);
bs.Move(ref hc);
if (bs["胸施術"].Pars.Values.First().ToPar().HitColor == hc && !(ip.SubInfoIm == GameText.) && !(ip.SubInfoIm == GameText.))
{
ip.SubInfoIm = GameText. + "(-" + .ToString("#,0") + ")";
}
else if (ip.SubInfoIm == GameText. + "(-" + .ToString("#,0") + ")")
{
si.Set(bre: false);
}
if (TrainingTarget != null)
{
if (bs["股施術"].Pars.Values.First().ToPar().HitColor == hc && !(ip.SubInfoIm == GameText. + (TrainingTarget.Bod.Is蛇 ? GameText. : GameText.) + GameText.) && !(ip.SubInfoIm == GameText.))
{
ip.SubInfoIm = GameText. + (TrainingTarget.Bod.Is蛇 ? GameText. : GameText.) + GameText. + "(-" + .ToString("#,0") + ")";
}
else if (ip.SubInfoIm == GameText. + (TrainingTarget.Bod.Is蛇 ? GameText. : GameText.) + GameText. + "(-" + .ToString("#,0") + ")")
{
si.Set(bre: false);
}
}
if (bs["淫紋"].Pars.Values.First().ToPar().HitColor == hc && !(ip.SubInfoIm == GameText.) && !(ip.SubInfoIm == GameText.))
{
ip.SubInfoIm = GameText. + "(-" + .ToString("#,0") + ")";
}
else if (ip.SubInfoIm == GameText. + "(-" + .ToString("#,0") + ")")
{
si.Set(bre: false);
}
if (bs["衣装"].Pars.Values.First().ToPar().HitColor == hc && !(ip.SubInfoIm == GameText.) && !(ip.SubInfoIm == GameText.))
{
ip.SubInfoIm = GameText. + "(-" + .ToString("#,0") + ")";
}
else if (ip.SubInfoIm == GameText. + "(-" + .ToString("#,0") + ")")
{
si.Set(bre: false);
}
if (bs["保守"].Pars.Values.First().ToPar().HitColor == hc && !(ip.SubInfoIm == GameText.) && !(ip.SubInfoIm == GameText.))
{
ip.SubInfoIm = GameText.;
}
else if (ip.SubInfoIm == GameText.)
{
si.Set(bre: false);
}
if (bs["一般労働"].Pars.Values.First().ToPar().HitColor == hc && !(ip.SubInfoIm == GameText.) && !(ip.SubInfoIm == GameText.))
{
ip.SubInfoIm = GameText.;
}
else if (ip.SubInfoIm == GameText.)
{
si.Set(bre: false);
}
if (bs["娼婦労働"].Pars.Values.First().ToPar().HitColor == hc && !(ip.SubInfoIm == GameText.) && !(ip.SubInfoIm == GameText.))
{
ip.SubInfoIm = GameText.;
}
else if (ip.SubInfoIm == GameText.)
{
si.Set(bre: false);
}
if (bs["売却"].Pars.Values.First().ToPar().HitColor == hc)
{
ip.SubInfoIm = GameText.;
}
else if (ip.SubInfoIm == GameText.)
{
si.Set(bre: false);
}
if (bs["全一般"].Pars.Values.First().ToPar().HitColor == hc && !(ip.SubInfoIm == GameText.))
{
ip.SubInfoIm = GameText.;
}
else if (ip.SubInfoIm == GameText.)
{
si.Set(bre: false);
}
if (bs["全娼婦"].Pars.Values.First().ToPar().HitColor == hc && !(ip.SubInfoIm == GameText.))
{
ip.SubInfoIm = GameText.;
}
else if (ip.SubInfoIm == GameText.)
{
si.Set(bre: false);
}
if (bs["全解除"].Pars.Values.First().ToPar().HitColor == hc && !(ip.SubInfoIm == GameText.))
{
ip.SubInfoIm = GameText.;
}
else if (ip.SubInfoIm == GameText.)
{
si.Set(bre: false);
}
if (bs["全売却"].Pars.Values.First().ToPar().HitColor == hc && !ip.SubInfoIm.StartsWith(GameText.) && !(ip.SubInfoIm == GameText.))
{
ip.SubInfoIm = GameText.;
}
else if (ip.SubInfoIm == GameText.)
{
si.Set(bre: false);
}
Player説明(ref hc, delegate
{
si.Set(bre: false);
});
}
lv.Move(ref hc);
ip.Move(ref hc);
}
}
};
mod.Leave = delegate
{
if (!processing)
{
if (SDShow)
{
SaveData.Leave();
}
else
{
if (!ip.Mai2Show)
{
dbs.Leave();
bs.Leave();
}
lv.Leave();
}
}
};
mod.Wheel = delegate(MouseButtons mb, Vector2D cp, int dt, Color hc)
{
int num2 = 0;
using (IEnumerator<But> enumerator2 = bs.EnumBut.Skip(12).GetEnumerator())
{
while (enumerator2.MoveNext() && !(enumerator2.Current.Pars.Values.First().ToParT().PenColor == Color.Red))
{
num2++;
}
}
int num3 = 0;
using (IEnumerator<But> enumerator2 = lv.bs.EnumBut.GetEnumerator())
{
while (enumerator2.MoveNext() && !(enumerator2.Current.Pars.Values.First().ToParT().PenColor == Color.Red))
{
num3++;
}
}
int num4 = num3 - dt.Sign();
d = false;
if (num4 < 0 && num2 > 0)
{
But but3 = bs["ボタン" + num2];
but3.Action(but3);
num4 = 14;
}
else if (num4 > 14 && num2 < Sta.GameData. - 1)
{
But but4 = bs["ボタン" + (num2 + 2)];
but4.Action(but4);
num4 = 0;
}
d = true;
But but5 = lv.bs[num4.Limit(0, 15).ToString()];
but5.Action(but5);
if (ip.Mai2Show)
{
if (Sta.GameData.TrainingTarget == null)
{
ip.Mai2Im = " ";
ip. = false;
}
else
{
d = false;
bs["売却"].Action(bs["売却"]);
d = true;
}
}
};
mod.Setting = delegate
{
if (Med.Modeb != "PlayerInformation")
{
for (int j = 1; j <= 9; j++)
{
bs["ボタン" + j].Dra = false;
}
for (int k = 1; k <= Sta.GameData.; k++)
{
bs["ボタン" + k].Dra = true;
}
ip.UpdateSub2();
ip.MaiShow = true;
ip.Mai.Feed.Dra = false;
ip.Mai2Show = false;
ip.SubShow = true;
ip.Sub2Show = true;
d = false;
Player.UI. = false;
if (Sta.GameData.TrainingTarget != null)
{
But but = bs["ボタン" + (Sta.GameData.TrainingTarget. + 1)];
but.Action(but);
lv縁色初期化();
lv.bs[Sta.GameData.TrainingTarget.RoomNumber.ToString()].Pars.Values.First().ToParT().PenColor = Color.Red;
bs["子"].Action(bs["子"]);
}
else
{
ip.TextIm = GameText.;
(bs["ボタン" + (f / 15 + 1)], f);
SetUI(null);
int num = 0;
using (IEnumerator<But> enumerator = lv.bs.EnumBut.GetEnumerator())
{
while (enumerator.MoveNext() && !(enumerator.Current.Pars.Values.First().ToParT().PenColor == Color.Red))
{
num++;
}
}
But but2 = lv.bs[num.Limit(0, 15).ToString()];
but2.Action(but2);
}
d = true;
si.Set(bre: false);
if (Sta.BigWindow)
{
npl.ParT.PositionBase = new Vector2D(0.095, 0.035);
}
else
{
npl.ParT.PositionBase = new Vector2D(ip.MaiB.Position.X, 0.026);
}
}
};
= delegate(Are a, FPS FPS)
{
Med.GH.Clear(Col.Transparent);
if (a.GH != null)
{
a.GH.Clear(Col.Transparent);
}
a.Draw(BasementBackground);
if (TrainingTarget != null)
{
TrainingTarget.Draw(a, FPS);
Player.UI.DrawState(a);
}
a.Draw(npl.ParT);
lv.Draw(a);
bs.Draw(a);
dbs.Draw(a);
ip.Draw(a, FPS);
if (SDShow)
{
SaveData.Draw(a);
}
Med.Draw(a);
};
mod.Draw = delegate(FPS FPS)
{
SwitchMode(Med, DrawBuffer, FPS, );
};
mod.Dispose = delegate
{
lv.Dispose();
bs.Dispose();
};
UI初期化 = delegate
{
f = 0;
npl.Text = "No Slave";
lv縁色初期化();
};
return mod;
}
catch (Exception)
{
return null;
}
}
public static Module Blessing(Med Med)
{
Module mod = new Module();
Cha = null;
bool d = false;
Lab l = new Lab(Med, DrawBuffer, "ラベル1", new Vector2D(ip.MaiB.Position.X, 0.026), 0.1, 1.0, new Font("MS Gothic", 1f), 0.085, "No blessing", Col.White, Col.Black, ip.MaiB.BrushColor, Col.Black, Input: false);
Buts bs = new Buts();
Action = delegate
{
bs["子"].Dra = false;
bs["親形質1"].Dra = false;
bs["親形質2"].Dra = false;
bs["祝福解除"].Dra = false;
l.Text = "No blessing";
ip.MaiShow = false;
if ( != null)
{
.Dispose();
= null;
}
};
ParT parT = new ParT();
parT.Font = new Font("MS Gothic", 0.1f);
parT.PositionBase = DrawBuffer.GetPosition(0.85, 0.02);
parT.Text = GameText.;
parT.FontSize = 0.15;
parT.SizeBase = 0.05;
parT.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT.OP.ScalingY(parT.OP.GetCenter(), 0.47);
parT.OP.Rotation(parT.OP.GetCenter(), -26.0);
parT.Closed = true;
parT.TextColor = Col.White;
parT.BrushColor = Color.FromArgb(160, Col.Black);
parT.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT.StringFormat.Alignment = StringAlignment.Center;
parT.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("ボタン0", new But1(parT, delegate
{
//Sounds.操作.Play();
Med.Mode = "メインフォーム";
}));
Action<Buts> rs1 = delegate(Buts bs_)
{
Color penColor = bs_["ボタン0"].Pars.Values.First().ToParT().PenColor;
foreach (But item in bs_.EnumBut.Skip(1))
{
item.Pars.Values.First().ToParT().PenColor = penColor;
}
};
ParT parT2 = new ParT();
parT2.Font = new Font("MS Gothic", 0.1f);
parT2.PositionBase = DrawBuffer.GetPosition(0.85, 0.1);
parT2.Text = GameText.;
parT2.FontSize = 0.15;
parT2.SizeBase = 0.05;
parT2.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT2.OP.ScalingY(parT2.OP.GetCenter(), 0.47);
parT2.OP.Rotation(parT2.OP.GetCenter(), -26.0);
parT2.Closed = true;
parT2.TextColor = Col.White;
parT2.BrushColor = Color.FromArgb(160, Col.Black);
parT2.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT2.StringFormat.Alignment = StringAlignment.Center;
parT2.StringFormat.LineAlignment = StringAlignment.Center;
parT2.PenColor = Color.Red;
bs.Add("子", new But1(parT2, delegate(But bu)
{
if (d)
{
//Sounds.操作.Play();
}
rs1(bs);
bu.Pars.Values.First().ToParT().PenColor = Color.Red;
if (Sta.GameData. != null)
{
l.Text = Sta.GameData..Name;
ip.TextIm = Sta.GameData..GetStatus();
if ( != null)
{
.Dispose();
}
= new Cha(Med, DrawBuffer, Sta.GameData..ChaD);
if (.Bod.Is双眼)
{
._見つめ();
}
if (.Bod.Is頬眼)
{
._見つめ();
}
if (.Bod.Is単眼)
{
._見つめ();
}
if (.Bod.Is額眼)
{
._見つめ();
}
if (Sta.GameData..Race == GameText.)
{
._卑();
._半1();
}
._閉笑();
.Set基本姿勢();
}
}));
ParT parT3 = new ParT();
parT3.Font = new Font("MS Gothic", 0.1f);
parT3.PositionBase = DrawBuffer.GetPosition(0.85, 0.18);
parT3.Text = GameText.1;
parT3.FontSize = 0.15;
parT3.SizeBase = 0.05;
parT3.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT3.OP.ScalingY(parT3.OP.GetCenter(), 0.47);
parT3.OP.Rotation(parT3.OP.GetCenter(), -26.0);
parT3.Closed = true;
parT3.TextColor = Col.White;
parT3.BrushColor = Color.FromArgb(160, Col.Black);
parT3.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT3.StringFormat.Alignment = StringAlignment.Center;
parT3.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("親形質1", new But1(parT3, delegate(But bu)
{
//Sounds.操作.Play();
rs1(bs);
bu.Pars.Values.First().ToParT().PenColor = Color.Red;
if (Sta.GameData. != null)
{
l.Text = GameText.1;
ip.TextIm = Sta.GameData..Mother.GetStatus();
if ( != null)
{
.Dispose();
}
= new Cha(Med, DrawBuffer, Sta.GameData..Mother.ChaD);
if (.Bod.Is双眼)
{
._見つめ();
}
if (.Bod.Is頬眼)
{
._見つめ();
}
if (.Bod.Is単眼)
{
._見つめ();
}
if (.Bod.Is額眼)
{
._見つめ();
}
if (Sta.GameData..Mother.Race == GameText.)
{
._卑();
._半1();
}
._閉笑();
.Set基本姿勢();
}
}));
ParT parT4 = new ParT();
parT4.Font = new Font("MS Gothic", 0.1f);
parT4.PositionBase = DrawBuffer.GetPosition(0.85, 0.26);
parT4.Text = GameText.2;
parT4.FontSize = 0.15;
parT4.SizeBase = 0.05;
parT4.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT4.OP.ScalingY(parT4.OP.GetCenter(), 0.47);
parT4.OP.Rotation(parT4.OP.GetCenter(), -26.0);
parT4.Closed = true;
parT4.TextColor = Col.White;
parT4.BrushColor = Color.FromArgb(160, Col.Black);
parT4.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT4.StringFormat.Alignment = StringAlignment.Center;
parT4.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("親形質2", new But1(parT4, delegate(But bu)
{
//Sounds.操作.Play();
rs1(bs);
bu.Pars.Values.First().ToParT().PenColor = Color.Red;
if (Sta.GameData. != null)
{
l.Text = GameText.2;
ip.TextIm = Sta.GameData..Father.GetStatus();
if ( != null)
{
.Dispose();
}
= new Cha(Med, DrawBuffer, Sta.GameData..Father.ChaD);
if (.Bod.Is双眼)
{
._見つめ();
}
if (.Bod.Is頬眼)
{
._見つめ();
}
if (.Bod.Is単眼)
{
._見つめ();
}
if (.Bod.Is額眼)
{
._見つめ();
}
if (Sta.GameData..Father.Race == GameText.)
{
._卑();
._半1();
}
._閉笑();
.Set基本姿勢();
}
}));
ParT parT5 = new ParT();
parT5.Font = new Font("MS Gothic", 0.1f);
parT5.PositionBase = DrawBuffer.GetPosition(0.85, 0.34);
parT5.Text = GameText.;
parT5.FontSize = 0.15;
parT5.SizeBase = 0.05;
parT5.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT5.OP.ScalingY(parT5.OP.GetCenter(), 0.47);
parT5.OP.Rotation(parT5.OP.GetCenter(), -26.0);
parT5.Closed = true;
parT5.TextColor = Col.White;
parT5.BrushColor = Color.FromArgb(160, Col.Black);
parT5.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT5.StringFormat.Alignment = StringAlignment.Center;
parT5.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("祝福解除", new But1(parT5, delegate
{
//TODO fix?
//Sounds.解除.Play();
Sta.GameData. = null;
();
ip.SubInfoIm = GameText.;
}));
bs.SetHitColor(Med);
Action subinfo = delegate
{
if (Sta.GameData. != null)
{
ip.SubInfoIm = Sta.GameData..Name + GameText.;
}
else
{
ip.SubInfoIm = GameText.;
}
};
mod.Down = delegate(MouseButtons mb, Vector2D cp, Color hc)
{
if (!processing)
{
if (SDShow)
{
SaveData.Down(ref hc);
if (mb == MouseButtons.Right && !processing)
{
//Sounds.操作.Play();
SDShow = false;
ip.Up(ref hc);
dbs.Move(ref hc);
}
}
else
{
switch (mb)
{
case MouseButtons.Left:
if (!ip.)
{
dbs.Down(ref hc);
bs.Down(ref hc);
}
ip.Down(ref hc);
break;
case MouseButtons.Right:
if (!ip.)
{
bs["ボタン0"].Action(bs["ボタン0"]);
}
else
{
ip.nb.Action(ip.nb);
}
break;
}
}
}
};
mod.Up = delegate(MouseButtons mb, Vector2D cp, Color hc)
{
if (!processing)
{
if (SDShow)
{
SaveData.Up(ref hc);
}
else if (mb == MouseButtons.Left)
{
if (!ip.)
{
dbs.Up(ref hc);
bs.Up(ref hc);
}
ip.Up(ref hc);
}
}
};
mod.Move = delegate(MouseButtons mb, Vector2D cp, Color hc)
{
if (!processing)
{
if (SDShow)
{
SaveData.Move(ref hc);
}
else
{
if (!ip.)
{
dbs.Move(ref hc);
bs.Move(ref hc);
Player説明(ref hc, subinfo);
}
ip.Move(ref hc);
}
}
};
mod.Leave = delegate
{
if (!processing)
{
if (SDShow)
{
SaveData.Leave();
}
else if (!ip.)
{
dbs.Leave();
bs.Leave();
}
}
};
mod.Wheel = delegate
{
};
mod.Setting = delegate
{
if (Med.Modeb != "PlayerInformation")
{
ip.UpdateSub2();
ip.MaiShow = true;
ip.Mai.Feed.Dra = false;
ip.Mai2Show = false;
ip.SubShow = true;
ip.Sub2Show = true;
if (Sta.GameData. != null)
{
bs["子"].Dra = true;
bs["親形質1"].Dra = true;
bs["親形質2"].Dra = true;
bs["祝福解除"].Dra = true;
ip.MaiShow = true;
}
else
{
();
}
subinfo();
d = false;
bs["子"].Action(bs["子"]);
d = true;
}
};
DrawBlessing = delegate(Are a, FPS FPS)
{
Med.GH.Clear(Col.Transparent);
if (a.GH != null)
{
a.GH.Clear(Col.Transparent);
}
a.Draw(BasementBackground);
if ( != null)
{
.Draw(a, FPS);
}
a.Draw(l.ParT);
bs.Draw(a);
dbs.Draw(a);
ip.Draw(a, FPS);
if (SDShow)
{
SaveData.Draw(a);
}
Med.Draw(a);
};
mod.Draw = delegate(FPS FPS)
{
SwitchMode(Med, DrawBuffer, FPS, DrawBlessing);
};
mod.Dispose = delegate
{
if ( != null)
{
.Dispose();
}
l.Dispose();
bs.Dispose();
};
return mod;
}
public static Module Office(Med Med)
{
Module mod = new Module();
Buts bs = new Buts();
ParT parT = new ParT();
parT.Font = new Font("MS Gothic", 0.1f);
parT.PositionBase = DrawBuffer.GetPosition(0.85, 0.02);
parT.Text = GameText.;
parT.FontSize = 0.15;
parT.SizeBase = 0.05;
parT.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT.OP.ScalingY(parT.OP.GetCenter(), 0.47);
parT.OP.Rotation(parT.OP.GetCenter(), -26.0);
parT.Closed = true;
parT.TextColor = Col.White;
parT.BrushColor = Color.FromArgb(160, Col.Black);
parT.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT.StringFormat.Alignment = StringAlignment.Center;
parT.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("ボタン0", new But1(parT, delegate
{
//Sounds.操作.Play();
if (!(Med))
{
Med.SwitchMode("メインフォーム", DrawBuffer, );
}
}));
ParT parT2 = new ParT();
parT2.Font = new Font("MS Gothic", 0.1f);
parT2.PositionBase = DrawBuffer.GetPosition(0.85, 0.1);
parT2.Text = GameText.;
parT2.FontSize = 0.15;
parT2.SizeBase = 0.05;
parT2.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT2.OP.ScalingY(parT2.OP.GetCenter(), 0.47);
parT2.OP.Rotation(parT2.OP.GetCenter(), -26.0);
parT2.Closed = true;
parT2.TextColor = Col.White;
parT2.BrushColor = Color.FromArgb(160, Col.Black);
parT2.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT2.StringFormat.Alignment = StringAlignment.Center;
parT2.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("ボタン1", new But1(parT2, delegate
{
//Sounds.操作.Play();
Med.Mode = "Debt";
}));
ParT parT3 = new ParT();
parT3.Font = new Font("MS Gothic", 0.1f);
parT3.PositionBase = DrawBuffer.GetPosition(0.85, 0.18);
parT3.Text = GameText.;
parT3.FontSize = 0.15;
parT3.SizeBase = 0.05;
parT3.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT3.OP.ScalingY(parT3.OP.GetCenter(), 0.47);
parT3.OP.Rotation(parT3.OP.GetCenter(), -26.0);
parT3.Closed = true;
parT3.TextColor = Col.White;
parT3.BrushColor = Color.FromArgb(160, Col.Black);
parT3.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT3.StringFormat.Alignment = StringAlignment.Center;
parT3.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("ボタン2", new But1(parT3, delegate
{
//Sounds.操作.Play();
Med.Mode = "SlaveShop";
}));
ParT parT4 = new ParT();
parT4.Font = new Font("MS Gothic", 0.1f);
parT4.PositionBase = DrawBuffer.GetPosition(0.85, 0.58);
parT4.Text = GameText.;
parT4.FontSize = 0.15;
parT4.SizeBase = 0.05;
parT4.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT4.OP.ScalingY(parT4.OP.GetCenter(), 0.47);
parT4.OP.Rotation(parT4.OP.GetCenter(), -26.0);
parT4.Closed = true;
parT4.TextColor = Col.White;
parT4.BrushColor = Color.FromArgb(160, Col.Black);
parT4.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT4.StringFormat.Alignment = StringAlignment.Center;
parT4.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("ボタン3", new But1(parT4, delegate
{
//Sounds.操作.Play();
Med.SwitchMode("ViolaBlessing", DrawBuffer, );
}));
bs.SetHitColor(Med);
mod.Down = delegate(MouseButtons mb, Vector2D cp, Color hc)
{
if (!processing)
{
if (SDShow)
{
SaveData.Down(ref hc);
if (mb == MouseButtons.Right && !processing)
{
//Sounds.操作.Play();
SDShow = false;
ip.Up(ref hc);
dbs.Move(ref hc);
}
}
else
{
switch (mb)
{
case MouseButtons.Left:
if (!ip.)
{
dbs.Down(ref hc);
bs.Down(ref hc);
}
ip.Down(ref hc);
break;
case MouseButtons.Right:
if (!ip.)
{
bs["ボタン0"].Action(bs["ボタン0"]);
}
else
{
ip.nb.Action(ip.nb);
}
break;
}
}
}
};
mod.Up = delegate(MouseButtons mb, Vector2D cp, Color hc)
{
if (!processing)
{
if (SDShow)
{
SaveData.Up(ref hc);
}
else if (mb == MouseButtons.Left)
{
if (!ip.)
{
dbs.Up(ref hc);
bs.Up(ref hc);
}
ip.Up(ref hc);
}
}
};
mod.Move = delegate(MouseButtons mb, Vector2D cp, Color hc)
{
if (!processing)
{
if (SDShow)
{
SaveData.Move(ref hc);
}
else
{
if (!ip.)
{
dbs.Move(ref hc);
bs.Move(ref hc);
Player説明(ref hc, delegate
{
si.Set(bre: false);
});
}
ip.Move(ref hc);
}
}
};
mod.Leave = delegate
{
if (!processing)
{
if (SDShow)
{
SaveData.Leave();
}
else if (!ip.)
{
dbs.Leave();
bs.Leave();
}
}
};
mod.Wheel = delegate
{
};
mod.Setting = delegate
{
if (Med.Modeb != "PlayerInformation")
{
ip.UpdateSub2();
ip.MaiShow = false;
ip.Mai.Feed.Dra = false;
ip.Mai2Show = false;
ip.SubShow = true;
ip.Sub2Show = true;
.Tex.Feed.Dra = false;
bs["ボタン1"].Dra = !Sta.GameData.;
bs["ボタン3"].Dra = Sta.GameData.RepaymentStage == 3;
Viola._見つめ();
Viola._基本0();
Viola.Set基本姿勢();
if (Sta.GameData.)
{
Viola._不敵1();
.Set();
}
else
{
.Set();
}
si.Set(bre: false);
if (Sta.GameData.RepaymentStage < 3)
{
if (Sta.GameData.RepaymentStage == 0 && Sta.GameData. < * 2)
{
Sta.GameData.RepaymentStage = 1;
Sta.GameData.[2] = true;
Sta.GameData.[3] = true;
Sta.GameData. = true;
Med.SwitchMode("RepaymentEvent1", DrawBuffer, );
SetDemandMaximum();
}
else if (Sta.GameData.RepaymentStage == 1 && Sta.GameData. < )
{
Sta.GameData.RepaymentStage = 2;
Sta.GameData.[4] = true;
Sta.GameData.[5] = true;
Sta.GameData. = true;
Sta.GameData. = true;
Sta.GameData. = true;
Sta.GameData. = true;
Med.SwitchMode("RepaymentEvent2", DrawBuffer, );
SetDemandMaximum();
}
else if (Sta.GameData.RepaymentStage == 2 && Sta.GameData. == 0L)
{
Sta.GameData.RepaymentStage = 3;
Sta.GameData.[6] = true;
Sta.GameData.[7] = true;
Sta.GameData.[8] = true;
Sta.GameData. = true;
Med.SwitchMode("RepaymentEvent3", DrawBuffer, );
SetDemandMaximum();
}
}
}
};
DrawOffice = delegate(Are a, FPS FPS)
{
if (a.GH != null)
{
a.GH.Clear(Col.Transparent);
}
a.Draw(OfficeBackground);
Viola.Draw(a, FPS);
.Draw(a, FPS);
bs.Draw(a);
dbs.Draw(a);
ip.Draw(a, FPS);
if (SDShow)
{
SaveData.Draw(a);
}
Med.Draw(a);
};
mod.Draw = delegate(FPS FPS)
{
SwitchMode(Med, DrawBuffer, FPS, DrawOffice);
};
mod.Dispose = delegate
{
bs.Dispose();
};
return mod;
}
public static Module Debt(Med Med)
{
Module mod = new Module();
Vector2D position = DrawBuffer.GetPosition(0.15, 0.37);
Buts bs = new Buts();
ParT parT = new ParT();
parT.Font = new Font("MS Gothic", 0.1f);
parT.PositionBase = DrawBuffer.GetPosition(0.85, 0.02);
parT.Text = GameText.;
parT.FontSize = 0.15;
parT.SizeBase = 0.05;
parT.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT.OP.ScalingY(parT.OP.GetCenter(), 0.47);
parT.OP.Rotation(parT.OP.GetCenter(), -26.0);
parT.Closed = true;
parT.TextColor = Col.White;
parT.BrushColor = Color.FromArgb(160, Col.Black);
parT.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT.StringFormat.Alignment = StringAlignment.Center;
parT.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("ボタン0", new But1(parT, delegate
{
//Sounds.操作.Play();
Med.Mode = "Office";
}));
ParT parT2 = new ParT();
parT2.Font = new Font("MS Gothic", 0.1f);
parT2.PositionBase = position + DrawBuffer.GetPosition(0.0, 0.0);
parT2.Text = "c";
parT2.FontSize = 0.15;
parT2.SizeBase = 0.07;
parT2.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT2.OP.ScalingXY(parT2.OP.GetCenter(), 0.3, 0.3);
parT2.Closed = true;
parT2.TextColor = Col.White;
parT2.BrushColor = Color.FromArgb(160, Col.Black);
parT2.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT2.StringFormat.Alignment = StringAlignment.Center;
parT2.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("nc", new But1(parT2, delegate
{
//Sounds.操作.Play();
ip.TextIm = "0";
}));
ParT parT3 = new ParT();
parT3.Font = new Font("MS Gothic", 0.1f);
parT3.PositionBase = position + DrawBuffer.GetPosition(0.06, 0.0);
parT3.Text = "m";
parT3.FontSize = 0.15;
parT3.SizeBase = 0.07;
parT3.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT3.OP.ScalingXY(parT3.OP.GetCenter(), 0.3, 0.3);
parT3.Closed = true;
parT3.TextColor = Col.White;
parT3.BrushColor = Color.FromArgb(160, Col.Black);
parT3.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT3.StringFormat.Alignment = StringAlignment.Center;
parT3.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("nm", new But1(parT3, delegate
{
//Sounds.操作.Play();
ip.TextIm = 9999999999999uL.ToString("#,0");
}));
Action<string> SetNum = delegate(string num)
{
if (ulong.Parse(ip.TextIm, NumberStyles.AllowThousands).ToString().Length < 9999999999999uL.ToString().Length)
{
ip.TextIm += num;
ip.TextIm = ulong.Parse(ip.TextIm, NumberStyles.AllowThousands).ToString("#,0");
}
};
ParT parT4 = new ParT();
parT4.Font = new Font("MS Gothic", 0.1f);
parT4.PositionBase = position + DrawBuffer.GetPosition(0.0, 0.07);
parT4.Text = "7";
parT4.FontSize = 0.15;
parT4.SizeBase = 0.07;
parT4.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT4.OP.ScalingXY(parT4.OP.GetCenter(), 0.3, 0.3);
parT4.Closed = true;
parT4.TextColor = Col.White;
parT4.BrushColor = Color.FromArgb(160, Col.Black);
parT4.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT4.StringFormat.Alignment = StringAlignment.Center;
parT4.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("n7", new But1(parT4, delegate
{
//Sounds.操作.Play();
SetNum("7");
}));
ParT parT5 = new ParT();
parT5.Font = new Font("MS Gothic", 0.1f);
parT5.PositionBase = position + DrawBuffer.GetPosition(0.06, 0.07);
parT5.Text = "8";
parT5.FontSize = 0.15;
parT5.SizeBase = 0.07;
parT5.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT5.OP.ScalingXY(parT5.OP.GetCenter(), 0.3, 0.3);
parT5.Closed = true;
parT5.TextColor = Col.White;
parT5.BrushColor = Color.FromArgb(160, Col.Black);
parT5.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT5.StringFormat.Alignment = StringAlignment.Center;
parT5.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("n8", new But1(parT5, delegate
{
//Sounds.操作.Play();
SetNum("8");
}));
ParT parT6 = new ParT();
parT6.Font = new Font("MS Gothic", 0.1f);
parT6.PositionBase = position + DrawBuffer.GetPosition(0.12, 0.07);
parT6.Text = "9";
parT6.FontSize = 0.15;
parT6.SizeBase = 0.07;
parT6.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT6.OP.ScalingXY(parT6.OP.GetCenter(), 0.3, 0.3);
parT6.Closed = true;
parT6.TextColor = Col.White;
parT6.BrushColor = Color.FromArgb(160, Col.Black);
parT6.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT6.StringFormat.Alignment = StringAlignment.Center;
parT6.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("n9", new But1(parT6, delegate
{
//Sounds.操作.Play();
SetNum("9");
}));
ParT parT7 = new ParT();
parT7.Font = new Font("MS Gothic", 0.1f);
parT7.PositionBase = position + DrawBuffer.GetPosition(0.0, 0.14);
parT7.Text = "4";
parT7.FontSize = 0.15;
parT7.SizeBase = 0.07;
parT7.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT7.OP.ScalingXY(parT7.OP.GetCenter(), 0.3, 0.3);
parT7.Closed = true;
parT7.TextColor = Col.White;
parT7.BrushColor = Color.FromArgb(160, Col.Black);
parT7.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT7.StringFormat.Alignment = StringAlignment.Center;
parT7.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("n4", new But1(parT7, delegate
{
//Sounds.操作.Play();
SetNum("4");
}));
ParT parT8 = new ParT();
parT8.Font = new Font("MS Gothic", 0.1f);
parT8.PositionBase = position + DrawBuffer.GetPosition(0.06, 0.14);
parT8.Text = "5";
parT8.FontSize = 0.15;
parT8.SizeBase = 0.07;
parT8.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT8.OP.ScalingXY(parT8.OP.GetCenter(), 0.3, 0.3);
parT8.Closed = true;
parT8.TextColor = Col.White;
parT8.BrushColor = Color.FromArgb(160, Col.Black);
parT8.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT8.StringFormat.Alignment = StringAlignment.Center;
parT8.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("n5", new But1(parT8, delegate
{
//Sounds.操作.Play();
SetNum("5");
}));
ParT parT9 = new ParT();
parT9.Font = new Font("MS Gothic", 0.1f);
parT9.PositionBase = position + DrawBuffer.GetPosition(0.12, 0.14);
parT9.Text = "6";
parT9.FontSize = 0.15;
parT9.SizeBase = 0.07;
parT9.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT9.OP.ScalingXY(parT9.OP.GetCenter(), 0.3, 0.3);
parT9.Closed = true;
parT9.TextColor = Col.White;
parT9.BrushColor = Color.FromArgb(160, Col.Black);
parT9.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT9.StringFormat.Alignment = StringAlignment.Center;
parT9.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("n6", new But1(parT9, delegate
{
//Sounds.操作.Play();
SetNum("6");
}));
ParT parT10 = new ParT();
parT10.Font = new Font("MS Gothic", 0.1f);
parT10.PositionBase = position + DrawBuffer.GetPosition(0.0, 0.21);
parT10.Text = "1";
parT10.FontSize = 0.15;
parT10.SizeBase = 0.07;
parT10.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT10.OP.ScalingXY(parT10.OP.GetCenter(), 0.3, 0.3);
parT10.Closed = true;
parT10.TextColor = Col.White;
parT10.BrushColor = Color.FromArgb(160, Col.Black);
parT10.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT10.StringFormat.Alignment = StringAlignment.Center;
parT10.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("n1", new But1(parT10, delegate
{
//Sounds.操作.Play();
SetNum("1");
}));
ParT parT11 = new ParT();
parT11.Font = new Font("MS Gothic", 0.1f);
parT11.PositionBase = position + DrawBuffer.GetPosition(0.06, 0.21);
parT11.Text = "2";
parT11.FontSize = 0.15;
parT11.SizeBase = 0.07;
parT11.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT11.OP.ScalingXY(parT11.OP.GetCenter(), 0.3, 0.3);
parT11.Closed = true;
parT11.TextColor = Col.White;
parT11.BrushColor = Color.FromArgb(160, Col.Black);
parT11.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT11.StringFormat.Alignment = StringAlignment.Center;
parT11.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("n2", new But1(parT11, delegate
{
//Sounds.操作.Play();
SetNum("2");
}));
ParT parT12 = new ParT();
parT12.Font = new Font("MS Gothic", 0.1f);
parT12.PositionBase = position + DrawBuffer.GetPosition(0.12, 0.21);
parT12.Text = "3";
parT12.FontSize = 0.15;
parT12.SizeBase = 0.07;
parT12.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT12.OP.ScalingXY(parT12.OP.GetCenter(), 0.3, 0.3);
parT12.Closed = true;
parT12.TextColor = Col.White;
parT12.BrushColor = Color.FromArgb(160, Col.Black);
parT12.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT12.StringFormat.Alignment = StringAlignment.Center;
parT12.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("n3", new But1(parT12, delegate
{
//Sounds.操作.Play();
SetNum("3");
}));
ParT parT13 = new ParT();
parT13.Font = new Font("MS Gothic", 0.1f);
parT13.PositionBase = position + DrawBuffer.GetPosition(0.0, 0.28);
parT13.Text = "0";
parT13.FontSize = 0.15;
parT13.SizeBase = 0.07;
parT13.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT13.OP.ScalingXY(parT13.OP.GetCenter(), 0.3, 0.3);
parT13.Closed = true;
parT13.TextColor = Col.White;
parT13.BrushColor = Color.FromArgb(160, Col.Black);
parT13.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT13.StringFormat.Alignment = StringAlignment.Center;
parT13.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("n0", new But1(parT13, delegate
{
//Sounds.操作.Play();
SetNum("0");
}));
ParT parT14 = new ParT();
parT14.Font = new Font("MS Gothic", 0.1f);
parT14.PositionBase = position + DrawBuffer.GetPosition(0.12, 0.28);
parT14.Text = GameText.;
parT14.FontSize = 0.15;
parT14.SizeBase = 0.07;
parT14.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT14.OP.ScalingXY(parT14.OP.GetCenter(), 0.3, 0.3);
parT14.Closed = true;
parT14.TextColor = Col.White;
parT14.BrushColor = Color.FromArgb(160, Col.Black);
parT14.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT14.StringFormat.Alignment = StringAlignment.Center;
parT14.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("nb", new But1(parT14, delegate
{
if (Sta.GameData. != 0)
{
ulong num3 = ulong.Parse(ip.Text, NumberStyles.AllowThousands);
if (num3 != 0)
{
if (num3 > Sta.GameData.)
{
num3 = Sta.GameData.;
ip.SubInfo = GameText.;
}
Sta.GameData. += num3;
Sta.GameData. = Sta.GameData..(num3);
Sta.GameData. = Sta.GameData..(num3);
bs["nr"].Dra = Sta.GameData. != 0;
ip.TextIm = "0";
//Sounds.精算.Play();
ip.UpdateSub2();
.Set();
}
else
{
//Sounds.操作.Play();
}
}
else
{
//Sounds.操作.Play();
ip.SubInfo = GameText.;
}
}));
ParT parT15 = new ParT();
parT15.Font = new Font("MS Gothic", 0.1f);
parT15.PositionBase = position + DrawBuffer.GetPosition(0.06, 0.28);
parT15.Text = GameText.;
parT15.FontSize = 0.15;
parT15.SizeBase = 0.07;
parT15.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT15.OP.ScalingXY(parT15.OP.GetCenter(), 0.3, 0.3);
parT15.Closed = true;
parT15.TextColor = Col.White;
parT15.BrushColor = Color.FromArgb(160, Col.Black);
parT15.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT15.StringFormat.Alignment = StringAlignment.Center;
parT15.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("nr", new But1(parT15, delegate
{
if (Sta.GameData. != 0)
{
ulong num2 = ulong.Parse(ip.Text, NumberStyles.AllowThousands);
if (num2 != 0)
{
if (num2 > Sta.GameData.)
{
num2 = Sta.GameData.;
ip.SubInfo = GameText.;
}
if (num2 > Sta.GameData.)
{
Sta.GameData. = Sta.GameData..(Sta.GameData.);
Sta.GameData. = 0uL;
ip.SubInfo = GameText.;
}
else
{
Sta.GameData. = Sta.GameData..(num2);
Sta.GameData. = Sta.GameData..(num2);
}
bs["nr"].Dra = Sta.GameData. != 0;
ip.TextIm = "0";
//Sounds.精算.Play();
ip.UpdateSub2();
}
else
{
//Sounds.操作.Play();
}
}
else
{
//Sounds.操作.Play();
ip.SubInfo = GameText.;
}
}));
bs.SetHitColor(Med);
mod.Down = delegate(MouseButtons mb, Vector2D cp, Color hc)
{
if (!processing)
{
if (SDShow)
{
SaveData.Down(ref hc);
if (mb == MouseButtons.Right && !processing)
{
//Sounds.操作.Play();
SDShow = false;
ip.Up(ref hc);
dbs.Move(ref hc);
}
}
else
{
switch (mb)
{
case MouseButtons.Left:
if (!ip.)
{
.Down(.GetHitColor);
dbs.Down(ref hc);
bs.Down(ref hc);
}
ip.Down(ref hc);
break;
case MouseButtons.Right:
if (!ip.)
{
bs["ボタン0"].Action(bs["ボタン0"]);
}
else
{
ip.nb.Action(ip.nb);
}
break;
}
}
}
};
mod.Up = delegate(MouseButtons mb, Vector2D cp, Color hc)
{
if (!processing)
{
if (SDShow)
{
SaveData.Up(ref hc);
}
else if (mb == MouseButtons.Left)
{
if (!ip.)
{
.Up(.GetHitColor);
dbs.Up(ref hc);
bs.Up(ref hc);
}
ip.Up(ref hc);
}
}
};
mod.Move = delegate(MouseButtons mb, Vector2D cp, Color hc)
{
if (!processing)
{
if (SDShow)
{
SaveData.Move(ref hc);
}
else
{
if (!ip.)
{
dbs.Move(ref hc);
bs.Move(ref hc);
Player説明(ref hc, delegate
{
si.Set(bre: false);
});
}
ip.Move(ref hc);
}
}
};
mod.Leave = delegate
{
if (SDShow)
{
SaveData.Leave();
}
else if (!ip.)
{
dbs.Leave();
bs.Leave();
}
};
mod.Wheel = delegate
{
};
mod.Setting = delegate
{
if (Med.Modeb != "PlayerInformation")
{
ip.TextIm = "0";
ip.UpdateSub2();
ip.MaiShow = true;
ip.Mai.Feed.Dra = false;
ip.Mai2Show = false;
ip.SubShow = true;
ip.Sub2Show = true;
Viola._見つめ();
Viola._半1();
Viola._卑();
Viola._薄笑();
Viola._人_腕下げ(0, : false, : false);
Viola._S字(0);
Viola._S字(1);
Viola.SetSymmetry();
.Set();
si.Set(bre: false);
bs["nr"].Dra = Sta.GameData. != 0;
bs["nr"].Dra = Sta.GameData. != 0;
}
};
DrawDebt = delegate(Are a, FPS FPS)
{
Med.GH.Clear(Col.Transparent);
if (a.GH != null)
{
a.GH.Clear(Col.Transparent);
}
a.Draw(OfficeBackground);
Viola.Draw(a, FPS);
.Draw(a, FPS);
bs.Draw(a);
dbs.Draw(a);
ip.Draw(a, FPS);
if (SDShow)
{
SaveData.Draw(a);
}
Med.Draw(a);
};
mod.Draw = delegate(FPS FPS)
{
SwitchMode(Med, DrawBuffer, FPS, DrawDebt);
};
mod.Dispose = delegate
{
bs.Dispose();
};
return mod;
}
public static Module SlaveShop(Med Med)
{
Module mod = new Module();
Cha PurchasTarget = null;
bool d = false;
Action Reload = null;
Unit u = null;
Generator g = null;
Buts bs = new Buts();
ParT parT = new ParT();
parT.Font = new Font("MS Gothic", 0.1f);
parT.PositionBase = DrawBuffer.GetPosition(0.85, 0.02);
parT.Text = GameText.;
parT.FontSize = 0.15;
parT.SizeBase = 0.05;
parT.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT.OP.ScalingY(parT.OP.GetCenter(), 0.47);
parT.OP.Rotation(parT.OP.GetCenter(), -26.0);
parT.Closed = true;
parT.TextColor = Col.White;
parT.BrushColor = Color.FromArgb(160, Col.Black);
parT.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT.StringFormat.Alignment = StringAlignment.Center;
parT.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("ボタン0", new But1(parT, delegate
{
//Sounds.操作.Play();
if (Sta.GameData.)
{
Med.SwitchMode("初事務所", DrawBuffer, );
}
else
{
Med.Mode = "Office";
}
}));
ParT parT2 = new ParT();
parT2.Font = new Font("MS Gothic", 0.1f);
parT2.PositionBase = DrawBuffer.GetPosition(0.85, 0.1);
parT2.Text = GameText.;
parT2.FontSize = 0.15;
parT2.SizeBase = 0.05;
parT2.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT2.OP.ScalingY(parT2.OP.GetCenter(), 0.47);
parT2.OP.Rotation(parT2.OP.GetCenter(), -26.0);
parT2.Closed = true;
parT2.TextColor = Col.White;
parT2.BrushColor = Color.FromArgb(160, Col.Black);
parT2.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT2.StringFormat.Alignment = StringAlignment.Center;
parT2.StringFormat.LineAlignment = StringAlignment.Center;
parT2.PenColor = Color.Red;
bs.Add("ボタン1", new But1(parT2, delegate
{
//Sounds.操作.Play();
Med.Mode = "SlaveShop";
}));
ParT parT3 = new ParT();
parT3.Font = new Font("MS Gothic", 0.1f);
parT3.PositionBase = DrawBuffer.GetPosition(0.85, 0.18);
parT3.Text = GameText.;
parT3.FontSize = 0.15;
parT3.SizeBase = 0.05;
parT3.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT3.OP.ScalingY(parT3.OP.GetCenter(), 0.47);
parT3.OP.Rotation(parT3.OP.GetCenter(), -26.0);
parT3.Closed = true;
parT3.TextColor = Col.White;
parT3.BrushColor = Color.FromArgb(160, Col.Black);
parT3.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT3.StringFormat.Alignment = StringAlignment.Center;
parT3.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("ボタン2", new But1(parT3, delegate
{
//Sounds.操作.Play();
Med.Mode = "ToolShop";
}));
Color bs初期縁色 = Col.Black;
Action bs縁色初期化 = delegate
{
foreach (But item in bs.EnumBut.Skip(3).Take(10))
{
item.Pars.Values.First().ToParT().PenColor = bs初期縁色;
}
};
double num = 0.7;
double num2 = -0.03;
ParT parT4 = new ParT();
parT4.Font = new Font("MS Gothic", 0.1f);
parT4.PositionBase = DrawBuffer.GetPosition(0.01, num2 + 0.02 * num);
parT4.Text = GameText.;
parT4.FontSize = 0.15;
parT4.SizeBase = 0.05;
parT4.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT4.OP.ScalingY(parT4.OP.GetCenter(), 0.5 * num);
parT4.Closed = true;
parT4.TextColor = Col.White;
parT4.BrushColor = Color.FromArgb(160, Col.Black);
parT4.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT4.StringFormat.Alignment = StringAlignment.Center;
parT4.StringFormat.LineAlignment = StringAlignment.Center;
parT4.PenColor = Color.Red;
bs.Add("対象0", new But1(parT4, delegate(But bu)
{
if (d)
{
//Sounds.操作.Play();
}
d = true;
bs縁色初期化();
bu.Pars.Values.First().ToParT().PenColor = Color.Red;
Reload();
}));
ParT parT5 = new ParT();
parT5.Font = new Font("MS Gothic", 0.1f);
parT5.PositionBase = DrawBuffer.GetPosition(0.01, num2 + 0.1 * num);
parT5.Text = GameText.;
parT5.FontSize = 0.15;
parT5.SizeBase = 0.05;
parT5.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT5.OP.ScalingY(parT5.OP.GetCenter(), 0.5 * num);
parT5.Closed = true;
parT5.TextColor = Col.White;
parT5.BrushColor = Color.FromArgb(160, Col.Black);
parT5.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT5.StringFormat.Alignment = StringAlignment.Center;
parT5.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("対象1", new But1(parT5, delegate(But bu)
{
//Sounds.操作.Play();
bs縁色初期化();
bu.Pars.Values.First().ToParT().PenColor = Color.Red;
Reload();
}));
ParT parT6 = new ParT();
parT6.Font = new Font("MS Gothic", 0.1f);
parT6.PositionBase = DrawBuffer.GetPosition(0.01, num2 + 0.18 * num);
parT6.Text = GameText.;
parT6.FontSize = 0.15;
parT6.SizeBase = 0.05;
parT6.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT6.OP.ScalingY(parT6.OP.GetCenter(), 0.5 * num);
parT6.Closed = true;
parT6.TextColor = Col.White;
parT6.BrushColor = Color.FromArgb(160, Col.Black);
parT6.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT6.StringFormat.Alignment = StringAlignment.Center;
parT6.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("対象2", new But1(parT6, delegate(But bu)
{
//Sounds.操作.Play();
bs縁色初期化();
bu.Pars.Values.First().ToParT().PenColor = Color.Red;
Reload();
}));
ParT parT7 = new ParT();
parT7.Font = new Font("MS Gothic", 0.1f);
parT7.PositionBase = DrawBuffer.GetPosition(0.01, num2 + 0.26 * num);
parT7.Text = GameText.;
parT7.FontSize = 0.15;
parT7.SizeBase = 0.05;
parT7.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT7.OP.ScalingY(parT7.OP.GetCenter(), 0.5 * num);
parT7.Closed = true;
parT7.TextColor = Col.White;
parT7.BrushColor = Color.FromArgb(160, Col.Black);
parT7.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT7.StringFormat.Alignment = StringAlignment.Center;
parT7.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("対象3", new But1(parT7, delegate(But bu)
{
//Sounds.操作.Play();
bs縁色初期化();
bu.Pars.Values.First().ToParT().PenColor = Color.Red;
Reload();
}));
ParT parT8 = new ParT();
parT8.Font = new Font("MS Gothic", 0.1f);
parT8.PositionBase = DrawBuffer.GetPosition(0.01, num2 + 0.34 * num);
parT8.Text = GameText.;
parT8.FontSize = 0.15;
parT8.SizeBase = 0.05;
parT8.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT8.OP.ScalingY(parT8.OP.GetCenter(), 0.5 * num);
parT8.Closed = true;
parT8.TextColor = Col.White;
parT8.BrushColor = Color.FromArgb(160, Col.Black);
parT8.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT8.StringFormat.Alignment = StringAlignment.Center;
parT8.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("対象4", new But1(parT8, delegate(But bu)
{
//Sounds.操作.Play();
bs縁色初期化();
bu.Pars.Values.First().ToParT().PenColor = Color.Red;
Reload();
}));
ParT parT9 = new ParT();
parT9.Font = new Font("MS Gothic", 0.1f);
parT9.PositionBase = DrawBuffer.GetPosition(0.01, num2 + 0.42 * num);
parT9.Text = GameText.;
parT9.FontSize = 0.15;
parT9.SizeBase = 0.05;
parT9.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT9.OP.ScalingY(parT9.OP.GetCenter(), 0.5 * num);
parT9.Closed = true;
parT9.TextColor = Col.White;
parT9.BrushColor = Color.FromArgb(160, Col.Black);
parT9.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT9.StringFormat.Alignment = StringAlignment.Center;
parT9.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("対象5", new But1(parT9, delegate(But bu)
{
//Sounds.操作.Play();
bs縁色初期化();
bu.Pars.Values.First().ToParT().PenColor = Color.Red;
Reload();
}));
ParT parT10 = new ParT();
parT10.Font = new Font("MS Gothic", 0.1f);
parT10.PositionBase = DrawBuffer.GetPosition(0.01, num2 + 0.5 * num);
parT10.Text = GameText.;
parT10.FontSize = 0.15;
parT10.SizeBase = 0.05;
parT10.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT10.OP.ScalingY(parT10.OP.GetCenter(), 0.5 * num);
parT10.Closed = true;
parT10.TextColor = Col.White;
parT10.BrushColor = Color.FromArgb(160, Col.Black);
parT10.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT10.StringFormat.Alignment = StringAlignment.Center;
parT10.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("対象6", new But1(parT10, delegate(But bu)
{
//Sounds.操作.Play();
bs縁色初期化();
bu.Pars.Values.First().ToParT().PenColor = Color.Red;
Reload();
}));
ParT parT11 = new ParT();
parT11.Font = new Font("MS Gothic", 0.1f);
parT11.PositionBase = DrawBuffer.GetPosition(0.01, num2 + 0.58 * num);
parT11.Text = GameText.;
parT11.FontSize = 0.15;
parT11.SizeBase = 0.05;
parT11.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT11.OP.ScalingY(parT11.OP.GetCenter(), 0.5 * num);
parT11.Closed = true;
parT11.TextColor = Col.White;
parT11.BrushColor = Color.FromArgb(160, Col.Black);
parT11.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT11.StringFormat.Alignment = StringAlignment.Center;
parT11.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("対象7", new But1(parT11, delegate(But bu)
{
//Sounds.操作.Play();
bs縁色初期化();
bu.Pars.Values.First().ToParT().PenColor = Color.Red;
Reload();
}));
ParT parT12 = new ParT();
parT12.Font = new Font("MS Gothic", 0.1f);
parT12.PositionBase = DrawBuffer.GetPosition(0.01, num2 + 0.66 * num);
parT12.Text = GameText.;
parT12.FontSize = 0.15;
parT12.SizeBase = 0.05;
parT12.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT12.OP.ScalingY(parT12.OP.GetCenter(), 0.5 * num);
parT12.Closed = true;
parT12.TextColor = Col.White;
parT12.BrushColor = Color.FromArgb(160, Col.Black);
parT12.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT12.StringFormat.Alignment = StringAlignment.Center;
parT12.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("対象8", new But1(parT12, delegate(But bu)
{
//Sounds.操作.Play();
bs縁色初期化();
bu.Pars.Values.First().ToParT().PenColor = Color.Red;
Reload();
}));
ParT parT13 = new ParT();
parT13.Font = new Font("MS Gothic", 0.1f);
parT13.PositionBase = DrawBuffer.GetPosition(0.01, num2 + 0.74 * num);
parT13.Text = GameText.;
parT13.FontSize = 0.15;
parT13.SizeBase = 0.05;
parT13.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT13.OP.ScalingY(parT13.OP.GetCenter(), 0.5 * num);
parT13.Closed = true;
parT13.TextColor = Col.White;
parT13.BrushColor = Color.FromArgb(160, Col.Black);
parT13.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT13.StringFormat.Alignment = StringAlignment.Center;
parT13.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("対象9", new But1(parT13, delegate(But bu)
{
//Sounds.操作.Play();
bs縁色初期化();
bu.Pars.Values.First().ToParT().PenColor = Color.Red;
Reload();
}));
Action SetGen = delegate
{
if (bs["対象0"].Pars.Values.First().ToParT().PenColor == Color.Red)
{
if ((Sta.GameData..Count != 0 && Sta.GameData.[0]) || (Sta.GameData..Count != 0 && Sta.GameData.[1]) || (Sta.GameData..Count != 0 && Sta.GameData.[2]) || (Sta.GameData..Count != 0 && Sta.GameData.[3]) || (Sta.GameData..Count != 0 && Sta.GameData.[4]) || (Sta.GameData..Count != 0 && Sta.GameData.[5]) || (Sta.GameData..Count != 0 && Sta.GameData.[6]) || (Sta.GameData..Count != 0 && Sta.GameData.[7]) || (Sta.GameData..Count != 0 && Sta.GameData.[8]))
{
do
{
switch (RNG.XS.Next(Sta.GameData..Count((bool e) => e)))
{
case 0:
g = Sta.GameData.;
break;
case 1:
g = Sta.GameData.;
break;
case 2:
g = Sta.GameData.;
break;
case 3:
g = Sta.GameData.;
break;
case 4:
g = Sta.GameData.;
break;
case 5:
g = Sta.GameData.;
break;
case 6:
g = Sta.GameData.;
break;
case 7:
g = Sta.GameData.;
break;
case 8:
g = Sta.GameData.;
break;
}
}
while (g.Count == 0);
}
else
{
switch (RNG.XS.Next(Sta.GameData..Count((bool e) => e)))
{
case 0:
g = Sta.GameData.;
break;
case 1:
g = Sta.GameData.;
break;
case 2:
g = Sta.GameData.;
break;
case 3:
g = Sta.GameData.;
break;
case 4:
g = Sta.GameData.;
break;
case 5:
g = Sta.GameData.;
break;
case 6:
g = Sta.GameData.;
break;
case 7:
g = Sta.GameData.;
break;
case 8:
g = Sta.GameData.;
break;
}
}
}
else if (bs["対象1"].Pars.Values.First().ToParT().PenColor == Color.Red)
{
g = Sta.GameData.;
}
else if (bs["対象2"].Pars.Values.First().ToParT().PenColor == Color.Red)
{
g = Sta.GameData.;
}
else if (bs["対象3"].Pars.Values.First().ToParT().PenColor == Color.Red)
{
g = Sta.GameData.;
}
else if (bs["対象4"].Pars.Values.First().ToParT().PenColor == Color.Red)
{
g = Sta.GameData.;
}
else if (bs["対象5"].Pars.Values.First().ToParT().PenColor == Color.Red)
{
g = Sta.GameData.;
}
else if (bs["対象6"].Pars.Values.First().ToParT().PenColor == Color.Red)
{
g = Sta.GameData.;
}
else if (bs["対象7"].Pars.Values.First().ToParT().PenColor == Color.Red)
{
g = Sta.GameData.;
}
else if (bs["対象8"].Pars.Values.First().ToParT().PenColor == Color.Red)
{
g = Sta.GameData.;
}
else if (bs["対象9"].Pars.Values.First().ToParT().PenColor == Color.Red)
{
g = Sta.GameData.;
}
};
Reload = delegate
{
SetGen();
g.Rotation();
u = g.RefCharacter();
if (u != null)
{
PurchasTarget?.Dispose();
PurchasTarget = new Cha(Med, DrawBuffer, u.ChaD);
PurchasTarget.SetInitialExpression();
PurchasTarget.Emotion();
PurchasTarget.UpdateExpression();
PurchasTarget.Bod._表示 = true;
PurchasTarget.Set拘束姿勢();
PurchasTarget.Set衣装(u.);
ip.TextIm = u.GetStatus();
}
else
{
ip.Mai.TextIm = GameText.;
}
};
ParT parT14 = new ParT();
parT14.Font = new Font("MS Gothic", 0.1f);
parT14.PositionBase = DrawBuffer.GetPosition(0.01, num2 + 0.9 * num);
parT14.Text = GameText.;
parT14.FontSize = 0.15;
parT14.SizeBase = 0.05;
parT14.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT14.OP.ScalingY(parT14.OP.GetCenter(), 0.5 * num);
parT14.Closed = true;
parT14.TextColor = Col.White;
parT14.BrushColor = Color.FromArgb(160, Col.Black);
parT14.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT14.StringFormat.Alignment = StringAlignment.Center;
parT14.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("変更", new But1(parT14, delegate
{
if (!ip.Mai.TextIm.StartsWith(GameText.))
{
Sounds.Play();
}
else
{
//Sounds.操作.Play();
}
Reload();
}));
ParT parT15 = new ParT();
parT15.Font = new Font("MS Gothic", 0.1f);
parT15.PositionBase = DrawBuffer.GetPosition(0.01, num2 + 0.98 * num);
parT15.Text = GameText.;
parT15.FontSize = 0.15;
parT15.SizeBase = 0.05;
parT15.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT15.OP.ScalingY(parT15.OP.GetCenter(), 0.5 * num);
parT15.Closed = true;
parT15.TextColor = Col.White;
parT15.BrushColor = Color.FromArgb(160, Col.Black);
parT15.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT15.StringFormat.Alignment = StringAlignment.Center;
parT15.StringFormat.LineAlignment = StringAlignment.Center;
ulong ;
bs.Add("購入", new But1(parT15, delegate
{
if (Sta.GameData.Is地下室一杯())
{
//TODO fix?
//Sounds.操作.Play();
ip.SubInfoIm = GameText.;
}
else if (u == null)
{
//TODO fix?
//Sounds.操作.Play();
ip.Mai.TextIm = GameText.;
}
else if (Sta.GameData. < ( = (ulong)((double)u.GetPrice() * ((Sta.GameData. == Sta.GameData.) ? 0.6 : 1.0))))
{
//TODO fix?
//Sounds.操作.Play();
ip.SubInfoIm = GameText.;
}
else
{
u.Price = ;
Sta.GameData. -= ;
//TODO fix?
////Sounds.精算.Play();
ip.UpdateSub2();
Sta.GameData.Add地下室(g.GetCharacter());
Reload();
}
}));
bs.SetHitColor(Med);
mod.Down = delegate(MouseButtons mb, Vector2D cp, Color hc)
{
if (!processing)
{
if (SDShow)
{
SaveData.Down(ref hc);
if (mb == MouseButtons.Right && !processing)
{
//TODO fix?
//Sounds.操作.Play();
SDShow = false;
ip.Up(ref hc);
dbs.Move(ref hc);
}
}
else
{
switch (mb)
{
case MouseButtons.Left:
if (!ip.)
{
dbs.Down(ref hc);
bs.Down(ref hc);
}
ip.Down(ref hc);
break;
case MouseButtons.Right:
if (!ip.)
{
bs["ボタン0"].Action(bs["ボタン0"]);
}
else
{
ip.nb.Action(ip.nb);
}
break;
}
}
}
};
mod.Up = delegate(MouseButtons mb, Vector2D cp, Color hc)
{
if (!processing)
{
if (SDShow)
{
SaveData.Up(ref hc);
}
else if (mb == MouseButtons.Left)
{
if (!ip.)
{
dbs.Up(ref hc);
bs.Up(ref hc);
}
ip.Up(ref hc);
}
}
};
mod.Move = delegate(MouseButtons mb, Vector2D cp, Color hc)
{
if (!processing)
{
if (SDShow)
{
SaveData.Move(ref hc);
}
else
{
if (!ip.)
{
dbs.Move(ref hc);
bs.Move(ref hc);
Player説明(ref hc, delegate
{
si.Set(bre: false);
});
}
ip.Move(ref hc);
}
}
};
mod.Leave = delegate
{
if (!processing)
{
if (SDShow)
{
SaveData.Leave();
}
else if (!ip.)
{
dbs.Leave();
bs.Leave();
}
}
};
mod.Wheel = delegate(MouseButtons mb, Vector2D cp, int dt, Color hc)
{
int num3 = 0;
using (IEnumerator<But> enumerator = bs.EnumBut.Skip(3).Take(10).GetEnumerator())
{
while (enumerator.MoveNext() && !(enumerator.Current.Pars.Values.First().ToParT().PenColor == Color.Red))
{
num3++;
}
}
int num4 = Sta.GameData..Count((bool e) => e) + 1;
int num5 = num3 - dt.Sign();
if (num5 < 0)
{
num5 = num4 - 1;
}
num5 %= num4;
But but = bs["対象" + num5];
but.Action(but);
};
mod.Setting = delegate
{
if (Med.Modeb != "PlayerInformation")
{
ip.UpdateSub2();
ip.MaiShow = true;
ip.Mai.Feed.Dra = false;
ip.Mai2Show = false;
ip.SubShow = true;
ip.Sub2Show = true;
bs["対象1"].Dra = Sta.GameData.[0];
bs["対象2"].Dra = Sta.GameData.[1];
bs["対象3"].Dra = Sta.GameData.[2];
bs["対象4"].Dra = Sta.GameData.[3];
bs["対象5"].Dra = Sta.GameData.[4];
bs["対象6"].Dra = Sta.GameData.[5];
bs["対象7"].Dra = Sta.GameData.[6];
bs["対象8"].Dra = Sta.GameData.[7];
bs["対象9"].Dra = Sta.GameData.[8];
if (Sta.RefreshStoreEveryTime)
{
Sta.GameData. = true;
}
if (Sta.GameData.)
{
Sta.GameData.GenRefresh();
Sta.GameData. = false;
}
Reload();
si.Set(bre: false);
}
};
DrawSlaveShop = delegate(Are a, FPS FPS)
{
Med.GH.Clear(Col.Transparent);
if (a.GH != null)
{
a.GH.Clear(Col.Transparent);
}
a.Draw(OfficeBackground);
if (u != null)
{
PurchasTarget.Draw(a, FPS);
}
bs.Draw(a);
dbs.Draw(a);
ip.Draw(a, FPS);
if (SDShow)
{
SaveData.Draw(a);
}
Med.Draw(a);
};
mod.Draw = delegate(FPS FPS)
{
SwitchMode(Med, DrawBuffer, FPS, DrawSlaveShop);
};
mod.Dispose = delegate
{
if (PurchasTarget != null)
{
PurchasTarget.Dispose();
}
bs.Dispose();
};
UI初期化 = delegate
{
d = false;
bs縁色初期化();
bs["対象0"].Pars.Values.First().ToParT().PenColor = Color.Red;
};
return mod;
}
public static Module ToolShop(Med Med)
{
Module mod = new Module();
Buts bs = new Buts();
ParT parT = new ParT();
parT.Font = new Font("MS Gothic", 0.1f);
parT.PositionBase = DrawBuffer.GetPosition(0.85, 0.02);
parT.Text = GameText.;
parT.FontSize = 0.15;
parT.SizeBase = 0.05;
parT.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT.OP.ScalingY(parT.OP.GetCenter(), 0.47);
parT.OP.Rotation(parT.OP.GetCenter(), -26.0);
parT.Closed = true;
parT.TextColor = Col.White;
parT.BrushColor = Color.FromArgb(160, Col.Black);
parT.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT.StringFormat.Alignment = StringAlignment.Center;
parT.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("ボタン0", new But1(parT, delegate
{
//Sounds.操作.Play();
if (Sta.GameData.)
{
Med.SwitchMode("初事務所", DrawBuffer, );
}
else
{
Med.Mode = "Office";
}
}));
ParT parT2 = new ParT();
parT2.Font = new Font("MS Gothic", 0.1f);
parT2.PositionBase = DrawBuffer.GetPosition(0.85, 0.1);
parT2.Text = GameText.;
parT2.FontSize = 0.15;
parT2.SizeBase = 0.05;
parT2.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT2.OP.ScalingY(parT2.OP.GetCenter(), 0.47);
parT2.OP.Rotation(parT2.OP.GetCenter(), -26.0);
parT2.Closed = true;
parT2.TextColor = Col.White;
parT2.BrushColor = Color.FromArgb(160, Col.Black);
parT2.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT2.StringFormat.Alignment = StringAlignment.Center;
parT2.StringFormat.LineAlignment = StringAlignment.Center;
bs.Add("ボタン1", new But1(parT2, delegate
{
//Sounds.操作.Play();
Med.Mode = "SlaveShop";
}));
ParT parT3 = new ParT();
parT3.Font = new Font("MS Gothic", 0.1f);
parT3.PositionBase = DrawBuffer.GetPosition(0.85, 0.18);
parT3.Text = GameText.;
parT3.FontSize = 0.15;
parT3.SizeBase = 0.05;
parT3.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT3.OP.ScalingY(parT3.OP.GetCenter(), 0.47);
parT3.OP.Rotation(parT3.OP.GetCenter(), -26.0);
parT3.Closed = true;
parT3.TextColor = Col.White;
parT3.BrushColor = Color.FromArgb(160, Col.Black);
parT3.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT3.StringFormat.Alignment = StringAlignment.Center;
parT3.StringFormat.LineAlignment = StringAlignment.Center;
parT3.PenColor = Color.Red;
bs.Add("ボタン2", new But1(parT3, delegate
{
//Sounds.操作.Play();
Med.Mode = "ToolShop";
}));
bs.SetHitColor(Med);
ListView lv = null;
Action<But, int, ulong> buy = delegate(But but, int ind, ulong pri)
{
if (Sta.GameData. >= pri)
{
but.Dra = false;
Sta.GameData.PurchasedTools[ind] = true;
Sta.GameData. -= pri;
//Sounds.精算.Play();
ip.UpdateSub2();
ip.TextIm = " ";
if (!lv.bs.EnumBut.Any((But e) => e.Dra))
{
ip.SubInfo = GameText.;
ip.TextIm = GameText.;
}
}
else
{
////Sounds.操作.Play();
ip.SubInfoIm = GameText.;
}
};
lv = new ListView(DrawBuffer, DrawBuffer.GetPosition(0.01, 0.03), 0.5, new Font("MS Gothic", 1f), 0.07, Col.White, Col.Empty, Color.FromArgb(160, Col.Black), Col.Black, new TA(GameText. + " 35,000,000", delegate(But b)
{
buy(b, 0, 35000000uL);
}), new TA(GameText. + " 40,000,000", delegate(But b)
{
buy(b, 1, 40000000uL);
}), new TA(GameText. + " 60,000,000", delegate(But b)
{
buy(b, 2, 60000000uL);
}), new TA(GameText. + " 50,000,000", delegate(But b)
{
buy(b, 3, 50000000uL);
}), new TA(GameText. + " 45,000,000", delegate(But b)
{
buy(b, 4, 45000000uL);
}), new TA(GameText.調 + " 30,000,000", delegate(But b)
{
buy(b, 5, 30000000uL);
}), new TA(GameText. + " 20,000,000", delegate(But b)
{
buy(b, 6, 20000000uL);
}), new TA(GameText.T字剃刀 + " 20,000,000", delegate(But b)
{
buy(b, 7, 20000000uL);
}), new TA(GameText. + " 30,000,000", delegate(But b)
{
buy(b, 8, 30000000uL);
}), new TA(GameText. + " 20,000,000", delegate(But b)
{
buy(b, 9, 20000000uL);
}), new TA(GameText. + " 20,000,000", delegate(But b)
{
buy(b, 10, 20000000uL);
}), new TA(GameText. + " 25,000,000", delegate(But b)
{
buy(b, 11, 25000000uL);
}), new TA(GameText. + " 20,000,000", delegate(But b)
{
buy(b, 12, 20000000uL);
}), new TA(GameText. + " 100,000,000", delegate(But b)
{
buy(b, 13, 100000000uL);
}), new TA(GameText. + " 300,000,000", delegate(But b)
{
ulong num = 300000000uL;
if (Sta.GameData. >= num)
{
Sta.GameData.++;
if (Sta.GameData. == 9)
{
b.Dra = false;
}
Sta.GameData. -= num;
//Sounds.精算.Play();
ip.UpdateSub2();
ip.TextIm = " ";
if (!lv.bs.EnumBut.Any((But e) => e.Dra))
{
ip.SubInfo = GameText.;
ip.TextIm = GameText.;
}
}
else
{
//Sounds.操作.Play();
ip.SubInfoIm = GameText.;
}
}));
lv.SetHitColor(Med);
Action subinfo = delegate
{
if (lv.bs.EnumBut.Any((But e) => e.Dra))
{
ip.SubInfo = GameText.;
}
else
{
ip.SubInfo = GameText.;
}
};
mod.Down = delegate(MouseButtons mb, Vector2D cp, Color hc)
{
if (!processing)
{
if (SDShow)
{
SaveData.Down(ref hc);
if (mb == MouseButtons.Right && !processing)
{
//Sounds.操作.Play();
SDShow = false;
ip.Up(ref hc);
dbs.Move(ref hc);
}
}
else
{
switch (mb)
{
case MouseButtons.Left:
if (!ip.)
{
dbs.Down(ref hc);
bs.Down(ref hc);
lv.Down(ref hc);
}
break;
case MouseButtons.Right:
if (!ip.)
{
bs["ボタン0"].Action(bs["ボタン0"]);
}
else
{
ip.nb.Action(ip.nb);
}
break;
}
}
}
};
mod.Up = delegate(MouseButtons mb, Vector2D cp, Color hc)
{
if (!processing)
{
if (SDShow)
{
SaveData.Up(ref hc);
}
else if (mb == MouseButtons.Left)
{
if (!ip.)
{
dbs.Up(ref hc);
bs.Up(ref hc);
lv.Up(ref hc);
}
ip.Up(ref hc);
}
}
};
mod.Move = delegate(MouseButtons mb, Vector2D cp, Color hc)
{
if (!processing)
{
if (SDShow)
{
SaveData.Move(ref hc);
}
else
{
if (!ip.)
{
dbs.Move(ref hc);
bs.Move(ref hc);
lv.Move(ref hc);
if (lv.bs["0"].Pars.Values.First().ToPar().HitColor == hc)
{
ip.TextIm = GameText. + "\r\n" + GameText.;
}
if (lv.bs["1"].Pars.Values.First().ToPar().HitColor == hc)
{
ip.TextIm = GameText. + "\r\n" + GameText.;
}
if (lv.bs["2"].Pars.Values.First().ToPar().HitColor == hc)
{
ip.TextIm = GameText.2;
}
if (lv.bs["3"].Pars.Values.First().ToPar().HitColor == hc)
{
ip.TextIm = GameText. + "\r\n" + GameText.;
}
if (lv.bs["4"].Pars.Values.First().ToPar().HitColor == hc)
{
ip.TextIm = GameText.調;
}
if (lv.bs["5"].Pars.Values.First().ToPar().HitColor == hc)
{
ip.TextIm = GameText.;
}
if (lv.bs["6"].Pars.Values.First().ToPar().HitColor == hc)
{
ip.TextIm = GameText.;
}
if (lv.bs["7"].Pars.Values.First().ToPar().HitColor == hc)
{
ip.TextIm = GameText.;
}
if (lv.bs["8"].Pars.Values.First().ToPar().HitColor == hc)
{
ip.TextIm = GameText.;
}
if (lv.bs["9"].Pars.Values.First().ToPar().HitColor == hc)
{
ip.TextIm = GameText.;
}
if (lv.bs["10"].Pars.Values.First().ToPar().HitColor == hc)
{
ip.TextIm = GameText.調;
}
if (lv.bs["11"].Pars.Values.First().ToPar().HitColor == hc)
{
ip.TextIm = GameText.;
}
if (lv.bs["12"].Pars.Values.First().ToPar().HitColor == hc)
{
ip.TextIm = GameText.;
}
if (lv.bs["13"].Pars.Values.First().ToPar().HitColor == hc)
{
ip.TextIm = GameText.;
}
if (lv.bs["14"].Pars.Values.First().ToPar().HitColor == hc)
{
ip.TextIm = GameText.;
}
Player説明(ref hc, subinfo);
}
ip.Move(ref hc);
}
}
};
mod.Leave = delegate
{
if (!processing)
{
if (SDShow)
{
SaveData.Leave();
}
else if (!ip.)
{
dbs.Leave();
bs.Leave();
lv.Leave();
}
}
};
mod.Wheel = delegate
{
};
mod.Setting = delegate
{
if (Med.Modeb != "PlayerInformation")
{
ip.UpdateSub2();
ip.MaiShow = true;
ip.Mai.Feed.Dra = false;
ip.Mai2Show = false;
ip.SubShow = true;
ip.Sub2Show = true;
lv.bs["0"].Dra = !Sta.GameData.PurchasedTools[0];
lv.bs["1"].Dra = !Sta.GameData.PurchasedTools[1];
lv.bs["2"].Dra = !Sta.GameData.PurchasedTools[2];
lv.bs["3"].Dra = !Sta.GameData.PurchasedTools[3];
lv.bs["4"].Dra = !Sta.GameData.PurchasedTools[4];
lv.bs["5"].Dra = !Sta.GameData.PurchasedTools[5];
lv.bs["6"].Dra = !Sta.GameData.PurchasedTools[6];
lv.bs["7"].Dra = !Sta.GameData.PurchasedTools[7];
lv.bs["8"].Dra = !Sta.GameData.PurchasedTools[8];
lv.bs["9"].Dra = !Sta.GameData.PurchasedTools[9];
lv.bs["10"].Dra = !Sta.GameData.PurchasedTools[10];
lv.bs["11"].Dra = !Sta.GameData.PurchasedTools[11];
lv.bs["12"].Dra = !Sta.GameData.PurchasedTools[12];
lv.bs["13"].Dra = !Sta.GameData.PurchasedTools[13];
lv.bs["14"].Dra = Sta.GameData. < 9;
if (Sta.GameData.PurchasedTools.All((bool e) => e) && Sta.GameData. == 9)
{
ip.TextIm = GameText.;
}
else
{
ip.TextIm = " ";
}
subinfo();
}
};
DrawToolShop = delegate(Are a, FPS FPS)
{
Med.GH.Clear(Col.Transparent);
if (a.GH != null)
{
a.GH.Clear(Col.Transparent);
}
a.Draw(OfficeBackground);
lv.Draw(a);
bs.Draw(a);
dbs.Draw(a);
ip.Draw(a, FPS);
if (SDShow)
{
SaveData.Draw(a);
}
Med.Draw(DrawBuffer);
};
mod.Draw = delegate(FPS FPS)
{
SwitchMode(Med, DrawBuffer, FPS, DrawToolShop);
};
mod.Dispose = delegate
{
lv.Dispose();
bs.Dispose();
};
return mod;
}
public static Module StartOfDay(Med Med)
{
Module obj = new Module
{
Down = delegate
{
Sta.GameData.();
if ( != 0 || != 0)
{
if ( != 0)
{
Sta.GameData. = Sta.GameData..();
}
if ( != 0)
{
Sta.GameData. = Sta.GameData..();
}
//Sounds.精算.Play();
ip.UpdateSub2();
}
if (Sta.GameData. >= 10)
{
Sta.GameData. = 0.002;
}
Sta.GameData.();
Med.SwitchMode("メインフォーム", DrawBuffer, );
},
Up = delegate
{
},
Move = delegate
{
},
Leave = delegate
{
},
Wheel = delegate
{
},
Setting = delegate
{
ip.UpdateSub2();
ip.MaiShow = true;
ip.Mai.Feed.Dra = true;
ip.Mai2Show = true;
ip.SubShow = true;
ip.Sub2Show = true;
while (dayp)
{
//Application.DoEvents();
}
ip.Mai2Im = (from e in a
where !string.IsNullOrWhiteSpace(e)
select e.Substring(0, e.Length - 2)).Join("\r\n") + (( != 0) ? ("\r\n" + GameText. + " + " + .ToString("#,0")) : "");
ip.TextIm = (( != 0) ? (GameText. + " + " + .ToString("#,0") + "\r\n") : "") + (( != 0) ? (GameText. + " + " + .ToString("#,0") + "\r\n") : "") + ">> Next days.";
if (TrainingTarget != null && Sta.GameData.TrainingTarget != null)
{
();
();
}
si.Set(bre: false);
}
};
= delegate(Are a, FPS FPS)
{
if (TrainingTarget != null)
{
TrainingTarget.Mots.Drive(FPS);
}
Med.GH.Clear(Col.Transparent);
if (a.GH != null)
{
a.GH.Clear(Col.Transparent);
}
a.Draw(BlackBackground);
ip.Draw(a, FPS);
Med.Draw(a);
};
obj.Draw = delegate(FPS FPS)
{
SwitchMode(Med, DrawBuffer, FPS, );
};
obj.Dispose = delegate
{
};
return obj;
}
public static Module PlayerInformation(Med Med)
{
Module mod = new Module();
double num = 0.2;
double num2 = 0.039;
double num3 = 0.15;
ParT parT = new ParT();
parT.Font = new Font("MS Gothic", 0.1f);
parT.PositionBase = DrawBuffer.GetPosition(new Vector2D(num2 + 0.19, num3 + 0.72));
parT.Text = GameText.;
parT.FontSize = 0.15;
parT.SizeBase = 0.05;
parT.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT.OP.ScalingY(parT.OP.GetCenter(), 0.47);
parT.Closed = true;
parT.TextColor = Col.White;
parT.BrushColor = Color.FromArgb(160, Col.Black);
parT.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT.HitColor = Med.GetUniqueColor();
parT.StringFormat.Alignment = StringAlignment.Center;
parT.StringFormat.LineAlignment = StringAlignment.Center;
But1 = new But1(parT, delegate
{
Sta.GameData. = new (Sta.GameData.);
Player.UI..(Sta.GameData.);
Player.UI..(Sta.GameData.);
Player.UI..(Sta.GameData.);
Player.UI..(Sta.GameData.);
Sta.GameData. = Generator.();
//Sounds.完了.Play();
if (start)
{
start = false;
Med.SwitchMode("OP0", DrawBuffer, DrawOP0);
}
else
{
switch (Med.Modeb)
{
case "メインフォーム":
Med.SwitchMode("メインフォーム", DrawBuffer, );
break;
case "対象":
Med.SwitchMode("対象", DrawBuffer, );
break;
case "Blessing":
Med.SwitchMode("Blessing", DrawBuffer, DrawBlessing);
break;
case "Office":
Med.SwitchMode("Office", DrawBuffer, DrawOffice);
break;
case "Debt":
Med.SwitchMode("Debt", DrawBuffer, DrawDebt);
break;
case "SlaveShop":
Med.SwitchMode("SlaveShop", DrawBuffer, DrawSlaveShop);
break;
case "ToolShop":
Med.SwitchMode("ToolShop", DrawBuffer, DrawToolShop);
break;
}
}
});
Labs ls = new Labs(Med, DrawBuffer);
ls.Add("ラベル0", DrawBuffer.GetPosition(new Vector2D(num2 + 0.19, num3 - 0.1)), 0.1, 2.5, new Font("MS Gothic", 1f), 0.085, " ", Col.White, Col.Black, ip.MaiB.BrushColor, Col.Black, Input: false);
ls.Add("ラベル1", DrawBuffer.GetPosition(new Vector2D(num2 + 0.19, num3 + num * 0.0 + 0.005)), 0.1, 1.0, new Font("MS Gothic", 1f), 0.085, GameText., Col.White, Col.Black, ip.MaiB.BrushColor, Col.Black, Input: false);
ls.Add("ラベル2", DrawBuffer.GetPosition(new Vector2D(num2 + 0.19, num3 + num * 0.0 + 0.045)), 0.1, 1.0, new Font("MS Gothic", 1f), 0.085, "H:", Col.White, Col.Black, ip.MaiB.BrushColor, Col.Black, Input: false);
ls.Add("ラベル3", DrawBuffer.GetPosition(new Vector2D(num2 + 0.19, num3 + num * 0.0 + 0.086)), 0.1, 1.0, new Font("MS Gothic", 1f), 0.085, "S:", Col.White, Col.Black, ip.MaiB.BrushColor, Col.Black, Input: false);
ls.Add("ラベル4", DrawBuffer.GetPosition(new Vector2D(num2 + 0.19, num3 + num * 0.0 + 0.127)), 0.1, 1.0, new Font("MS Gothic", 1f), 0.085, "V:", Col.White, Col.Black, ip.MaiB.BrushColor, Col.Black, Input: false);
ls.Add("ラベル5", DrawBuffer.GetPosition(new Vector2D(num2 + 0.19, num3 + num * 1.0 + 0.005)), 0.1, 1.0, new Font("MS Gothic", 1f), 0.085, GameText., Col.White, Col.Black, ip.MaiB.BrushColor, Col.Black, Input: false);
ls.Add("ラベル6", DrawBuffer.GetPosition(new Vector2D(num2 + 0.19, num3 + num * 1.0 + 0.045)), 0.1, 1.0, new Font("MS Gothic", 1f), 0.085, "H:", Col.White, Col.Black, ip.MaiB.BrushColor, Col.Black, Input: false);
ls.Add("ラベル7", DrawBuffer.GetPosition(new Vector2D(num2 + 0.19, num3 + num * 1.0 + 0.086)), 0.1, 1.0, new Font("MS Gothic", 1f), 0.085, "S:", Col.White, Col.Black, ip.MaiB.BrushColor, Col.Black, Input: false);
ls.Add("ラベル8", DrawBuffer.GetPosition(new Vector2D(num2 + 0.19, num3 + num * 1.0 + 0.127)), 0.1, 1.0, new Font("MS Gothic", 1f), 0.085, "V:", Col.White, Col.Black, ip.MaiB.BrushColor, Col.Black, Input: false);
ls.Add("ラベル9", DrawBuffer.GetPosition(new Vector2D(num2 + 0.19, num3 + num * 2.0 + 0.005)), 0.1, 1.0, new Font("MS Gothic", 1f), 0.085, GameText., Col.White, Col.Black, ip.MaiB.BrushColor, Col.Black, Input: false);
ls.Add("ラベル10", DrawBuffer.GetPosition(new Vector2D(num2 + 0.19, num3 + num * 2.0 + 0.045)), 0.1, 1.0, new Font("MS Gothic", 1f), 0.085, "H:", Col.White, Col.Black, ip.MaiB.BrushColor, Col.Black, Input: false);
ls.Add("ラベル11", DrawBuffer.GetPosition(new Vector2D(num2 + 0.19, num3 + num * 2.0 + 0.086)), 0.1, 1.0, new Font("MS Gothic", 1f), 0.085, "S:", Col.White, Col.Black, ip.MaiB.BrushColor, Col.Black, Input: false);
ls.Add("ラベル12", DrawBuffer.GetPosition(new Vector2D(num2 + 0.19, num3 + num * 2.0 + 0.127)), 0.1, 1.0, new Font("MS Gothic", 1f), 0.085, "V:", Col.White, Col.Black, ip.MaiB.BrushColor, Col.Black, Input: false);
ls.Add("ラベル13", DrawBuffer.GetPosition(new Vector2D(num2 + 0.19, num3 + num * 3.0 + 0.005)), 0.1, 1.0, new Font("MS Gothic", 1f), 0.085, GameText., Col.White, Col.Black, ip.MaiB.BrushColor, Col.Black, Input: false);
ls.Add("ラベル14", DrawBuffer.GetPosition(new Vector2D(num2 + 0.19, num3 + num * 3.0 + 0.045)), 0.1, 1.0, new Font("MS Gothic", 1f), 0.085, "H:", Col.White, Col.Black, ip.MaiB.BrushColor, Col.Black, Input: false);
ls.Add("ラベル15", DrawBuffer.GetPosition(new Vector2D(num2 + 0.19, num3 + num * 3.0 + 0.086)), 0.1, 1.0, new Font("MS Gothic", 1f), 0.085, "W:", Col.White, Col.Black, ip.MaiB.BrushColor, Col.Black, Input: false);
Gau H肌 = new Gau("H肌", DrawBuffer.GetPosition(new Vector2D(num2 + 0.532, num3 + num * 0.0 + 0.06)), DrawBuffer.Size, 0.6, 0.03, 0.02, Open.Rig, _2DGAMELIB.Range.ZeroOne, DrawBuffer.DisUnit, Color.Transparent, Color.Transparent, Color.Transparent, Color.Transparent, Col.Black, Knob: true);
H肌.Gauge.PenColor = Col.White;
H肌.Frame1.PenColor = Col.White;
H肌.Knob.PenColor = Col.White;
H肌.Knob.HitColor = Med.GetUniqueColor();
Gau S肌 = new Gau("S肌", DrawBuffer.GetPosition(new Vector2D(num2 + 0.532, num3 + num * 0.0 + 0.1)), DrawBuffer.Size, 0.6, 0.03, 0.02, Open.Rig, _2DGAMELIB.Range.ZeroOne, DrawBuffer.DisUnit, Color.Transparent, Color.Transparent, Color.Transparent, Color.Transparent, Col.Black, Knob: true);
S肌.Gauge.PenColor = Col.White;
S肌.Frame1.PenColor = Col.White;
S肌.Knob.PenColor = Col.White;
S肌.Knob.HitColor = Med.GetUniqueColor();
Gau V肌 = new Gau("V肌", DrawBuffer.GetPosition(new Vector2D(num2 + 0.532, num3 + num * 0.0 + 0.14)), DrawBuffer.Size, 0.6, 0.03, 0.02, Open.Rig, _2DGAMELIB.Range.ZeroOne, DrawBuffer.DisUnit, Color.Transparent, Color.Transparent, Color.Transparent, Color.Transparent, Col.Black, Knob: true);
V肌.Gauge.PenColor = Col.White;
V肌.Frame1.PenColor = Col.White;
V肌.Knob.PenColor = Col.White;
V肌.Knob.HitColor = Med.GetUniqueColor();
Gau H髪 = new Gau("H髪", DrawBuffer.GetPosition(new Vector2D(num2 + 0.532, num3 + num * 1.0 + 0.06)), DrawBuffer.Size, 0.6, 0.03, 0.02, Open.Rig, _2DGAMELIB.Range.ZeroOne, DrawBuffer.DisUnit, Color.Transparent, Color.Transparent, Color.Transparent, Color.Transparent, Col.Black, Knob: true);
H髪.Gauge.PenColor = Col.White;
H髪.Frame1.PenColor = Col.White;
H髪.Knob.PenColor = Col.White;
H髪.Knob.HitColor = Med.GetUniqueColor();
Gau S髪 = new Gau("S髪", DrawBuffer.GetPosition(new Vector2D(num2 + 0.532, num3 + num * 1.0 + 0.1)), DrawBuffer.Size, 0.6, 0.03, 0.02, Open.Rig, _2DGAMELIB.Range.ZeroOne, DrawBuffer.DisUnit, Color.Transparent, Color.Transparent, Color.Transparent, Color.Transparent, Col.Black, Knob: true);
S髪.Gauge.PenColor = Col.White;
S髪.Frame1.PenColor = Col.White;
S髪.Knob.PenColor = Col.White;
S髪.Knob.HitColor = Med.GetUniqueColor();
Gau V髪 = new Gau("V髪", DrawBuffer.GetPosition(new Vector2D(num2 + 0.532, num3 + num * 1.0 + 0.14)), DrawBuffer.Size, 0.6, 0.03, 0.02, Open.Rig, _2DGAMELIB.Range.ZeroOne, DrawBuffer.DisUnit, Color.Transparent, Color.Transparent, Color.Transparent, Color.Transparent, Col.Black, Knob: true);
V髪.Gauge.PenColor = Col.White;
V髪.Frame1.PenColor = Col.White;
V髪.Knob.PenColor = Col.White;
V髪.Knob.HitColor = Med.GetUniqueColor();
Gau H瞳 = new Gau("H瞳", DrawBuffer.GetPosition(new Vector2D(num2 + 0.532, num3 + num * 2.0 + 0.06)), DrawBuffer.Size, 0.6, 0.03, 0.02, Open.Rig, _2DGAMELIB.Range.ZeroOne, DrawBuffer.DisUnit, Color.Transparent, Color.Transparent, Color.Transparent, Color.Transparent, Col.Black, Knob: true);
H瞳.Gauge.PenColor = Col.White;
H瞳.Frame1.PenColor = Col.White;
H瞳.Knob.PenColor = Col.White;
H瞳.Knob.HitColor = Med.GetUniqueColor();
Gau S瞳 = new Gau("S瞳", DrawBuffer.GetPosition(new Vector2D(num2 + 0.532, num3 + num * 2.0 + 0.1)), DrawBuffer.Size, 0.6, 0.03, 0.02, Open.Rig, _2DGAMELIB.Range.ZeroOne, DrawBuffer.DisUnit, Color.Transparent, Color.Transparent, Color.Transparent, Color.Transparent, Col.Black, Knob: true);
S瞳.Gauge.PenColor = Col.White;
S瞳.Frame1.PenColor = Col.White;
S瞳.Knob.PenColor = Col.White;
S瞳.Knob.HitColor = Med.GetUniqueColor();
Gau V瞳 = new Gau("V瞳", DrawBuffer.GetPosition(new Vector2D(num2 + 0.532, num3 + num * 2.0 + 0.14)), DrawBuffer.Size, 0.6, 0.03, 0.02, Open.Rig, _2DGAMELIB.Range.ZeroOne, DrawBuffer.DisUnit, Color.Transparent, Color.Transparent, Color.Transparent, Color.Transparent, Col.Black, Knob: true);
V瞳.Gauge.PenColor = Col.White;
V瞳.Frame1.PenColor = Col.White;
V瞳.Knob.PenColor = Col.White;
V瞳.Knob.HitColor = Med.GetUniqueColor();
Gau = new Gau("身長", DrawBuffer.GetPosition(new Vector2D(num2 + 0.532, num3 + num * 3.0 + 0.06)), DrawBuffer.Size, 0.6, 0.03, 0.02, Open.Rig, _2DGAMELIB.Range.ZeroOne, DrawBuffer.DisUnit, Color.Transparent, Color.Transparent, Color.Transparent, Color.Transparent, Col.Black, Knob: true);
.Gauge.PenColor = Col.White;
.Frame1.PenColor = Col.White;
.Knob.PenColor = Col.White;
.Knob.HitColor = Med.GetUniqueColor();
Gau = new Gau("体重", DrawBuffer.GetPosition(new Vector2D(num2 + 0.532, num3 + num * 3.0 + 0.1)), DrawBuffer.Size, 0.6, 0.03, 0.02, Open.Rig, _2DGAMELIB.Range.ZeroOne, DrawBuffer.DisUnit, Color.Transparent, Color.Transparent, Color.Transparent, Color.Transparent, Col.Black, Knob: true);
.Gauge.PenColor = Col.White;
.Frame1.PenColor = Col.White;
.Knob.PenColor = Col.White;
.Knob.HitColor = Med.GetUniqueColor();
Hsv hsv = HSV.ToHSV(ref Sta.GameData..);
H肌.Value = (double)hsv.H / 360.0;
S肌.Value = (double)hsv.S / 255.0;
V肌.Value = (double)hsv.V / 255.0;
H肌.Base.BrushColor = Sta.GameData..;
S肌.Base.BrushColor = Sta.GameData..;
V肌.Base.BrushColor = Sta.GameData..;
ls["ラベル2"].Text = "H:" + hsv.H;
ls["ラベル3"].Text = "S:" + hsv.S;
ls["ラベル4"].Text = "V:" + hsv.V;
hsv = HSV.ToHSV(ref Sta.GameData..);
H髪.Value = (double)hsv.H / 360.0;
S髪.Value = (double)hsv.S / 255.0;
V髪.Value = (double)hsv.V / 255.0;
H髪.Base.BrushColor = Sta.GameData..;
S髪.Base.BrushColor = Sta.GameData..;
V髪.Base.BrushColor = Sta.GameData..;
ls["ラベル6"].Text = "H:" + hsv.H;
ls["ラベル7"].Text = "S:" + hsv.S;
ls["ラベル8"].Text = "V:" + hsv.V;
hsv = HSV.ToHSV(ref Sta.GameData..);
H瞳.Value = (double)hsv.H / 360.0;
S瞳.Value = (double)hsv.S / 255.0;
V瞳.Value = (double)hsv.V / 255.0;
H瞳.Base.BrushColor = Sta.GameData..;
S瞳.Base.BrushColor = Sta.GameData..;
V瞳.Base.BrushColor = Sta.GameData..;
ls["ラベル10"].Text = "H:" + hsv.H;
ls["ラベル11"].Text = "S:" + hsv.S;
ls["ラベル12"].Text = "V:" + hsv.V;
.Value = Sta.GameData.;
.Value = Sta.GameData.;
ls["ラベル14"].Text = "H:" + $"{身長.Value:0.00}";
ls["ラベル15"].Text = "W:" + $"{体重.Value:0.00}";
mod.Down = delegate(MouseButtons mb, Vector2D cp, Color hc)
{
if (mb == MouseButtons.Left)
{
H肌.Down(ref hc, ref cp);
S肌.Down(ref hc, ref cp);
V肌.Down(ref hc, ref cp);
H髪.Down(ref hc, ref cp);
S髪.Down(ref hc, ref cp);
V髪.Down(ref hc, ref cp);
H瞳.Down(ref hc, ref cp);
S瞳.Down(ref hc, ref cp);
V瞳.Down(ref hc, ref cp);
.Down(ref hc, ref cp);
.Down(ref hc, ref cp);
.Down(ref hc);
}
};
mod.Up = delegate(MouseButtons mb, Vector2D cp, Color hc)
{
if (mb == MouseButtons.Left)
{
H肌.Up();
S肌.Up();
V肌.Up();
H髪.Up();
S髪.Up();
V髪.Up();
H瞳.Up();
S瞳.Up();
V瞳.Up();
.Up();
.Up();
.Up(ref hc);
}
};
int h;
int s;
int v;
mod.Move = delegate(MouseButtons mb, Vector2D cp, Color hc)
{
if (mb == MouseButtons.Left)
{
H肌.Move(ref cp);
S肌.Move(ref cp);
V肌.Move(ref cp);
h = (int)(360.0 * H肌.Value);
s = (int)(255.0 * S肌.Value);
v = (int)(255.0 * V肌.Value);
HSV.ToRGB(h, s, v, out Sta.GameData..);
H肌.Base.BrushColor = Sta.GameData..;
S肌.Base.BrushColor = Sta.GameData..;
V肌.Base.BrushColor = Sta.GameData..;
ls["ラベル2"].Text = "H:" + h;
ls["ラベル3"].Text = "S:" + s;
ls["ラベル4"].Text = "V:" + v;
H髪.Move(ref cp);
S髪.Move(ref cp);
V髪.Move(ref cp);
h = (int)(360.0 * H髪.Value);
s = (int)(255.0 * S髪.Value);
v = (int)(255.0 * V髪.Value);
HSV.ToRGB(h, s, v, out Sta.GameData..);
H髪.Base.BrushColor = Sta.GameData..;
S髪.Base.BrushColor = Sta.GameData..;
V髪.Base.BrushColor = Sta.GameData..;
ls["ラベル6"].Text = "H:" + h;
ls["ラベル7"].Text = "S:" + s;
ls["ラベル8"].Text = "V:" + v;
H瞳.Move(ref cp);
S瞳.Move(ref cp);
V瞳.Move(ref cp);
h = (int)(360.0 * H瞳.Value);
s = (int)(255.0 * S瞳.Value);
v = (int)(255.0 * V瞳.Value);
HSV.ToRGB(h, s, v, out Sta.GameData..);
H瞳.Base.BrushColor = Sta.GameData..;
S瞳.Base.BrushColor = Sta.GameData..;
V瞳.Base.BrushColor = Sta.GameData..;
ls["ラベル10"].Text = "H:" + h;
ls["ラベル11"].Text = "S:" + s;
ls["ラベル12"].Text = "V:" + v;
.Move(ref cp);
.Move(ref cp);
ls["ラベル14"].Text = "H:" + $"{身長.Value:0.00}";
ls["ラベル15"].Text = "W:" + $"{体重.Value:0.00}";
}
.Move(ref hc);
};
mod.Leave = delegate
{
H肌.Leave();
S肌.Leave();
V肌.Leave();
H髪.Leave();
S髪.Leave();
V髪.Leave();
H瞳.Leave();
S瞳.Leave();
V瞳.Leave();
.Leave();
.Leave();
.Leave();
};
mod.Wheel = delegate
{
};
mod.Setting = delegate
{
ls["ラベル0"].Text = GameText. + (start ? ("(" + GameText. + ")") : "");
hsv = HSV.ToHSV(ref Sta.GameData..);
H肌.Value = (double)hsv.H / 360.0;
S肌.Value = (double)hsv.S / 255.0;
V肌.Value = (double)hsv.V / 255.0;
H肌.Base.BrushColor = Sta.GameData..;
S肌.Base.BrushColor = Sta.GameData..;
V肌.Base.BrushColor = Sta.GameData..;
ls["ラベル2"].Text = "H:" + hsv.H;
ls["ラベル3"].Text = "S:" + hsv.S;
ls["ラベル4"].Text = "V:" + hsv.V;
hsv = HSV.ToHSV(ref Sta.GameData..);
H髪.Value = (double)hsv.H / 360.0;
S髪.Value = (double)hsv.S / 255.0;
V髪.Value = (double)hsv.V / 255.0;
H髪.Base.BrushColor = Sta.GameData..;
S髪.Base.BrushColor = Sta.GameData..;
V髪.Base.BrushColor = Sta.GameData..;
ls["ラベル6"].Text = "H:" + hsv.H;
ls["ラベル7"].Text = "S:" + hsv.S;
ls["ラベル8"].Text = "V:" + hsv.V;
hsv = HSV.ToHSV(ref Sta.GameData..);
H瞳.Value = (double)hsv.H / 360.0;
S瞳.Value = (double)hsv.S / 255.0;
V瞳.Value = (double)hsv.V / 255.0;
H瞳.Base.BrushColor = Sta.GameData..;
S瞳.Base.BrushColor = Sta.GameData..;
V瞳.Base.BrushColor = Sta.GameData..;
ls["ラベル10"].Text = "H:" + hsv.H;
ls["ラベル11"].Text = "S:" + hsv.S;
ls["ラベル12"].Text = "V:" + hsv.V;
.Value = Sta.GameData.;
.Value = Sta.GameData.;
ls["ラベル14"].Text = "H:" + $"{身長.Value:0.00}";
ls["ラベル15"].Text = "W:" + $"{体重.Value:0.00}";
};
PlayerInformationSliders = delegate(Are a, FPS FPS)
{
Med.GH.Clear(Col.Transparent);
if (a.GH != null)
{
a.GH.Clear(Col.Transparent);
}
a.Draw(BlackBackground);
ls.Draw(a);
a.Draw(H肌.Pars);
a.Draw(S肌.Pars);
a.Draw(V肌.Pars);
a.Draw(H髪.Pars);
a.Draw(S髪.Pars);
a.Draw(V髪.Pars);
a.Draw(H瞳.Pars);
a.Draw(S瞳.Pars);
a.Draw(V瞳.Pars);
a.Draw(.Pars);
a.Draw(.Pars);
.Draw(a);
Med.Draw(a);
};
mod.Draw = delegate(FPS FPS)
{
SwitchMode(Med, DrawBuffer, FPS, PlayerInformationSliders);
};
mod.Dispose = delegate
{
ls.Dispose();
H肌.Dispose();
S肌.Dispose();
V肌.Dispose();
H髪.Dispose();
S髪.Dispose();
V髪.Dispose();
H瞳.Dispose();
S瞳.Dispose();
V瞳.Dispose();
.Dispose();
.Dispose();
.Dispose();
};
return mod;
}
public static Module OP0(Med Med)
{
Module mod = new Module();
int i = 0;
int wi = 0;
string[] tsp = new string[4]
{
GameText.12,
GameText.9,
GameText.6,
GameText.3
};
string[] sub = new string[4]
{
"",
GameText.,
GameText.,
GameText.宿
};
mod.Down = delegate
{
//TODO uncomment
//if (!ip.Mai.IsPlaying && !ip.Sub.IsPlaying && wi == i)
{
i++;
wi = i;
if (i < tsp.Length)
{
ip.Text = tsp[i];
ip.SubInfo = sub[i];
}
else
{
Med.SwitchMode("OP1", DrawBuffer, DrawOP1);
}
}
};
mod.Up = delegate
{
};
mod.Move = delegate
{
};
mod.Leave = delegate
{
};
mod.Wheel = delegate
{
};
mod.Setting = delegate
{
ip.UpdateSub2();
ip.MaiShow = true;
ip.Mai.Feed.Dra = true;
ip.Mai2Show = false;
ip.SubShow = true;
ip.Sub2Show = true;
//Sounds.OPBGM.Stop();
i = 0;
wi = 0;
ip.Text = tsp[i];
ip.SubInfo = sub[i];
};
DrawOP0 = delegate(Are a, FPS FPS)
{
if (a.GH != null)
{
a.GH.Clear(Col.Transparent);
}
a.Draw(BlackBackground);
dbs.Draw(a);
ip.Draw(a, FPS);
Med.Draw(a);
};
mod.Draw = delegate(FPS FPS)
{
SwitchMode(Med, DrawBuffer, FPS, DrawOP0);
};
mod.Dispose = delegate
{
};
return mod;
}
public static Module OP1(Med Med)
{
Module mod = new Module();
int i = 0;
int wi = 0;
Action[] sfc = new Action[15]
{
delegate
{
Viola._基本0();
},
delegate
{
Viola._基本1();
},
delegate
{
Viola._困り顔0();
},
delegate
{
Viola._困り顔1();
},
delegate
{
Viola._不敵0();
},
delegate
{
Viola._基本1();
},
delegate
{
Viola._不敵1眉上();
},
delegate
{
Viola._基本1();
},
delegate
{
Viola._不敵0();
},
delegate
{
Viola._不敵0眉上();
},
delegate
{
Viola._基本1眉上();
},
delegate
{
},
delegate
{
Viola._卑屈();
},
delegate
{
Viola._基本1();
},
delegate
{
Viola._不敵0();
}
};
string[] tsc = new string[15]
{
GameText.6,
GameText.,
GameText.,
GameText.,
GameText.3,
GameText.,
GameText. + "\r\n" + GameText.,
GameText. + " \r\n" + GameText.,
GameText.3,
GameText.,
GameText. + 5000000000uL.ToString("#,0") + GameText.,
"",
GameText.,
GameText.,
GameText.
};
string[] tsp = new string[15]
{
GameText.6,
GameText.6,
GameText.9,
GameText.6,
GameText.9,
GameText.6,
GameText.6,
GameText.6,
GameText.6,
GameText.6,
GameText.6,
"",
GameText.9,
GameText.6,
GameText.9
};
string[] sub = new string[15]
{
GameText.,
GameText.,
GameText.,
GameText.,
GameText.,
GameText.,
GameText.,
GameText.,
GameText.,
GameText.,
"",
"",
GameText.,
GameText.,
GameText.
};
Action<Tex> d = delegate
{
ip.SubInfo = GameText.;
ip.yAct = delegate
{
//Sounds.操作.Play();
.Tex.Done = delegate
{
//Sounds.精算.Play();
Sta.GameData. = 5000000000uL;
ip.UpdateSub2();
};
Viola._不敵0眉上();
.Text = GameText.;
ip.Text = GameText.6;
ip.SubInfo = GameText.;
if (i == 10)
{
i++;
wi = i;
}
if (wi == 10)
{
wi++;
}
ip. = false;
};
ip.nAct = delegate
{
//Sounds.操作.Play();
.Tex.Done = delegate
{
//Sounds.精算.Play();
Sta.GameData. = 5000000000uL;
ip.UpdateSub2();
};
Viola._素1();
.Text = GameText. + "\r\n" + GameText.;
ip.Text = GameText.6;
ip.SubInfo = GameText.;
if (i == 10)
{
i++;
wi = i;
}
if (wi == 10)
{
wi++;
}
ip. = false;
};
ip. = true;
};
mod.Down = delegate(MouseButtons mb, Vector2D cp, Color hc)
{
ip.DownB(ref hc);
if (!.Tex.IsPlaying && !ip.Mai.IsPlaying && !ip.Sub.IsPlaying)
{
if (wi == i && i != 10 && .Tex.Done == null)
{
i++;
wi = i;
if (i < tsp.Length)
{
if (i == 10)
{
.Tex.Done = d;
}
else
{
.Tex.Done = null;
}
if (i != 11)
{
sfc[i]();
.Text = tsc[i];
ip.Text = tsp[i];
ip.SubInfo = sub[i];
}
}
else
{
Med.SwitchMode("説明", DrawBuffer, );
}
}
else if (wi == 12 && i == 11)
{
i += 2;
wi = i;
sfc[i]();
.Text = tsc[i];
ip.Text = tsp[i];
ip.SubInfo = sub[i];
}
}
};
mod.Up = delegate(MouseButtons mb, Vector2D cp, Color hc)
{
ip.Up(ref hc);
};
mod.Move = delegate(MouseButtons mb, Vector2D cp, Color hc)
{
ip.Move(ref hc);
};
mod.Leave = delegate
{
};
mod.Wheel = delegate
{
};
mod.Setting = delegate
{
ip.Mai.Feed.Dra = false;
//Sounds.日常BGM.Play();
Sta.GameData. = new Unit();
Sta.GameData..SetViola(Med, DrawBuffer);
Viola = new Cha(Med, DrawBuffer, Sta.GameData..ChaD);
Viola.Set衣装(Sta.GameData..);
.(Viola.Bod.._接続点);
i = 0;
wi = 0;
sfc[i]();
.Text = tsc[i];
ip.Text = tsp[i];
ip.SubInfo = sub[i];
Viola._見つめ();
Viola.Set基本姿勢();
};
DrawOP1 = delegate(Are a, FPS FPS)
{
a.Draw(OfficeBackground);
Viola.Draw(a, FPS);
.Draw(a, FPS);
dbs.Draw(a);
ip.Draw(a, FPS);
Med.Draw(a);
};
mod.Draw = delegate(FPS FPS)
{
SwitchMode(Med, DrawBuffer, FPS, DrawOP1);
};
mod.Dispose = delegate
{
};
return mod;
}
public static Module (Med Med)
{
Module mod = new Module();
int i = 0;
int wi = 0;
Action[] sfc = new Action[11]
{
delegate
{
Viola._基本0();
},
delegate
{
Viola._基本1();
},
delegate
{
Viola._不敵1();
},
delegate
{
Viola._基本0();
},
delegate
{
Viola._基本1();
},
delegate
{
Viola._不敵0眉上();
},
delegate
{
Viola._基本1眉上();
},
delegate
{
Viola._不敵0眉上();
},
delegate
{
Viola._基本1();
},
delegate
{
Viola._不敵1眉上();
},
delegate
{
Viola._不敵0眉上();
}
};
string[] tsc = new string[11]
{
GameText.3,
GameText.,
GameText.調,
GameText.,
GameText.,
GameText.使,
GameText.,
GameText. + " \r\n" + GameText.,
GameText.,
GameText.,
GameText.
};
string[] tsp = new string[11]
{
GameText.6,
GameText.3,
GameText.6,
GameText.6,
GameText.6,
GameText.6,
GameText.6,
GameText.6,
GameText.6,
GameText.6,
GameText.6
};
string[] sub = new string[11]
{
GameText.,
GameText.,
GameText.,
GameText.,
GameText.,
GameText.,
GameText.,
GameText.,
GameText.,
GameText.,
GameText.
};
mod.Down = delegate(MouseButtons mb, Vector2D cp, Color hc)
{
ip.DownB(ref hc);
if (!.Tex.IsPlaying && !ip.Mai.IsPlaying && !ip.Sub.IsPlaying && wi == i)
{
i++;
wi = i;
if (i < tsp.Length)
{
sfc[i]();
.Text = tsc[i];
ip.Text = tsp[i];
ip.SubInfo = sub[i];
}
else
{
Med.SwitchMode("メインフォーム", DrawBuffer, );
}
}
};
mod.Up = delegate(MouseButtons mb, Vector2D cp, Color hc)
{
ip.Up(ref hc);
};
mod.Move = delegate(MouseButtons mb, Vector2D cp, Color hc)
{
ip.Move(ref hc);
};
mod.Leave = delegate
{
};
mod.Wheel = delegate
{
};
mod.Setting = delegate
{
Viola._見つめ();
Viola._基本1();
Viola.Set基本姿勢();
i = 0;
wi = 0;
sfc[i]();
.Text = tsc[i];
ip.Text = tsp[i];
ip.SubInfo = sub[i];
};
= delegate(Are a, FPS FPS)
{
if (a.GH != null)
{
a.GH.Clear(Col.Transparent);
}
a.Draw(BasementBackground);
Viola.Draw(a, FPS);
.Draw(a, FPS);
dbs.Draw(a);
ip.Draw(a, FPS);
Med.Draw(a);
};
mod.Draw = delegate(FPS FPS)
{
SwitchMode(Med, DrawBuffer, FPS, );
};
mod.Dispose = delegate
{
};
return mod;
}
public static Module (Med Med)
{
Module mod = new Module();
int i = 0;
int wi = 0;
Action[] sfc = new Action[11]
{
delegate
{
Viola._基本0();
},
delegate
{
Viola._不敵1();
},
delegate
{
},
delegate
{
Viola._不敵1眉上();
},
delegate
{
Viola._基本1();
},
delegate
{
Viola._不敵1眉上();
},
delegate
{
Viola._基本0();
},
delegate
{
},
delegate
{
Viola._不敵0眉上();
},
delegate
{
Viola._基本0();
},
delegate
{
Viola._不敵0();
}
};
string[] tsc = new string[11]
{
GameText.6,
GameText.,
"",
GameText.,
GameText.,
GameText.1 + Sta.GameData. * 100.0 + GameText. + " \r\n" + GameText.,
GameText.調使,
"",
GameText.6,
GameText.,
GameText.
};
string[] tsp = new string[11]
{
GameText.6,
GameText.3,
"",
GameText.6,
GameText.6,
GameText.6,
GameText.6,
"",
GameText.6,
GameText.6,
GameText.6
};
string[] sub = new string[11]
{
GameText.,
GameText.,
"",
GameText.,
GameText.,
GameText.,
GameText.,
"",
GameText.,
GameText.,
GameText.
};
Action<Tex> d1 = delegate
{
ip.Mai.Done = delegate
{
ip.yAct = delegate
{
//Sounds.操作.Play();
Viola._不敵0眉上();
.Text = GameText.;
ip.Text = GameText.6;
ip.SubInfo = GameText.;
if (i == 1)
{
i++;
wi = i;
}
if (wi == 1)
{
wi++;
}
ip. = false;
};
ip.nAct = delegate
{
//Sounds.操作.Play();
Viola._困り顔1();
.Text = GameText.;
ip.Text = GameText.6;
ip.SubInfo = GameText.;
if (i == 1)
{
i++;
wi = i;
}
if (wi == 1)
{
wi++;
}
ip. = false;
};
ip. = true;
};
ip.Text = GameText.;
};
Action<Tex> d2 = delegate
{
ip.Mai.Done = delegate
{
ip.yAct = delegate
{
//Sounds.操作.Play();
ip.Sub.Done = delegate
{
Viola.Bod._表示 = false;
Viola._全開(0);
Viola._S字(0);
Viola._S字(1);
Viola.SetSymmetry();
Viola.Bod.Update();
Viola._不敵1();
//Sounds.弾け.Play();
ip.Text = GameText.2;
ip.SubInfo = GameText.;
.Text = GameText.;
.Tex.Feed.Dra = true;
Sta.GameData. *= 2.0;
};
.Tex.Feed.Dra = false;
Viola.Bod._表示 = true;
Viola._閉じ(0);
Viola._S字(0);
Viola._S字(1);
Viola.SetSymmetry();
Viola.Bod.Update();
Viola._素0眉上();
//Sounds.変更1.Play();
.Text = GameText.3;
ip.Text = GameText.1;
ip.SubInfo = GameText. + " ";
if (i == 6)
{
i++;
wi = i;
}
if (wi == 6)
{
wi++;
}
ip. = false;
};
ip.nAct = delegate
{
//Sounds.操作.Play();
Viola._不敵0();
.Text = GameText.3 + "\r\n" + GameText.;
ip.Text = GameText.6;
ip.SubInfo = GameText.;
if (i == 6)
{
i++;
wi = i;
}
if (wi == 6)
{
wi++;
}
ip. = false;
};
ip. = true;
};
ip.Text = GameText.;
};
mod.Down = delegate(MouseButtons mb, Vector2D cp, Color hc)
{
ip.DownB(ref hc);
if (!.Tex.IsPlaying && !ip.Mai.IsPlaying && !ip.Sub.IsPlaying)
{
if (wi == i && i != 1 && i != 6 && .Tex.Done == null)
{
i++;
wi = i;
if (i < tsp.Length)
{
if (i == 8)
{
Viola._半開き(0);
Viola.Bod.Update();
}
if (i == 1)
{
.Tex.Done = d1;
}
else if (i == 6)
{
.Tex.Done = d2;
}
else
{
.Tex.Done = null;
}
if (i != 2 && i != 7)
{
sfc[i]();
.Text = tsc[i];
ip.Text = tsp[i];
ip.SubInfo = sub[i];
}
}
else
{
Sta.GameData. = false;
Med.SwitchMode("Office", DrawBuffer, DrawOffice);
}
}
else if ((wi == 3 && i == 2) || (wi == 8 && i == 7))
{
i += 2;
wi = i;
sfc[i]();
.Text = tsc[i];
ip.Text = tsp[i];
ip.SubInfo = sub[i];
}
}
};
mod.Up = delegate(MouseButtons mb, Vector2D cp, Color hc)
{
ip.Up(ref hc);
};
mod.Move = delegate(MouseButtons mb, Vector2D cp, Color hc)
{
ip.Move(ref hc);
};
mod.Leave = delegate
{
};
mod.Wheel = delegate
{
};
mod.Setting = delegate
{
ip.UpdateSub2();
ip.MaiShow = true;
ip.Mai.Feed.Dra = false;
ip.Mai2Show = false;
ip.SubShow = true;
ip.Sub2Show = true;
.Tex.Feed.Dra = true;
Viola._見つめ();
Viola._基本0();
Viola.Set基本姿勢();
i = 0;
wi = 0;
sfc[i]();
.Text = tsc[i];
ip.Text = tsp[i];
ip.SubInfo = sub[i];
};
= delegate(Are a, FPS FPS)
{
if (a.GH != null)
{
a.GH.Clear(Col.Transparent);
}
a.Draw(OfficeBackground);
Viola.Draw(a, FPS);
.Draw(a, FPS);
dbs.Draw(a);
ip.Draw(a, FPS);
Med.Draw(a);
};
mod.Draw = delegate(FPS FPS)
{
SwitchMode(Med, DrawBuffer, FPS, );
};
mod.Dispose = delegate
{
};
return mod;
}
public static Module RepaymentEvent1(Med Med)
{
Module mod = new Module();
int i = 0;
int wi = 0;
Action[] sfc = new Action[3]
{
delegate
{
Viola._不敵0();
},
delegate
{
Viola._基本1();
},
delegate
{
Viola._不敵1();
}
};
string[] tsc = new string[3]
{
GameText.,
GameText.,
GameText.調
};
string[] tsp = new string[3]
{
GameText.3,
GameText.6,
GameText.6
};
string[] sub = new string[3]
{
GameText.,
GameText.,
GameText.
};
mod.Down = delegate(MouseButtons mb, Vector2D cp, Color hc)
{
ip.DownB(ref hc);
if (!.Tex.IsPlaying && !ip.Mai.IsPlaying && !ip.Sub.IsPlaying && wi == i)
{
i++;
wi = i;
if (i < tsp.Length)
{
sfc[i]();
.Text = tsc[i];
ip.Text = tsp[i];
ip.SubInfo = sub[i];
}
else
{
Med.SwitchMode("Office", DrawBuffer, DrawOffice);
}
}
};
mod.Up = delegate(MouseButtons mb, Vector2D cp, Color hc)
{
ip.Up(ref hc);
};
mod.Move = delegate(MouseButtons mb, Vector2D cp, Color hc)
{
ip.Move(ref hc);
};
mod.Leave = delegate
{
};
mod.Wheel = delegate
{
};
mod.Setting = delegate
{
ip.UpdateSub2();
ip.MaiShow = true;
ip.Mai.Feed.Dra = false;
ip.Mai2Show = false;
ip.SubShow = true;
ip.Sub2Show = true;
.Tex.Feed.Dra = true;
Viola._見つめ();
Viola._基本0();
Viola.Set基本姿勢();
i = 0;
wi = 0;
sfc[i]();
.Text = tsc[i];
ip.Text = tsp[i];
ip.SubInfo = sub[i];
};
= delegate(Are a, FPS FPS)
{
if (a.GH != null)
{
a.GH.Clear(Col.Transparent);
}
a.Draw(OfficeBackground);
Viola.Draw(a, FPS);
.Draw(a, FPS);
dbs.Draw(a);
ip.Draw(a, FPS);
Med.Draw(a);
};
mod.Draw = delegate(FPS FPS)
{
SwitchMode(Med, DrawBuffer, FPS, );
};
mod.Dispose = delegate
{
};
return mod;
}
public static Module RepaymentEvent2(Med Med)
{
Module mod = new Module();
int i = 0;
int wi = 0;
Action[] sfc = new Action[3]
{
delegate
{
Viola._不敵1();
},
delegate
{
Viola._不敵0眉上();
},
delegate
{
Viola._基本0();
}
};
string[] tsc = new string[3]
{
GameText. + "\r\n" + GameText.調,
GameText.,
GameText.
};
string[] tsp = new string[3]
{
GameText.3,
GameText.6,
GameText.3
};
string[] sub = new string[3]
{
GameText.,
GameText.,
GameText.
};
mod.Down = delegate(MouseButtons mb, Vector2D cp, Color hc)
{
ip.DownB(ref hc);
if (!.Tex.IsPlaying && !ip.Mai.IsPlaying && !ip.Sub.IsPlaying && wi == i)
{
i++;
wi = i;
if (i < tsp.Length)
{
sfc[i]();
.Text = tsc[i];
ip.Text = tsp[i];
ip.SubInfo = sub[i];
}
else
{
Med.SwitchMode("Office", DrawBuffer, DrawOffice);
}
}
};
mod.Up = delegate(MouseButtons mb, Vector2D cp, Color hc)
{
ip.Up(ref hc);
};
mod.Move = delegate(MouseButtons mb, Vector2D cp, Color hc)
{
ip.Move(ref hc);
};
mod.Leave = delegate
{
};
mod.Wheel = delegate
{
};
mod.Setting = delegate
{
ip.UpdateSub2();
ip.MaiShow = true;
ip.Mai.Feed.Dra = false;
ip.Mai2Show = false;
ip.SubShow = true;
ip.Sub2Show = true;
.Tex.Feed.Dra = true;
Viola._見つめ();
Viola._基本0();
Viola.Set基本姿勢();
i = 0;
wi = 0;
sfc[i]();
.Text = tsc[i];
ip.Text = tsp[i];
ip.SubInfo = sub[i];
};
mod.Draw = delegate(FPS FPS)
{
SwitchMode(Med, DrawBuffer, FPS, );
};
mod.Dispose = delegate
{
};
return mod;
}
public static Module RepaymentEvent3(Med Med)
{
Module mod = new Module();
bool yes = false;
int i = 0;
int wi = 0;
Action[] sfc = new Action[4]
{
delegate
{
Viola._不敵1眉上();
},
delegate
{
Viola._不敵0();
},
delegate
{
Viola._基本0();
},
delegate
{
}
};
Action[] sfcy = new Action[5]
{
delegate
{
Viola._素0();
},
delegate
{
Viola._不敵1眉上();
},
delegate
{
Viola._困り顔0();
},
delegate
{
Viola._困り顔1();
},
delegate
{
Viola._不敵0眉上();
}
};
Action[] sfcn = new Action[5]
{
delegate
{
Viola._不敵1();
},
delegate
{
Viola._不敵0眉上();
},
delegate
{
Viola._基本0();
},
delegate
{
Viola._不敵1();
},
delegate
{
Viola._不敵0();
}
};
string[] tsc = new string[4]
{
GameText. + "\r\n" + GameText.,
GameText.,
GameText.,
""
};
string[] tscy = new string[5]
{
GameText.6,
GameText.,
GameText.,
GameText.6,
GameText. + "\r\n" + GameText.調
};
string[] tscn = new string[5]
{
GameText.,
GameText. + 5000000000uL.ToString("#,0") + GameText.,
GameText.3,
GameText.6,
GameText. + "\r\n" + GameText.調
};
string[] tsp = new string[9]
{
GameText.3,
GameText.6,
GameText.6,
"",
GameText.6,
GameText.6,
GameText.6,
GameText.6,
GameText.6
};
string[] sub = new string[4]
{
GameText.,
GameText.,
GameText.,
""
};
string[] suby = new string[5]
{
GameText.,
GameText.,
GameText.,
GameText.,
GameText.
};
string[] subn = new string[5]
{
GameText.,
GameText.,
GameText.,
GameText.,
GameText.
};
Action<Tex> d1 = delegate
{
ip.Mai.Done = delegate
{
ip.yAct = delegate
{
yes = true;
//Sounds.操作.Play();
Viola._基本1眉上();
.Text = GameText.;
ip.Text = GameText.6;
ip.SubInfo = GameText.;
if (i == 2)
{
i++;
wi = i;
}
if (wi == 2)
{
wi++;
}
ip. = false;
};
ip.nAct = delegate
{
yes = false;
//Sounds.操作.Play();
Viola._不敵0();
.Text = GameText.;
ip.Text = GameText.6;
ip.SubInfo = GameText.;
if (i == 2)
{
i++;
wi = i;
}
if (wi == 2)
{
wi++;
}
ip. = false;
};
ip. = true;
};
ip.Text = GameText.;
};
mod.Down = delegate(MouseButtons mb, Vector2D cp, Color hc)
{
ip.DownB(ref hc);
if (!.Tex.IsPlaying && !ip.Mai.IsPlaying && !ip.Sub.IsPlaying)
{
if (wi == i && i != 2 && .Tex.Done == null)
{
i++;
wi = i;
if (i < tsp.Length)
{
if (i == 2)
{
.Tex.Done = d1;
}
else
{
.Tex.Done = null;
}
if (i != 3)
{
if (i < 4)
{
sfc[i]();
.Text = tsc[i];
ip.SubInfo = sub[i];
}
else if (yes)
{
sfcy[i - 4]();
.Text = tscy[i - 4];
ip.SubInfo = suby[i - 4];
}
else
{
sfcn[i - 4]();
.Text = tscn[i - 4];
ip.SubInfo = subn[i - 4];
}
ip.Text = tsp[i];
}
}
else
{
Sta.GameData. = false;
Med.SwitchMode("Office", DrawBuffer, DrawOffice);
}
}
else if (wi == 4 && i == 3)
{
i += 2;
wi = i;
if (i < 4)
{
sfc[i]();
.Text = tsc[i];
ip.SubInfo = sub[i];
}
else if (yes)
{
sfcy[i - 4]();
.Text = tscy[i - 4];
ip.SubInfo = suby[i - 4];
}
else
{
sfcn[i - 4]();
.Text = tscn[i - 4];
ip.SubInfo = subn[i - 4];
}
ip.Text = tsp[i];
}
}
};
mod.Up = delegate(MouseButtons mb, Vector2D cp, Color hc)
{
ip.Up(ref hc);
};
mod.Move = delegate(MouseButtons mb, Vector2D cp, Color hc)
{
ip.Move(ref hc);
};
mod.Leave = delegate
{
};
mod.Wheel = delegate
{
};
mod.Setting = delegate
{
ip.UpdateSub2();
ip.MaiShow = true;
ip.Mai.Feed.Dra = false;
ip.Mai2Show = false;
ip.SubShow = true;
ip.Sub2Show = true;
.Tex.Feed.Dra = true;
Viola._見つめ();
Viola._基本0();
Viola.Set基本姿勢();
i = 0;
wi = 0;
sfc[i]();
.Text = tsc[i];
ip.Text = tsp[i];
ip.SubInfo = sub[i];
};
mod.Draw = delegate(FPS FPS)
{
SwitchMode(Med, DrawBuffer, FPS, );
};
mod.Dispose = delegate
{
};
return mod;
}
public static Module ViolaBlessing(Med Med)
{
Module mod = new Module();
int i = 0;
int wi = 0;
Action[] sfc = new Action[4]
{
delegate
{
Viola._基本0();
},
delegate
{
Viola._不敵1眉上();
},
delegate
{
Viola._不敵0();
},
delegate
{
//Sounds.祝福.Play();
Viola._不敵0眉上();
}
};
string[] tsc = new string[4]
{
GameText.,
GameText. + "\r\n" + GameText.,
GameText.,
GameText.
};
string[] tsp = new string[4]
{
GameText.3,
GameText.6,
GameText.1,
GameText.3
};
string[] sub = new string[4]
{
GameText.,
GameText.,
GameText.,
GameText.
};
mod.Down = delegate(MouseButtons mb, Vector2D cp, Color hc)
{
ip.DownB(ref hc);
if (!.Tex.IsPlaying && !ip.Mai.IsPlaying && !ip.Sub.IsPlaying && wi == i)
{
i++;
wi = i;
if (i < tsp.Length)
{
sfc[i]();
.Text = tsc[i];
ip.Text = tsp[i];
ip.SubInfo = sub[i];
}
else
{
Med.SwitchMode("Office", DrawBuffer, DrawOffice);
}
}
};
mod.Up = delegate(MouseButtons mb, Vector2D cp, Color hc)
{
ip.Up(ref hc);
};
mod.Move = delegate(MouseButtons mb, Vector2D cp, Color hc)
{
ip.Move(ref hc);
};
mod.Leave = delegate
{
};
mod.Wheel = delegate
{
};
mod.Setting = delegate
{
ip.UpdateSub2();
ip.MaiShow = true;
ip.Mai.Feed.Dra = false;
ip.Mai2Show = false;
ip.SubShow = true;
ip.Sub2Show = true;
.Tex.Feed.Dra = true;
Viola._見つめ();
Viola._基本0();
Viola.Set基本姿勢();
i = 0;
wi = 0;
sfc[i]();
.Text = tsc[i];
ip.Text = tsp[i];
ip.SubInfo = sub[i];
Sta.GameData. = Sta.GameData.;
};
mod.Draw = delegate(FPS FPS)
{
SwitchMode(Med, DrawBuffer, FPS, );
};
mod.Dispose = delegate
{
};
return mod;
}
static Mods()
{
TrainingTarget = null;
mv = new MotV(0.0, 1.0)
{
BaseSpeed = 2.0
};
sta = false;
v = 0.0;
= 1666666666uL;
DemandMax = 8.0;
SDShow = false;
save = false;
title = false;
processing = false;
a = new string[MaxRoomNumber];
= 0uL;
= 0uL;
= 0uL;
dayp = false;
cts = new CancellationTokenSource();
start = false;
}
public static void SensesButton()
{
double x = 0.6;
double y = 0.9075;
if (Program.biggerWindow)
{
x = 0.695;
y = 0.932;
}
ParT parT = new ParT();
parT.Font = new Font("MS Gothic", 0.1f);
parT.PositionBase = DrawBuffer.GetPosition(x, y);
parT.Text = "Senses";
parT.FontSize = 0.14;
parT.SizeBase = 0.05;
parT.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT.OP.ScalingXY(parT.OP.GetCenter(), 0.87, 0.23);
parT.Closed = true;
parT.TextColor = Col.White;
parT.BrushColor = Color.FromArgb(160, Col.Black);
parT.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT.StringFormat.Alignment = StringAlignment.Center;
parT.StringFormat.LineAlignment = StringAlignment.Center;
dbs.Add("Senses", new But1(parT, delegate
{
//Sounds.操作.Play();
Sta.ShowSenses = !Sta.ShowSenses;
}));
}
public static void ToJsonButton(Med med)
{
double x = 0.6;
double y = 0.9075;
if (Program.biggerWindow)
{
x = 0.695;
y = 0.932;
if (Sta.SensesButton)
{
x = 0.62;
}
}
if (!Program.biggerWindow && Sta.SensesButton)
{
x = 0.5;
}
ParT parT = new ParT();
parT.Font = new Font("MS Gothic", 0.1f);
parT.PositionBase = DrawBuffer.GetPosition(x, y);
parT.Text = "SaveJSON";
parT.FontSize = 0.14;
parT.SizeBase = 0.05;
parT.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT.OP.ScalingXY(parT.OP.GetCenter(), 0.87, 0.23);
parT.Closed = true;
parT.TextColor = Col.White;
parT.BrushColor = Color.FromArgb(160, Col.Black);
parT.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT.StringFormat.Alignment = StringAlignment.Center;
parT.StringFormat.LineAlignment = StringAlignment.Center;
dbs.Add("SaveJSON", new But1(parT, delegate
{
//Sounds.操作.Play();
SaveData.bs["0"].Dra = false;
save = true;
SetJSLlv(med);
Color HitColor = Col.Empty;
SaveData.Move(ref HitColor);
SDShow = true;
ip.SubInfoIm = "RCl:" + GameText.;
}));
}
public static void UnJsonButton(Med med)
{
double y = 0.9075;
double x = 0.5;
if (Program.biggerWindow)
{
x = 0.62;
y = 0.932;
if (Sta.SensesButton)
{
x = 0.545;
}
}
if (!Program.biggerWindow && Sta.SensesButton)
{
x = 0.4;
}
ParT parT = new ParT();
parT.Font = new Font("MS Gothic", 0.1f);
parT.PositionBase = DrawBuffer.GetPosition(x, y);
parT.Text = "LoadJSON";
parT.FontSize = 0.14;
parT.SizeBase = 0.05;
parT.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT.OP.ScalingXY(parT.OP.GetCenter(), 0.87, 0.23);
parT.Closed = true;
parT.TextColor = Col.White;
parT.BrushColor = Color.FromArgb(160, Col.Black);
parT.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT.StringFormat.Alignment = StringAlignment.Center;
parT.StringFormat.LineAlignment = StringAlignment.Center;
dbs.Add("LoadJSON", new But1(parT, delegate
{
//Sounds.操作.Play();
SaveData.bs["0"].Dra = true;
save = false;
title = false;
SetJSLlv(med);
Color HitColor = Col.Empty;
SaveData.Move(ref HitColor);
SDShow = true;
ip.SubInfoIm = "RCl:" + GameText.;
}));
}
public static void NewButtons(Med med)
{
if (Sta.SensesButton)
{
SensesButton();
}
if (Sta.JsonButton)
{
ToJsonButton(med);
UnJsonButton(med);
}
}
public static void SetJSLlv(Med med)
{
SaveData.Acts = jsllv(med);
}
private static IEnumerable<TA> jsllv(Med med)
{
int k = 0;
string[] array = Sta.JSDPaths();
foreach (string text in array)
{
string path = text;
int i = k;
bool f = path == null;
yield return new TA(f ? (i + ": No data") : Path.GetFileNameWithoutExtension(path).Replace("", ":").Replace("_", "/"), delegate
{
if (!processing)
{
//Sounds.操作.Play();
if (save)
{
processing = true;
JsonSave(path, i, med);
}
else if (!f)
{
processing = true;
JsonLoad(path, i, med);
}
}
});
k++;
}
}
private static void JsonSave(string Path, int i, Med med)
{
ip.SubInfoIm = GameText. + "\r\n" + GameText.;
if (Path != null)
{
System.IO.File.Delete(Path);
}
Sta.GDSaveJson(i);
SetJSLlv(med);
SDShow = false;
ip.SubInfoIm = i + ": " + Sta.GameData.GetSaveDateString() + "\r\n" + GameText.;
processing = false;
//Sounds.完了.Play();
}
private static void JsonLoad(string Path, int i, Med med)
{
cts.Cancel();
ip.SubInfoIm = GameText. + "\r\n" + GameText.;
Sta.DontScar = true;
if (Sta.TranslateJson)
{
string text = Sta.CurrentDirectory + "temp.json";
string contents = Sta.Translate(Path, 1);
File.WriteAllText(text, contents);
Sta.GameData = Ser.UnJson<GameState>(text);
System.IO.File.Delete(text);
}
else
{
Sta.GameData = Ser.UnJson<GameState>(Path);
}
Sta.DontScar = false;
Cha d = Viola;
Viola = new Cha(med, DrawBuffer, Sta.GameData..ChaD);
Viola.Set衣装(Sta.GameData..);
.(Viola.Bod.._接続点);
med.InvokeL(delegate
{
Initialize();
if (d != null)
{
d.Dispose();
}
if (TrainingTarget != null)
{
TrainingTarget.Dispose();
TrainingTarget = null;
}
SDShow = false;
if (title)
{
med.SwitchMode("メインフォーム", DrawBuffer, );
}
else
{
med.Mode = "メインフォーム";
ip.SubInfoIm = i + ": " + Sta.GameData.GetSaveDateString() + "\r\n" + GameText.;
}
processing = false;
SetDemandMaximum();
if (Sta.GameData.Slaves.Length < MaxRoomNumber)
{
Unit[] array = new Unit[MaxRoomNumber];
Array.Copy(Sta.GameData.Slaves, array, Sta.GameData.Slaves.Length);
Sta.GameData.Slaves = array;
}
Sta.GameData.Gen = new Generator[9];
Sta.GameData.GenInstance();
//Sounds.完了.Play();
});
}
public static void MoveRoomDown()
{
if (Sta.GameData.TrainingTarget != null)
{
int num = int.Parse(Sta.GameData.TrainingTarget.Number) - 1;
if (Sta.GameData.Slaves[num + 1] != null)
{
Unit unit = Sta.GameData.Slaves[num];
Unit unit2 = Sta.GameData.Slaves[num + 1];
int[] array = new int[3]
{
int.Parse(unit.Number),
unit.,
unit.RoomNumber
};
unit.Number = unit2.Number;
unit. = unit2.;
unit.RoomNumber = unit2.RoomNumber;
unit2.Number = array[0].ToString().PadLeft(3, '0');
unit2. = array[1];
unit2.RoomNumber = array[2];
Sta.GameData.Slaves[num] = unit2;
Sta.GameData.Slaves[num + 1] = unit;
Sta.GameData.TrainingTarget = Sta.GameData.Slaves[num + 1];
}
}
}
public static void MoveRoomUp()
{
if (Sta.GameData.TrainingTarget != null)
{
int num = int.Parse(Sta.GameData.TrainingTarget.Number) - 1;
if (num != 0 && Sta.GameData.Slaves[num - 1] != null)
{
Unit unit = Sta.GameData.Slaves[num];
Unit unit2 = Sta.GameData.Slaves[num - 1];
int[] array = new int[3]
{
int.Parse(unit.Number),
unit.,
unit.RoomNumber
};
unit.Number = unit2.Number;
unit. = unit2.;
unit.RoomNumber = unit2.RoomNumber;
unit2.Number = array[0].ToString().PadLeft(3, '0');
unit2. = array[1];
unit2.RoomNumber = array[2];
Sta.GameData.Slaves[num] = unit2;
Sta.GameData.Slaves[num - 1] = unit;
Sta.GameData.TrainingTarget = Sta.GameData.Slaves[num - 1];
}
}
}
public static void MoveFloorDown()
{
if (Sta.GameData.TrainingTarget == null)
{
return;
}
for (int i = 0; i < 15; i++)
{
int num = int.Parse(Sta.GameData.TrainingTarget.Number) - 1;
if (Sta.GameData.Slaves[num + 1] == null)
{
break;
}
Unit unit = Sta.GameData.Slaves[num];
Unit unit2 = Sta.GameData.Slaves[num + 1];
int[] array = new int[3]
{
int.Parse(unit.Number),
unit.,
unit.RoomNumber
};
unit.Number = unit2.Number;
unit. = unit2.;
unit.RoomNumber = unit2.RoomNumber;
unit2.Number = array[0].ToString().PadLeft(3, '0');
unit2. = array[1];
unit2.RoomNumber = array[2];
Sta.GameData.Slaves[num] = unit2;
Sta.GameData.Slaves[num + 1] = unit;
Sta.GameData.TrainingTarget = Sta.GameData.Slaves[num + 1];
}
}
public static void MoveFloorUp()
{
if (Sta.GameData.TrainingTarget == null)
{
return;
}
for (int i = 0; i < 15; i++)
{
int num = int.Parse(Sta.GameData.TrainingTarget.Number) - 1;
if (num == 0 || Sta.GameData.Slaves[num - 1] == null)
{
break;
}
Unit unit = Sta.GameData.Slaves[num];
Unit unit2 = Sta.GameData.Slaves[num - 1];
int[] array = new int[3]
{
int.Parse(unit.Number),
unit.,
unit.RoomNumber
};
unit.Number = unit2.Number;
unit. = unit2.;
unit.RoomNumber = unit2.RoomNumber;
unit2.Number = array[0].ToString().PadLeft(3, '0');
unit2. = array[1];
unit2.RoomNumber = array[2];
Sta.GameData.Slaves[num] = unit2;
Sta.GameData.Slaves[num - 1] = unit;
Sta.GameData.TrainingTarget = Sta.GameData.Slaves[num - 1];
}
}
public static But MoveRoomDownButton(Module mod)
{
double x = 0.195;
double y = 0.1625;
if (Program.biggerWindow)
{
x = 0.146;
y = 0.14;
}
ParT parT = new ParT();
parT.Font = new Font("MS Gothic", 0.1f);
parT.PositionBase = DrawBuffer.GetPosition(x, y);
parT.Text = "Room ▼";
parT.FontSize = 0.14;
parT.SizeBase = 0.05;
parT.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT.OP.ScalingXY(parT.OP.GetCenter(), 0.87, 0.23);
parT.Closed = true;
parT.TextColor = Col.White;
parT.BrushColor = Color.FromArgb(160, Col.Black);
parT.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT.StringFormat.Alignment = StringAlignment.Center;
parT.StringFormat.LineAlignment = StringAlignment.Center;
return new But1(parT, delegate
{
//Sounds.操作.Play();
MoveRoomDown();
mod.Setting();
if (Sta.AlwaysUseName)
{
npl.Text = GameText. + Sta.GameData.TrainingTarget.Number + "\r\n" + Sta.GameData.TrainingTarget.Name;
}
else
{
npl.Text = GameText. + Sta.GameData.TrainingTarget.Number + (Sta.GameData.TrainingTarget.Trained ? ("\r\n" + Sta.GameData.TrainingTarget.Name) : ("\r\n" + Sta.GameData.TrainingTarget.Race));
}
});
}
public static But MoveRoomUpButton(Module mod)
{
double x = 0.195;
double y = 0.12;
if (Program.biggerWindow)
{
x = 0.146;
y = 0.11;
}
ParT parT = new ParT();
parT.Font = new Font("MS Gothic", 0.1f);
parT.PositionBase = DrawBuffer.GetPosition(x, y);
parT.Text = "Room ▲";
parT.FontSize = 0.14;
parT.SizeBase = 0.05;
parT.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT.OP.ScalingXY(parT.OP.GetCenter(), 0.87, 0.23);
parT.Closed = true;
parT.TextColor = Col.White;
parT.BrushColor = Color.FromArgb(160, Col.Black);
parT.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT.StringFormat.Alignment = StringAlignment.Center;
parT.StringFormat.LineAlignment = StringAlignment.Center;
return new But1(parT, delegate
{
//Sounds.操作.Play();
MoveRoomUp();
mod.Setting();
if (Sta.AlwaysUseName)
{
npl.Text = GameText. + Sta.GameData.TrainingTarget.Number + "\r\n" + Sta.GameData.TrainingTarget.Name;
}
else
{
npl.Text = GameText. + Sta.GameData.TrainingTarget.Number + (Sta.GameData.TrainingTarget.Trained ? ("\r\n" + Sta.GameData.TrainingTarget.Name) : ("\r\n" + Sta.GameData.TrainingTarget.Race));
}
});
}
public static But MoveFloorDownButton(Module mod)
{
double x = 0.195;
double y = 0.2475;
if (Program.biggerWindow)
{
x = 0.146;
y = 0.2;
}
ParT parT = new ParT();
parT.Font = new Font("MS Gothic", 0.1f);
parT.PositionBase = DrawBuffer.GetPosition(x, y);
parT.Text = "Floor ▼";
parT.FontSize = 0.14;
parT.SizeBase = 0.05;
parT.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT.OP.ScalingXY(parT.OP.GetCenter(), 0.87, 0.23);
parT.Closed = true;
parT.TextColor = Col.White;
parT.BrushColor = Color.FromArgb(160, Col.Black);
parT.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT.StringFormat.Alignment = StringAlignment.Center;
parT.StringFormat.LineAlignment = StringAlignment.Center;
return new But1(parT, delegate
{
//Sounds.操作.Play();
MoveFloorDown();
mod.Setting();
if (Sta.AlwaysUseName)
{
npl.Text = GameText. + Sta.GameData.TrainingTarget.Number + "\r\n" + Sta.GameData.TrainingTarget.Name;
}
else
{
npl.Text = GameText. + Sta.GameData.TrainingTarget.Number + (Sta.GameData.TrainingTarget.Trained ? ("\r\n" + Sta.GameData.TrainingTarget.Name) : ("\r\n" + Sta.GameData.TrainingTarget.Race));
}
});
}
public static But MoveFloorUpButton(Module mod)
{
double x = 0.195;
double y = 0.205;
if (Program.biggerWindow)
{
x = 0.146;
y = 0.17;
}
ParT parT = new ParT();
parT.Font = new Font("MS Gothic", 0.1f);
parT.PositionBase = DrawBuffer.GetPosition(x, y);
parT.Text = "Floor ▲";
parT.FontSize = 0.14;
parT.SizeBase = 0.05;
parT.OP.AddRange(new Out[1] { Shas.Get正方形() });
parT.OP.ScalingXY(parT.OP.GetCenter(), 0.87, 0.23);
parT.Closed = true;
parT.TextColor = Col.White;
parT.BrushColor = Color.FromArgb(160, Col.Black);
parT.ShadBrush = new SolidBrush(Color.FromArgb(64, Col.Black));
parT.StringFormat.Alignment = StringAlignment.Center;
parT.StringFormat.LineAlignment = StringAlignment.Center;
return new But1(parT, delegate
{
//Sounds.操作.Play();
MoveFloorUp();
mod.Setting();
if (Sta.AlwaysUseName)
{
npl.Text = GameText. + Sta.GameData.TrainingTarget.Number + "\r\n" + Sta.GameData.TrainingTarget.Name;
}
else
{
npl.Text = GameText. + Sta.GameData.TrainingTarget.Number + (Sta.GameData.TrainingTarget.Trained ? ("\r\n" + Sta.GameData.TrainingTarget.Name) : ("\r\n" + Sta.GameData.TrainingTarget.Race));
}
});
}
public static void setName()
{
npl.Text = GameText. + Sta.GameData.TrainingTarget.Number + "\r\n" + Sta.GameData.TrainingTarget.Name;
}
}
}