summaryrefslogtreecommitdiff
path: root/indra/newview/llappearancemgr.h
diff options
context:
space:
mode:
authorNyx (Neal Orman) <nyx@lindenlab.com>2010-01-08 13:10:15 -0500
committerNyx (Neal Orman) <nyx@lindenlab.com>2010-01-08 13:10:15 -0500
commitcdb6f67f7199bbd82fe85ccfd5c9812226eb12ba (patch)
tree3647ab9913e5753245dfc46fe1f477864d212135 /indra/newview/llappearancemgr.h
parent27bd65129b6f78aa2a7b75e7ef6c3fd33455c766 (diff)
EXT-3958 title needs to update appropriately when changes made to outfit
We now show a string "(unsaved)" under the appearance panel outfit title when the currently loaded outfit has been modified from its original state. Tested with following conditions: 1) item added to loaded outfit 2) item removed from loaded outfit 3) item replaced in loaded outfit Appears to work properly on login as well. Checking is a manual folder compare, but should be fairly efficient. XUI changes submitted by Erica Entire diff reviewed by Vir
Diffstat (limited to 'indra/newview/llappearancemgr.h')
-rw-r--r--indra/newview/llappearancemgr.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/indra/newview/llappearancemgr.h b/indra/newview/llappearancemgr.h
index 11b910ee11..b954968998 100644
--- a/indra/newview/llappearancemgr.h
+++ b/indra/newview/llappearancemgr.h
@@ -96,6 +96,16 @@ public:
// Add COF link to ensemble folder.
void addEnsembleLink(LLInventoryCategory* item, bool do_update = true);
+ //has the current outfit changed since it was loaded?
+ bool isOutfitDirty() { return mOutfitIsDirty; }
+
+ // set false if you just loaded the outfit, true otherwise
+ void setOutfitDirty(bool isDirty) { mOutfitIsDirty = isDirty; }
+
+ // manually compare ouftit folder link to COF to see if outfit has changed.
+ // should only be necessary to do on initial login.
+ void updateIsDirty();
+
protected:
LLAppearanceManager();
~LLAppearanceManager();
@@ -120,6 +130,7 @@ private:
std::set<LLUUID> mRegisteredAttachments;
bool mAttachmentInvLinkEnabled;
+ bool mOutfitIsDirty;
};
#define SUPPORT_ENSEMBLES 0