public override void Draw(Graphics g) { if (Visible) { Propertys.AllDoBeforeDraw(g); DrawObject.Draw(g, Layout.Rectangle); BackObjects.AllDrawSelf(g); UIObjects.AllDrawSelf(g); Propertys.AllDoAfterDraw(g); } }
/// <summary> /// 繪製畫面 /// </summary> protected void Drawing() { BufferGraphics.Clear(Color.White); OnBeforeDraw(BufferGraphics); EffectObjects.AllDoBeforeDraw(BufferGraphics); EffectObjects.AllDoBeforeDrawFloor(BufferGraphics); OnDrawFloor(BufferGraphics); EffectObjects.AllDoBeforeDrawObject(BufferGraphics); GameObjects.AllDrawSelf(BufferGraphics); OnBeforeDrawUI(BufferGraphics); EffectObjects.AllDoBeforeDrawUI(BufferGraphics); UIObjects.AllDrawSelf(BufferGraphics); OnAfterDrawUI(BufferGraphics); EffectObjects.AllDoAfterDraw(BufferGraphics); OnAfterDrawReset(BufferGraphics); OnAfterDraw(BufferGraphics); ThisGraphics.DrawImageUnscaled(BufferImage, 0, 0); }