In powerplant, The lcommander class processes messages. Its commands are processed by obeycommand. This class is mainly used to process menu commands. You can set the menu status in findcommandstatus.
In lcommander, the command processing is hierarchical, and the lower-level data is transmitted to the upper-level data. Currently, the static variable received by lcommander is starget, which can be used
Switchtarget to switch. The lcommander object indicated by starget first receives the command and then processes it. I used it accidentally.
Switchtargetw (null) makes the current object that does not receive messages, so the menu cannot respond to anything.
In addition, there is a broadcaster and listener class which is generally used to process messages outside the menu, and its processing is direct, unlike the lcommander class. Yes
I have always thought that the messages sent out from broadcastmessage are asynchronous.Source codeBroadcast is also synchronous, but its message
It just arrived.