Skip to content
This repository has been archived by the owner on Aug 14, 2022. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
ZuliusRoolf committed Nov 13, 2019
2 parents d79d325 + d8163ab commit 57c57ad
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 1 deletion.
12 changes: 12 additions & 0 deletions PartiAppen/PartiAppen/Content/Content.mgcb
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,18 @@
/processorParam:TextureFormat=Color
/build:Images/logo.png

#begin Images/newcircle.png
/importer:TextureImporter
/processor:TextureProcessor
/processorParam:ColorKeyColor=255,0,255,255
/processorParam:ColorKeyEnabled=True
/processorParam:GenerateMipmaps=False
/processorParam:PremultiplyAlpha=True
/processorParam:ResizeToPowerOfTwo=False
/processorParam:MakeSquare=False
/processorParam:TextureFormat=Color
/build:Images/newcircle.png

#begin Sounds/track1.wav
/importer:WavImporter
/processor:SongProcessor
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions PartiAppen/PartiAppen/Menu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,11 @@ public AdvancedImage(Texture2D texture, Rectangle destinationRectangle, Color ti

public void Draw(SpriteBatch spriteBatch)
{
spriteBatch.End();
spriteBatch.Begin();
spriteBatch.Draw(texture, destinationRectangle, null, tint, rotation,origin,SpriteEffects.None, 1f);
spriteBatch.End();
spriteBatch.Begin(SpriteSortMode.Deferred, null, null, null, null, null, Game1.camera.GetViewMatrix());
}
}

Expand Down
3 changes: 2 additions & 1 deletion PartiAppen/PartiAppen/MenuManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public void LoadMenu(ContentManager content)
Rectangle logoRect = new Rectangle(720 / 2 - (480 / 2), 20, 480, 480);
Vector2 padding = new Vector2(-20);
Texture2D logo = content.Load<Texture2D>(@"Images/logo");
Texture2D circle = content.Load<Texture2D>(@"Images/loadingcircledone");
Texture2D circle = content.Load<Texture2D>(@"Images/newcircle");
// BackButton is in all pages but menu
#region BackButton

Expand Down Expand Up @@ -281,6 +281,7 @@ public void Update()
case Menues.Menu:
// reset camera
Game1.camera.Position = Vector2.Zero;
// Rotate circle thing
menu.Pages[0].AdvancedImages[0].rotation += deltaTime * rotationMultiplier;

break;
Expand Down

0 comments on commit 57c57ad

Please sign in to comment.