# Stage 1.8

- Renderer now vould use more screen Objects
- Register default Top and Bottom Screens (for Overlays and UI7)
- Make ToHex an Inline header func
- Add GetCompilerVersion
- Add Library Compile And Version Info to common
- Remove z of vertex object and shader in position
- Add Container base and SubContainers to UI7
- Add abillity to Join Multiple Objects in Same Line and Center them
- Fix LayerOrder Bug for updating texts in DrawList
This commit is contained in:
2025-02-02 20:32:07 +01:00
parent 055588ce8b
commit f87c103d8d
32 changed files with 619 additions and 293 deletions

View File

@ -0,0 +1,27 @@
#pragma once
#include <pd/ui7/container/container.hpp>
namespace PD {
namespace UI7 {
class Image : public Container {
public:
Image(Texture::Ref img, vec2 pos, LI::Renderer::Ref lr, vec2 size = 0.f) {
this->screen = lr->CurrentScreen();
this->img = img;
this->SetPos(pos);
if (size.x() != 0 || size.y() != 0) {
this->SetSize(size);
} else {
this->SetSize(img->GetSize());
}
}
~Image() {}
void Draw() override;
private:
Texture::Ref img;
};
} // namespace UI7
} // namespace PD