diff options
author | Jacek Antonelli | 2008-09-06 18:24:57 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-09-06 18:25:07 -0500 |
commit | 798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch) | |
tree | 1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/newview/llfloatercamera.cpp | |
parent | Second Life viewer sources 1.20.15 (diff) | |
download | meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.zip meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.gz meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.bz2 meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.xz |
Second Life viewer sources 1.21.0-RC
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llfloatercamera.cpp | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/linden/indra/newview/llfloatercamera.cpp b/linden/indra/newview/llfloatercamera.cpp index b77b556..ca8ab6c 100644 --- a/linden/indra/newview/llfloatercamera.cpp +++ b/linden/indra/newview/llfloatercamera.cpp | |||
@@ -52,6 +52,7 @@ LLFloaterCamera::LLFloaterCamera(const LLSD& val) | |||
52 | { | 52 | { |
53 | setIsChrome(TRUE); | 53 | setIsChrome(TRUE); |
54 | 54 | ||
55 | // For now, only used for size and tooltip strings | ||
55 | const BOOL DONT_OPEN = FALSE; | 56 | const BOOL DONT_OPEN = FALSE; |
56 | LLUICtrlFactory::getInstance()->buildFloater(this, "floater_camera.xml", NULL, DONT_OPEN); | 57 | LLUICtrlFactory::getInstance()->buildFloater(this, "floater_camera.xml", NULL, DONT_OPEN); |
57 | 58 | ||
@@ -60,10 +61,10 @@ LLFloaterCamera::LLFloaterCamera(const LLSD& val) | |||
60 | S32 left = 16; | 61 | S32 left = 16; |
61 | 62 | ||
62 | const S32 ROTATE_WIDTH = 64; | 63 | const S32 ROTATE_WIDTH = 64; |
63 | mRotate = new LLJoystickCameraRotate("cam rotate stick", | 64 | mRotate = new LLJoystickCameraRotate(std::string("cam rotate stick"), |
64 | LLRect( left, top, left + ROTATE_WIDTH, bottom ), | 65 | LLRect( left, top, left + ROTATE_WIDTH, bottom ), |
65 | "cam_rotate_out.tga", | 66 | std::string("cam_rotate_out.tga"), |
66 | "cam_rotate_in.tga" ); | 67 | std::string("cam_rotate_in.tga") ); |
67 | mRotate->setFollows(FOLLOWS_TOP | FOLLOWS_LEFT); | 68 | mRotate->setFollows(FOLLOWS_TOP | FOLLOWS_LEFT); |
68 | mRotate->setHeldDownDelay(CAMERA_BUTTON_DELAY); | 69 | mRotate->setHeldDownDelay(CAMERA_BUTTON_DELAY); |
69 | mRotate->setToolTip( getString("rotate_tooltip") ); | 70 | mRotate->setToolTip( getString("rotate_tooltip") ); |
@@ -74,11 +75,11 @@ LLFloaterCamera::LLFloaterCamera(const LLSD& val) | |||
74 | 75 | ||
75 | const S32 ZOOM_WIDTH = 16; | 76 | const S32 ZOOM_WIDTH = 16; |
76 | mZoom = new LLJoystickCameraZoom( | 77 | mZoom = new LLJoystickCameraZoom( |
77 | "zoom", | 78 | std::string("zoom"), |
78 | LLRect( left, top, left + ZOOM_WIDTH, bottom ), | 79 | LLRect( left, top, left + ZOOM_WIDTH, bottom ), |
79 | "cam_zoom_out.tga", | 80 | std::string("cam_zoom_out.tga"), |
80 | "cam_zoom_plus_in.tga", | 81 | std::string("cam_zoom_plus_in.tga"), |
81 | "cam_zoom_minus_in.tga"); | 82 | std::string("cam_zoom_minus_in.tga")); |
82 | mZoom->setFollows(FOLLOWS_TOP | FOLLOWS_LEFT); | 83 | mZoom->setFollows(FOLLOWS_TOP | FOLLOWS_LEFT); |
83 | mZoom->setHeldDownDelay(CAMERA_BUTTON_DELAY); | 84 | mZoom->setHeldDownDelay(CAMERA_BUTTON_DELAY); |
84 | mZoom->setToolTip( getString("zoom_tooltip") ); | 85 | mZoom->setToolTip( getString("zoom_tooltip") ); |
@@ -88,10 +89,10 @@ LLFloaterCamera::LLFloaterCamera(const LLSD& val) | |||
88 | left += ZOOM_WIDTH; | 89 | left += ZOOM_WIDTH; |
89 | 90 | ||
90 | const S32 TRACK_WIDTH = 64; | 91 | const S32 TRACK_WIDTH = 64; |
91 | mTrack = new LLJoystickCameraTrack("cam track stick", | 92 | mTrack = new LLJoystickCameraTrack(std::string("cam track stick"), |
92 | LLRect( left, top, left + TRACK_WIDTH, bottom ), | 93 | LLRect( left, top, left + TRACK_WIDTH, bottom ), |
93 | "cam_tracking_out.tga", | 94 | std::string("cam_tracking_out.tga"), |
94 | "cam_tracking_in.tga"); | 95 | std::string("cam_tracking_in.tga")); |
95 | mTrack->setFollows(FOLLOWS_TOP | FOLLOWS_LEFT); | 96 | mTrack->setFollows(FOLLOWS_TOP | FOLLOWS_LEFT); |
96 | mTrack->setHeldDownDelay(CAMERA_BUTTON_DELAY); | 97 | mTrack->setHeldDownDelay(CAMERA_BUTTON_DELAY); |
97 | mTrack->setToolTip( getString("move_tooltip") ); | 98 | mTrack->setToolTip( getString("move_tooltip") ); |
@@ -116,4 +117,4 @@ void LLFloaterCamera::onClose(bool app_quitting) | |||
116 | { | 117 | { |
117 | gSavedSettings.setBOOL("ShowCameraControls", FALSE); | 118 | gSavedSettings.setBOOL("ShowCameraControls", FALSE); |
118 | } | 119 | } |
119 | } \ No newline at end of file | 120 | } |