summaryrefslogtreecommitdiff
path: root/indra/newview/skins/default/xui/en/floater_camera.xml
blob: 44a5638bc4760d1eca54c84f501f2b94b90c2eb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<floater
 positioning="specified"
 right="-460"
 bottom="-50"
 follows="left|bottom"
 legacy_header_height="18"
 can_minimize="false"
 can_collapse="false"
 can_close="true"
 width="410"
 height="114"
 layout="topleft"
 name="camera_floater"
 help_topic="camera_floater"
 save_visibility="true"
 single_instance="true"
 title="CAMERA CONTROLS"
 chrome="true"
 save_rect="true">
    <floater.string
     name="rotate_tooltip">
        Rotate Camera Around Focus
    </floater.string>
    <floater.string
     name="zoom_tooltip">
        Zoom Camera Towards Focus
    </floater.string>
    <floater.string
     name="move_tooltip">
        Move Camera Up and Down, Left and Right
    </floater.string>
    <floater.string
     name="free_mode_title">
        View Object
    </floater.string>
    <string name="inactive_combo_text">Use preset</string>
    <panel
     border="false"
     width="220"
     height="90"
     layout="topleft"
     left="2"
     top="18"
     mouse_opaque="false"
     name="controls"
     >
         <!--TODO: replace + - images -->
         <panel
            border="false"
            class="camera_zoom_panel"
            height="90"
            layout="topleft"
            left="0"
            mouse_opaque="false"
            name="zoom"
            top="0"
            width="220">
           <joystick_rotate
              follows="top|left"
              width="78"
              height="78"
              layout="topleft"
              left="7"
              top="8"
              name="cam_rotate_stick"
              quadrant="left"
              sound_flags="3"
              visible="true"
              scale_image="true"
              tool_tip="Orbit camera around focus"
              />
           <button
              follows="top|left"
              width="18"
              height="18"
              left_pad="4"
              top="2"
              layout="topleft"
              image_disabled="AddItem_Disabled"
              image_selected="AddItem_Press"
              image_unselected="AddItem_Off"
              name="zoom_plus_btn"
              >
             <commit_callback
                function="Zoom.plus" />
             <mouse_held_callback
                function="Zoom.plus" />
           </button>
           <slider_bar
              width="18"
              height="50"
              top_pad="0"
              layout="topleft"
              name="zoom_slider"
              orientation="vertical"
              tool_tip="Zoom camera toward focus"
              min_val="0"
              max_val="1"
              >
             <commit_callback function="Slider.value_changed"/>
           </slider_bar>
           <button
              follows="top|left"
              width="18"
              height="18"
              top_pad="0"
              layout="topleft"
              image_disabled="MinusItem_Disabled"
              image_selected="MinusItem_Press"
              image_unselected="MinusItem_Off"
              name="zoom_minus_btn"
              >
             <commit_callback
                function="Zoom.minus" />
             <mouse_held_callback
                function="Zoom.minus" />
           </button>
         <joystick_track
         follows="top|left"
         width="78"
         height="78"
         left_pad="4"
         image_selected="Cam_Tracking_In"
         image_unselected="Cam_Tracking_Out"
         layout="topleft"
         name="cam_track_stick"
         quadrant="left"
         scale_image="true"
         sound_flags="3"
         tool_tip="Move camera up and down, left and right"
         />
        <button
          follows="top|left"
          width="18"
          height="18"
          top="8"
          left_pad="6"
          layout="topleft"
          name="collapse_btn"
          >
        </button>
        <button
          follows="top|left"
          width="18"
          height="18"
          top_pad="4"
          layout="topleft"
          name="precise_btn"
          image_disabled="Cam_FreeCam_Off"
          image_selected="Cam_FreeCam_Off"
          image_unselected="Cam_FreeCam_Off"
          tool_tip="Use precise controls"
          >
        </button>
        </panel>
    </panel>
    <panel
     follows="left|top"
     height="90"
     layout="topleft"
     left_pad="2"
     right="-2"
     name="buttons_panel"
     top="22">
    <panel_camera_item
      name="front_view"
      tool_tip="Front View"
      width="30">
      <panel_camera_item.mousedown_callback
        function="CameraPresets.ChangeView"
        parameter="Front View" />
      <panel_camera_item.picture
        image_name="Cam_Preset_Front_Off" />
      <panel_camera_item.selected_picture
        image_name="Cam_Preset_Front_On" />
    </panel_camera_item>
    <panel_camera_item
      name="group_view"
      tool_tip="Side View"
      width="30"
      left_pad="4">
      <panel_camera_item.mousedown_callback
        function="CameraPresets.ChangeView"
        parameter="Side View" />
      <panel_camera_item.picture
        image_name="Cam_Preset_Side_Off" />
      <panel_camera_item.selected_picture
        image_name="Cam_Preset_Side_On" />
    </panel_camera_item>
    <panel_camera_item
      name="rear_view"
      tool_tip="Rear View"
      width="30"
      left_pad="4">
      <panel_camera_item.mousedown_callback
        function="CameraPresets.ChangeView"
        tool_tip="Rear View"
        parameter="Rear View" />
      <panel_camera_item.picture
        image_name="Cam_Preset_Back_Off" />
      <panel_camera_item.selected_picture
        image_name="Cam_Preset_Back_On" />
    </panel_camera_item>
    <panel_camera_item
        name="object_view"
        tool_tip="Object View"
        width="30"
        left_pad="4">
        <panel_camera_item.mousedown_callback
          function="CameraPresets.ChangeView"
          parameter="object_view" />
        <panel_camera_item.picture
          image_name="Object_View_Off" />
        <panel_camera_item.selected_picture
          image_name="Object_View_On" />
      </panel_camera_item>
      <panel_camera_item
        name="mouselook_view"
        tool_tip="Mouselook View"
        width="30"
        left_pad="4">
        <panel_camera_item.mousedown_callback
          function="CameraPresets.ChangeView"
          parameter="mouselook_view" />
        <panel_camera_item.picture
          image_name="MouseLook_View_Off" />
        <panel_camera_item.selected_picture
          image_name="MouseLook_View_On" />
      </panel_camera_item>
      <combo_box
        height="23"
        left="0"
        mouse_opaque="true"
        name="preset_combo"
        top_pad="10"
        width="124">
        <combo_list
        mouse_wheel_opaque="true"/>
        <combo_box.item
         label="Use preset"
         name="Use preset"
         value="default" />
      </combo_box>
      <button
        height="16"
        width="16"
        layout="topleft"
        mouse_opaque="true"
        name="gear_btn"
        tool_tip="My Camera Presets"
        top_delta="3"
        left_pad="10"
        image_selected="Icon_Gear"
        image_pressed="Icon_Gear"
        image_unselected="Icon_Gear"
        is_toggle="true">
        <button.commit_callback
          function="CameraPresets.ShowPresetsList"/>
      </button>
      <button
        follows="top|left"
        width="18"
        height="18"
        left_pad="4"
        tooltip_text="Save as preset..."
        layout="topleft"
        name="save_preset_btn"
        image_disabled="Conv_toolbar_plus"
        image_selected="Conv_toolbar_plus"
        image_unselected="Conv_toolbar_plus"
        >
        <button.commit_callback
          function="CameraPresets.Save"/>
      </button>
  </panel>
  <panel
    name="viewer_camera_info"
    left="0"
    top="135"
    width="400"
    height="150"
    border="false"
    visible="false"
    background_visible="true"/>
  <panel
    name="agent_camera_info"
    left="0"
    top="285"
    width="400"
    height="150"
    border="false"
    visible="false"
    background_visible="true"/>
</floater>