Compare commits
2 Commits
9a3512702a
...
b228f04670
| Author | SHA1 | Date | |
|---|---|---|---|
| b228f04670 | |||
| a5d2668c18 |
7
TODO.md
7
TODO.md
@@ -78,7 +78,10 @@
|
|||||||
- ~~GridContainer~~
|
- ~~GridContainer~~
|
||||||
- ~~FlexContainer~~
|
- ~~FlexContainer~~
|
||||||
- ~~Positioning (anchors)~~
|
- ~~Positioning (anchors)~~
|
||||||
- Move layouting to Render instead of Update, use Update for input.
|
- ~~Move layouting to Render instead of Update, use Update for input.~~
|
||||||
- Input propagation
|
- Input propagation
|
||||||
- Basic input elements (button, text field, toggle).
|
- Basic input elements (button, text field, toggle).
|
||||||
- Styling.
|
- Styling
|
||||||
|
- Add style settings for UI panels (for buttons, labels, etc.).
|
||||||
|
- Find a way to reference external assets in the style (fonts, textures).
|
||||||
|
- Create a default style for widgets.
|
||||||
@@ -35,16 +35,17 @@ public class UISystem : IUpdatableSystem, IRenderableSystem
|
|||||||
public void Update(double deltaTime)
|
public void Update(double deltaTime)
|
||||||
{
|
{
|
||||||
HandleInput();
|
HandleInput();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Render(RenderSystem renderer)
|
||||||
|
{
|
||||||
|
// Update elements each time UI system is rendered.
|
||||||
foreach (var element in _elements)
|
foreach (var element in _elements)
|
||||||
{
|
{
|
||||||
if (element is not IUpdatableElement updatable) continue;
|
if (element is not IUpdatableElement updatable) continue;
|
||||||
updatable.Update();
|
updatable.Update();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
public void Render(RenderSystem renderer)
|
|
||||||
{
|
|
||||||
foreach (var element in _elements)
|
foreach (var element in _elements)
|
||||||
{
|
{
|
||||||
if (element is IRenderableElement renderable)
|
if (element is IRenderableElement renderable)
|
||||||
|
|||||||
Reference in New Issue
Block a user