# Stage 1.8.1

- Add Removable to containers (Only used for ID Objs)
- Add Counts for specific Object types to have for example multiple buttons with same name
- Readd Background as accidently deleted it
This commit is contained in:
2025-02-03 16:15:37 +01:00
parent f87c103d8d
commit f7d262b7b0
5 changed files with 49 additions and 3 deletions

View File

@ -28,6 +28,7 @@ class Container : public SmartCtor<Container> {
vec2 GetSize() { return size; }
bool Skippable() const { return skippable; }
bool Removable() const { return rem; }
void HandleScrolling(vec2 scrolling, vec4 viewport);
virtual void HandleInput(Hid::Ref inp) {}
@ -41,6 +42,8 @@ class Container : public SmartCtor<Container> {
protected:
/// used to skip Input/Render preocessing ot not
bool skippable = false;
bool rem = false;
u64 last_use = 0;
bool inp_done = false;
Screen::Ref screen;
vec2 pos;