VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
vrfGuiConstants Library API Changes

Table of Contents

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.

Breaking Changes

vrfMenuIds.h: scenario run duration menu item renamed

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.

vrfSelectionFilterCollections.h: Tactical Data Link selection filters removed

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.

Additions

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.

New menu item identifiers (vrfMenuIds.h)

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.

New simulation object action identifiers (vrfMenuIds.h)

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.

New task action identifiers (vrfMenuIds.h)

Constant String value
DtVrfTaskFlyIntoActionId "DtVrfTaskFlyIntoAction"
DtVrfTaskPlaySoundActionId "DtVrfTaskPlaySoundAction"

New dialog identifiers (vrfSelectionFilterCollections.h)

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]


Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)