diff options
Diffstat (limited to 'linden/indra')
5 files changed, 30 insertions, 70 deletions
diff --git a/linden/indra/newview/llpanelgeneral.cpp b/linden/indra/newview/llpanelgeneral.cpp index 47bc60e..16da49d 100644 --- a/linden/indra/newview/llpanelgeneral.cpp +++ b/linden/indra/newview/llpanelgeneral.cpp | |||
@@ -109,6 +109,7 @@ LLPanelGeneral::LLPanelGeneral() | |||
109 | BOOL LLPanelGeneral::postBuild() | 109 | BOOL LLPanelGeneral::postBuild() |
110 | { | 110 | { |
111 | childSetCommitCallback("fade_out_combobox", set_render_name_fade_out); | 111 | childSetCommitCallback("fade_out_combobox", set_render_name_fade_out); |
112 | childSetAction("reset_ui_size", onClickResetUISize, this); | ||
112 | 113 | ||
113 | std::string region_name_prompt = getString("region_name_prompt"); | 114 | std::string region_name_prompt = getString("region_name_prompt"); |
114 | 115 | ||
@@ -242,3 +243,10 @@ void LLPanelGeneral::clickShowStartLocation(LLUICtrl*, void* user_data) | |||
242 | { | 243 | { |
243 | LLPanelLogin::refreshLocation( false ); // in case LLPanelLogin is visible | 244 | LLPanelLogin::refreshLocation( false ); // in case LLPanelLogin is visible |
244 | } | 245 | } |
246 | |||
247 | // static | ||
248 | void LLPanelGeneral::onClickResetUISize(void* user_data) | ||
249 | { | ||
250 | gSavedSettings.setF32("UIScaleFactor", 1.0f); | ||
251 | gViewerWindow->reshape(gViewerWindow->getWindowDisplayWidth(), gViewerWindow->getWindowDisplayHeight()); | ||
252 | } \ No newline at end of file | ||
diff --git a/linden/indra/newview/llpanelgeneral.h b/linden/indra/newview/llpanelgeneral.h index 95a95f8..00dc874 100644 --- a/linden/indra/newview/llpanelgeneral.h +++ b/linden/indra/newview/llpanelgeneral.h | |||
@@ -56,6 +56,7 @@ public: | |||
56 | static void clickShowStartLocation(LLUICtrl*, void* user_data); | 56 | static void clickShowStartLocation(LLUICtrl*, void* user_data); |
57 | static void set_start_location(LLUICtrl* ctrl, void* data); | 57 | static void set_start_location(LLUICtrl* ctrl, void* data); |
58 | static void set_specific_start_location(LLLineEditor* line_editor, void* data); | 58 | static void set_specific_start_location(LLLineEditor* line_editor, void* data); |
59 | static void onClickResetUISize(void*); | ||
59 | 60 | ||
60 | protected: | 61 | protected: |
61 | S32 mRenderName; | 62 | S32 mRenderName; |
diff --git a/linden/indra/newview/llviewermenu.cpp b/linden/indra/newview/llviewermenu.cpp index f99a324..d607afe 100644 --- a/linden/indra/newview/llviewermenu.cpp +++ b/linden/indra/newview/llviewermenu.cpp | |||
@@ -1642,7 +1642,6 @@ class LLObjectEnableOpen : public view_listener_t | |||
1642 | } | 1642 | } |
1643 | }; | 1643 | }; |
1644 | 1644 | ||
1645 | |||
1646 | class LLViewCheckBuildMode : public view_listener_t | 1645 | class LLViewCheckBuildMode : public view_listener_t |
1647 | { | 1646 | { |
1648 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | 1647 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) |
@@ -3239,17 +3238,6 @@ class LLViewFullscreen : public view_listener_t | |||
3239 | } | 3238 | } |
3240 | }; | 3239 | }; |
3241 | 3240 | ||
3242 | class LLViewDefaultUISize : public view_listener_t | ||
3243 | { | ||
3244 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
3245 | { | ||
3246 | gSavedSettings.setF32("UIScaleFactor", 1.0f); | ||
3247 | gSavedSettings.setBOOL("UIAutoScale", FALSE); | ||
3248 | gViewerWindow->reshape(gViewerWindow->getWindowDisplayWidth(), gViewerWindow->getWindowDisplayHeight()); | ||
3249 | return true; | ||
3250 | } | ||
3251 | }; | ||
3252 | |||
3253 | class LLEditDuplicate : public view_listener_t | 3241 | class LLEditDuplicate : public view_listener_t |
3254 | { | 3242 | { |
3255 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | 3243 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) |
@@ -5086,10 +5074,6 @@ class LLShowFloater : public view_listener_t | |||
5086 | { | 5074 | { |
5087 | LLFloaterPreference::show(NULL); | 5075 | LLFloaterPreference::show(NULL); |
5088 | } | 5076 | } |
5089 | else if (floater_name == "toolbar") | ||
5090 | { | ||
5091 | LLToolBar::toggle(NULL); | ||
5092 | } | ||
5093 | else if (floater_name == "chat history") | 5077 | else if (floater_name == "chat history") |
5094 | { | 5078 | { |
5095 | LLFloaterChat::toggleInstance(LLSD()); | 5079 | LLFloaterChat::toggleInstance(LLSD()); |
@@ -5222,10 +5206,6 @@ class LLFloaterVisible : public view_listener_t | |||
5222 | { | 5206 | { |
5223 | new_value = LLFloaterMyFriends::instanceVisible(0); | 5207 | new_value = LLFloaterMyFriends::instanceVisible(0); |
5224 | } | 5208 | } |
5225 | else if (floater_name == "toolbar") | ||
5226 | { | ||
5227 | new_value = LLToolBar::visible(NULL); | ||
5228 | } | ||
5229 | else if (floater_name == "chat history") | 5209 | else if (floater_name == "chat history") |
5230 | { | 5210 | { |
5231 | new_value = LLFloaterChat::instanceVisible(); | 5211 | new_value = LLFloaterChat::instanceVisible(); |
@@ -7229,25 +7209,6 @@ class LLViewCheckRenderType : public view_listener_t | |||
7229 | } | 7209 | } |
7230 | }; | 7210 | }; |
7231 | 7211 | ||
7232 | class LLViewShowHUDAttachments : public view_listener_t | ||
7233 | { | ||
7234 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
7235 | { | ||
7236 | LLPipeline::sShowHUDAttachments = !LLPipeline::sShowHUDAttachments; | ||
7237 | return true; | ||
7238 | } | ||
7239 | }; | ||
7240 | |||
7241 | class LLViewCheckHUDAttachments : public view_listener_t | ||
7242 | { | ||
7243 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
7244 | { | ||
7245 | bool new_value = LLPipeline::sShowHUDAttachments; | ||
7246 | gMenuHolder->findControl(userdata["control"].asString())->setValue(new_value); | ||
7247 | return true; | ||
7248 | } | ||
7249 | }; | ||
7250 | |||
7251 | class LLEditEnableTakeOff : public view_listener_t | 7212 | class LLEditEnableTakeOff : public view_listener_t |
7252 | { | 7213 | { |
7253 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | 7214 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) |
@@ -9702,12 +9663,10 @@ void initialize_menus() | |||
9702 | addMenu(new LLViewToggleBeacon(), "View.ToggleBeacon"); | 9663 | addMenu(new LLViewToggleBeacon(), "View.ToggleBeacon"); |
9703 | addMenu(new LLViewBeaconWidth(), "View.BeaconWidth"); | 9664 | addMenu(new LLViewBeaconWidth(), "View.BeaconWidth"); |
9704 | addMenu(new LLViewToggleRenderType(), "View.ToggleRenderType"); | 9665 | addMenu(new LLViewToggleRenderType(), "View.ToggleRenderType"); |
9705 | addMenu(new LLViewShowHUDAttachments(), "View.ShowHUDAttachments"); | ||
9706 | addMenu(new LLViewZoomOut(), "View.ZoomOut"); | 9666 | addMenu(new LLViewZoomOut(), "View.ZoomOut"); |
9707 | addMenu(new LLViewZoomIn(), "View.ZoomIn"); | 9667 | addMenu(new LLViewZoomIn(), "View.ZoomIn"); |
9708 | addMenu(new LLViewZoomDefault(), "View.ZoomDefault"); | 9668 | addMenu(new LLViewZoomDefault(), "View.ZoomDefault"); |
9709 | addMenu(new LLViewFullscreen(), "View.Fullscreen"); | 9669 | addMenu(new LLViewFullscreen(), "View.Fullscreen"); |
9710 | addMenu(new LLViewDefaultUISize(), "View.DefaultUISize"); | ||
9711 | 9670 | ||
9712 | addMenu(new LLViewEnableMouselook(), "View.EnableMouselook"); | 9671 | addMenu(new LLViewEnableMouselook(), "View.EnableMouselook"); |
9713 | addMenu(new LLViewEnableLastChatter(), "View.EnableLastChatter"); | 9672 | addMenu(new LLViewEnableLastChatter(), "View.EnableLastChatter"); |
@@ -9718,7 +9677,6 @@ void initialize_menus() | |||
9718 | addMenu(new LLViewCheckHighlightTransparent(), "View.CheckHighlightTransparent"); | 9677 | addMenu(new LLViewCheckHighlightTransparent(), "View.CheckHighlightTransparent"); |
9719 | addMenu(new LLViewCheckBeaconEnabled(), "View.CheckBeaconEnabled"); | 9678 | addMenu(new LLViewCheckBeaconEnabled(), "View.CheckBeaconEnabled"); |
9720 | addMenu(new LLViewCheckRenderType(), "View.CheckRenderType"); | 9679 | addMenu(new LLViewCheckRenderType(), "View.CheckRenderType"); |
9721 | addMenu(new LLViewCheckHUDAttachments(), "View.CheckHUDAttachments"); | ||
9722 | 9680 | ||
9723 | // World menu | 9681 | // World menu |
9724 | addMenu(new LLWorldChat(), "World.Chat"); | 9682 | addMenu(new LLWorldChat(), "World.Chat"); |
diff --git a/linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml b/linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml index 89c1fe8..a741b94 100644 --- a/linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml +++ b/linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml | |||
@@ -281,10 +281,6 @@ | |||
281 | <on_click function="ShowFloater" userdata="inworld browser" /> | 281 | <on_click function="ShowFloater" userdata="inworld browser" /> |
282 | </menu_item_call> | 282 | </menu_item_call> |
283 | <menu_item_separator /> | 283 | <menu_item_separator /> |
284 | <menu_item_check name="Toolbar" label="Toolbar"> | ||
285 | <on_click function="ShowFloater" userdata="toolbar" /> | ||
286 | <on_check function="FloaterVisible" userdata="toolbar" /> | ||
287 | </menu_item_check> | ||
288 | <menu_item_check name="Chat History" label="Local Chat" | 284 | <menu_item_check name="Chat History" label="Local Chat" |
289 | shortcut="control|H"> | 285 | shortcut="control|H"> |
290 | <on_click function="ShowFloater" userdata="chat history" /> | 286 | <on_click function="ShowFloater" userdata="chat history" /> |
@@ -428,7 +424,7 @@ | |||
428 | userdata="hideparticles" /> | 424 | userdata="hideparticles" /> |
429 | </menu_item_check> | 425 | </menu_item_check> |
430 | <menu_item_separator /> | 426 | <menu_item_separator /> |
431 | <menu name="Beacon Width" color="0 0 0 1" create_jump_keys="true" | 427 | <menu name="Beacon Width" create_jump_keys="true" |
432 | label="Beacon Width" opaque="true" tear_off="true"> | 428 | label="Beacon Width" opaque="true" tear_off="true"> |
433 | <menu_item_call name="Beacon Width 1" label="1"> | 429 | <menu_item_call name="Beacon Width 1" label="1"> |
434 | <on_click function="View.BeaconWidth" userdata="1" /> | 430 | <on_click function="View.BeaconWidth" userdata="1" /> |
@@ -444,34 +440,27 @@ | |||
444 | </menu_item_call> | 440 | </menu_item_call> |
445 | </menu> | 441 | </menu> |
446 | </menu> | 442 | </menu> |
447 | <menu_item_check name="Show HUD Attachments" | ||
448 | label="Show HUD Attachments" | ||
449 | shortcut="alt|shift|H"> | ||
450 | <on_click function="View.ShowHUDAttachments" userdata="" /> | ||
451 | <on_check function="View.CheckHUDAttachments" /> | ||
452 | </menu_item_check> | ||
453 | <menu_item_separator /> | 443 | <menu_item_separator /> |
454 | <menu_item_call name="Zoom In" label="Zoom In" | 444 | <menu name="Zoom Level" create_jump_keys="true" |
455 | shortcut="control|0"> | 445 | label="Zoom Level" opaque="true" tear_off="true"> |
456 | <on_click function="View.ZoomIn" userdata="" /> | 446 | <menu_item_call name="Zoom In" label="Zoom In" |
457 | </menu_item_call> | 447 | shortcut="control|0"> |
458 | <menu_item_call name="Zoom Default" label="Zoom Default" | 448 | <on_click function="View.ZoomIn" userdata="" /> |
459 | shortcut="control|9"> | 449 | </menu_item_call> |
460 | <on_click function="View.ZoomDefault" userdata="" /> | 450 | <menu_item_call name="Zoom Default" label="Zoom Default" |
461 | </menu_item_call> | 451 | shortcut="control|9"> |
462 | <menu_item_call name="Zoom Out" label="Zoom Out" | 452 | <on_click function="View.ZoomDefault" userdata="" /> |
463 | shortcut="control|8"> | 453 | </menu_item_call> |
464 | <on_click function="View.ZoomOut" userdata="" /> | 454 | <menu_item_call name="Zoom Out" label="Zoom Out" |
465 | </menu_item_call> | 455 | shortcut="control|8"> |
456 | <on_click function="View.ZoomOut" userdata="" /> | ||
457 | </menu_item_call> | ||
458 | </menu> | ||
466 | <menu_item_separator /> | 459 | <menu_item_separator /> |
467 | <menu_item_call name="Toggle Fullscreen" label="Toggle Fullscreen" | 460 | <menu_item_call name="Toggle Fullscreen" label="Toggle Fullscreen" |
468 | shortcut="alt|Enter"> | 461 | shortcut="alt|Enter"> |
469 | <on_click function="View.Fullscreen" userdata="" /> | 462 | <on_click function="View.Fullscreen" userdata="" /> |
470 | </menu_item_call> | 463 | </menu_item_call> |
471 | <menu_item_call name="Set UI Size to Default" | ||
472 | label="Set UI Size to Default"> | ||
473 | <on_click function="View.DefaultUISize" userdata="" /> | ||
474 | </menu_item_call> | ||
475 | </menu> | 464 | </menu> |
476 | 465 | ||
477 | 466 | ||
diff --git a/linden/indra/newview/skins/default/xui/en-us/panel_preferences_general.xml b/linden/indra/newview/skins/default/xui/en-us/panel_preferences_general.xml index 092daab..7bd966a 100644 --- a/linden/indra/newview/skins/default/xui/en-us/panel_preferences_general.xml +++ b/linden/indra/newview/skins/default/xui/en-us/panel_preferences_general.xml | |||
@@ -63,7 +63,11 @@ | |||
63 | <slider bottom="-217" can_edit_text="true" control_name="UIScaleFactor" | 63 | <slider bottom="-217" can_edit_text="true" control_name="UIScaleFactor" |
64 | decimal_digits="3" enabled="true" height="16" increment="0.025" | 64 | decimal_digits="3" enabled="true" height="16" increment="0.025" |
65 | initial_val="1" left="148" max_val="1.4" min_val="0.75" mouse_opaque="true" | 65 | initial_val="1" left="148" max_val="1.4" min_val="0.75" mouse_opaque="true" |
66 | name="UI Scale" show_text="true" value="1" width="256" /> | 66 | name="UI Scale" show_text="true" value="1" width="220" /> |
67 | <button bottom="-221" enabled="true" follows="left|top" | ||
68 | font="SansSerif" halign="center" height="22" label="Reset" | ||
69 | label_selected="Reset" left_delta="226" mouse_opaque="true" | ||
70 | name="reset_ui_size" scale_image="true" width="80" /> | ||
67 | <check_box bottom="-236" control_name="UIAutoScale" enabled="true" follows="left|top" | 71 | <check_box bottom="-236" control_name="UIAutoScale" enabled="true" follows="left|top" |
68 | font="SansSerifSmall" height="16" initial_value="false" | 72 | font="SansSerifSmall" height="16" initial_value="false" |
69 | label="Use resolution independent scale" left="151" mouse_opaque="true" | 73 | label="Use resolution independent scale" left="151" mouse_opaque="true" |