#include <PalmOS.h>
#include <simcity_resconsts.h>
#include <sections.h>
#include <options.h>
#include <globals.h>
#include <simcity.h>
#include <logging.h>
#include <palmutils.h>
Go to the source code of this file.
Data Structures | |
struct | bc_chelts |
The elements for the button configuration choices. More... | |
Functions | |
FormPtr | setupOptions (void) CONFIG_SECTION |
Set the state of the various fields in the options form. | |
void | saveOptions (void) CONFIG_SECTION |
save the options from the option dialog to the application state. | |
FormPtr | setupButtonConfig (void) CONFIG_SECTION |
set up the button config form. | |
void | saveButtonConfig (void) CONFIG_SECTION |
Remember the button choices made. | |
void | clearButtonConfig (void) CONFIG_SECTION |
Clear any allocated data. | |
Boolean | hOptions (EventPtr event) |
Handler for the main options dialog. | |
Boolean | hButtonConfig (EventPtr event) |
handler for the button configuration form | |
Variables | |
const struct bc_chelts | bc_elts [] |
The elements for the button configuration choices. | |
char ** | Popups |
Remember this between form load and form exit. |
This code deals with the two options dialogs in the palm platform The options for the game and the options for the system (buttons)
Definition in file options.c.
|
Clear any allocated data. Namely the list of popup strings Definition at line 286 of file options.c. References FreeStringList(), and Popups. Referenced by hButtonConfig(). |
|
handler for the button configuration form
Definition at line 150 of file options.c. References clearButtonConfig(), formID_pocketCity, saveButtonConfig(), and setupButtonConfig(). |
|
Handler for the main options dialog. This is the event loop for the form, making all the appropriate calls to set-up and save the options providing the OK button is hit. Definition at line 29 of file options.c. References formID_pocketCity, saveOptions(), and setupOptions(). |
|
Remember the button choices made. This is not persisted until the application terminates cleanly. Definition at line 268 of file options.c. References bc_elts, ButtonKey, GetObjectPtr(), and bc_chelts::popup. Referenced by hButtonConfig(). |
|
save the options from the option dialog to the application state. This does not persist the configuration out, that is the responsiblity of the savegame routines. Definition at line 111 of file options.c. References GetObjectPtr(), SETAUTOBULLDOZE, setDifficultyLevel(), setDisasterLevel(), SETMINIMAPDETAILED, SETMINIMAPVISIBLE, and UInt8. Referenced by hOptions(). |
|
set up the button config form.
Definition at line 238 of file options.c. References bc_elts, ButtonKey, Char, FillStringList(), GetObjectPtr(), Int16, bc_chelts::popup, Popups, and UInt16. Referenced by hButtonConfig(). |
|
Set the state of the various fields in the options form.
Definition at line 79 of file options.c. References GETAUTOBULLDOZE, getDifficultyLevel(), getDisasterLevel(), GETMINIMAPDETAILED, GETMINIMAPVISIBLE, GetObjectPtr(), UInt16, and UInt8. Referenced by hOptions(). |
|
The elements for the button configuration choices. It's defined like this to make the code smaller, and hopefully more easy to read and maintain. You simply add in the entities in the list and you're away. Note that changing the order of items in this list has a tendency to upset the application state, making the buttons behave strangely. Referenced by saveButtonConfig(), and setupButtonConfig(). |