aboutsummaryrefslogtreecommitdiff
path: root/extension/src/openvic-extension/classes/GUIProgressBar.hpp
blob: 11b677ac00b2e64cda328685ddefd4461fb37139 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#pragma once

#include <godot_cpp/classes/texture_progress_bar.hpp>

#include "openvic-simulation/interface/GFXSprite.hpp"
#include "openvic-extension/classes/GUIHasTooltip.hpp"

namespace OpenVic {
   class GUIProgressBar : public godot::TextureProgressBar {
      GDCLASS(GUIProgressBar, godot::TextureProgressBar)

      GUI_TOOLTIP_DEFINITIONS

   protected:
      static void _bind_methods();

      void _notification(int what);

   public:
      GUIProgressBar();

      godot::Error set_gfx_progress_bar(GFX::ProgressBar const* progress_bar);
   };
}