本文整理汇总了C#中DB.End方法的典型用法代码示例。如果您正苦于以下问题:C# DB.End方法的具体用法?C# DB.End怎么用?C# DB.End使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DB
的用法示例。
在下文中一共展示了DB.End方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Draw
public override void Draw(DB.Gui.Graphics g, Microsoft.Xna.Framework.GameTime gameTime, Room.Layer layer)
{
g.Begin();
spriteGrid.Draw(g, Position, Pressed ? 1 : 0);
//g.Draw(DiverGame.White, Dimension, Color.Red);
g.End();
}
示例2: Draw
public override void Draw(DB.Gui.Graphics g, Microsoft.Xna.Framework.GameTime gameTime, Room.Layer layer)
{
if (layer == Room.Layer.Player)
{
g.Begin();
g.Draw(Tool.Icon, Position, Color.White);
g.End();
}
}
示例3: Draw
public override void Draw(DB.Gui.Graphics g, Microsoft.Xna.Framework.GameTime gameTime, Room.Layer layer)
{
if (layer == Room.Layer.Background)
{
g.Begin();
foreach (Fishy fish in fishies)
{
fish.Draw(g, gameTime, layer);
}
g.End();
}
}
示例4: Draw
public override void Draw(DB.Gui.Graphics g, Microsoft.Xna.Framework.GameTime gameTime, Room.Layer layer)
{
int x = 0, y = 0;
g.Begin();
g.Draw(DiverGame.White, this.Dimension, Color.White);
if (diverInInventory)
{
if (!isGUIActive)
{
g.DrawStringShadowed(font,
"Press Space to open inventory",
new Rectangle(0, 100, 400, 20),
TextAlignment.Center,
Color.White);
}
}
if (isGUIActive)
{
Color c = new Color(255, 255, 255, 230);
x = 400/2 - backgroundTexture.Width / 2;
y = 300/2 - backgroundTexture.Height / 2;
g.Draw(backgroundTexture, new Point(x, y), c);
y += 15;
g.DrawStringShadowed(font,
"Inventory",
new Rectangle(x, y, backgroundTexture.Width, 20),
TextAlignment.Center,
Color.White);
int spaceBetween = 30;
x += 30; y += 20;
int xOffs = 0;
foreach (ITool tool in tools)
{
g.Draw(tool.Icon, new Point(x + (xOffs%7)*spaceBetween + 4, y + (xOffs/7)*spaceBetween + 4), Color.White);
xOffs += 1;
}
g.Draw(toolSelectorTexture, new Point(spaceBetween*(inventorySelected%7) + x, y + (inventorySelected/7)*spaceBetween), Color.White);
}
g.End();
}