Пример #1
0
 public FaderEffect(Component comp, long duration, bool loop, byte initAlpha, byte endAlpha)
     : base(comp, duration, loop)
 {
     this.initAlpha = initAlpha;
     this.endAlpha = endAlpha;
     dif = (byte) (endAlpha - initAlpha);
 }
Пример #2
0
 public GuiEffect(Component comp, long duration, bool loop)
 {
     this.component = comp;
     this.duration = duration;
     this.loop = loop;
     this.enabled = false;
     this.elapsedTime = 0;
 }
Пример #3
0
 public ScriptEffect(Component comp, long duration, bool loop, String initScriptName)
     : base(comp, duration, loop)
 {
     scripts = new Dictionary<String, Script>();
     this.initScriptName = initScriptName;
 }
Пример #4
0
 public void RemoveComponent(Component comp)
 {
     screens.Remove(comp);
 }
Пример #5
0
 public void AddComponent(Component comp)
 {
     screens.Add(comp);
 }
Пример #6
0
 public void RemoveComponent(Component comp)
 {
     components.Remove(comp);
 }
Пример #7
0
 public void AddComponent(Component comp)
 {
     components.Add(comp);
 }