mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-10 05:21:49 +00:00
Added Button::text property
This commit is contained in:
parent
7b4cc8f650
commit
385b667535
2 changed files with 21 additions and 1 deletions
|
|
@ -45,6 +45,7 @@ namespace gui {
|
|||
glm::vec4 hoverColor {0.05f, 0.1f, 0.15f, 0.75f};
|
||||
glm::vec4 pressedColor {0.0f, 0.0f, 0.0f, 0.95f};
|
||||
std::vector<onaction> actions;
|
||||
std::shared_ptr<UINode> label = nullptr;
|
||||
public:
|
||||
Button(std::shared_ptr<UINode> content, glm::vec4 padding=glm::vec4(2.0f));
|
||||
Button(std::wstring text, glm::vec4 padding=glm::vec4(2.0f));
|
||||
|
|
@ -55,6 +56,9 @@ namespace gui {
|
|||
|
||||
virtual void mouseRelease(GUI*, int x, int y) override;
|
||||
virtual Button* listenAction(onaction action);
|
||||
|
||||
virtual void text(std::wstring text);
|
||||
virtual std::wstring text() const;
|
||||
};
|
||||
|
||||
class TextBox : public Panel {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue