X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fscripting%2Ffloating_image.hpp;h=7fd9206542aa7159e15a507af52183ae52e0c9e9;hb=89c801d4e00a0be36f6ad693a055505968ef9514;hp=42dcf365f2f3c50e4e66f0460dceabfad9a2d83e;hpb=07ddaed2a657e4d2a3d038fed223fc5827159caf;p=supertux.git diff --git a/src/scripting/floating_image.hpp b/src/scripting/floating_image.hpp index 42dcf365f..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; @@ -46,14 +47,17 @@ public: int get_anchor_point(); void set_visible(bool visible); 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 -