Table of Contents

 
LoadButtons
 

Purpose

Loads a group of buttons and hotspots from a formatted data file

 

Protoype

void CButtonMngr::LoadButtons (string str_filename)
 

Parameters

filename the name or location of the data file
 

Description

This function loads in button and hotspot objects from a .dat file created using the Data Generator application. Please see the Data Generator documentation for more information regarding the structure of the .dat file for button/hotspot loading.

NOTE: The extension of the data file does not have to be .dat, that's just the extension used by the Data Generator application.

 

Use

CButtonMngr button;
button.LoadButtons("buttons.dat");
 

Prev: IsVisible