Renamed Sce to SceneFader

This commit is contained in:
2026-06-13 21:31:35 +02:00
parent 24926d01d3
commit 3d78eb5679
4 changed files with 18 additions and 17 deletions

View File

@@ -29,7 +29,7 @@ namespace _2DGAMELIB
public Bitmap Hit;
public Graphics HitGraphics;
public Sce Sce;
public SceneFader SceneFader;
public FPS FPSF = new FPS(60.0);
private Size BaseSize = Size.Empty;
@@ -84,12 +84,12 @@ namespace _2DGAMELIB
public void FadeIn(double Rate)
{
Sce.TransformAlpha(DisplayGraphics, Rate);
SceneFader.TransformAlpha(DisplayGraphics, Rate);
}
public void FadeOut(double Rate)
{
Sce.TransD(DisplayGraphics, Rate);
SceneFader.TransD(DisplayGraphics, Rate);
}
public void InitializeModes(string Mode, Func<ModeEventDispatcher, Dictionary<string, Module>> GetModes)
@@ -121,7 +121,7 @@ namespace _2DGAMELIB
WidthM = Hit.Width - 1;
HeightM = Hit.Height - 1;
Sce = new Sce(BaseSize.Width, BaseSize.Height);
SceneFader = new SceneFader(BaseSize.Width, BaseSize.Height);
Modes = GetModes(this);

View File

@@ -5,7 +5,7 @@ namespace _2DGAMELIB
{
//Basically used to animate switching between two static images
public class Sce
public class SceneFader
{
private Bitmap Start;
private Graphics GS;
@@ -23,7 +23,7 @@ namespace _2DGAMELIB
private ImageAttributes ia = new ImageAttributes();
public Sce(int Width, int Height)
public SceneFader(int Width, int Height)
{
w = Width;
h = Height;

View File

@@ -22,7 +22,8 @@ namespace _2DGAMELIB
.Add("_2DGAMELIB.Joi", typeof(JointPoint))
.Add("_2DGAMELIB.Dif", typeof(MorphVariant))
.Add("_2DGAMELIB.Difs", typeof(VariantGrid))
.Add("_2DGAMELIB.Obj", typeof(BodyTemplate));
.Add("_2DGAMELIB.Obj", typeof(BodyTemplate))
.Add("_2DGAMELIB.Sce", typeof(SceneFader));
private static BinaryFormatter NewFormatter()
{