feat: added popup text field to clue data
This commit is contained in:
parent
ae9f46641b
commit
b9b2d0a249
3 changed files with 41 additions and 2 deletions
|
|
@ -3,6 +3,7 @@
|
|||
#include "you_done_it/ydi_client.h"
|
||||
|
||||
void ClueData::_bind_methods() {
|
||||
BIND_HPROPERTY(Variant::STRING, popup_text, PROPERTY_HINT_MULTILINE_TEXT);
|
||||
BIND_HPROPERTY(Variant::INT, id, PROPERTY_HINT_ENUM, NetworkData::ClueID_hint());
|
||||
BIND_HPROPERTY(Variant::OBJECT, image, PROPERTY_HINT_RESOURCE_TYPE, "Texture2D");
|
||||
}
|
||||
|
|
@ -45,3 +46,11 @@ void ClueData::set_image(Ref<Texture2D> image) {
|
|||
Ref<Texture2D> ClueData::get_image() const {
|
||||
return this->image;
|
||||
}
|
||||
|
||||
void ClueData::set_popup_text(String value) {
|
||||
this->popup_text = value;
|
||||
}
|
||||
|
||||
String ClueData::get_popup_text() const {
|
||||
return this->popup_text;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue