private void DoSavePreset(int winId)
{
Rect baseRect = pv.InsideRect(this.winRect);
Rect headerRect = new Rect(baseRect.x, baseRect.y, baseRect.width, pv.Line("H3"));
Rect outRect = new Rect();
outRect.width = baseRect.width;
outRect.height = pv.Line("H1");
outRect.x = pv.Margin;
GUIStyle lStyle = "label";
GUIStyle bStyle = "button";
Color color = new Color(1f, 1f, 1f, 0.98f);
lStyle.normal.textColor = color;
lStyle.fontSize = pv.Font("H3");
bStyle.normal.textColor = color;
bStyle.fontSize = pv.Font("H1");
drawWinHeader(headerRect, "プリセットとして保存", lStyle);
outRect.y += headerRect.height + pv.Margin;
outRect.width = baseRect.width * 0.3f;
lStyle.fontSize = pv.Font("H1");
GUI.Label(outRect, "プリセット名", lStyle);
outRect.x += outRect.width;
outRect.width = baseRect.width * 0.7f;
lStyle.fontSize = pv.Font("H2");
presetName = GUI.TextField(outRect, presetName);
outRect.x = pv.Margin;
outRect.y += outRect.height + pv.Margin;
outRect.width = baseRect.width / 2 - pv.Margin;
if (GUI.Button(outRect, "保存", bStyle))
{
SavePreset(presetName);
}
outRect.x += outRect.width + pv.Margin;
if (GUI.Button(outRect, "閉じる", bStyle))
{
menuType = MenuType.Main;
}
GUI.DragWindow();
}