修改bug0409
This commit is contained in:
parent
b5ae33f582
commit
74c5121eb7
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
@ -69,7 +69,6 @@ namespace OverlayFormObj
|
||||
MainForm = this;
|
||||
InitializeFormSettings();
|
||||
ConfigureTimers();
|
||||
LoadBackgroundImage();
|
||||
ConfigureImageDisplay();
|
||||
InitializeLabels();
|
||||
ConfigureSegmentTimer();
|
||||
@ -404,8 +403,7 @@ private Rectangle FindContentBounds(Bitmap bmp)
|
||||
firstStickerImage = null;
|
||||
this.Invalidate();
|
||||
}
|
||||
if (secondStickerImage == null)
|
||||
LoadBackgroundImage();
|
||||
|
||||
stickerTimer1.Stop();
|
||||
HideImages();
|
||||
};
|
||||
@ -417,8 +415,7 @@ private Rectangle FindContentBounds(Bitmap bmp)
|
||||
secondStickerImage = null;
|
||||
this.Invalidate();
|
||||
}
|
||||
if (firstStickerImage == null)
|
||||
LoadBackgroundImage();
|
||||
|
||||
stickerTimer2.Stop();
|
||||
HideImages();
|
||||
};
|
||||
@ -528,19 +525,6 @@ private static void SongDisplayTimer_Elapsed(object sender, EventArgs e)
|
||||
unifiedTimer.Start();
|
||||
}
|
||||
|
||||
private void LoadBackgroundImage()
|
||||
{
|
||||
// try
|
||||
// {
|
||||
// backgroundImage = Image.FromFile(Path.Combine(Application.StartupPath, "themes\\superstar\\images.jpg"));
|
||||
// }
|
||||
// catch (Exception ex)
|
||||
// {
|
||||
// Console.WriteLine("Error loading background image: " + ex.Message);
|
||||
// backgroundImage = null;
|
||||
// }
|
||||
}
|
||||
|
||||
private void ConfigureImageDisplay()
|
||||
{
|
||||
try
|
||||
@ -550,7 +534,6 @@ private static void SongDisplayTimer_Elapsed(object sender, EventArgs e)
|
||||
imageYPos = (screenHeight / 3) - firstStickerImage.Height / 6;
|
||||
|
||||
|
||||
LoadBackgroundImage();
|
||||
|
||||
|
||||
stickerTimer1.Start();
|
||||
@ -798,8 +781,7 @@ private static void SongDisplayTimer_Elapsed(object sender, EventArgs e)
|
||||
if (firstStickerImage == null)
|
||||
{
|
||||
firstStickerImage = newSticker;
|
||||
firstStickerXPos = this.Width / 2 - firstStickerImage.Width / 2;
|
||||
LoadBackgroundImage();
|
||||
firstStickerXPos = this.Width / 2 - firstStickerImage.Width / 2;
|
||||
stickerTimer1.Start();
|
||||
}
|
||||
else if (secondStickerImage == null)
|
||||
|
@ -3,7 +3,7 @@
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net8.0-windows</TargetFramework>
|
||||
<ApplicationIcon>Images/ksonglover.ico</ApplicationIcon>
|
||||
<ApplicationIcon>Images/superstar.ico</ApplicationIcon>
|
||||
<RootNamespace>superstar_1.0.0</RootNamespace>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
|
Loading…
x
Reference in New Issue
Block a user