From db3b05d2893dcaddeb3bcb10b845ff150eb50895 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Wed, 28 Jun 2017 17:00:18 -0300 Subject: Reworked translation system -Label and Button reload translation on the fly -Resources are loaded and reload depending on locale --- core/resource.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'core/resource.h') diff --git a/core/resource.h b/core/resource.h index 903edeff52..5a4e45da36 100644 --- a/core/resource.h +++ b/core/resource.h @@ -35,6 +35,7 @@ #include "ref_ptr.h" #include "reference.h" #include "safe_refcount.h" +#include "self_list.h" /** @author Juan Linietsky @@ -74,6 +75,8 @@ class Resource : public Reference { friend class SceneState; Node *local_scene; + SelfList remapped_list; + protected: void emit_changed(); @@ -127,6 +130,9 @@ public: #endif + void set_as_translation_remapped(bool p_remapped); + bool is_translation_remapped() const; + virtual RID get_rid() const; // some resources may offer conversion to RID Resource(); @@ -137,6 +143,7 @@ typedef Ref RES; class ResourceCache { friend class Resource; + friend class ResourceLoader; //need the lock static RWLock *lock; static HashMap resources; friend void unregister_core_types(); -- cgit v1.2.3