Lua: autoload recent scripts too (unless there's a recent session to autoload).
pixelText bg tweak.
This commit is contained in:
parent
1e2f4e12be
commit
fbd1d6d8e2
|
@ -531,7 +531,9 @@
|
|||
<Compile Include="CustomControls\ViewportPanel.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="CustomControls\VirtualListView.cs" />
|
||||
<Compile Include="CustomControls\VirtualListView.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="CustomControls\Win32.cs" />
|
||||
<Compile Include="DisplayManager\DisplayManager.cs" />
|
||||
<Compile Include="DisplayManager\DisplaySurface.cs" />
|
||||
|
|
|
@ -606,7 +606,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
}
|
||||
var font = new Font(GlobalWin.DisplayManager.CustomFonts.Families[index], 8, FontStyle.Regular, GraphicsUnit.Pixel);
|
||||
Size sizeOfText = g.MeasureString(message, font, 0, StringFormat.GenericTypographic).ToSize();
|
||||
Rectangle rect = new Rectangle(new Point(x, y), sizeOfText);
|
||||
Rectangle rect = new Rectangle(new Point(x, y - 1), sizeOfText + new Size(1, 2));
|
||||
g.FillRectangle(GetBrush(backcolor ?? DefaultTextBackground.Value), rect);
|
||||
g.TextRenderingHint = System.Drawing.Text.TextRenderingHint.SingleBitPerPixelGridFit;
|
||||
g.DrawString(message, font, GetBrush(forecolor ?? DefaultForeground), x, y);
|
||||
|
|
|
@ -97,11 +97,15 @@ namespace BizHawk.Client.EmuHawk
|
|||
|
||||
private void LuaConsole_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (Global.Config.RecentLuaSession.AutoLoad)
|
||||
if (Global.Config.RecentLuaSession.AutoLoad && !Global.Config.RecentLuaSession.Empty)
|
||||
{
|
||||
if (!Global.Config.RecentLuaSession.Empty)
|
||||
{
|
||||
LoadSessionFromRecent(Global.Config.RecentLuaSession[0]);
|
||||
}
|
||||
else if (Global.Config.RecentLua.AutoLoad)
|
||||
{
|
||||
if (!Global.Config.RecentLua.Empty)
|
||||
{
|
||||
LoadLuaFromRecent(Global.Config.RecentLua[0]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -619,7 +623,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
{
|
||||
RecentScriptsSubMenu.DropDownItems.Clear();
|
||||
RecentScriptsSubMenu.DropDownItems.AddRange(
|
||||
Global.Config.RecentLua.RecentMenu(LoadLuaFromRecent));
|
||||
Global.Config.RecentLua.RecentMenu(LoadLuaFromRecent, true));
|
||||
}
|
||||
|
||||
private void NewSessionMenuItem_Click(object sender, EventArgs e)
|
||||
|
|
Loading…
Reference in New Issue