本文整理汇总了C#中Panel.Hide方法的典型用法代码示例。如果您正苦于以下问题:C# Panel.Hide方法的具体用法?C# Panel.Hide怎么用?C# Panel.Hide使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Panel
的用法示例。
在下文中一共展示了Panel.Hide方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SwitchToShowBackgroundOptions
public void SwitchToShowBackgroundOptions()
{
if (pnlShowBackgroundAction == null) {
pnlShowBackgroundAction = new Panel("pnlShowBackgroundAction");
pnlShowBackgroundAction.Size = new Size(300, 180);
pnlShowBackgroundAction.Location = new Point(0, 30);
pnlShowBackgroundAction.BackColor = Color.Transparent;
pnlShowBackgroundAction.Hide();
lbxShowBackgroundFiles = new ListBox("lbxShowBackgroundFiles");
lbxShowBackgroundFiles.Location = new Point(5, 5);
lbxShowBackgroundFiles.Size = new System.Drawing.Size(200, 100);
SdlDotNet.Graphics.Font font = Logic.Graphics.FontManager.LoadFont("tahoma", 10);
string[] imageFiles = System.IO.Directory.GetFiles(IO.Paths.StartupPath + "Story/Backgrounds/");
for (int i = 0; i < imageFiles.Length; i++) {
lbxShowBackgroundFiles.Items.Add(new ListBoxTextItem(font, System.IO.Path.GetFileName(imageFiles[i])));
}
pnlShowBackgroundAction.AddWidget(lbxShowImageFiles);
pnlEditorSegments.AddWidget(pnlShowBackgroundAction);
}
HideAllOptionPanels();
pnlShowBackgroundAction.Show();
}
示例2: SwitchToSayOptions
public void SwitchToSayOptions()
{
if (pnlSayAction == null) {
pnlSayAction = new Panel("pnlSayAction");
pnlSayAction.Size = new Size(300, 180);
pnlSayAction.Location = new Point(0, 30);
pnlSayAction.BackColor = Color.Transparent;
pnlSayAction.Hide();
lblSayText = new Label("lblSayText");
lblSayText.Location = new Point(5, 5);
lblSayText.Font = Logic.Graphics.FontManager.LoadFont("tahoma", 10);
lblSayText.AutoSize = true;
lblSayText.Text = "Text:";
txtSayText = new TextBox("txtSayText");
txtSayText.Location = new Point(75, 5);
txtSayText.Size = new System.Drawing.Size(200, 16);
lblSayMugshot = new Label("lblSayMugshot");
lblSayMugshot.Location = new Point(5, 25);
lblSayMugshot.Font = Logic.Graphics.FontManager.LoadFont("tahoma", 10);
lblSayMugshot.AutoSize = true;
lblSayMugshot.Text = "Mugshot:";
nudSayMugshot = new NumericUpDown("nudSayMugshot");
nudSayMugshot.Location = new Point(75, 25);
nudSayMugshot.Size = new System.Drawing.Size(100, 14);
nudSayMugshot.Maximum = Int32.MaxValue;
nudSayMugshot.Minimum = -1;
nudSayMugshot.ValueChanged += new EventHandler<ValueChangedEventArgs>(nudSayMugshot_ValueChanged);
pbxSayMugshot = new PictureBox("pbxSayMugshot");
pbxSayMugshot.Location = new Point(nudSayMugshot.X + nudSayMugshot.Width + 5, 25);
pbxSayMugshot.Size = new System.Drawing.Size(40, 40);
lblSaySpeed = new Label("lblSaySpeed");
lblSaySpeed.Location = new Point(5, 45);
lblSaySpeed.Font = Logic.Graphics.FontManager.LoadFont("tahoma", 10);
lblSaySpeed.AutoSize = true;
lblSaySpeed.Text = "Speed:";
nudSaySpeed = new NumericUpDown("nudSaySpeed");
nudSaySpeed.Location = new Point(75, 45);
nudSaySpeed.Size = new System.Drawing.Size(100, 14);
nudSaySpeed.Maximum = Int32.MaxValue;
lblSayPause = new Label("lblSayPause");
lblSayPause.Location = new Point(5, 65);
lblSayPause.Font = Logic.Graphics.FontManager.LoadFont("tahoma", 10);
lblSayPause.AutoSize = true;
lblSayPause.Text = "Pause:";
nudSayPause = new NumericUpDown("nudSayPause");
nudSayPause.Location = new Point(75, 65);
nudSayPause.Size = new System.Drawing.Size(100, 14);
nudSayPause.Maximum = Int32.MaxValue;
pnlSayAction.AddWidget(lblSayText);
pnlSayAction.AddWidget(txtSayText);
pnlSayAction.AddWidget(lblSayMugshot);
pnlSayAction.AddWidget(nudSayMugshot);
pnlSayAction.AddWidget(pbxSayMugshot);
pnlSayAction.AddWidget(lblSaySpeed);
pnlSayAction.AddWidget(nudSaySpeed);
pnlSayAction.AddWidget(lblSayPause);
pnlSayAction.AddWidget(nudSayPause);
pnlEditorSegments.AddWidget(pnlSayAction);
}
txtSayText.Text = "";
HideAllOptionPanels();
pnlSayAction.Show();
}
示例3: SwitchToScrollCameraOptions
public void SwitchToScrollCameraOptions()
{
if (pnlScrollCameraAction == null) {
pnlScrollCameraAction = new Panel("pnlScrollCameraAction");
pnlScrollCameraAction.Size = new Size(300, 180);
pnlScrollCameraAction.Location = new Point(0, 30);
pnlScrollCameraAction.BackColor = Color.Transparent;
pnlScrollCameraAction.Hide();
lblScrollCameraX = new Label("lblScrollCameraX");
lblScrollCameraX.Location = new Point(5, 5);
lblScrollCameraX.Font = Logic.Graphics.FontManager.LoadFont("tahoma", 10);
lblScrollCameraX.AutoSize = true;
lblScrollCameraX.Text = "X:";
nudScrollCameraX = new NumericUpDown("nudScrollCameraX");
nudScrollCameraX.Location = new Point(75, 5);
nudScrollCameraX.Size = new System.Drawing.Size(100, 14);
nudScrollCameraX.Maximum = 50;
lblScrollCameraY = new Label("lblScrollCameraY");
lblScrollCameraY.Location = new Point(5, 25);
lblScrollCameraY.Font = Logic.Graphics.FontManager.LoadFont("tahoma", 10);
lblScrollCameraY.AutoSize = true;
lblScrollCameraY.Text = "Y:";
nudScrollCameraY = new NumericUpDown("nudScrollCameraY");
nudScrollCameraY.Location = new Point(75, 25);
nudScrollCameraY.Size = new System.Drawing.Size(100, 14);
nudScrollCameraY.Maximum = 50;
lblScrollCameraSpeed = new Label("lblScrollCameraSpeed");
lblScrollCameraSpeed.Location = new Point(5, 45);
lblScrollCameraSpeed.Font = Logic.Graphics.FontManager.LoadFont("tahoma", 10);
lblScrollCameraSpeed.AutoSize = true;
lblScrollCameraSpeed.Text = "Speed:";
nudScrollCameraSpeed = new NumericUpDown("nudScrollCameraSpeed");
nudScrollCameraSpeed.Location = new Point(75, 45);
nudScrollCameraSpeed.Size = new System.Drawing.Size(100, 14);
nudScrollCameraSpeed.Maximum = Int32.MaxValue;
chkScrollCameraPause = new CheckBox("chkScrollCameraPause");
chkScrollCameraPause.Location = new Point(5, 65);
chkScrollCameraPause.Size = new System.Drawing.Size(100, 14);
chkScrollCameraPause.Font = Logic.Graphics.FontManager.LoadFont("tahoma", 10);
chkScrollCameraPause.BackColor = Color.Transparent;
chkScrollCameraPause.Text = "Pause until complete";
pnlScrollCameraAction.AddWidget(lblScrollCameraX);
pnlScrollCameraAction.AddWidget(nudScrollCameraX);
pnlScrollCameraAction.AddWidget(lblScrollCameraY);
pnlScrollCameraAction.AddWidget(nudScrollCameraY);
pnlScrollCameraAction.AddWidget(lblScrollCameraSpeed);
pnlScrollCameraAction.AddWidget(nudScrollCameraSpeed);
pnlScrollCameraAction.AddWidget(chkScrollCameraPause);
pnlEditorSegments.AddWidget(pnlScrollCameraAction);
}
HideAllOptionPanels();
pnlScrollCameraAction.Show();
}
示例4: HideIfLoaded
//int GetActiveSegment() {
// return nudActiveSegment.Value - 1;
//}
void HideIfLoaded(Panel pnl)
{
if (pnl != null)
pnl.Hide();
}
示例5: SwitchToAskQuestionOptions
public void SwitchToAskQuestionOptions()
{
if (pnlAskQuestionAction == null) {
pnlAskQuestionAction = new Panel("pnlAskQuestionAction");
pnlAskQuestionAction.Size = new Size(300, 180);
pnlAskQuestionAction.Location = new Point(0, 30);
pnlAskQuestionAction.BackColor = Color.Transparent;
pnlAskQuestionAction.Hide();
lblAskQuestionQuestion = new Label("lblAskQuestionQuestion");
lblAskQuestionQuestion.Location = new Point(5, 5);
lblAskQuestionQuestion.Font = Logic.Graphics.FontManager.LoadFont("tahoma", 10);
lblAskQuestionQuestion.AutoSize = true;
lblAskQuestionQuestion.Text = "Question:";
txtAskQuestionQuestion = new TextBox("txtAskQuestionQuestion");
txtAskQuestionQuestion.Location = new Point(75, 5);
txtAskQuestionQuestion.Size = new System.Drawing.Size(125, 15);
lblAskQuestionSegmentOnYes = new Label("lblAskQuestionSegmentOnYes");
lblAskQuestionSegmentOnYes.Location = new Point(5, 25);
lblAskQuestionSegmentOnYes.Font = Logic.Graphics.FontManager.LoadFont("tahoma", 10);
lblAskQuestionSegmentOnYes.AutoSize = true;
lblAskQuestionSegmentOnYes.Text = "Segment On Yes:";
nudAskQuestionSegmentOnYes = new NumericUpDown("nudAskQuestionSegmentOnYes");
nudAskQuestionSegmentOnYes.Location = new Point(75, 25);
nudAskQuestionSegmentOnYes.Size = new System.Drawing.Size(125, 15);
nudAskQuestionSegmentOnYes.Minimum = 1;
nudAskQuestionSegmentOnYes.Maximum = story.Segments.Count;
lblAskQuestionSegmentOnNo = new Label("lblAskQuestionSegmentOnNo");
lblAskQuestionSegmentOnNo.Location = new Point(5, 45);
lblAskQuestionSegmentOnNo.Font = Logic.Graphics.FontManager.LoadFont("tahoma", 10);
lblAskQuestionSegmentOnNo.AutoSize = true;
lblAskQuestionSegmentOnNo.Text = "Segment On No:";
nudAskQuestionSegmentOnNo = new NumericUpDown("nudAskQuestionSegmentOnNo");
nudAskQuestionSegmentOnNo.Location = new Point(75, 45);
nudAskQuestionSegmentOnNo.Size = new System.Drawing.Size(125, 15);
nudAskQuestionSegmentOnNo.Minimum = 1;
nudAskQuestionSegmentOnNo.Maximum = story.Segments.Count;
lblAskQuestionMugshot = new Label("lblAskQuestionMugshot");
lblAskQuestionMugshot.Location = new Point(5, 65);
lblAskQuestionMugshot.Font = Logic.Graphics.FontManager.LoadFont("tahoma", 10);
lblAskQuestionMugshot.AutoSize = true;
lblAskQuestionMugshot.Text = "Mugshot:";
nudAskQuestionMugshot = new NumericUpDown("nudAskQuestionMugshot");
nudAskQuestionMugshot.Location = new Point(75, 65);
nudAskQuestionMugshot.Size = new System.Drawing.Size(100, 14);
nudAskQuestionMugshot.Maximum = Int32.MaxValue;
nudAskQuestionMugshot.Minimum = 1;
nudAskQuestionMugshot.ValueChanged += new EventHandler<ValueChangedEventArgs>(nudAskQuestionMugshot_ValueChanged);
pbxAskQuestionMugshot = new PictureBox("pbxAskQuestionMugshot");
pbxAskQuestionMugshot.Location = new Point(nudAskQuestionMugshot.X + nudAskQuestionMugshot.Width + 5, 65);
pbxAskQuestionMugshot.Size = new System.Drawing.Size(40, 40);
pnlAskQuestionAction.AddWidget(lblAskQuestionQuestion);
pnlAskQuestionAction.AddWidget(txtAskQuestionQuestion);
pnlAskQuestionAction.AddWidget(lblAskQuestionSegmentOnYes);
pnlAskQuestionAction.AddWidget(nudAskQuestionSegmentOnYes);
pnlAskQuestionAction.AddWidget(lblAskQuestionSegmentOnNo);
pnlAskQuestionAction.AddWidget(nudAskQuestionSegmentOnNo);
pnlAskQuestionAction.AddWidget(lblAskQuestionMugshot);
pnlAskQuestionAction.AddWidget(nudAskQuestionMugshot);
pnlAskQuestionAction.AddWidget(pbxAskQuestionMugshot);
pnlEditorSegments.AddWidget(pnlAskQuestionAction);
}
HideAllOptionPanels();
pnlAskQuestionAction.Show();
}
示例6: SwitchToStoryScriptOptions
public void SwitchToStoryScriptOptions()
{
if (pnlStoryScriptAction == null) {
pnlStoryScriptAction = new Panel("pnlStoryScriptAction");
pnlStoryScriptAction.Size = new Size(300, 180);
pnlStoryScriptAction.Location = new Point(0, 30);
pnlStoryScriptAction.BackColor = Color.Transparent;
pnlStoryScriptAction.Hide();
lblStoryScriptIndex = new Label("lblStoryScriptIndex");
lblStoryScriptIndex.Location = new Point(5, 5);
lblStoryScriptIndex.Font = Logic.Graphics.FontManager.LoadFont("tahoma", 10);
lblStoryScriptIndex.AutoSize = true;
lblStoryScriptIndex.Text = "Script:";
nudStoryScriptIndex = new NumericUpDown("nudStoryScriptIndex");
nudStoryScriptIndex.Location = new Point(75, 5);
nudStoryScriptIndex.Size = new System.Drawing.Size(100, 14);
nudStoryScriptIndex.Maximum = Int32.MaxValue;
lblStoryScriptParam1 = new Label("lblStoryScriptParam1");
lblStoryScriptParam1.Location = new Point(5, 25);
lblStoryScriptParam1.Font = Logic.Graphics.FontManager.LoadFont("tahoma", 10);
lblStoryScriptParam1.AutoSize = true;
lblStoryScriptParam1.Text = "Script Parameter 1:";
txtStoryScriptParam1 = new TextBox("txtStoryScriptParam1");
txtStoryScriptParam1.Location = new Point(5, 40);
txtStoryScriptParam1.Size = new System.Drawing.Size(270, 16);
lblStoryScriptParam2 = new Label("lblStoryScriptParam2");
lblStoryScriptParam2.Location = new Point(5, 60);
lblStoryScriptParam2.Font = Logic.Graphics.FontManager.LoadFont("tahoma", 10);
lblStoryScriptParam2.AutoSize = true;
lblStoryScriptParam2.Text = "Script Parameter 2:";
txtStoryScriptParam2 = new TextBox("txtStoryScriptParam2");
txtStoryScriptParam2.Location = new Point(5, 75);
txtStoryScriptParam2.Size = new System.Drawing.Size(270, 16);
lblStoryScriptParam3 = new Label("lblStoryScriptParam3");
lblStoryScriptParam3.Location = new Point(5, 95);
lblStoryScriptParam3.Font = Logic.Graphics.FontManager.LoadFont("tahoma", 10);
lblStoryScriptParam3.AutoSize = true;
lblStoryScriptParam3.Text = "Script Parameter 3:";
txtStoryScriptParam3 = new TextBox("txtStoryScriptParam3");
txtStoryScriptParam3.Location = new Point(5, 110);
txtStoryScriptParam3.Size = new System.Drawing.Size(270, 16);
chkStoryScriptPause = new CheckBox("chkStoryScriptPause");
chkStoryScriptPause.Location = new Point(5, 135);
chkStoryScriptPause.Size = new System.Drawing.Size(200, 105);
chkStoryScriptPause.Font = Logic.Graphics.FontManager.LoadFont("tahoma", 10);
chkStoryScriptPause.Text = "Pause until complete";
pnlStoryScriptAction.AddWidget(lblStoryScriptIndex);
pnlStoryScriptAction.AddWidget(nudStoryScriptIndex);
pnlStoryScriptAction.AddWidget(lblStoryScriptParam1);
pnlStoryScriptAction.AddWidget(txtStoryScriptParam1);
pnlStoryScriptAction.AddWidget(lblStoryScriptParam2);
pnlStoryScriptAction.AddWidget(txtStoryScriptParam2);
pnlStoryScriptAction.AddWidget(lblStoryScriptParam3);
pnlStoryScriptAction.AddWidget(txtStoryScriptParam3);
pnlStoryScriptAction.AddWidget(chkStoryScriptPause);
pnlEditorSegments.AddWidget(pnlStoryScriptAction);
}
HideAllOptionPanels();
pnlStoryScriptAction.Show();
}
示例7: SwitchToWarpFNPCOptions
public void SwitchToWarpFNPCOptions()
{
if (pnlWarpFNPCAction == null) {
pnlWarpFNPCAction = new Panel("pnlWarpFNPCAction");
pnlWarpFNPCAction.Size = new Size(300, 180);
pnlWarpFNPCAction.Location = new Point(0, 30);
pnlWarpFNPCAction.BackColor = Color.Transparent;
pnlWarpFNPCAction.Hide();
lblWarpFNPCID = new Label("lblWarpFNPCID");
lblWarpFNPCID.Location = new Point(5, 5);
lblWarpFNPCID.Font = Logic.Graphics.FontManager.LoadFont("tahoma", 10);
lblWarpFNPCID.AutoSize = true;
lblWarpFNPCID.Text = "ID:";
txtWarpFNPCID = new TextBox("txtWarpFNPCID");
txtWarpFNPCID.Location = new Point(75, 5);
txtWarpFNPCID.Size = new System.Drawing.Size(125, 15);
lblWarpFNPCX = new Label("lblWarpFNPCX");
lblWarpFNPCX.Location = new Point(5, 25);
lblWarpFNPCX.Font = Logic.Graphics.FontManager.LoadFont("tahoma", 10);
lblWarpFNPCX.AutoSize = true;
lblWarpFNPCX.Text = "Image X:";
nudWarpFNPCX = new NumericUpDown("nudWarpFNPCX");
nudWarpFNPCX.Location = new Point(75, 25);
nudWarpFNPCX.Size = new System.Drawing.Size(125, 15);
nudWarpFNPCX.Maximum = 640;
lblWarpFNPCY = new Label("lblWarpFNPCY");
lblWarpFNPCY.Location = new Point(5, 45);
lblWarpFNPCY.Font = Logic.Graphics.FontManager.LoadFont("tahoma", 10);
lblWarpFNPCY.AutoSize = true;
lblWarpFNPCY.Text = "Image Y:";
nudWarpFNPCY = new NumericUpDown("nudWarpFNPCY");
nudWarpFNPCY.Location = new Point(75, 45);
nudWarpFNPCY.Size = new System.Drawing.Size(125, 15);
nudWarpFNPCY.Maximum = 480;
pnlWarpFNPCAction.AddWidget(lblWarpFNPCID);
pnlWarpFNPCAction.AddWidget(txtWarpFNPCID);
pnlWarpFNPCAction.AddWidget(lblWarpFNPCX);
pnlWarpFNPCAction.AddWidget(nudWarpFNPCX);
pnlWarpFNPCAction.AddWidget(lblWarpFNPCY);
pnlWarpFNPCAction.AddWidget(nudWarpFNPCY);
pnlEditorSegments.AddWidget(pnlWarpFNPCAction);
}
HideAllOptionPanels();
pnlWarpFNPCAction.Show();
}
示例8: SwitchToFNPCEmotionOptions
public void SwitchToFNPCEmotionOptions()
{
if (pnlFNPCEmotionAction == null) {
pnlFNPCEmotionAction = new Panel("pnlFNPCEmotionAction");
pnlFNPCEmotionAction.Size = new Size(300, 180);
pnlFNPCEmotionAction.Location = new Point(0, 30);
pnlFNPCEmotionAction.BackColor = Color.Transparent;
pnlFNPCEmotionAction.Hide();
lblFNPCEmotionID = new Label("lblFNPCEmotionID");
lblFNPCEmotionID.Location = new Point(5, 5);
lblFNPCEmotionID.Font = Logic.Graphics.FontManager.LoadFont("tahoma", 10);
lblFNPCEmotionID.AutoSize = true;
lblFNPCEmotionID.Text = "ID:";
txtFNPCEmotionID = new TextBox("txtFNPCEmotionID");
txtFNPCEmotionID.Location = new Point(75, 5);
txtFNPCEmotionID.Size = new System.Drawing.Size(125, 15);
lblFNPCEmotionNum = new Label("lblFNPCEmotionNum");
lblFNPCEmotionNum.Location = new Point(5, 25);
lblFNPCEmotionNum.Font = Logic.Graphics.FontManager.LoadFont("tahoma", 10);
lblFNPCEmotionNum.AutoSize = true;
lblFNPCEmotionNum.Text = "Emotion:";
nudFNPCEmotionNum = new NumericUpDown("nudFNPCEmotionNum");
nudFNPCEmotionNum.Location = new Point(75, 25);
nudFNPCEmotionNum.Size = new System.Drawing.Size(125, 15);
nudFNPCEmotionNum.Maximum = 10;
pnlFNPCEmotionAction.AddWidget(lblFNPCEmotionID);
pnlFNPCEmotionAction.AddWidget(txtFNPCEmotionID);
pnlFNPCEmotionAction.AddWidget(lblFNPCEmotionNum);
pnlFNPCEmotionAction.AddWidget(nudFNPCEmotionNum);
pnlEditorSegments.AddWidget(pnlFNPCEmotionAction);
}
HideAllOptionPanels();
pnlFNPCEmotionAction.Show();
}
示例9: SwitchToGoToSegmentOptions
public void SwitchToGoToSegmentOptions()
{
if (pnlGoToSegmentAction == null) {
pnlGoToSegmentAction = new Panel("pnlGoToSegmentAction");
pnlGoToSegmentAction.Size = new Size(300, 180);
pnlGoToSegmentAction.Location = new Point(0, 30);
pnlGoToSegmentAction.BackColor = Color.Transparent;
pnlGoToSegmentAction.Hide();
lblGoToSegmentSegment = new Label("lblGoToSegmentSegment");
lblGoToSegmentSegment.Location = new Point(5, 5);
lblGoToSegmentSegment.Font = Logic.Graphics.FontManager.LoadFont("tahoma", 10);
lblGoToSegmentSegment.AutoSize = true;
lblGoToSegmentSegment.Text = "Script:";
nudGoToSegmentSegment = new NumericUpDown("nudGoToSegmentSegment");
nudGoToSegmentSegment.Location = new Point(75, 5);
nudGoToSegmentSegment.Size = new System.Drawing.Size(100, 14);
nudGoToSegmentSegment.Minimum = 1;
nudGoToSegmentSegment.Maximum = story.Segments.Count;
pnlGoToSegmentAction.AddWidget(lblGoToSegmentSegment);
pnlGoToSegmentAction.AddWidget(nudGoToSegmentSegment);
pnlEditorSegments.AddWidget(pnlGoToSegmentAction);
}
HideAllOptionPanels();
pnlGoToSegmentAction.Show();
}
示例10: SwitchToCreateFNPCOptions
public void SwitchToCreateFNPCOptions()
{
if (pnlCreateFNPCAction == null) {
pnlCreateFNPCAction = new Panel("pnlCreateFNPCAction");
pnlCreateFNPCAction.Size = new Size(300, 180);
pnlCreateFNPCAction.Location = new Point(0, 30);
pnlCreateFNPCAction.BackColor = Color.Transparent;
pnlCreateFNPCAction.Hide();
lblCreateFNPCID = new Label("lblCreateFNPCID");
lblCreateFNPCID.Location = new Point(5, 5);
lblCreateFNPCID.Font = Logic.Graphics.FontManager.LoadFont("tahoma", 10);
lblCreateFNPCID.AutoSize = true;
lblCreateFNPCID.Text = "ID:";
txtCreateFNPCID = new TextBox("txtCreateFNPCID");
txtCreateFNPCID.Location = new Point(75, 5);
txtCreateFNPCID.Size = new System.Drawing.Size(125, 15);
lblCreateFNPCMap = new Label("lblCreateFNPCMap");
lblCreateFNPCMap.Location = new Point(5, 25);
lblCreateFNPCMap.Font = Logic.Graphics.FontManager.LoadFont("tahoma", 10);
lblCreateFNPCMap.AutoSize = true;
lblCreateFNPCMap.Text = "Map:";
txtCreateFNPCMap = new TextBox("txtCreateFNPCMap");
txtCreateFNPCMap.Location = new Point(75, 25);
txtCreateFNPCMap.Size = new System.Drawing.Size(125, 15);
lblCreateFNPCX = new Label("lblCreateFNPCX");
lblCreateFNPCX.Location = new Point(5, 45);
lblCreateFNPCX.Font = Logic.Graphics.FontManager.LoadFont("tahoma", 10);
lblCreateFNPCX.AutoSize = true;
lblCreateFNPCX.Text = "X:";
nudCreateFNPCX = new NumericUpDown("nudCreateFNPCX");
nudCreateFNPCX.Location = new Point(75, 45);
nudCreateFNPCX.Size = new System.Drawing.Size(125, 15);
nudCreateFNPCX.Maximum = 50;
lblCreateFNPCY = new Label("lblCreateFNPCY");
lblCreateFNPCY.Location = new Point(5, 65);
lblCreateFNPCY.Font = Logic.Graphics.FontManager.LoadFont("tahoma", 10);
lblCreateFNPCY.AutoSize = true;
lblCreateFNPCY.Text = "Y:";
nudCreateFNPCY = new NumericUpDown("nudCreateFNPCY");
nudCreateFNPCY.Location = new Point(75, 65);
nudCreateFNPCY.Size = new System.Drawing.Size(125, 15);
nudCreateFNPCY.Maximum = 50;
lblCreateFNPCSprite = new Label("lblCreateFNPCSprite");
lblCreateFNPCSprite.Location = new Point(5, 85);
lblCreateFNPCSprite.Font = Logic.Graphics.FontManager.LoadFont("tahoma", 10);
lblCreateFNPCSprite.AutoSize = true;
lblCreateFNPCSprite.Text = "Sprite:";
nudCreateFNPCSprite = new NumericUpDown("nudCreateFNPCSprite");
nudCreateFNPCSprite.Location = new Point(75, 85);
nudCreateFNPCSprite.Size = new System.Drawing.Size(125, 15);
nudCreateFNPCSprite.Maximum = Int32.MaxValue;
nudCreateFNPCSprite.ValueChanged += new EventHandler<ValueChangedEventArgs>(nudCreateFNPCSprite_ValueChanged);
nudCreateFNPCSprite.Minimum = 1;
pbxCreateFNPCSprite = new PictureBox("pbxCreateFNPCSprite");
pbxCreateFNPCSprite.Location = new Point(205, 85);
pnlCreateFNPCAction.AddWidget(lblCreateFNPCID);
pnlCreateFNPCAction.AddWidget(txtCreateFNPCID);
pnlCreateFNPCAction.AddWidget(lblCreateFNPCMap);
pnlCreateFNPCAction.AddWidget(txtCreateFNPCMap);
pnlCreateFNPCAction.AddWidget(lblCreateFNPCX);
pnlCreateFNPCAction.AddWidget(nudCreateFNPCX);
pnlCreateFNPCAction.AddWidget(lblCreateFNPCY);
pnlCreateFNPCAction.AddWidget(nudCreateFNPCY);
pnlCreateFNPCAction.AddWidget(lblCreateFNPCSprite);
pnlCreateFNPCAction.AddWidget(nudCreateFNPCSprite);
pnlCreateFNPCAction.AddWidget(pbxCreateFNPCSprite);
pnlEditorSegments.AddWidget(pnlCreateFNPCAction);
}
HideAllOptionPanels();
pnlCreateFNPCAction.Show();
}
示例11: SwitchToDeleteFNPCOptions
public void SwitchToDeleteFNPCOptions()
{
if (pnlDeleteFNPCAction == null) {
pnlDeleteFNPCAction = new Panel("pnlDeleteFNPCAction");
pnlDeleteFNPCAction.Size = new Size(300, 180);
pnlDeleteFNPCAction.Location = new Point(0, 30);
pnlDeleteFNPCAction.BackColor = Color.Transparent;
pnlDeleteFNPCAction.Hide();
lblDeleteFNPCID = new Label("lblDeleteFNPCID");
lblDeleteFNPCID.Location = new Point(5, 5);
lblDeleteFNPCID.Font = Logic.Graphics.FontManager.LoadFont("tahoma", 10);
lblDeleteFNPCID.AutoSize = true;
lblDeleteFNPCID.Text = "ID:";
txtDeleteFNPCID = new TextBox("txtDeleteFNPCID");
txtDeleteFNPCID.Location = new Point(75, 5);
txtDeleteFNPCID.Size = new System.Drawing.Size(125, 15);
pnlDeleteFNPCAction.AddWidget(lblDeleteFNPCID);
pnlDeleteFNPCAction.AddWidget(txtDeleteFNPCID);
pnlEditorSegments.AddWidget(pnlDeleteFNPCAction);
}
HideAllOptionPanels();
pnlDeleteFNPCAction.Show();
}
示例12: SwitchToChangeWeatherOptions
public void SwitchToChangeWeatherOptions()
{
if (pnlWeatherAction == null) {
pnlWeatherAction = new Panel("pnlWeatherAction");
pnlWeatherAction.Size = new Size(300, 180);
pnlWeatherAction.Location = new Point(0, 30);
pnlWeatherAction.BackColor = Color.Transparent;
pnlWeatherAction.Hide();
lblWeatherType = new Label("lblWeatherType");
lblWeatherType.Location = new Point(5, 5);
lblWeatherType.Font = Logic.Graphics.FontManager.LoadFont("tahoma", 10);
lblWeatherType.AutoSize = true;
lblWeatherType.Text = "Weather:";
cbxWeatherType = new ComboBox("cbxWeatherType");
cbxWeatherType.Location = new Point(75, 5);
cbxWeatherType.Size = new System.Drawing.Size(125, 15);
string[] value = Enum.GetNames(typeof(Enums.Weather));
for (int i = 0; i < value.Length; i++) {
cbxWeatherType.Items.Add(new ListBoxTextItem(Logic.Graphics.FontManager.LoadFont("tahoma", 10), value[i]));
}
cbxWeatherType.SelectItem(0);
pnlWeatherAction.AddWidget(lblWeatherType);
pnlWeatherAction.AddWidget(cbxWeatherType);
pnlEditorSegments.AddWidget(pnlWeatherAction);
}
HideAllOptionPanels();
pnlWeatherAction.Show();
}
示例13: SwitchToChangePlayerDirOptions
public void SwitchToChangePlayerDirOptions()
{
if (pnlChangePlayerDirAction == null) {
pnlChangePlayerDirAction = new Panel("pnlChangePlayerDirAction");
pnlChangePlayerDirAction.Size = new Size(300, 180);
pnlChangePlayerDirAction.Location = new Point(0, 30);
pnlChangePlayerDirAction.BackColor = Color.Transparent;
pnlChangePlayerDirAction.Hide();
cbxChangePlayerDirDirection = new ComboBox("cbxChangePlayerDirDirection");
cbxChangePlayerDirDirection.Location = new Point(5, 5);
cbxChangePlayerDirDirection.Size = new System.Drawing.Size(200, 15);
string[] values = Enum.GetNames(typeof(Enums.Direction));
for (int i = 0; i < values.Length; i++) {
cbxChangePlayerDirDirection.Items.Add(new ListBoxTextItem(Logic.Graphics.FontManager.LoadFont("tahoma", 10), values[i]));
}
pnlChangePlayerDirAction.AddWidget(cbxChangePlayerDirDirection);
pnlEditorSegments.AddWidget(pnlChangePlayerDirAction);
}
HideAllOptionPanels();
pnlChangePlayerDirAction.Show();
}
示例14: SwitchToChangeFNPCDirOptions
public void SwitchToChangeFNPCDirOptions()
{
if (pnlChangeFNPCDirAction == null) {
pnlChangeFNPCDirAction = new Panel("pnlChangeFNPCDirAction");
pnlChangeFNPCDirAction.Size = new Size(300, 180);
pnlChangeFNPCDirAction.Location = new Point(0, 30);
pnlChangeFNPCDirAction.BackColor = Color.Transparent;
pnlChangeFNPCDirAction.Hide();
lblChangeFNPCDirID = new Label("lblChangeFNPCDirID");
lblChangeFNPCDirID.Location = new Point(5, 5);
lblChangeFNPCDirID.Font = Logic.Graphics.FontManager.LoadFont("tahoma", 10);
lblChangeFNPCDirID.AutoSize = true;
lblChangeFNPCDirID.Text = "ID:";
txtChangeFNPCDirID = new TextBox("txtChangeFNPCDirID");
txtChangeFNPCDirID.Location = new Point(75, 5);
txtChangeFNPCDirID.Size = new System.Drawing.Size(125, 15);
cbxChangeFNPCDirDirection = new ComboBox("cbxChangeFNPCDirDirection");
cbxChangeFNPCDirDirection.Location = new Point(5, 25);
cbxChangeFNPCDirDirection.Size = new System.Drawing.Size(200, 15);
string[] values = Enum.GetNames(typeof(Enums.Direction));
for (int i = 0; i < values.Length; i++) {
cbxChangeFNPCDirDirection.Items.Add(new ListBoxTextItem(Logic.Graphics.FontManager.LoadFont("tahoma", 10), values[i]));
}
cbxChangeFNPCDirDirection.SelectItem(0);
pnlChangeFNPCDirAction.AddWidget(lblChangeFNPCDirID);
pnlChangeFNPCDirAction.AddWidget(txtChangeFNPCDirID);
pnlChangeFNPCDirAction.AddWidget(cbxChangeFNPCDirDirection);
pnlEditorSegments.AddWidget(pnlChangeFNPCDirAction);
}
HideAllOptionPanels();
pnlChangeFNPCDirAction.Show();
}
示例15: SwitchToShowImageOptions
public void SwitchToShowImageOptions()
{
if (pnlShowImageAction == null) {
pnlShowImageAction = new Panel("pnlShowImageAction");
pnlShowImageAction.Size = new Size(300, 180);
pnlShowImageAction.Location = new Point(0, 30);
pnlShowImageAction.BackColor = Color.Transparent;
pnlShowImageAction.Hide();
lbxShowImageFiles = new ListBox("lbxShowImageFiles");
lbxShowImageFiles.Location = new Point(5, 5);
lbxShowImageFiles.Size = new System.Drawing.Size(200, 100);
SdlDotNet.Graphics.Font font = Logic.Graphics.FontManager.LoadFont("tahoma", 10);
string[] imageFiles = System.IO.Directory.GetFiles(IO.Paths.StartupPath + "Story/Images/");
for (int i = 0; i < imageFiles.Length; i++) {
lbxShowImageFiles.Items.Add(new ListBoxTextItem(font, System.IO.Path.GetFileName(imageFiles[i])));
}
lblShowImageID = new Label("lblShowImageID");
lblShowImageID.Location = new Point(5, 105);
lblShowImageID.Font = Logic.Graphics.FontManager.LoadFont("tahoma", 10);
lblShowImageID.AutoSize = true;
lblShowImageID.Text = "Image ID:";
txtShowImageID = new TextBox("txtShowImageID");
txtShowImageID.Location = new Point(75, 105);
txtShowImageID.Size = new System.Drawing.Size(125, 15);
lblShowImageX = new Label("lblShowImageX");
lblShowImageX.Location = new Point(5, 125);
lblShowImageX.Font = Logic.Graphics.FontManager.LoadFont("tahoma", 10);
lblShowImageX.AutoSize = true;
lblShowImageX.Text = "Image X:";
nudShowImageX = new NumericUpDown("nudShowImageX");
nudShowImageX.Location = new Point(75, 125);
nudShowImageX.Size = new System.Drawing.Size(125, 15);
nudShowImageX.Maximum = 640;
lblShowImageY = new Label("lblShowImageY");
lblShowImageY.Location = new Point(5, 145);
lblShowImageY.Font = Logic.Graphics.FontManager.LoadFont("tahoma", 10);
lblShowImageY.AutoSize = true;
lblShowImageY.Text = "Image Y:";
nudShowImageY = new NumericUpDown("nudShowImageY");
nudShowImageY.Location = new Point(75, 145);
nudShowImageY.Size = new System.Drawing.Size(125, 15);
nudShowImageY.Maximum = 480;
pnlShowImageAction.AddWidget(lbxShowImageFiles);
pnlShowImageAction.AddWidget(lblShowImageID);
pnlShowImageAction.AddWidget(txtShowImageID);
pnlShowImageAction.AddWidget(lblShowImageX);
pnlShowImageAction.AddWidget(nudShowImageX);
pnlShowImageAction.AddWidget(lblShowImageY);
pnlShowImageAction.AddWidget(nudShowImageY);
pnlEditorSegments.AddWidget(pnlShowImageAction);
}
HideAllOptionPanels();
pnlShowImageAction.Show();
}