You've already forked godot
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user