feat: implemented photo inbox and notepad

This commit is contained in:
Sara Gerretsen 2025-10-30 21:33:22 +01:00
parent 850fe5865b
commit 2577d41e46
17 changed files with 285 additions and 74 deletions

View file

@ -4,7 +4,7 @@
void ClueData::_bind_methods() {
BIND_HPROPERTY(Variant::INT, id, PROPERTY_HINT_ENUM, NetworkData::ClueID_hint());
BIND_HPROPERTY(Variant::OBJECT, image, PROPERTY_HINT_RESOURCE_TYPE, "Image");
BIND_HPROPERTY(Variant::OBJECT, image, PROPERTY_HINT_RESOURCE_TYPE, "Texture2D");
}
void ClueData::set_revealed(bool value) {
@ -38,11 +38,10 @@ bool ClueData::get_revealed() const {
return this->revealed;
}
void ClueData::set_image(Ref<Image> image) {
void ClueData::set_image(Ref<Texture2D> image) {
this->image = image;
// TODO: Sync to server
}
Ref<Image> ClueData::get_image() const {
Ref<Texture2D> ClueData::get_image() const {
return this->image;
}