commit
1e1be7d923
18 changed files with 122 additions and 36 deletions
|
@ -102,7 +102,8 @@ public class ItemDisplayButton : Button
|
|||
fontColor2 = fontColor1,
|
||||
fontName2 = fontName1,
|
||||
scale2 = scale1,
|
||||
itemTextureName1 = itemTextureName
|
||||
itemTextureName1 = itemTextureName,
|
||||
textureName = "Textures/GUI/Back"
|
||||
};
|
||||
hoverWindow.Initialize(content);
|
||||
hoverWindow.LoadTexture(content);
|
||||
|
|
|
@ -111,7 +111,8 @@ public class ItemDisplayLabel : DrawableUIElement
|
|||
fontColor2 = fontColor1,
|
||||
fontName2 = fontName1,
|
||||
scale2 = scale1,
|
||||
itemTextureName1 = itemTextureName
|
||||
itemTextureName1 = itemTextureName,
|
||||
textureName = "Textures/GUI/Back"
|
||||
};
|
||||
hoverWindow.Initialize(content);
|
||||
hoverWindow.LoadTexture(content);
|
||||
|
|
|
@ -394,6 +394,18 @@
|
|||
/processorParam:MakeSquare=False
|
||||
/processorParam:TextureFormat=Color
|
||||
/build:Textures/AnimationTextures/Zombie/zombie_spritesheet_v2.png
|
||||
|
||||
#begin Textures/GUI/back.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:Textures/GUI/back.png
|
||||
|
||||
#begin Textures/Effects/explosion.png
|
||||
/importer:TextureImporter
|
||||
|
@ -405,7 +417,7 @@
|
|||
/processorParam:ResizeToPowerOfTwo=False
|
||||
/processorParam:MakeSquare=False
|
||||
/processorParam:TextureFormat=Color
|
||||
/build:Textures/Effects/explosion.png
|
||||
/build:Textures/Effects/explosion.png
|
||||
|
||||
#begin Textures/GUI/background/base.png
|
||||
/importer:TextureImporter
|
||||
|
@ -491,6 +503,30 @@
|
|||
/processorParam:TextureFormat=Color
|
||||
/build:Textures/GUI/background/waiting.png
|
||||
|
||||
#begin Textures/GUI/Button.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:Textures/GUI/Button.png
|
||||
|
||||
#begin Textures/GUI/Button2.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:Textures/GUI/Button2.png
|
||||
|
||||
#begin Textures/GUI/checkboxs_off-on.png
|
||||
/importer:TextureImporter
|
||||
/processor:TextureProcessor
|
||||
|
|
BIN
ZoFo/Content/Textures/GUI/Button.png
Normal file
BIN
ZoFo/Content/Textures/GUI/Button.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 740 B |
BIN
ZoFo/Content/Textures/GUI/Button2.png
Normal file
BIN
ZoFo/Content/Textures/GUI/Button2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 885 B |
BIN
ZoFo/Content/Textures/GUI/back.png
Normal file
BIN
ZoFo/Content/Textures/GUI/back.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.3 KiB |
|
@ -54,14 +54,16 @@ public class BaseGUI : AbstractGUI
|
|||
rectangle = new Rectangle(width / 2 - (height / 16 + (int)(width / 2.5)) / 2,
|
||||
height / 2 - (int)(height / 1.5) / 2,
|
||||
height / 40 + width / 5, (int)(height / 1.5)),
|
||||
mainColor = Color.LightGray
|
||||
mainColor = Color.LightGray,
|
||||
textureName = "Textures/GUI/Back"
|
||||
};
|
||||
Elements.Add(baseItemBack);
|
||||
DrawableUIElement baseCraftBack = new DrawableUIElement(Manager)
|
||||
{
|
||||
rectangle = new Rectangle(width / 2 + height / 160, height / 2 - (int)(height / 1.5) / 2,
|
||||
height / 40 + width / 5, (int)(height / 1.5)),
|
||||
mainColor = Color.LightGray
|
||||
mainColor = Color.LightGray,
|
||||
textureName = "Textures/GUI/Back"
|
||||
};
|
||||
Elements.Add(baseCraftBack);
|
||||
|
||||
|
@ -85,7 +87,8 @@ public class BaseGUI : AbstractGUI
|
|||
mainColor = Color.Gray,
|
||||
fontName1 = "Fonts\\Font4",
|
||||
discriptions1 = itemInfo.description,
|
||||
resourcesNeededToCraft1 = itemInfo.resourcesNeededToCraft
|
||||
resourcesNeededToCraft1 = itemInfo.resourcesNeededToCraft,
|
||||
textureName = "Textures/GUI/Button"
|
||||
};
|
||||
Elements.Add(temp);
|
||||
temp.Initialize();
|
||||
|
@ -134,7 +137,8 @@ public class BaseGUI : AbstractGUI
|
|||
mainColor = Color.Gray,
|
||||
fontName1 = "Fonts\\Font4",
|
||||
discriptions1 = itemInfo.description,
|
||||
resourcesNeededToCraft1 = itemInfo.resourcesNeededToCraft
|
||||
resourcesNeededToCraft1 = itemInfo.resourcesNeededToCraft,
|
||||
textureName = "Textures/GUI/Button"
|
||||
};
|
||||
Elements.Add(temp);
|
||||
temp.Initialize();
|
||||
|
@ -161,7 +165,7 @@ public class BaseGUI : AbstractGUI
|
|||
{
|
||||
fontName = "Fonts\\Font3", scale = 0.4f, text = "<-", fontColor = Color.Black,
|
||||
mainColor = Color.Transparent, rectangle = new Rectangle(width / 30, height / 30, width / 40, width / 40),
|
||||
textureName = "Textures\\GUI\\checkboxs_off"
|
||||
textureName = "Textures/GUI/Button2"
|
||||
};
|
||||
Elements.Add(bTExit);
|
||||
bTExit.LeftButtonPressed += () => { AppManager.Instance.SetGUI(new MainMenuGUI());
|
||||
|
|
|
@ -36,7 +36,8 @@ public class ExitGameGUI : AbstractGUI
|
|||
scale = 0.3f,
|
||||
fontColor = Color.White,
|
||||
mainColor = Color.Gray,
|
||||
fontName = "Fonts/Font"
|
||||
fontName = "Fonts/Font",
|
||||
textureName = "Textures/GUI/Button"
|
||||
};
|
||||
endButton.LeftButtonPressed += () =>
|
||||
{
|
||||
|
|
|
@ -38,7 +38,8 @@ public class FinishingGUI : AbstractGUI
|
|||
rectangle = new Rectangle(width / 2 - height / 80 - width / 5 / 2,
|
||||
height / 2 - (int)(height / 1.5) / 2,
|
||||
height / 40 + width / 5, (int)(height / 1.5)),
|
||||
mainColor = Color.LightGray
|
||||
mainColor = Color.LightGray,
|
||||
textureName = "Textures/GUI/Back"
|
||||
};
|
||||
Elements.Add(inventoryBack);
|
||||
|
||||
|
@ -50,7 +51,8 @@ public class FinishingGUI : AbstractGUI
|
|||
scale = 0.2f,
|
||||
fontColor = Color.White,
|
||||
mainColor = Color.Gray,
|
||||
fontName = "Fonts\\Font"
|
||||
fontName = "Fonts\\Font",
|
||||
textureName = "Textures/GUI/Button"
|
||||
};
|
||||
ExitButton.LeftButtonPressed += () => { AppManager.Instance.SetGUI(new MainMenuGUI()); };
|
||||
Elements.Add(ExitButton);
|
||||
|
|
|
@ -36,7 +36,8 @@ public class GameEndedGUI : AbstractGUI
|
|||
scale = 0.3f,
|
||||
fontColor = Color.White,
|
||||
mainColor = Color.Gray,
|
||||
fontName = "Fonts/Font"
|
||||
fontName = "Fonts/Font",
|
||||
textureName = "Textures/GUI/Button"
|
||||
};
|
||||
endButton.LeftButtonPressed += () =>
|
||||
{
|
||||
|
|
|
@ -23,8 +23,12 @@ public class HUD : AbstractGUI
|
|||
int width = AppManager.Instance.CurentScreenResolution.X;
|
||||
int height = AppManager.Instance.CurentScreenResolution.Y;
|
||||
|
||||
Button pauseButton = new Button(Manager)
|
||||
{ fontName = "Fonts\\Font3", scale = 0.4f, text = "| |", fontColor = Color.Black, mainColor = Color.Transparent, rectangle = new Rectangle(width - width / 30 - width / 40, height / 30, width / 40, width / 40), textureName = "Textures/GUI/checkboxs_off"};
|
||||
Button pauseButton = new Button(Manager)
|
||||
{
|
||||
fontName = "Fonts\\Font3", scale = 0.4f, text = "| |", fontColor = Color.Black,
|
||||
mainColor = Color.Transparent, rectangle = new Rectangle(width - width / 30 - width / 40, height / 30, width / 40, width / 40),
|
||||
textureName = "Textures/GUI/Button2"
|
||||
};
|
||||
Elements.Add(pauseButton);
|
||||
pauseButton.LoadTexture(AppManager.Instance.Content);
|
||||
pauseButton.LeftButtonPressed += () =>
|
||||
|
@ -36,8 +40,12 @@ public class HUD : AbstractGUI
|
|||
overlayGUI.Initialize();
|
||||
overlayGUI.LoadContent();
|
||||
};
|
||||
Button invButton = new Button(Manager)
|
||||
{ fontName = "Fonts\\Font3", scale = 0.4f, text = "inv", fontColor = Color.Black, mainColor = Color.Transparent, rectangle = new Rectangle(width - width / 30 - width / 40, height / 15 + width / 40, width / 40, width / 40), textureName = "Textures/GUI/checkboxs_off"};
|
||||
Button invButton = new Button(Manager)
|
||||
{
|
||||
fontName = "Fonts\\Font3", scale = 0.4f, text = "inv", fontColor = Color.Black,
|
||||
mainColor = Color.Transparent, rectangle = new Rectangle(width - width / 30 - width / 40, height / 15 + width / 40, width / 40, width / 40),
|
||||
textureName = "Textures/GUI/Button2"
|
||||
};
|
||||
Elements.Add(invButton);
|
||||
invButton.LoadTexture(AppManager.Instance.Content);
|
||||
invButton.LeftButtonPressed += () =>
|
||||
|
|
|
@ -31,7 +31,8 @@ public class InventoryGUI : AbstractGUI
|
|||
rectangle = new Rectangle(width / 2 - height / 80 - width / 5 / 2,
|
||||
height / 2 - (int)(height / 1.5) / 2 - height / 10,
|
||||
height / 40 + width / 5, (int)(height / 1.5)),
|
||||
mainColor = Color.LightGray
|
||||
mainColor = Color.LightGray,
|
||||
textureName = "Textures/GUI/Back"
|
||||
};
|
||||
Elements.Add(inventoryBack);
|
||||
|
||||
|
@ -43,7 +44,8 @@ public class InventoryGUI : AbstractGUI
|
|||
scale = 0.2f,
|
||||
fontColor = Color.White,
|
||||
mainColor = Color.Gray,
|
||||
fontName = "Fonts\\Font"
|
||||
fontName = "Fonts\\Font",
|
||||
textureName = "Textures/GUI/Button"
|
||||
};
|
||||
continueButton.LeftButtonPressed += () => { AppManager.Instance.SetGUI(new HUD()); };
|
||||
Elements.Add(continueButton);
|
||||
|
@ -69,7 +71,8 @@ public class InventoryGUI : AbstractGUI
|
|||
mainColor = Color.Gray,
|
||||
fontName1 = "Fonts\\Font4",
|
||||
discriptions1 = itemInfo.description,
|
||||
resourcesNeededToCraft1 = itemInfo.resourcesNeededToCraft
|
||||
resourcesNeededToCraft1 = itemInfo.resourcesNeededToCraft,
|
||||
textureName = "Texturs/GUI/Button"
|
||||
};
|
||||
Elements.Add(temp);
|
||||
temp.Initialize();
|
||||
|
|
|
@ -36,7 +36,8 @@ public class MainMenuGUI : AbstractGUI
|
|||
scale = 0.2f,
|
||||
fontColor = Color.White,
|
||||
mainColor = Color.Gray,
|
||||
fontName = "Fonts/Font"
|
||||
fontName = "Fonts/Font",
|
||||
textureName = "Textures/GUI/Button"
|
||||
};
|
||||
playButton.LeftButtonPressed += () =>
|
||||
{
|
||||
|
@ -51,7 +52,8 @@ public class MainMenuGUI : AbstractGUI
|
|||
scale = 0.2f,
|
||||
fontColor = Color.White,
|
||||
mainColor = Color.Gray,
|
||||
fontName = "Fonts\\Font"
|
||||
fontName = "Fonts\\Font",
|
||||
textureName = "Textures/GUI/Button"
|
||||
};
|
||||
baseButton.LeftButtonPressed += () =>
|
||||
{
|
||||
|
@ -66,7 +68,8 @@ public class MainMenuGUI : AbstractGUI
|
|||
scale = 0.2f,
|
||||
fontColor = Color.White,
|
||||
mainColor = Color.Gray,
|
||||
fontName = "Fonts/Font"
|
||||
fontName = "Fonts/Font",
|
||||
textureName = "Textures/GUI/Button"
|
||||
};
|
||||
optionButton.LeftButtonPressed += () =>
|
||||
{
|
||||
|
@ -81,7 +84,8 @@ public class MainMenuGUI : AbstractGUI
|
|||
scale = 0.2f,
|
||||
fontColor = Color.White,
|
||||
mainColor = Color.Gray,
|
||||
fontName = "Fonts/Font"
|
||||
fontName = "Fonts/Font",
|
||||
textureName = "Textures/GUI/Button"
|
||||
};
|
||||
exitButton.LeftButtonPressed += () =>
|
||||
{
|
||||
|
|
|
@ -120,7 +120,11 @@ public class OptionsGUI : AbstractGUI
|
|||
//--------------------------------------
|
||||
|
||||
Button bTExit = new Button(Manager)
|
||||
{ fontName = "Fonts/Font3", scale = 0.4f, text = "<-", fontColor = Color.Black, mainColor = Color.Transparent, rectangle = new Rectangle(width / 30, height / 30, width / 40, width / 40), textureName = "Textures/GUI/checkboxs_off"};
|
||||
{
|
||||
fontName = "Fonts/Font3", scale = 0.4f, text = "<-", fontColor = Color.Black, mainColor = Color.Transparent,
|
||||
rectangle = new Rectangle(width / 30, height / 30, width / 40, width / 40),
|
||||
textureName = "Textures/GUI/Button2"
|
||||
};
|
||||
Elements.Add(bTExit);
|
||||
bTExit.LeftButtonPressed += () =>
|
||||
{
|
||||
|
|
|
@ -27,7 +27,8 @@ public class PauseGUI : AbstractGUI
|
|||
scale = 0.2f,
|
||||
fontColor = Color.White,
|
||||
mainColor = Color.Gray,
|
||||
fontName = "Fonts\\Font"
|
||||
fontName = "Fonts\\Font",
|
||||
textureName = "Textures/GUI/Button"
|
||||
};
|
||||
continueButton.LeftButtonPressed += () =>
|
||||
{
|
||||
|
@ -42,7 +43,8 @@ public class PauseGUI : AbstractGUI
|
|||
scale = 0.2f,
|
||||
fontColor = Color.White,
|
||||
mainColor = Color.Gray,
|
||||
fontName = "Fonts\\Font"
|
||||
fontName = "Fonts\\Font",
|
||||
textureName = "Textures/GUI/Button"
|
||||
};
|
||||
exitButton.LeftButtonPressed += () =>
|
||||
{
|
||||
|
|
|
@ -34,7 +34,8 @@ public class SelectModeMenu : AbstractGUI
|
|||
scale = 0.3f,
|
||||
fontColor = Color.White,
|
||||
mainColor = Color.Gray,
|
||||
fontName = "Fonts/Font"
|
||||
fontName = "Fonts/Font",
|
||||
textureName = "Textures/GUI/Button"
|
||||
};
|
||||
singleButton.LeftButtonPressed += () =>
|
||||
{
|
||||
|
@ -67,7 +68,8 @@ public class SelectModeMenu : AbstractGUI
|
|||
scale = 0.3f,
|
||||
fontColor = Color.White,
|
||||
mainColor = Color.Gray,
|
||||
fontName = "Fonts/Font"
|
||||
fontName = "Fonts/Font",
|
||||
textureName = "Textures/GUI/Button"
|
||||
};
|
||||
optionButton.LeftButtonPressed += () =>
|
||||
{
|
||||
|
@ -80,7 +82,11 @@ public class SelectModeMenu : AbstractGUI
|
|||
Elements.Add(optionButton);
|
||||
|
||||
Button bTExit = new Button(Manager)
|
||||
{ fontName = "Fonts/Font3", scale = 0.4f, text = "<-", fontColor = Color.Black, mainColor = Color.Transparent, rectangle = new Rectangle(width / 30, height / 30, width / 40, width / 40), textureName = "Textures/GUI/checkboxs_off"};
|
||||
{
|
||||
fontName = "Fonts/Font3", scale = 0.4f, text = "<-", fontColor = Color.Black, mainColor = Color.Transparent,
|
||||
rectangle = new Rectangle(width / 30, height / 30, width / 40, width / 40),
|
||||
textureName = "Textures/GUI/Button2"
|
||||
};
|
||||
Elements.Add(bTExit);
|
||||
bTExit.LeftButtonPressed += () =>
|
||||
{
|
||||
|
|
|
@ -36,7 +36,8 @@ public class SelectingServerGUI : AbstractGUI
|
|||
fontColor = Color.White,
|
||||
mainColor = Color.Gray,
|
||||
textAligment = MonogameLibrary.UI.Enums.TextAligment.Left,
|
||||
fontName = "Fonts/Font3"
|
||||
fontName = "Fonts/Font3",
|
||||
textureName = "Textures/GUI/Button"
|
||||
};
|
||||
ipBox.TextChanged += input =>
|
||||
{
|
||||
|
@ -61,7 +62,8 @@ public class SelectingServerGUI : AbstractGUI
|
|||
scale = 0.3f,
|
||||
fontColor = Color.White,
|
||||
mainColor = Color.Gray,
|
||||
fontName = "Fonts/Font"
|
||||
fontName = "Fonts/Font",
|
||||
textureName = "Textures/GUI/Button"
|
||||
};
|
||||
joinButton.LeftButtonPressed += () =>
|
||||
{
|
||||
|
@ -96,7 +98,8 @@ public class SelectingServerGUI : AbstractGUI
|
|||
scale = 0.3f,
|
||||
fontColor = Color.White,
|
||||
mainColor = Color.Gray,
|
||||
fontName = "Fonts/Font"
|
||||
fontName = "Fonts/Font",
|
||||
textureName = "Textures/GUI/Button"
|
||||
};
|
||||
hostButton.LeftButtonPressed += () =>
|
||||
{
|
||||
|
@ -116,7 +119,11 @@ public class SelectingServerGUI : AbstractGUI
|
|||
Elements.Add(hostButton);
|
||||
|
||||
Button bTExit = new Button(Manager)
|
||||
{ fontName = "Fonts/Font3", scale = 0.4f, text = "<-", fontColor = Color.Black, mainColor = Color.Transparent, rectangle = new Rectangle(width / 30, height / 30, width / 40, width / 40), textureName = "Textures/GUI/checkboxs_off" };
|
||||
{
|
||||
fontName = "Fonts/Font3", scale = 0.4f, text = "<-", fontColor = Color.Black, mainColor = Color.Transparent,
|
||||
rectangle = new Rectangle(width / 30, height / 30, width / 40, width / 40),
|
||||
textureName = "Textures/GUI/Button2"
|
||||
};
|
||||
Elements.Add(bTExit);
|
||||
bTExit.LeftButtonPressed += () =>
|
||||
{
|
||||
|
|
|
@ -47,7 +47,8 @@ public class WaitingForPlayersGUI : AbstractGUI
|
|||
scale = 0.3f,
|
||||
fontColor = Color.White,
|
||||
mainColor = Color.Gray,
|
||||
fontName = "Fonts/Font"
|
||||
fontName = "Fonts/Font",
|
||||
textureName = "Textures/GUI/Button"
|
||||
};
|
||||
startButton.LeftButtonPressed += () =>
|
||||
{
|
||||
|
@ -67,7 +68,8 @@ public class WaitingForPlayersGUI : AbstractGUI
|
|||
scale = 0.3f,
|
||||
fontColor = Color.White,
|
||||
mainColor = Color.Gray,
|
||||
fontName = "Fonts/Font"
|
||||
fontName = "Fonts/Font",
|
||||
textureName = "Textures/GUI/Button"
|
||||
};
|
||||
waitButton.LeftButtonPressed += () =>
|
||||
{
|
||||
|
@ -79,7 +81,11 @@ public class WaitingForPlayersGUI : AbstractGUI
|
|||
}
|
||||
|
||||
Button bTExit = new Button(Manager)
|
||||
{ fontName = "Fonts/Font3", scale = 0.4f, text = "<-", fontColor = Color.Black, mainColor = Color.Transparent, rectangle = new Rectangle(width / 30, height / 30, width / 40, width / 40), textureName = "Textures/GUI/checkboxs_off"};
|
||||
{
|
||||
fontName = "Fonts/Font3", scale = 0.4f, text = "<-", fontColor = Color.Black, mainColor = Color.Transparent,
|
||||
rectangle = new Rectangle(width / 30, height / 30, width / 40, width / 40),
|
||||
textureName = "Textures/GUI/Button2"
|
||||
};
|
||||
Elements.Add(bTExit);
|
||||
bTExit.LeftButtonPressed += () =>
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue