Skip to content

Commit

Permalink
Added built-in template
Browse files Browse the repository at this point in the history
  • Loading branch information
XcantloadX committed Jun 19, 2021
1 parent 60a5ac9 commit d58921d
Show file tree
Hide file tree
Showing 7 changed files with 301 additions and 159 deletions.
Binary file modified UnitaleFontMaker.suo
Binary file not shown.
28 changes: 28 additions & 0 deletions UnitaleFontMaker/MainForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 23 additions & 2 deletions UnitaleFontMaker/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ private List<char> Characters
//更新显示
}
}
private Color fontColor = Color.White;
private Color fontColor = Color.White; //TODO 重构这玩意 getter/setter


public MainForm()
Expand Down Expand Up @@ -264,7 +264,7 @@ private void btnChooseColor_Click(object sender, EventArgs e)
if (dialog.ShowDialog() == DialogResult.OK)
{
fontColor = dialog.Color;
painter.TextColor = fontColor;
//painter.TextColor = fontColor;
picboxColor.BackColor = fontColor;
}
dialog.Dispose();
Expand All @@ -285,6 +285,27 @@ private void btnView_Click(object sender, EventArgs e)
new CharForm(this.Characters.ToArray()).Show();
}


//模板按钮

private void btnTmonster_Click(object sender, EventArgs e)
{
comboxType.Text = "monster";
txtboxLineSpacing.Text = "18";
fontColor = Color.Black;
picboxColor.BackColor = Color.Black;
}

private void btnTdialog_Click(object sender, EventArgs e)
{
comboxType.Text = "uidialog";
txtboxLineSpacing.Text = "30";
fontColor = Color.White;
picboxColor.BackColor = Color.White;
}




}
}
Loading

0 comments on commit d58921d

Please sign in to comment.