public GreenPotion() : base(_Recipe) { CustomSprite icon = BitmapRepository.CreateSpriteFromBitmap(BitmapRepository.GreenPotion); icon.Scaling = DefaultScale; Icon = icon; }
public GreenCoral() { CustomSprite icon = BitmapRepository.CreateSpriteFromBitmap(BitmapRepository.Plant); icon.Scaling = DefaultScale; Icon = icon; }
public Fish() { CustomSprite icon = BitmapRepository.CreateSpriteFromBitmap(BitmapRepository.Fish); icon.Scaling = DefaultScale; Icon = icon; }
public OxygenTank() : base(Recipe) { CustomSprite icon = BitmapRepository.CreateSpriteFromBitmap(BitmapRepository.OxygenTank); icon.Scaling = DefaultScale; Icon = icon; }
private void InitDarknessCover() { darknessCover = BitmapRepository.CreateSpriteFromBitmap(BitmapRepository.BlackRectangle); Screen.FitSpriteToScreen(darknessCover); darknessCover.Color = Color.FromArgb(0, 0, 0, 0); }
public InfinityGauntlet() : base(Recipe, CreateMesh()) { CustomSprite icon = BitmapRepository.CreateSpriteFromBitmap(BitmapRepository.InfinityGauntlet); icon.Scaling = DefaultScale; Icon = icon; Mesh.Scale = new TGCVector3(.035f, .035f, .035f); }
private void InitPDA() { PDA = BitmapRepository.CreateSpriteFromBitmap(BitmapRepository.PDA); PDA.Scaling = new TGCVector2(.5f, .35f); Screen.CenterSprite(PDA); finalPDAPositionX = PDA.Position.X; PDAPositionX = this.GetPDAInitialPosition(); PDAMoveCoefficient = (finalPDAPositionX - this.GetPDAInitialPosition()) * 4; }
private void InitBlackRectangle() { spriteBlackRectangle = BitmapRepository.CreateSpriteFromBitmap(BitmapRepository.BlackRectangle); spriteBlackRectangle.Color = Color.FromArgb(188, 0, 0, 0); spriteBlackRectangle.Scaling = new TGCVector2(1, .1f); Screen.CenterSprite(spriteBlackRectangle); spriteBlackRectangle.Position = new TGCVector2( spriteBlackRectangle.Position.X, Screen.Height * (3f / 4) ); }
public PauseMenu() : base() { darknessCover = BitmapRepository.CreateSpriteFromBitmap(BitmapRepository.BlackRectangle); darknessCover.Color = Color.FromArgb(188, 0, 50, 200); darknessCover.Scaling = new TGCVector2(.8f, .5f); Screen.CenterSprite(darknessCover); xTitle = (int)(darknessCover.Position.X + 60); yTitle = (int)(darknessCover.Position.Y + 80); Uses3DCamera = false; textBig.changeFont(new System.Drawing.Font("Arial Black", 40f)); textSmall.changeFont(new System.Drawing.Font("Arial Black", 20f)); InitInput(); }
public CraftingScene() { bubble = BitmapRepository.CreateSpriteFromBitmap(BitmapRepository.Bubble); bubble.Scaling = this.bubbleDefaultScale; bubbleInitialPos = new TGCVector2( Screen.Width / 2 - bubble.Bitmap.Width * bubbleDefaultScale.X / 2, Screen.Height / 2 - bubble.Bitmap.Height * bubbleDefaultScale.Y / 2 ); arrow = BitmapRepository.CreateSpriteFromBitmap(BitmapRepository.ArrowPointer); hand = BitmapRepository.CreateSpriteFromBitmap(BitmapRepository.Hand); hand.Scaling = new TGCVector2(0.5f, 0.5f); cursor = arrow; cursorDefaultColor = cursor.Color; foreach (var item in Items.Crafter.Crafteables) { hoveredItems.Add(false); } }
private void InitCursor() { cursor = BitmapRepository.CreateSpriteFromBitmap(BitmapRepository.ArrowPointer); cursorDefaultColor = cursor.Color; Screen.CenterSprite(cursor); }
private void InitTitle() { title = BitmapRepository.CreateSpriteFromBitmap(BitmapRepository.Title); title.Scaling = new TGCVector2(.15f, .25f); title.Position = new TGCVector2(200, 250); }
private void InitMask() { mask = BitmapRepository.CreateSpriteFromBitmap(BitmapRepository.Mask); Screen.FitSpriteToScreen(mask); }
private void InitPlant() { plant = BitmapRepository.CreateSpriteFromBitmap(BitmapRepository.Plant); plant.Scaling = new TGCVector2(.1f, .05f); }
private void InitFish() { fish = BitmapRepository.CreateSpriteFromBitmap(BitmapRepository.Fish); fish.Scaling = new TGCVector2(.1f, .05f); }
private void InitBubble() { bubble = BitmapRepository.CreateSpriteFromBitmap(BitmapRepository.Bubble); bubble.Scaling = this.bubbleDefaultScale; }
private void InitWaterVision() { waterVision = BitmapRepository.CreateSpriteFromBitmap(BitmapRepository.WaterRectangle); Screen.FitSpriteToScreen(waterVision); waterVision.Color = Color.FromArgb(120, 10, 70, 164); }
private void InitHand() { hand = BitmapRepository.CreateSpriteFromBitmap(BitmapRepository.Hand); hand.Scaling = new TGCVector2(.5f, .5f); Screen.CenterSprite(hand); }
private void InitAim() { aim = BitmapRepository.CreateSpriteFromBitmap(BitmapRepository.Aim); aim.Scaling = new TGCVector2(.5f, .5f); Screen.CenterSprite(aim); }