diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llpanelinventory.cpp | 26 |
1 files changed, 4 insertions, 22 deletions
diff --git a/linden/indra/newview/llpanelinventory.cpp b/linden/indra/newview/llpanelinventory.cpp index 277ab15..8103ee9 100644 --- a/linden/indra/newview/llpanelinventory.cpp +++ b/linden/indra/newview/llpanelinventory.cpp | |||
@@ -81,6 +81,7 @@ | |||
81 | #include "llviewerobjectlist.h" | 81 | #include "llviewerobjectlist.h" |
82 | #include "llviewerwindow.h" | 82 | #include "llviewerwindow.h" |
83 | #include "llwearable.h" | 83 | #include "llwearable.h" |
84 | #include "llwlparammanager.h" | ||
84 | 85 | ||
85 | #include "hippogridmanager.h" | 86 | #include "hippogridmanager.h" |
86 | 87 | ||
@@ -1380,9 +1381,6 @@ public: | |||
1380 | virtual LLUIImagePtr getIcon() const; | 1381 | virtual LLUIImagePtr getIcon() const; |
1381 | virtual void openItem(); | 1382 | virtual void openItem(); |
1382 | virtual BOOL removeItem(); | 1383 | virtual BOOL removeItem(); |
1383 | bool isSkySetting() const; | ||
1384 | bool isWaterSetting() const; | ||
1385 | bool isWindLight() const; | ||
1386 | }; | 1384 | }; |
1387 | 1385 | ||
1388 | LLTaskNotecardBridge::LLTaskNotecardBridge( | 1386 | LLTaskNotecardBridge::LLTaskNotecardBridge( |
@@ -1412,7 +1410,7 @@ void LLTaskNotecardBridge::openItem() | |||
1412 | return; | 1410 | return; |
1413 | } | 1411 | } |
1414 | // [/RLVa:KB] | 1412 | // [/RLVa:KB] |
1415 | if(isWindLight()) | 1413 | if(LLWLParamManager::isSettingsNotecard(getName())) |
1416 | { | 1414 | { |
1417 | return; | 1415 | return; |
1418 | } | 1416 | } |
@@ -1442,11 +1440,11 @@ BOOL LLTaskNotecardBridge::removeItem() | |||
1442 | } | 1440 | } |
1443 | LLUIImagePtr LLTaskNotecardBridge::getIcon() const | 1441 | LLUIImagePtr LLTaskNotecardBridge::getIcon() const |
1444 | { | 1442 | { |
1445 | if(isSkySetting()) | 1443 | if(LLWLParamManager::isSkySettingsNotecard(getName())) |
1446 | { | 1444 | { |
1447 | return LLUI::getUIImage("Inv_WindLight"); | 1445 | return LLUI::getUIImage("Inv_WindLight"); |
1448 | } | 1446 | } |
1449 | else if(isWaterSetting()) | 1447 | else if(LLWLParamManager::isWaterSettingsNotecard(getName())) |
1450 | { | 1448 | { |
1451 | return LLUI::getUIImage("Inv_WaterLight"); | 1449 | return LLUI::getUIImage("Inv_WaterLight"); |
1452 | } | 1450 | } |
@@ -1456,22 +1454,6 @@ LLUIImagePtr LLTaskNotecardBridge::getIcon() const | |||
1456 | } | 1454 | } |
1457 | } | 1455 | } |
1458 | 1456 | ||
1459 | bool LLTaskNotecardBridge::isSkySetting() const | ||
1460 | { | ||
1461 | return (getName().length() > 2 && getName().compare(getName().length() - 3, 3, ".wl") == 0); | ||
1462 | } | ||
1463 | |||
1464 | bool LLTaskNotecardBridge::isWaterSetting() const | ||
1465 | { | ||
1466 | return (getName().length() > 2 && getName().compare(getName().length() - 3, 3, ".ww") == 0); | ||
1467 | } | ||
1468 | |||
1469 | bool LLTaskNotecardBridge::isWindLight() const | ||
1470 | { | ||
1471 | return (isSkySetting() || isWaterSetting()); | ||
1472 | } | ||
1473 | |||
1474 | |||
1475 | ///---------------------------------------------------------------------------- | 1457 | ///---------------------------------------------------------------------------- |
1476 | /// Class LLTaskGestureBridge | 1458 | /// Class LLTaskGestureBridge |
1477 | ///---------------------------------------------------------------------------- | 1459 | ///---------------------------------------------------------------------------- |