Textures
This commit is contained in:
parent
5ecf46da29
commit
7f5bba6244
6 changed files with 14 additions and 4 deletions
|
@ -449,6 +449,18 @@
|
|||
/processorParam:TextureFormat=Color
|
||||
/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
|
||||
/importer:TextureImporter
|
||||
/processor:TextureProcessor
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 740 B After Width: | Height: | Size: 15 KiB |
BIN
ZoFo/Content/Textures/GUI/ButtonI.png
Normal file
BIN
ZoFo/Content/Textures/GUI/ButtonI.png
Normal file
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 |
|
@ -54,7 +54,6 @@ 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,
|
||||
textureName = "Textures/GUI/Back"
|
||||
};
|
||||
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,
|
||||
height / 40 + width / 5, (int)(height / 1.5)),
|
||||
mainColor = Color.LightGray,
|
||||
textureName = "Textures/GUI/Back"
|
||||
};
|
||||
Elements.Add(baseCraftBack);
|
||||
|
|
|
@ -39,9 +39,9 @@ public class HUD : AbstractGUI
|
|||
};
|
||||
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),
|
||||
textureName = "Textures/GUI/Button2"
|
||||
textureName = "Textures/GUI/ButtonI"
|
||||
};
|
||||
Elements.Add(invButton);
|
||||
invButton.LeftButtonPressed += () =>
|
||||
|
|
Loading…
Add table
Reference in a new issue