Feature Request: Add Camera preset switching functionality (part of quicksettings)

Hitting Escape will reset to the normal Back preset
Adds new Cam_Preset_*_(On|Off).png textures, these should probably be reskinned, any volunteers?
This commit is contained in:
Inusaito Sayori
2013-11-01 17:35:12 -04:00
parent 2d421a27e1
commit 0fc9d540bf
10 changed files with 53 additions and 2 deletions

View File

@@ -189,6 +189,7 @@
#include "llvovolume.h"
#include "hippogridmanager.h"
#include "wlfPanel_AdvSettings.h"
void toggle_search_floater();
@@ -4122,6 +4123,16 @@ void reset_view_final( BOOL proceed )
}
gAgentCamera.switchCameraPreset(CAMERA_PRESET_REAR_VIEW);
if (wlfPanel_AdvSettings::instanceExists()) // Fix up the buttons on the wlf panel to match the preset switch
{
wlfPanel_AdvSettings& inst(wlfPanel_AdvSettings::instance());
if (inst.isExpanded())
{
inst.getChildView("Rear")->setValue(true);
inst.getChildView("Front")->setValue(false);
inst.getChildView("Group")->setValue(false);
}
}
gAgentCamera.resetView(TRUE, TRUE);
gAgentCamera.setLookAt(LOOKAT_TARGET_CLEAR);