diff options
author | McCabe Maxsted | 2009-06-05 17:55:15 -0700 |
---|---|---|
committer | McCabe Maxsted | 2009-06-05 17:55:15 -0700 |
commit | 343042ea35ddc2d5606c3adee1b4e9de01cef2c2 (patch) | |
tree | c6e7a47b392cdf1b6f224e13c1878e046c4b1d96 /linden | |
parent | Redid pie menus based on feedback from VWR-8080 (diff) | |
parent | Applied Armin's gesture manager patch (diff) | |
download | meta-impy-343042ea35ddc2d5606c3adee1b4e9de01cef2c2.zip meta-impy-343042ea35ddc2d5606c3adee1b4e9de01cef2c2.tar.gz meta-impy-343042ea35ddc2d5606c3adee1b4e9de01cef2c2.tar.bz2 meta-impy-343042ea35ddc2d5606c3adee1b4e9de01cef2c2.tar.xz |
Merged in Armin's gesture manager patch to compensate for removing 'Gestures' from the pie.
Diffstat (limited to 'linden')
-rw-r--r-- | linden/indra/newview/llchatbar.cpp | 5 | ||||
-rw-r--r-- | linden/indra/newview/skins/default/xui/en-us/panel_chat_bar.xml | 10 |
2 files changed, 9 insertions, 6 deletions
diff --git a/linden/indra/newview/llchatbar.cpp b/linden/indra/newview/llchatbar.cpp index 31fa653..971ffcd 100644 --- a/linden/indra/newview/llchatbar.cpp +++ b/linden/indra/newview/llchatbar.cpp | |||
@@ -48,6 +48,7 @@ | |||
48 | #include "llcommandhandler.h" // secondlife:///app/chat/ support | 48 | #include "llcommandhandler.h" // secondlife:///app/chat/ support |
49 | #include "llviewercontrol.h" | 49 | #include "llviewercontrol.h" |
50 | #include "llfloaterchat.h" | 50 | #include "llfloaterchat.h" |
51 | #include "llfloatergesture.h" | ||
51 | #include "llgesturemgr.h" | 52 | #include "llgesturemgr.h" |
52 | #include "llkeyboard.h" | 53 | #include "llkeyboard.h" |
53 | #include "lllineeditor.h" | 54 | #include "lllineeditor.h" |
@@ -644,8 +645,9 @@ void LLChatBar::onCommitGesture(LLUICtrl* ctrl, void* data) | |||
644 | if (gestures) | 645 | if (gestures) |
645 | { | 646 | { |
646 | S32 index = gestures->getFirstSelectedIndex(); | 647 | S32 index = gestures->getFirstSelectedIndex(); |
647 | if (index == 0) | 648 | if (index <= 0) |
648 | { | 649 | { |
650 | LLFloaterGesture::toggleVisibility(); | ||
649 | return; | 651 | return; |
650 | } | 652 | } |
651 | const std::string& trigger = gestures->getSelectedValue().asString(); | 653 | const std::string& trigger = gestures->getSelectedValue().asString(); |
@@ -655,7 +657,6 @@ void LLChatBar::onCommitGesture(LLUICtrl* ctrl, void* data) | |||
655 | std::string text(trigger); | 657 | std::string text(trigger); |
656 | std::string revised_text; | 658 | std::string revised_text; |
657 | gGestureManager.triggerAndReviseString(text, &revised_text); | 659 | gGestureManager.triggerAndReviseString(text, &revised_text); |
658 | |||
659 | revised_text = utf8str_trim(revised_text); | 660 | revised_text = utf8str_trim(revised_text); |
660 | if (!revised_text.empty()) | 661 | if (!revised_text.empty()) |
661 | { | 662 | { |
diff --git a/linden/indra/newview/skins/default/xui/en-us/panel_chat_bar.xml b/linden/indra/newview/skins/default/xui/en-us/panel_chat_bar.xml index 95604ff..1d77909 100644 --- a/linden/indra/newview/skins/default/xui/en-us/panel_chat_bar.xml +++ b/linden/indra/newview/skins/default/xui/en-us/panel_chat_bar.xml | |||
@@ -14,7 +14,7 @@ | |||
14 | left="107" max_length="254" name="Chat Editor" | 14 | left="107" max_length="254" name="Chat Editor" |
15 | select_all_on_focus_received="false" select_on_focus="false" tab_group="1" | 15 | select_all_on_focus_received="false" select_on_focus="false" tab_group="1" |
16 | tool_tip="Press Enter to say, Ctrl-Enter to shout." width="105" /> | 16 | tool_tip="Press Enter to say, Ctrl-Enter to shout." width="105" /> |
17 | <flyout_button bottom="-23" follows="right|bottom" height="20" label="Say" left_delta="110" | 17 | <flyout_button bottom="-23" follows="right|bottom" height="20" label="Say" left_delta="109" |
18 | list_position="above" mouse_opaque="true" name="Say" tool_tip="(Enter)" | 18 | list_position="above" mouse_opaque="true" name="Say" tool_tip="(Enter)" |
19 | width="80"> | 19 | width="80"> |
20 | <flyout_button_item value="say" name="say_item"> | 20 | <flyout_button_item value="say" name="say_item"> |
@@ -24,8 +24,10 @@ | |||
24 | Shout | 24 | Shout |
25 | </flyout_button_item> | 25 | </flyout_button_item> |
26 | </flyout_button> | 26 | </flyout_button> |
27 | <combo_box allow_text_entry="false" bottom="-23" follows="right|bottom" height="20" | 27 | <flyout_button bottom="-23" follows="right|bottom" height="20" label="Gestures" left_delta="83" |
28 | label="Gestures" left_delta="85" max_chars="20" name="Gesture" width="90"> | 28 | list_position="above" mouse_opaque="true" name="Gesture" tool_tip="(tooltip)" |
29 | </combo_box> | 29 | width="95"> |
30 | </flyout_button> | ||
31 | |||
30 | <string name="gesture_label">Gestures</string> | 32 | <string name="gesture_label">Gestures</string> |
31 | </panel> | 33 | </panel> |