Add an option to show new inventory notification even if auto accept is enabled
Suggested by Darkover Tonemaster
parent
5d8d118378
commit
681f6071c7
|
|
@ -25209,6 +25209,17 @@ Change of this parameter will affect the layout of buttons in notification toast
|
|||
<key>Value</key>
|
||||
<integer>1</integer>
|
||||
</map>
|
||||
<key>FSShowAutoAcceptInventoryInNotifications</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>If enabled, auto-accepted inventory items will be shown in notifications.</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>Boolean</string>
|
||||
<key>Value</key>
|
||||
<integer>1</integer>
|
||||
</map>
|
||||
<key>FSStatusBarShowFPS</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
|
|
|
|||
|
|
@ -405,7 +405,7 @@ void inventory_offer_handler(LLOfferInfo* info)
|
|||
LLPostponedNotification::add<LLPostponedOfferNotification>(p, info->mFromID, false);
|
||||
}
|
||||
// <FS:Ansariel> FIRE-19540: Log auto-accepted inventory to nearby chat
|
||||
else if (gSavedSettings.getBOOL("FSLogAutoAcceptInventoryToChat"))
|
||||
else if (gSavedSettings.getBOOL("FSLogAutoAcceptInventoryToChat") || gSavedSettings.getBOOL("FSShowAutoAcceptInventoryInNotifications"))
|
||||
{
|
||||
std::string message_type;
|
||||
LLStringUtil::format_map_t chat_args;
|
||||
|
|
@ -438,7 +438,18 @@ void inventory_offer_handler(LLOfferInfo* info)
|
|||
message_type = "InvOfferAutoAcceptUser";
|
||||
}
|
||||
|
||||
FSCommon::report_to_nearby_chat(LLTrans::getString(message_type, chat_args));
|
||||
std::string inv_offer_message = LLTrans::getString(message_type, chat_args);
|
||||
if (gSavedSettings.getBOOL("FSLogAutoAcceptInventoryToChat"))
|
||||
{
|
||||
FSCommon::report_to_nearby_chat(inv_offer_message);
|
||||
}
|
||||
if (gSavedSettings.getBOOL("FSShowAutoAcceptInventoryInNotifications"))
|
||||
{
|
||||
LLSD args;
|
||||
args["MESSAGE"] = inv_offer_message;
|
||||
LLNotificationsUtil::add("IMSystemMessageTip", args);
|
||||
}
|
||||
|
||||
make_ui_sound("UISndInventoryOffer");
|
||||
}
|
||||
// </FS:Ansariel>
|
||||
|
|
|
|||
|
|
@ -155,6 +155,15 @@
|
|||
name="FSLogAutoAcceptInventoryToChat"
|
||||
top_pad="3"
|
||||
width="350" />
|
||||
<check_box
|
||||
control_name="FSShowAutoAcceptInventoryInNotifications"
|
||||
enabled_control="AutoAcceptNewInventory"
|
||||
height="16"
|
||||
label="Show new inventory notification even if auto accept is enabled"
|
||||
layout="topleft"
|
||||
name="FSShowAutoAcceptInventoryInNotifications"
|
||||
top_pad="3"
|
||||
width="350" />
|
||||
<check_box
|
||||
control_name="FSUseLegacyInventoryAcceptMessages"
|
||||
height="16"
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@
|
|||
<check_box label="Pozwól oskryptowanym obiektom znać moje obecne ustawienie języka" name="LanguageIsPublic"/>
|
||||
<check_box label="Automatycznie akceptuj nowe przedmioty" name="Auto_Accept_New_Inventory"/>
|
||||
<check_box label="Pokaż w czacie w pobliżu przedmioty zaakceptowane automatycznie" name="FSLogAutoAcceptInventoryToChat" />
|
||||
<check_box label="Powiadomienia o nowych przedmiotach nawet przy automatycznym akceptowaniu" name="FSShowAutoAcceptInventoryInNotifications" />
|
||||
<check_box label="Klasyczne powiadomienia akceptacji/odrzucenia przedmiotu" name="FSUseLegacyInventoryAcceptMessages" tool_tip="Gdy włączysz tą opcję, to Przeglądarka będzie wysyłać powiadomienia o akceptacji/odrzuceniu przedmiotu tylko po naciśnięciu odpowiedniego przycisku. Gdy wyłączysz tą opcję, to powiadomienie będzie wysłane automatycznie zaraz po tym, gdy przedmiot zostanie zaakceptowany. Ta opcja nie ma żadnej mocy, gdy przedmioty są akceptowane automatycznie."/>
|
||||
<check_box label="Automatycznie pokazuj akceptowane przedmioty" name="Show_In_Inventory"/>
|
||||
<check_box label="Automatycznie pokazuj noty, tekstury i landmarki po zaakceptowaniu" name="Show_New_Inventory"/>
|
||||
|
|
|
|||
|
|
@ -2836,7 +2836,7 @@ Jeśli ciągle otrzymujesz tą wiadomość, to skontaktuj się z pomocą technic
|
|||
należący do nieznanego właściciela
|
||||
</string>
|
||||
<string name="InvOfferGaveYou">
|
||||
dał Ci
|
||||
dał/a Ci
|
||||
</string>
|
||||
<string name="InvOfferYouDecline">
|
||||
Odrzucono
|
||||
|
|
@ -2847,6 +2847,12 @@ Jeśli ciągle otrzymujesz tą wiadomość, to skontaktuj się z pomocą technic
|
|||
<string name="InvOfferFrom">
|
||||
od
|
||||
</string>
|
||||
<string name="InvOfferAutoAcceptObject">
|
||||
Obiekt o nazwie [OBJECT_NAME] dał Ci [OBJECT_TYPE]: [DESC]
|
||||
</string>
|
||||
<string name="InvOfferAutoAcceptUser">
|
||||
[USER_NAME] dał/a Ci [OBJECT_TYPE]: [DESC]
|
||||
</string>
|
||||
<string name="GroupMoneyTotal">
|
||||
Suma
|
||||
</string>
|
||||
|
|
|
|||
Loading…
Reference in New Issue