X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fscripting%2Ffloating_image.hpp;h=7fd9206542aa7159e15a507af52183ae52e0c9e9;hb=89c801d4e00a0be36f6ad693a055505968ef9514;hp=78f39df742f36438b4a310507250f8f3c82d0b67;hpb=3715e3bc1c852448660c443876b3e3054d332d82;p=supertux.git diff --git a/src/scripting/floating_image.hpp b/src/scripting/floating_image.hpp index 78f39df74..7fd920654 100644 --- a/src/scripting/floating_image.hpp +++ b/src/scripting/floating_image.hpp @@ -23,6 +23,7 @@ #ifndef SCRIPTING_API #define __suspend #include +#include "ref.hpp" class FloatingImage; typedef FloatingImage _FloatingImage; @@ -48,14 +49,15 @@ public: bool get_visible(); void set_action(const std::string& action); std::string get_action(); - + void fade_in(float fadetime); + void fade_out(float fadetime); + #ifndef SCRIPTING_API private: - _FloatingImage* floating_image; + Ref<_FloatingImage> floating_image; #endif }; } #endif -