Browse Source

Fixed #2022 storing event in map editor

Fixing issue "Event message isn't stored #2022" by adding message in Pandora setProperty ( cause CGEvent inherits CGPandoraBox)
Necr0o0 2 năm trước cách đây
mục cha
commit
bfed62d3a2
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      mapeditor/inspector/inspector.cpp

+ 3 - 0
mapeditor/inspector/inspector.cpp

@@ -472,6 +472,9 @@ void Inspector::setProperty(CGLighthouse * o, const QString & key, const QVarian
 void Inspector::setProperty(CGPandoraBox * o, const QString & key, const QVariant & value)
 {
 	if(!o) return;
+	
+	if(key == "Message")
+		o->message = value.toString().toStdString();
 }
 
 void Inspector::setProperty(CGEvent * o, const QString & key, const QVariant & value)