21 #ifndef PAWS_CONFIG_CAMERA_HEADER 22 #define PAWS_CONFIG_CAMERA_HEADER 25 #include <csutil/array.h> 71 void SetCameraSetting(
const csString& settingName,
float value,
int mode)
const;
109 Register(
"pawsConfigCamera" );
virtual ~pawsConfigCamera()
virtual bool SaveConfig()
remembers settings in-game and saves them permanently to a file also
Handles camera modes like first person, thrid person, speak to npc manages collision of camera with m...
Configuration screen for camera settings like first/third person view, collision, spring...
void SetCameraSetting(const csString &settingName, float value, int mode) const
applies a camera setting to the camera
void CreateTreeWidgets(pawsTreeNode *subtreeRoot)
void SetCameraValues(pawsTreeNode *subtreeRoot)
Sets all values to the ones that have the camera (in subtree with root 'subtreeRoot') ...
virtual bool OnButtonPressed(int mouseButton, int keyModifier, pawsWidget *widget)
Called whenever a button is pressed.
void SetLabels(pawsTreeNode *subtreeRoot)
virtual void SetDefault()
sets content of dialog according to default configuration
void SaveConfigByTreeNodes(pawsTreeNode *subtreeRoot)
a recursive function to apply the tree's settings to the camera
pawsConfigCameraFactory()
virtual bool Initialize()
virtual bool LoadConfig()
sets content of dialog according to current configuration
bool CreateTree()
Creates the tree that makes the whole GUI.
float GetCameraSetting(const csString &settingName, int mode) const
Grabs a camera setting from the camera.