Made nearby chat toasts vertical offset configurable and fixed default offset (FIRE-5634)
parent
646ce8b944
commit
7e09a2d8a4
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue