optionsGui merge
This commit is contained in:
parent
75e40c2c23
commit
42ea9cffbb
2 changed files with 8 additions and 3 deletions
|
@ -26,7 +26,7 @@ public abstract class AbstractGui : IDrawableObject
|
||||||
|
|
||||||
public virtual void LoadContent()
|
public virtual void LoadContent()
|
||||||
{
|
{
|
||||||
Manager.LoadContent(AppManager.Instance.Content, "Font");
|
Manager.LoadContent(AppManager.Instance.Content, "Font2");
|
||||||
}
|
}
|
||||||
|
|
||||||
public virtual void Update(GameTime gameTime)
|
public virtual void Update(GameTime gameTime)
|
||||||
|
|
|
@ -14,14 +14,19 @@ namespace DangerousD.GameCore.GUI
|
||||||
{
|
{
|
||||||
MinValue = 0,
|
MinValue = 0,
|
||||||
MaxValue = 1,
|
MaxValue = 1,
|
||||||
rectangle = new Rectangle(650, 150, 100 ,40)
|
rectangle = new Rectangle(650, 150, 100, 40)
|
||||||
};
|
};
|
||||||
|
|
||||||
Label lblOptions = new Label(Manager, 0);
|
Label lblOptions = new Label(Manager, 0);
|
||||||
lblOptions.fontName = "font2";
|
lblOptions.fontName = "Font2";
|
||||||
lblOptions.text = "Options";
|
lblOptions.text = "Options";
|
||||||
lblOptions.rectangle = new Rectangle(300, 20, 210, 50);
|
lblOptions.rectangle = new Rectangle(300, 20, 210, 50);
|
||||||
lblOptions.mainColor = Color.Transparent;
|
lblOptions.mainColor = Color.Transparent;
|
||||||
|
|
||||||
|
Label lblValue = new Label(Manager);
|
||||||
|
lblValue.fontName = "Font2";
|
||||||
|
lblValue.text = "Value";
|
||||||
|
lblValue.rectangle = new Rectangle(400, 150, 250, 40);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Add table
Reference in a new issue