mirror of
https://github.com/devZoGok/vb01.git
synced 2026-08-26 19:43:30 +00:00
utility method changes
This commit is contained in:
@@ -54,9 +54,12 @@ namespace vb01Gui{
|
||||
std::vector<vb01::Text*> = std::vector<vb01::Text*>{}
|
||||
);
|
||||
inline std::vector<Button*> getButtons(){return buttons;}
|
||||
inline std::vector<vb01::Node*> getGuiRectangles(){return guiRectangles;}
|
||||
inline std::vector<Listbox*> getListboxes(){return listboxes;}
|
||||
inline std::vector<Checkbox*> getCheckboxes(){return checkboxes;}
|
||||
inline std::vector<Slider*> getSliders(){return sliders;}
|
||||
inline std::vector<Textbox*> getTextboxes(){return textboxes;}
|
||||
inline std::vector<vb01::Node*> getGuiRectangles(){return guiRectangles;}
|
||||
inline std::vector<vb01::Text*> getTexts(){return texts;}
|
||||
private:
|
||||
void updateCurrentListbox(Button*, bool&);
|
||||
void updateCurrentSlider(Button*);
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace vb01Gui{
|
||||
public:
|
||||
Button(vb01::Vector2, vb01::Vector2, std::string, std::string, int = -1, bool = true, std::string = "");
|
||||
virtual ~Button();
|
||||
void update();
|
||||
virtual void update();
|
||||
virtual void onMouseOver();
|
||||
virtual void onMouseOff();
|
||||
virtual void onClick(){}
|
||||
|
||||
Reference in New Issue
Block a user