![]() |
VR-Forces Developer's Guide
|
This document describes the public API changes in the vrfGuiConstants library between VR-Forces 5.2 and 5.3.
It covers the following public headers:
The library consists entirely of string constants that identify menu items, actions, dialogs, and selection filters. These identifiers are the extension point used to register, replace, remove, or reorder GUI elements from a plug-in, so a renamed or removed identifier fails silently at run time rather than at compile time when the identifier is passed as a string literal. Review every place your code registers or looks up an identifier listed below.
Changes that are limited to comments or formatting are not listed.
The menu item that controlled how long a scenario runs was renamed from "run duration" to "run until". Both the C++ constant and the string value it holds changed.
| 5.2 | 5.3 |
|---|---|
DtSetScenarioRunDurationMenuItemId ("DtSetScenarioRunDurationMenuItem") | DtSetScenarioRunUntilMenuItemId ("DtSetScenarioRunUntilMenuItem") |
Code that referenced the constant by name fails to compile and can be corrected by substituting the new name. Code that hard-coded the string "DtSetScenarioRunDurationMenuItem" continues to compile but no longer matches any registered menu item; update the literal, or better, reference the constant.
The selection filter identifiers associated with the Tactical Data Link feature were removed along with the filters themselves. There are no replacement identifiers.
| Removed constant | Removed string value |
|---|---|
DtVrfTDLDomainFilterId | "DtVrfTDLDomainFilter" |
DtVrfAllEntitiesTDLFilterId | "DtVrfAllEntitiesTDLFilter" |
DtVrfAllTacticalGraphicsTDLFilterId | "DtVrfAllTacticalGraphicsTDLFilter" |
Code that registered a selection filter collection under one of these identifiers, or that requested a filter by one of these identifiers, must be removed. If your plug-in needs equivalent filtering behavior, register your own filter under an identifier of your own and reference that identifier from your dialog's filter collection.
The following identifiers are new in 5.3. They are additive and do not affect existing code, but they are the identifiers to use if your plug-in needs to reorder, replace, or remove the corresponding GUI elements.
| Constant | String value | Purpose |
|---|---|---|
DtClearAllWarningsMenuItemId | "DtClearAllWarningsMenuItem" | Clears all outstanding warnings. Declared for vrfGuiCoreQt/DtClearAllWarningsMenuItem.h. |
DtLoadScenarioCheckpointMenuItemId | "DtLoadScenarioCheckpointMenuItem" | Loads a scenario checkpoint. Declared alongside DtLoadScenarioMenuItemId. |
DtSetScenarioRunUntilMenuItemId | "DtSetScenarioRunUntilMenuItem" | Replacement for the renamed run duration item described above. |
| Constant | String value |
|---|---|
DtVrfSetAimSearchLightActionId | "DtVrfSetAimSearchLightAction" |
DtVrfSetAimLaserLightActionId | "DtVrfSetAimLaserLightAction" |
DtVrfSetHitZoneStatusActionId | "DtVrfSetHitZoneStatusAction" |
DtVrfSetSignalFlagsActionId | "DtVrfSetSignalFlagsAction" |
The two light-aiming actions parallel the existing DtVrfSetAimSensorActionId; the hit zone and signal flag actions are grouped with the other entity state set actions such as DtVrfSetStowWeaponActionId.
| Constant | String value |
|---|---|
DtVrfTaskFlyIntoActionId | "DtVrfTaskFlyIntoAction" |
DtVrfTaskPlaySoundActionId | "DtVrfTaskPlaySoundAction" |
| Constant | String value |
|---|---|
DtSetAimSearchLightDialogId | "DtSetAimSearchLightDialog" |
DtSetAimLaserLightDialogId | "DtSetAimLaserLightDialog" |
DtFlyIntoDialogId | "DtFlyIntoDialog" |
These identify the dialogs for the corresponding new actions and tasks, and are the identifiers to use when associating a selection filter collection with those dialogs.
Return to VR-Forces 5.3 API Migration Guide.
[Home]