You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm running into a rather odd issue. X-Camera has some commands that are dynamically generated in code. One of the things I do is use the Plugin messaging to register these dynamical created commands with the dataref tool:
The commands in questions are SRS/X-Camera/Momentary_Select_View_ID_1 through SRS/X-Camera/Momentary_Select_View_ID_50 as an example. There are actually more like this.
Now what is odd is I have a new plugin called X-keyPad that uses the new API to get the list of commands and datarefs from the dataref tool. If I never open the dataref tool's search UI those commands above will never be return with the new UI. However, if I open the dataref tools search and find those commands and THEN go back and try the API then they will be returned in the API.
It is almost like the list the API is using is not fully populated until after you have done a search in the dataref tool's UI.
The text was updated successfully, but these errors were encountered:
I'm running into a rather odd issue. X-Camera has some commands that are dynamically generated in code. One of the things I do is use the Plugin messaging to register these dynamical created commands with the dataref tool:
void registerDataRefToolCommand(const char cmd)
{
const intptr_t MSG_ADD_DATAREF = 0x01000000;
char tempBuffer[MAX_STR_LEN];
XPLMPluginID plugin_id = XPLMFindPluginBySignature("com.leecbaker.datareftool");
if (XPLM_NO_PLUGIN_ID != plugin_id)
{
XPLMSendMessageToPlugin(plugin_id, MSG_ADD_DATAREF, (void)cmd);
}
}
The commands in questions are SRS/X-Camera/Momentary_Select_View_ID_1 through SRS/X-Camera/Momentary_Select_View_ID_50 as an example. There are actually more like this.
Now what is odd is I have a new plugin called X-keyPad that uses the new API to get the list of commands and datarefs from the dataref tool. If I never open the dataref tool's search UI those commands above will never be return with the new UI. However, if I open the dataref tools search and find those commands and THEN go back and try the API then they will be returned in the API.
It is almost like the list the API is using is not fully populated until after you have done a search in the dataref tool's UI.
The text was updated successfully, but these errors were encountered: