This commit is contained in:
dvaer 2024-08-20 17:44:32 +03:00
parent 5ecf46da29
commit 7f5bba6244
6 changed files with 14 additions and 4 deletions

View file

@ -449,6 +449,18 @@
/processorParam:TextureFormat=Color /processorParam:TextureFormat=Color
/build:Textures/GUI/Button2.png /build:Textures/GUI/Button2.png
#begin Textures/GUI/ButtonI.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/ButtonI.png
#begin Textures/GUI/checkboxs_off-on.png #begin Textures/GUI/checkboxs_off-on.png
/importer:TextureImporter /importer:TextureImporter
/processor:TextureProcessor /processor:TextureProcessor

Binary file not shown.

Before

Width:  |  Height:  |  Size: 740 B

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 931 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.3 KiB

After

Width:  |  Height:  |  Size: 4.9 KiB

View file

@ -54,7 +54,6 @@ 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,
textureName = "Textures/GUI/Back" textureName = "Textures/GUI/Back"
}; };
Elements.Add(baseItemBack); Elements.Add(baseItemBack);
@ -62,7 +61,6 @@ public class BaseGUI : AbstractGUI
{ {
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,
textureName = "Textures/GUI/Back" textureName = "Textures/GUI/Back"
}; };
Elements.Add(baseCraftBack); Elements.Add(baseCraftBack);

View file

@ -39,9 +39,9 @@ public class HUD : AbstractGUI
}; };
Button invButton = new Button(Manager) Button invButton = new Button(Manager)
{ {
fontName = "Fonts\\Font3", scale = 0.4f, text = "inv", fontColor = Color.Black, fontName = "Fonts\\Font3", scale = 0.4f, fontColor = Color.Black,
mainColor = Color.Transparent, rectangle = new Rectangle(width - width / 30 - width / 40, height / 15 + width / 40, width / 40, width / 40), mainColor = Color.Transparent, rectangle = new Rectangle(width - width / 30 - width / 40, height / 15 + width / 40, width / 40, width / 40),
textureName = "Textures/GUI/Button2" textureName = "Textures/GUI/ButtonI"
}; };
Elements.Add(invButton); Elements.Add(invButton);
invButton.LeftButtonPressed += () => invButton.LeftButtonPressed += () =>