- 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
27 lines
532 B
C++
27 lines
532 B
C++
#pragma once
|
|
|
|
#include <pd/ui7/container/container.hpp>
|
|
|
|
namespace PD {
|
|
namespace UI7 {
|
|
class Label : public Container {
|
|
public:
|
|
Label(const std::string& label, vec2 pos, LI::Renderer::Ref lr) {
|
|
this->screen = lr->CurrentScreen();
|
|
this->label = label;
|
|
this->SetPos(pos);
|
|
this->tdim = lr->GetTextDimensions(label);
|
|
color = UI7Color_Text;
|
|
this->SetSize(tdim);
|
|
}
|
|
~Label() {}
|
|
|
|
void Draw() override;
|
|
|
|
private:
|
|
vec2 tdim;
|
|
UI7Color color;
|
|
std::string label;
|
|
};
|
|
} // namespace UI7
|
|
} // namespace PD
|