Textures
This commit is contained in:
parent
22bf643d0a
commit
5ecf46da29
18 changed files with 119 additions and 33 deletions
|
@ -102,7 +102,8 @@ public class ItemDisplayButton : Button
|
||||||
fontColor2 = fontColor1,
|
fontColor2 = fontColor1,
|
||||||
fontName2 = fontName1,
|
fontName2 = fontName1,
|
||||||
scale2 = scale1,
|
scale2 = scale1,
|
||||||
itemTextureName1 = itemTextureName
|
itemTextureName1 = itemTextureName,
|
||||||
|
textureName = "Textures/GUI/Back"
|
||||||
};
|
};
|
||||||
hoverWindow.Initialize(content);
|
hoverWindow.Initialize(content);
|
||||||
hoverWindow.LoadTexture(content);
|
hoverWindow.LoadTexture(content);
|
||||||
|
|
|
@ -111,7 +111,8 @@ public class ItemDisplayLabel : DrawableUIElement
|
||||||
fontColor2 = fontColor1,
|
fontColor2 = fontColor1,
|
||||||
fontName2 = fontName1,
|
fontName2 = fontName1,
|
||||||
scale2 = scale1,
|
scale2 = scale1,
|
||||||
itemTextureName1 = itemTextureName
|
itemTextureName1 = itemTextureName,
|
||||||
|
textureName = "Textures/GUI/Back"
|
||||||
};
|
};
|
||||||
hoverWindow.Initialize(content);
|
hoverWindow.Initialize(content);
|
||||||
hoverWindow.LoadTexture(content);
|
hoverWindow.LoadTexture(content);
|
||||||
|
|
|
@ -329,6 +329,18 @@
|
||||||
/processorParam:TextureFormat=Color
|
/processorParam:TextureFormat=Color
|
||||||
/build:Textures/AnimationTextures/Zombie/zombie_spritesheet_v2.png
|
/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/GUI/background/base.png
|
#begin Textures/GUI/background/base.png
|
||||||
/importer:TextureImporter
|
/importer:TextureImporter
|
||||||
/processor:TextureProcessor
|
/processor:TextureProcessor
|
||||||
|
@ -413,6 +425,30 @@
|
||||||
/processorParam:TextureFormat=Color
|
/processorParam:TextureFormat=Color
|
||||||
/build:Textures/GUI/background/waiting.png
|
/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
|
#begin Textures/GUI/checkboxs_off-on.png
|
||||||
/importer:TextureImporter
|
/importer:TextureImporter
|
||||||
/processor:TextureProcessor
|
/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,
|
rectangle = new Rectangle(width / 2 - (height / 16 + (int)(width / 2.5)) / 2,
|
||||||
height / 2 - (int)(height / 1.5) / 2,
|
height / 2 - (int)(height / 1.5) / 2,
|
||||||
height / 40 + width / 5, (int)(height / 1.5)),
|
height / 40 + width / 5, (int)(height / 1.5)),
|
||||||
mainColor = Color.LightGray
|
mainColor = Color.LightGray,
|
||||||
|
textureName = "Textures/GUI/Back"
|
||||||
};
|
};
|
||||||
Elements.Add(baseItemBack);
|
Elements.Add(baseItemBack);
|
||||||
DrawableUIElement baseCraftBack = new DrawableUIElement(Manager)
|
DrawableUIElement baseCraftBack = new DrawableUIElement(Manager)
|
||||||
{
|
{
|
||||||
rectangle = new Rectangle(width / 2 + height / 160, height / 2 - (int)(height / 1.5) / 2,
|
rectangle = new Rectangle(width / 2 + height / 160, height / 2 - (int)(height / 1.5) / 2,
|
||||||
height / 40 + width / 5, (int)(height / 1.5)),
|
height / 40 + width / 5, (int)(height / 1.5)),
|
||||||
mainColor = Color.LightGray
|
mainColor = Color.LightGray,
|
||||||
|
textureName = "Textures/GUI/Back"
|
||||||
};
|
};
|
||||||
Elements.Add(baseCraftBack);
|
Elements.Add(baseCraftBack);
|
||||||
|
|
||||||
|
@ -85,7 +87,8 @@ public class BaseGUI : AbstractGUI
|
||||||
mainColor = Color.Gray,
|
mainColor = Color.Gray,
|
||||||
fontName1 = "Fonts\\Font4",
|
fontName1 = "Fonts\\Font4",
|
||||||
discriptions1 = itemInfo.description,
|
discriptions1 = itemInfo.description,
|
||||||
resourcesNeededToCraft1 = itemInfo.resourcesNeededToCraft
|
resourcesNeededToCraft1 = itemInfo.resourcesNeededToCraft,
|
||||||
|
textureName = "Textures/GUI/Button"
|
||||||
};
|
};
|
||||||
Elements.Add(temp);
|
Elements.Add(temp);
|
||||||
temp.Initialize();
|
temp.Initialize();
|
||||||
|
@ -134,7 +137,8 @@ public class BaseGUI : AbstractGUI
|
||||||
mainColor = Color.Gray,
|
mainColor = Color.Gray,
|
||||||
fontName1 = "Fonts\\Font4",
|
fontName1 = "Fonts\\Font4",
|
||||||
discriptions1 = itemInfo.description,
|
discriptions1 = itemInfo.description,
|
||||||
resourcesNeededToCraft1 = itemInfo.resourcesNeededToCraft
|
resourcesNeededToCraft1 = itemInfo.resourcesNeededToCraft,
|
||||||
|
textureName = "Textures/GUI/Button"
|
||||||
};
|
};
|
||||||
Elements.Add(temp);
|
Elements.Add(temp);
|
||||||
temp.Initialize();
|
temp.Initialize();
|
||||||
|
@ -160,7 +164,7 @@ public class BaseGUI : AbstractGUI
|
||||||
{
|
{
|
||||||
fontName = "Fonts\\Font3", scale = 0.4f, text = "<-", fontColor = Color.Black,
|
fontName = "Fonts\\Font3", scale = 0.4f, text = "<-", fontColor = Color.Black,
|
||||||
mainColor = Color.Transparent, rectangle = new Rectangle(width / 30, height / 30, width / 40, width / 40),
|
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);
|
Elements.Add(bTExit);
|
||||||
bTExit.LeftButtonPressed += () => { AppManager.Instance.SetGUI(new MainMenuGUI()); };
|
bTExit.LeftButtonPressed += () => { AppManager.Instance.SetGUI(new MainMenuGUI()); };
|
||||||
|
|
|
@ -36,7 +36,8 @@ public class ExitGameGUI : AbstractGUI
|
||||||
scale = 0.3f,
|
scale = 0.3f,
|
||||||
fontColor = Color.White,
|
fontColor = Color.White,
|
||||||
mainColor = Color.Gray,
|
mainColor = Color.Gray,
|
||||||
fontName = "Fonts/Font"
|
fontName = "Fonts/Font",
|
||||||
|
textureName = "Textures/GUI/Button"
|
||||||
};
|
};
|
||||||
endButton.LeftButtonPressed += () =>
|
endButton.LeftButtonPressed += () =>
|
||||||
{
|
{
|
||||||
|
|
|
@ -38,7 +38,8 @@ public class FinishingGUI : AbstractGUI
|
||||||
rectangle = new Rectangle(width / 2 - height / 80 - width / 5 / 2,
|
rectangle = new Rectangle(width / 2 - height / 80 - width / 5 / 2,
|
||||||
height / 2 - (int)(height / 1.5) / 2,
|
height / 2 - (int)(height / 1.5) / 2,
|
||||||
height / 40 + width / 5, (int)(height / 1.5)),
|
height / 40 + width / 5, (int)(height / 1.5)),
|
||||||
mainColor = Color.LightGray
|
mainColor = Color.LightGray,
|
||||||
|
textureName = "Textures/GUI/Back"
|
||||||
};
|
};
|
||||||
Elements.Add(inventoryBack);
|
Elements.Add(inventoryBack);
|
||||||
|
|
||||||
|
@ -50,7 +51,8 @@ public class FinishingGUI : AbstractGUI
|
||||||
scale = 0.2f,
|
scale = 0.2f,
|
||||||
fontColor = Color.White,
|
fontColor = Color.White,
|
||||||
mainColor = Color.Gray,
|
mainColor = Color.Gray,
|
||||||
fontName = "Fonts\\Font"
|
fontName = "Fonts\\Font",
|
||||||
|
textureName = "Textures/GUI/Button"
|
||||||
};
|
};
|
||||||
ExitButton.LeftButtonPressed += () => { AppManager.Instance.SetGUI(new MainMenuGUI()); };
|
ExitButton.LeftButtonPressed += () => { AppManager.Instance.SetGUI(new MainMenuGUI()); };
|
||||||
Elements.Add(ExitButton);
|
Elements.Add(ExitButton);
|
||||||
|
|
|
@ -36,7 +36,8 @@ public class GameEndedGUI : AbstractGUI
|
||||||
scale = 0.3f,
|
scale = 0.3f,
|
||||||
fontColor = Color.White,
|
fontColor = Color.White,
|
||||||
mainColor = Color.Gray,
|
mainColor = Color.Gray,
|
||||||
fontName = "Fonts/Font"
|
fontName = "Fonts/Font",
|
||||||
|
textureName = "Textures/GUI/Button"
|
||||||
};
|
};
|
||||||
endButton.LeftButtonPressed += () =>
|
endButton.LeftButtonPressed += () =>
|
||||||
{
|
{
|
||||||
|
|
|
@ -24,7 +24,11 @@ public class HUD : AbstractGUI
|
||||||
int height = AppManager.Instance.CurentScreenResolution.Y;
|
int height = AppManager.Instance.CurentScreenResolution.Y;
|
||||||
|
|
||||||
Button pauseButton = new Button(Manager)
|
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"};
|
{
|
||||||
|
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);
|
Elements.Add(pauseButton);
|
||||||
pauseButton.LeftButtonPressed += () =>
|
pauseButton.LeftButtonPressed += () =>
|
||||||
{
|
{
|
||||||
|
@ -34,7 +38,11 @@ public class HUD : AbstractGUI
|
||||||
overlayGUI.LoadContent();
|
overlayGUI.LoadContent();
|
||||||
};
|
};
|
||||||
Button invButton = new Button(Manager)
|
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"};
|
{
|
||||||
|
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);
|
Elements.Add(invButton);
|
||||||
invButton.LeftButtonPressed += () =>
|
invButton.LeftButtonPressed += () =>
|
||||||
{
|
{
|
||||||
|
|
|
@ -31,7 +31,8 @@ public class InventoryGUI : AbstractGUI
|
||||||
rectangle = new Rectangle(width / 2 - height / 80 - width / 5 / 2,
|
rectangle = new Rectangle(width / 2 - height / 80 - width / 5 / 2,
|
||||||
height / 2 - (int)(height / 1.5) / 2 - height / 10,
|
height / 2 - (int)(height / 1.5) / 2 - height / 10,
|
||||||
height / 40 + width / 5, (int)(height / 1.5)),
|
height / 40 + width / 5, (int)(height / 1.5)),
|
||||||
mainColor = Color.LightGray
|
mainColor = Color.LightGray,
|
||||||
|
textureName = "Textures/GUI/Back"
|
||||||
};
|
};
|
||||||
Elements.Add(inventoryBack);
|
Elements.Add(inventoryBack);
|
||||||
|
|
||||||
|
@ -43,7 +44,8 @@ public class InventoryGUI : AbstractGUI
|
||||||
scale = 0.2f,
|
scale = 0.2f,
|
||||||
fontColor = Color.White,
|
fontColor = Color.White,
|
||||||
mainColor = Color.Gray,
|
mainColor = Color.Gray,
|
||||||
fontName = "Fonts\\Font"
|
fontName = "Fonts\\Font",
|
||||||
|
textureName = "Textures/GUI/Button"
|
||||||
};
|
};
|
||||||
continueButton.LeftButtonPressed += () => { AppManager.Instance.SetGUI(new HUD()); };
|
continueButton.LeftButtonPressed += () => { AppManager.Instance.SetGUI(new HUD()); };
|
||||||
Elements.Add(continueButton);
|
Elements.Add(continueButton);
|
||||||
|
@ -69,7 +71,8 @@ public class InventoryGUI : AbstractGUI
|
||||||
mainColor = Color.Gray,
|
mainColor = Color.Gray,
|
||||||
fontName1 = "Fonts\\Font4",
|
fontName1 = "Fonts\\Font4",
|
||||||
discriptions1 = itemInfo.description,
|
discriptions1 = itemInfo.description,
|
||||||
resourcesNeededToCraft1 = itemInfo.resourcesNeededToCraft
|
resourcesNeededToCraft1 = itemInfo.resourcesNeededToCraft,
|
||||||
|
textureName = "Texturs/GUI/Button"
|
||||||
};
|
};
|
||||||
Elements.Add(temp);
|
Elements.Add(temp);
|
||||||
temp.Initialize();
|
temp.Initialize();
|
||||||
|
|
|
@ -36,7 +36,8 @@ public class MainMenuGUI : AbstractGUI
|
||||||
scale = 0.2f,
|
scale = 0.2f,
|
||||||
fontColor = Color.White,
|
fontColor = Color.White,
|
||||||
mainColor = Color.Gray,
|
mainColor = Color.Gray,
|
||||||
fontName = "Fonts/Font"
|
fontName = "Fonts/Font",
|
||||||
|
textureName = "Textures/GUI/Button"
|
||||||
};
|
};
|
||||||
playButton.LeftButtonPressed += () =>
|
playButton.LeftButtonPressed += () =>
|
||||||
{
|
{
|
||||||
|
@ -51,7 +52,8 @@ public class MainMenuGUI : AbstractGUI
|
||||||
scale = 0.2f,
|
scale = 0.2f,
|
||||||
fontColor = Color.White,
|
fontColor = Color.White,
|
||||||
mainColor = Color.Gray,
|
mainColor = Color.Gray,
|
||||||
fontName = "Fonts\\Font"
|
fontName = "Fonts\\Font",
|
||||||
|
textureName = "Textures/GUI/Button"
|
||||||
};
|
};
|
||||||
baseButton.LeftButtonPressed += () =>
|
baseButton.LeftButtonPressed += () =>
|
||||||
{
|
{
|
||||||
|
@ -65,7 +67,8 @@ public class MainMenuGUI : AbstractGUI
|
||||||
scale = 0.2f,
|
scale = 0.2f,
|
||||||
fontColor = Color.White,
|
fontColor = Color.White,
|
||||||
mainColor = Color.Gray,
|
mainColor = Color.Gray,
|
||||||
fontName = "Fonts/Font"
|
fontName = "Fonts/Font",
|
||||||
|
textureName = "Textures/GUI/Button"
|
||||||
};
|
};
|
||||||
optionButton.LeftButtonPressed += () =>
|
optionButton.LeftButtonPressed += () =>
|
||||||
{
|
{
|
||||||
|
@ -80,7 +83,8 @@ public class MainMenuGUI : AbstractGUI
|
||||||
scale = 0.2f,
|
scale = 0.2f,
|
||||||
fontColor = Color.White,
|
fontColor = Color.White,
|
||||||
mainColor = Color.Gray,
|
mainColor = Color.Gray,
|
||||||
fontName = "Fonts/Font"
|
fontName = "Fonts/Font",
|
||||||
|
textureName = "Textures/GUI/Button"
|
||||||
};
|
};
|
||||||
exitButton.LeftButtonPressed += () =>
|
exitButton.LeftButtonPressed += () =>
|
||||||
{
|
{
|
||||||
|
|
|
@ -116,7 +116,11 @@ public class OptionsGUI : AbstractGUI
|
||||||
//--------------------------------------
|
//--------------------------------------
|
||||||
|
|
||||||
Button bTExit = new Button(Manager)
|
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);
|
Elements.Add(bTExit);
|
||||||
bTExit.LeftButtonPressed += () =>
|
bTExit.LeftButtonPressed += () =>
|
||||||
{
|
{
|
||||||
|
|
|
@ -27,7 +27,8 @@ public class PauseGUI : AbstractGUI
|
||||||
scale = 0.2f,
|
scale = 0.2f,
|
||||||
fontColor = Color.White,
|
fontColor = Color.White,
|
||||||
mainColor = Color.Gray,
|
mainColor = Color.Gray,
|
||||||
fontName = "Fonts\\Font"
|
fontName = "Fonts\\Font",
|
||||||
|
textureName = "Textures/GUI/Button"
|
||||||
};
|
};
|
||||||
continueButton.LeftButtonPressed += () =>
|
continueButton.LeftButtonPressed += () =>
|
||||||
{
|
{
|
||||||
|
@ -41,7 +42,8 @@ public class PauseGUI : AbstractGUI
|
||||||
scale = 0.2f,
|
scale = 0.2f,
|
||||||
fontColor = Color.White,
|
fontColor = Color.White,
|
||||||
mainColor = Color.Gray,
|
mainColor = Color.Gray,
|
||||||
fontName = "Fonts\\Font"
|
fontName = "Fonts\\Font",
|
||||||
|
textureName = "Textures/GUI/Button"
|
||||||
};
|
};
|
||||||
exitButton.LeftButtonPressed += () =>
|
exitButton.LeftButtonPressed += () =>
|
||||||
{
|
{
|
||||||
|
|
|
@ -34,7 +34,8 @@ public class SelectModeMenu : AbstractGUI
|
||||||
scale = 0.3f,
|
scale = 0.3f,
|
||||||
fontColor = Color.White,
|
fontColor = Color.White,
|
||||||
mainColor = Color.Gray,
|
mainColor = Color.Gray,
|
||||||
fontName = "Fonts/Font"
|
fontName = "Fonts/Font",
|
||||||
|
textureName = "Textures/GUI/Button"
|
||||||
};
|
};
|
||||||
singleButton.LeftButtonPressed += () =>
|
singleButton.LeftButtonPressed += () =>
|
||||||
{
|
{
|
||||||
|
@ -64,7 +65,8 @@ public class SelectModeMenu : AbstractGUI
|
||||||
scale = 0.3f,
|
scale = 0.3f,
|
||||||
fontColor = Color.White,
|
fontColor = Color.White,
|
||||||
mainColor = Color.Gray,
|
mainColor = Color.Gray,
|
||||||
fontName = "Fonts/Font"
|
fontName = "Fonts/Font",
|
||||||
|
textureName = "Textures/GUI/Button"
|
||||||
};
|
};
|
||||||
optionButton.LeftButtonPressed += () =>
|
optionButton.LeftButtonPressed += () =>
|
||||||
{
|
{
|
||||||
|
@ -76,7 +78,11 @@ public class SelectModeMenu : AbstractGUI
|
||||||
Elements.Add(optionButton);
|
Elements.Add(optionButton);
|
||||||
|
|
||||||
Button bTExit = new Button(Manager)
|
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);
|
Elements.Add(bTExit);
|
||||||
bTExit.LeftButtonPressed += () =>
|
bTExit.LeftButtonPressed += () =>
|
||||||
{
|
{
|
||||||
|
|
|
@ -36,7 +36,8 @@ public class SelectingServerGUI : AbstractGUI
|
||||||
fontColor = Color.White,
|
fontColor = Color.White,
|
||||||
mainColor = Color.Gray,
|
mainColor = Color.Gray,
|
||||||
textAligment = MonogameLibrary.UI.Enums.TextAligment.Left,
|
textAligment = MonogameLibrary.UI.Enums.TextAligment.Left,
|
||||||
fontName = "Fonts/Font3"
|
fontName = "Fonts/Font3",
|
||||||
|
textureName = "Textures/GUI/Button"
|
||||||
};
|
};
|
||||||
ipBox.TextChanged += input =>
|
ipBox.TextChanged += input =>
|
||||||
{
|
{
|
||||||
|
@ -61,7 +62,8 @@ public class SelectingServerGUI : AbstractGUI
|
||||||
scale = 0.3f,
|
scale = 0.3f,
|
||||||
fontColor = Color.White,
|
fontColor = Color.White,
|
||||||
mainColor = Color.Gray,
|
mainColor = Color.Gray,
|
||||||
fontName = "Fonts/Font"
|
fontName = "Fonts/Font",
|
||||||
|
textureName = "Textures/GUI/Button"
|
||||||
};
|
};
|
||||||
joinButton.LeftButtonPressed += () =>
|
joinButton.LeftButtonPressed += () =>
|
||||||
{
|
{
|
||||||
|
@ -95,7 +97,8 @@ public class SelectingServerGUI : AbstractGUI
|
||||||
scale = 0.3f,
|
scale = 0.3f,
|
||||||
fontColor = Color.White,
|
fontColor = Color.White,
|
||||||
mainColor = Color.Gray,
|
mainColor = Color.Gray,
|
||||||
fontName = "Fonts/Font"
|
fontName = "Fonts/Font",
|
||||||
|
textureName = "Textures/GUI/Button"
|
||||||
};
|
};
|
||||||
hostButton.LeftButtonPressed += () =>
|
hostButton.LeftButtonPressed += () =>
|
||||||
{
|
{
|
||||||
|
@ -115,7 +118,11 @@ public class SelectingServerGUI : AbstractGUI
|
||||||
Elements.Add(hostButton);
|
Elements.Add(hostButton);
|
||||||
|
|
||||||
Button bTExit = new Button(Manager)
|
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);
|
Elements.Add(bTExit);
|
||||||
bTExit.LeftButtonPressed += () =>
|
bTExit.LeftButtonPressed += () =>
|
||||||
{
|
{
|
||||||
|
|
|
@ -47,7 +47,8 @@ public class WaitingForPlayersGUI : AbstractGUI
|
||||||
scale = 0.3f,
|
scale = 0.3f,
|
||||||
fontColor = Color.White,
|
fontColor = Color.White,
|
||||||
mainColor = Color.Gray,
|
mainColor = Color.Gray,
|
||||||
fontName = "Fonts/Font"
|
fontName = "Fonts/Font",
|
||||||
|
textureName = "Textures/GUI/Button"
|
||||||
};
|
};
|
||||||
startButton.LeftButtonPressed += () =>
|
startButton.LeftButtonPressed += () =>
|
||||||
{
|
{
|
||||||
|
@ -67,7 +68,8 @@ public class WaitingForPlayersGUI : AbstractGUI
|
||||||
scale = 0.3f,
|
scale = 0.3f,
|
||||||
fontColor = Color.White,
|
fontColor = Color.White,
|
||||||
mainColor = Color.Gray,
|
mainColor = Color.Gray,
|
||||||
fontName = "Fonts/Font"
|
fontName = "Fonts/Font",
|
||||||
|
textureName = "Textures/GUI/Button"
|
||||||
};
|
};
|
||||||
waitButton.LeftButtonPressed += () =>
|
waitButton.LeftButtonPressed += () =>
|
||||||
{
|
{
|
||||||
|
@ -79,7 +81,11 @@ public class WaitingForPlayersGUI : AbstractGUI
|
||||||
}
|
}
|
||||||
|
|
||||||
Button bTExit = new Button(Manager)
|
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);
|
Elements.Add(bTExit);
|
||||||
bTExit.LeftButtonPressed += () =>
|
bTExit.LeftButtonPressed += () =>
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue