Added LLAgentUI. Includes improved buildLocationString.
This commit is contained in:
@@ -35,6 +35,7 @@
|
||||
#include "llfloaterlandmark.h"
|
||||
|
||||
#include "llagent.h"
|
||||
#include "llagentui.h"
|
||||
#include "llcheckboxctrl.h"
|
||||
#include "llviewerparcelmgr.h"
|
||||
#include "llfolderview.h"
|
||||
@@ -299,14 +300,15 @@ void LLFloaterLandmark::onBtnNew(void* userdata)
|
||||
return;
|
||||
}
|
||||
|
||||
LLUUID folder_id;
|
||||
folder_id = gInventory.findCategoryUUIDForType(LLFolderType::FT_LANDMARK);
|
||||
std::string pos_string;
|
||||
gAgent.buildLocationString(pos_string);
|
||||
std::string landmark_name, landmark_desc;
|
||||
|
||||
LLAgentUI::buildLocationString(landmark_name, LLAgentUI::LOCATION_FORMAT_LANDMARK);
|
||||
LLAgentUI::buildLocationString(landmark_desc, LLAgentUI::LOCATION_FORMAT_FULL);
|
||||
const LLUUID folder_id = gInventory.findCategoryUUIDForType(LLFolderType::FT_LANDMARK);
|
||||
|
||||
create_inventory_item(gAgent.getID(), gAgent.getSessionID(),
|
||||
folder_id, LLTransactionID::tnull,
|
||||
pos_string, pos_string, // name, desc
|
||||
landmark_name, landmark_desc, // name, desc
|
||||
LLAssetType::AT_LANDMARK,
|
||||
LLInventoryType::IT_LANDMARK,
|
||||
NOT_WEARABLE, PERM_ALL,
|
||||
|
||||
Reference in New Issue
Block a user