mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +00:00
Synchronize Text with Wrapper State
Bug - text is not synchronized with the wrapper state, hence the `GetText()` will be incorrect. Method `TextChanged` does not exist, resulting `nil` reference errors when the players update markers. Current implementation of `MARKER:OnEventMarkChange(EventData)` is not implemented the same as its siblings of `OnEventMarkRemoved` and `OnEventMarkAdded`. The siblings would move the FSM accordingly -- aligned implementation
This commit is contained in:
parent
353d6dfec0
commit
a14bca1059
@ -673,9 +673,9 @@ function MARKER:OnEventMarkChange(EventData)
|
|||||||
|
|
||||||
if MarkID==self.mid then
|
if MarkID==self.mid then
|
||||||
|
|
||||||
self:Changed(EventData)
|
self.text=tostring(EventData.MarkText)
|
||||||
|
|
||||||
self:TextChanged(tostring(EventData.MarkText))
|
self:Changed(EventData)
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user