bgiGetGizmoHandle

Retrieves the handle of a named control from a loaded gizmo collection. Takes name (String) and collectionID (Int). Returns 0.

BGI GUI

Parameters & Returns

Parameters

name String
collectionID Int

Returns

Int

Quick Summary

Retrieves the handle of a named control from a loaded gizmo collection. Takes name (String) and collectionID (Int). Returns 0.

Technical Exegesis...

Retrieves the handle of a named control from a loaded gizmo collection. Searches gizmoCollections map for collectionID. If collection not found, returns 0. Iterates through collection.gizmos vector. Compares entry.name with name parameter (string comparison). If match found, returns entry.handle. Returns 0 if name not found in collection.

This function provides name-based control lookup after loading XML GUI via bgiLoadGizmos. CollectionID is the return value from bgiLoadGizmos.

Example

Example.bam
; No example implemented yet