1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Add fill_mode to ProgressBar

This commit is contained in:
floppyhammer
2021-02-19 14:02:59 +08:00
parent a12fe31e1f
commit f76d417d8a
3 changed files with 86 additions and 8 deletions

View File

@@ -43,11 +43,27 @@ protected:
static void _bind_methods();
public:
enum FillMode {
FILL_BEGIN_TO_END,
FILL_END_TO_BEGIN,
FILL_TOP_TO_BOTTOM,
FILL_BOTTOM_TO_TOP,
FILL_MODE_MAX
};
void set_fill_mode(int p_fill);
int get_fill_mode();
void set_percent_visible(bool p_visible);
bool is_percent_visible() const;
Size2 get_minimum_size() const override;
ProgressBar();
private:
FillMode mode = FILL_BEGIN_TO_END;
};
VARIANT_ENUM_CAST(ProgressBar::FillMode);
#endif // PROGRESS_BAR_H