Made nearby chat toasts vertical offset configurable and fixed default offset (FIRE-5634)

Ansariel 2012-03-21 19:42:20 +01:00
parent 646ce8b944
commit 7e09a2d8a4
2 changed files with 14 additions and 1 deletions

View File

@ -17115,6 +17115,17 @@ Change of this parameter will affect the layout of buttons in notification toast
<key>Value</key>
<integer>1</integer>
</map>
<key>FSNearbyChatToastsOffset</key>
<map>
<key>Comment</key>
<string>Vertical offset of the nearby chat toasts</string>
<key>Persist</key>
<integer>1</integer>
<key>Type</key>
<string>S32</string>
<key>Value</key>
<real>20</real>
</map>
</map>
</llsd>

View File

@ -435,7 +435,9 @@ void LLNearbyChatScreenChannel::arrangeToasts()
S32 channel_bottom = channel_rect.mBottom;
S32 bottom = channel_bottom + 80;
// <FS:Ansariel> Configurable nearby chat toasts offset
//S32 bottom = channel_bottom + 80;
S32 bottom = channel_bottom + gSavedSettings.getS32("FSNearbyChatToastsOffset");
S32 margin = gSavedSettings.getS32("ToastGap");
//sort active toasts