add a new button
This commit is contained in:
parent
9a6a6079d4
commit
8a9b515132
|
|
@ -1,7 +1,7 @@
|
|||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 16
|
||||
VisualStudioVersion = 16.0.29326.143
|
||||
# Visual Studio Version 18
|
||||
VisualStudioVersion = 18.3.11505.172 d18.3
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "sticky_viewer", "sticky_viewer\sticky_viewer.csproj", "{7D0FEB20-AB4F-4E57-AD69-CC88D4423F53}"
|
||||
EndProject
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
<add key="A" value="Y" />
|
||||
<add key="B" value="X" />
|
||||
<add key="C" value="RB" />
|
||||
<add key="D" value="LB" />
|
||||
<add key="J" value="B" />
|
||||
<add key="S" value="A" />
|
||||
</appSettings>
|
||||
|
|
|
|||
|
|
@ -46,13 +46,14 @@ namespace sticky_viewer
|
|||
private Texture2D A;
|
||||
private Texture2D B;
|
||||
private Texture2D C;
|
||||
private Texture2D D;
|
||||
private Texture2D J;
|
||||
private Texture2D S;
|
||||
public Display()
|
||||
{
|
||||
graphics = new GraphicsDeviceManager(this);
|
||||
|
||||
graphics.PreferredBackBufferWidth = 200;
|
||||
graphics.PreferredBackBufferWidth = 226;
|
||||
graphics.PreferredBackBufferHeight = 75;
|
||||
Window.IsBorderless = true;
|
||||
|
||||
|
|
@ -211,6 +212,7 @@ namespace sticky_viewer
|
|||
A = inputs[ConfigurationManager.AppSettings["A"] ?? "Y"] ? pressed : unpressed;
|
||||
B = inputs[ConfigurationManager.AppSettings["B"] ?? "X"] ? pressed : unpressed;
|
||||
C = inputs[ConfigurationManager.AppSettings["C"] ?? "RB"] ? pressed : unpressed;
|
||||
D = inputs[ConfigurationManager.AppSettings["D"] ?? "LB"] ? pressed : unpressed;
|
||||
J = inputs[ConfigurationManager.AppSettings["J"] ?? "B"] ? pressed : unpressed;
|
||||
S = inputs[ConfigurationManager.AppSettings["S"] ?? "A"] ? pressed : unpressed;
|
||||
|
||||
|
|
@ -227,12 +229,13 @@ namespace sticky_viewer
|
|||
|
||||
spriteBatch.Begin();
|
||||
|
||||
spriteBatch.Draw(stick, new Vector2(21, 16), Color.White);
|
||||
spriteBatch.Draw(A, new Vector2(96, 11), Color.White);
|
||||
spriteBatch.Draw(B, new Vector2(128, 6), Color.White);
|
||||
spriteBatch.Draw(C, new Vector2(161, 6), Color.White);
|
||||
spriteBatch.Draw(J, new Vector2(86, 41), Color.White);
|
||||
spriteBatch.Draw(S, new Vector2(118, 36), Color.White);
|
||||
spriteBatch.Draw(stick, new Vector2(11, 16), Color.White);
|
||||
spriteBatch.Draw(A, new Vector2(86, 11), Color.White);
|
||||
spriteBatch.Draw(B, new Vector2(118, 6), Color.White);
|
||||
spriteBatch.Draw(C, new Vector2(151, 6), Color.White);
|
||||
spriteBatch.Draw(D, new Vector2(184, 6), Color.White);
|
||||
spriteBatch.Draw(J, new Vector2(76, 41), Color.White);
|
||||
spriteBatch.Draw(S, new Vector2(108, 36), Color.White);
|
||||
|
||||
spriteBatch.End();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue