Renamed Sce to SceneFader
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
|
||||
@@ -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;
|
||||
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user