diff options
author | Jacek Antonelli | 2009-11-02 22:55:58 -0600 |
---|---|---|
committer | Jacek Antonelli | 2009-11-02 22:55:58 -0600 |
commit | fd56f291010044bbe01f25cfdad8c43b3dbd8ccc (patch) | |
tree | ea3e2ac8b91456ddb20d5004d0d4f1c94f51ee9a /linden/indra/newview | |
parent | Added "DoubleClickAction" and "GoAction" settings. (diff) | |
download | meta-impy-fd56f291010044bbe01f25cfdad8c43b3dbd8ccc.zip meta-impy-fd56f291010044bbe01f25cfdad8c43b3dbd8ccc.tar.gz meta-impy-fd56f291010044bbe01f25cfdad8c43b3dbd8ccc.tar.bz2 meta-impy-fd56f291010044bbe01f25cfdad8c43b3dbd8ccc.tar.xz |
Added "Double-Click Action" and "Go Here By" to Input prefs panel.
Diffstat (limited to 'linden/indra/newview')
-rw-r--r-- | linden/indra/newview/llpanelinput.cpp | 7 | ||||
-rw-r--r-- | linden/indra/newview/skins/default/xui/en-us/panel_preferences_input.xml | 37 |
2 files changed, 44 insertions, 0 deletions
diff --git a/linden/indra/newview/llpanelinput.cpp b/linden/indra/newview/llpanelinput.cpp index 7ab261b..6d40470 100644 --- a/linden/indra/newview/llpanelinput.cpp +++ b/linden/indra/newview/llpanelinput.cpp | |||
@@ -55,6 +55,9 @@ BOOL LLPanelInput::postBuild() | |||
55 | childSetValue("camera_position_smoothing", gSavedSettings.getF32("CameraPositionSmoothing")); | 55 | childSetValue("camera_position_smoothing", gSavedSettings.getF32("CameraPositionSmoothing")); |
56 | childSetValue("first_person_avatar_visible", gSavedSettings.getBOOL("FirstPersonAvatarVisible")); | 56 | childSetValue("first_person_avatar_visible", gSavedSettings.getBOOL("FirstPersonAvatarVisible")); |
57 | 57 | ||
58 | childSetValue("double_click_action", gSavedSettings.getString("DoubleClickAction")); | ||
59 | childSetValue("go_action", gSavedSettings.getString("GoAction")); | ||
60 | |||
58 | return TRUE; | 61 | return TRUE; |
59 | } | 62 | } |
60 | 63 | ||
@@ -74,6 +77,10 @@ void LLPanelInput::apply() | |||
74 | gSavedSettings.setF32("ZoomTime", childGetValue("zoom_time").asReal()); | 77 | gSavedSettings.setF32("ZoomTime", childGetValue("zoom_time").asReal()); |
75 | gSavedSettings.setF32("CameraPositionSmoothing", childGetValue("camera_position_smoothing").asReal()); | 78 | gSavedSettings.setF32("CameraPositionSmoothing", childGetValue("camera_position_smoothing").asReal()); |
76 | gSavedSettings.setBOOL("FirstPersonAvatarVisible", childGetValue("first_person_avatar_visible")); | 79 | gSavedSettings.setBOOL("FirstPersonAvatarVisible", childGetValue("first_person_avatar_visible")); |
80 | |||
81 | gSavedSettings.setString("DoubleClickAction", childGetValue("double_click_action")); | ||
82 | gSavedSettings.setString("GoAction", childGetValue("go_action")); | ||
83 | |||
77 | } | 84 | } |
78 | 85 | ||
79 | void LLPanelInput::cancel() | 86 | void LLPanelInput::cancel() |
diff --git a/linden/indra/newview/skins/default/xui/en-us/panel_preferences_input.xml b/linden/indra/newview/skins/default/xui/en-us/panel_preferences_input.xml index a0f1744..88d87e1 100644 --- a/linden/indra/newview/skins/default/xui/en-us/panel_preferences_input.xml +++ b/linden/indra/newview/skins/default/xui/en-us/panel_preferences_input.xml | |||
@@ -103,4 +103,41 @@ | |||
103 | <button bottom_delta="-4" follows="left|top" font="SansSerif" height="20" | 103 | <button bottom_delta="-4" follows="left|top" font="SansSerif" height="20" |
104 | label="Joystick Setup" left="148" mouse_opaque="true" | 104 | label="Joystick Setup" left="148" mouse_opaque="true" |
105 | name="joystick_setup_button" width="155" /> | 105 | name="joystick_setup_button" width="155" /> |
106 | |||
107 | |||
108 | <text name="double_click_action_label" | ||
109 | bottom_delta="-32" left="10" height="18" width="200" | ||
110 | follows="left|top" font="SansSerifSmall" mouse_opaque="true"> | ||
111 | Double-Click Action: | ||
112 | </text> | ||
113 | |||
114 | <combo_box name="double_click_action" | ||
115 | bottom_delta="0" left_delta="138" height="18" width="150" | ||
116 | follows="left|top" mouse_opaque="true"> | ||
117 | <combo_item name="None" value="None"> | ||
118 | None | ||
119 | </combo_item> | ||
120 | <combo_item name="Go" value="Go"> | ||
121 | Go Here | ||
122 | </combo_item> | ||
123 | </combo_box> | ||
124 | |||
125 | |||
126 | <text name="go_action_label" | ||
127 | bottom_delta="-20" left="10" height="18" width="200" | ||
128 | follows="left|top" font="SansSerifSmall" mouse_opaque="true"> | ||
129 | “Go Here” By: | ||
130 | </text> | ||
131 | |||
132 | <combo_box name="go_action" | ||
133 | bottom_delta="0" left_delta="138" height="18" width="150" | ||
134 | follows="left|top" mouse_opaque="true"> | ||
135 | <combo_item name="Autopilot" value="Autopilot"> | ||
136 | Autopilot | ||
137 | </combo_item> | ||
138 | <combo_item name="Teleport" value="Teleport"> | ||
139 | Teleporting | ||
140 | </combo_item> | ||
141 | </combo_box> | ||
142 | |||
106 | </panel> | 143 | </panel> |