aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorMcCabe Maxsted2009-01-12 10:48:33 -0700
committerMcCabe Maxsted2009-01-12 10:48:33 -0700
commit5da10e1eadd437c5c258d02fce448c893a6fd09e (patch)
treef7b5f7ad7ba603000e6a1ef7b969d4f6f4b9a834
parentRebranded windows crash dump filenames (diff)
parentadded shortcut and message to landmark creation (diff)
downloadmeta-impy-5da10e1eadd437c5c258d02fce448c893a6fd09e.zip
meta-impy-5da10e1eadd437c5c258d02fce448c893a6fd09e.tar.gz
meta-impy-5da10e1eadd437c5c258d02fce448c893a6fd09e.tar.bz2
meta-impy-5da10e1eadd437c5c258d02fce448c893a6fd09e.tar.xz
Added shortcut and message to landmark creation
-rw-r--r--ChangeLog.txt8
-rw-r--r--linden/indra/newview/llviewermenu.cpp11
-rw-r--r--linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml5
-rw-r--r--linden/indra/newview/skins/default/xui/en-us/strings.xml3
4 files changed, 23 insertions, 4 deletions
diff --git a/ChangeLog.txt b/ChangeLog.txt
index e8f0c75..4ab37bd 100644
--- a/ChangeLog.txt
+++ b/ChangeLog.txt
@@ -100,6 +100,14 @@
100 * linden/indra/llwindow/llwindowsdl.cpp: 100 * linden/indra/llwindow/llwindowsdl.cpp:
101 Ditto. 101 Ditto.
102 102
103 * linden/indra/newview/llviewermenu.cpp:
104 Added shortcut and message to landmark creation.
105 * linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml:
106 Ditto.
107 * linden/indra/newview/skins/default/xui/en-us/strings.xml:
108 Ditto.
109
110
103 111
1042008-12-30 McCabe Maxsted <hakushakukun@gmail.com> 1122008-12-30 McCabe Maxsted <hakushakukun@gmail.com>
105 113
diff --git a/linden/indra/newview/llviewermenu.cpp b/linden/indra/newview/llviewermenu.cpp
index 3bf390e..049f0d1 100644
--- a/linden/indra/newview/llviewermenu.cpp
+++ b/linden/indra/newview/llviewermenu.cpp
@@ -146,13 +146,14 @@
146#include "llinventorymodel.h" 146#include "llinventorymodel.h"
147#include "llinventoryview.h" 147#include "llinventoryview.h"
148#include "llkeyboard.h" 148#include "llkeyboard.h"
149#include "llpanellogin.h" 149#include "lllineeditor.h"
150#include "llmenucommands.h" 150#include "llmenucommands.h"
151#include "llmenugl.h" 151#include "llmenugl.h"
152#include "llmorphview.h" 152#include "llmorphview.h"
153#include "llmoveview.h" 153#include "llmoveview.h"
154#include "llmutelist.h" 154#include "llmutelist.h"
155#include "llnotify.h" 155#include "llnotify.h"
156#include "llpanellogin.h"
156#include "llpanelobject.h" 157#include "llpanelobject.h"
157#include "llparcel.h" 158#include "llparcel.h"
158#include "llprimitive.h" 159#include "llprimitive.h"
@@ -174,6 +175,7 @@
174#include "lltoolpie.h" 175#include "lltoolpie.h"
175#include "lltoolplacer.h" 176#include "lltoolplacer.h"
176#include "lltoolselectland.h" 177#include "lltoolselectland.h"
178#include "lltrans.h"
177#include "lluictrlfactory.h" 179#include "lluictrlfactory.h"
178#include "lluploaddialog.h" 180#include "lluploaddialog.h"
179#include "lluserauth.h" 181#include "lluserauth.h"
@@ -4874,10 +4876,17 @@ class LLWorldCreateLandmark : public view_listener_t
4874 return true; 4876 return true;
4875 } 4877 }
4876 4878
4879 LLChat chat;
4880
4877 LLUUID folder_id; 4881 LLUUID folder_id;
4878 folder_id = gInventory.findCategoryUUIDForType(LLAssetType::AT_LANDMARK); 4882 folder_id = gInventory.findCategoryUUIDForType(LLAssetType::AT_LANDMARK);
4879 std::string pos_string; 4883 std::string pos_string;
4880 gAgent.buildLocationString(pos_string); 4884 gAgent.buildLocationString(pos_string);
4885
4886 std::string log_message = LLTrans::getString("landmark_created") + " ";
4887 log_message += pos_string;
4888 chat.mText = log_message;
4889 LLFloaterChat::addChat(chat, FALSE, FALSE);
4881 4890
4882 create_inventory_item(gAgent.getID(), gAgent.getSessionID(), 4891 create_inventory_item(gAgent.getID(), gAgent.getSessionID(),
4883 folder_id, LLTransactionID::tnull, 4892 folder_id, LLTransactionID::tnull,
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 682acb9..303a9c1 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
@@ -127,8 +127,7 @@
127 </menu_item_call> 127 </menu_item_call>
128 <menu_item_separator /> 128 <menu_item_separator />
129 <menu_item_call name="Duplicate" enabled="false" 129 <menu_item_call name="Duplicate" enabled="false"
130 label="Duplicate" 130 label="Duplicate">
131 shortcut="control|D">
132 <on_click function="Edit.Duplicate" userdata="" /> 131 <on_click function="Edit.Duplicate" userdata="" />
133 <on_enable function="Edit.EnableDuplicate" /> 132 <on_enable function="Edit.EnableDuplicate" />
134 </menu_item_call> 133 </menu_item_call>
@@ -489,7 +488,7 @@
489 <on_check control="FlyBtnState" /> 488 <on_check control="FlyBtnState" />
490 </menu_item_check> 489 </menu_item_check>
491 <menu_item_separator /> 490 <menu_item_separator />
492 <menu_item_call name="Create Landmark Here" 491 <menu_item_call name="Create Landmark Here" shortcut="control|D"
493 label="Create Landmark Here"> 492 label="Create Landmark Here">
494 <on_click function="World.CreateLandmark" userdata="" /> 493 <on_click function="World.CreateLandmark" userdata="" />
495 <on_enable function="World.EnableCreateLandmark" userdata="" /> 494 <on_enable function="World.EnableCreateLandmark" userdata="" />
diff --git a/linden/indra/newview/skins/default/xui/en-us/strings.xml b/linden/indra/newview/skins/default/xui/en-us/strings.xml
index dd73f20..ecacc78 100644
--- a/linden/indra/newview/skins/default/xui/en-us/strings.xml
+++ b/linden/indra/newview/skins/default/xui/en-us/strings.xml
@@ -176,5 +176,8 @@
176 <string name="whisper">whispers:</string> 176 <string name="whisper">whispers:</string>
177 <string name="shout">shouts:</string> 177 <string name="shout">shouts:</string>
178 178
179 <!-- System messages -->
180 <string name="landmark_created">You created a landmark at</string>
181
179</strings> 182</strings>
180 183