aboutsummaryrefslogtreecommitdiff
path: root/extension/src/openvic-extension/classes/GUIMaskedFlagButton.hpp
blob: 131c93deff10657906aaaa0f89b031ee20161ae2 (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
25
26
27
28
29
30
31
32
33
34
#pragma once

#include "openvic-extension/classes/GFXMaskedFlagTexture.hpp"
#include "openvic-extension/classes/GUIButton.hpp"

namespace OpenVic {
   class GUIMaskedFlagButton : public GUIButton {
      GDCLASS(GUIMaskedFlagButton, GUIButton)

      godot::Ref<GFXMaskedFlagTexture> gfx_masked_flag_texture;

   protected:
      static void _bind_methods();

   public:
      godot::Error set_gfx_masked_flag(GFX::MaskedFlag const* gfx_masked_flag);

      godot::Ref<GFXMaskedFlagTexture> get_gfx_masked_flag_texture() const;

      godot::Error set_gfx_masked_flag_name(godot::String const& gfx_masked_flag_name);

      godot::String get_gfx_masked_flag_name() const;

      godot::Error set_flag_country_name_and_type(
         godot::String const& flag_country_name, godot::StringName const& flag_type
      ) const;

      godot::Error set_flag_country_name(godot::String const& flag_country_name) const;

      godot::String get_flag_country_name() const;

      godot::String get_flag_type() const;
   };
}