FIRE-1845: Customizable minimap background transparency
parent
62b0cf7429
commit
16aeb08d5e
|
|
@ -21770,6 +21770,26 @@ Change of this parameter will affect the layout of buttons in notification toast
|
|||
<key>Value</key>
|
||||
<integer>0</integer>
|
||||
</map>
|
||||
<key>FSMiniMapOpacity</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>The opacity for the minimap background</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>F32</string>
|
||||
<key>Value</key>
|
||||
<real>0.66</real>
|
||||
<key>SanityCheckType</key>
|
||||
<string>Between</string>
|
||||
<key>SanityValue</key>
|
||||
<array>
|
||||
<real>0.0</real>
|
||||
<real>1.0</real>
|
||||
</array>
|
||||
<key>SanityComment</key>
|
||||
<string>Setting this value lower than 0.0 or higher than 1.0 has no effect.</string>
|
||||
</map>
|
||||
</map>
|
||||
</llsd>
|
||||
|
||||
|
|
|
|||
|
|
@ -507,3 +507,12 @@ void LLFloaterMap::refreshParcelOverlay()
|
|||
{
|
||||
mMap->mUpdateParcelImage = true;
|
||||
}
|
||||
|
||||
// <FS:Ansariel> FIRE-1825: Minimap floater background transparency
|
||||
// virtual
|
||||
F32 LLFloaterMap::getCurrentTransparency()
|
||||
{
|
||||
static LLCachedControl<F32> fsMiniMapOpacity(gSavedSettings, "FSMiniMapOpacity");
|
||||
return fsMiniMapOpacity();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -50,6 +50,9 @@ public:
|
|||
/*virtual*/ void reshape(S32 width, S32 height, BOOL called_from_parent = TRUE);
|
||||
/*virtual*/ void draw();
|
||||
|
||||
// <FS:Ansariel> FIRE-1825: Minimap floater background transparency
|
||||
/*virtual*/ F32 getCurrentTransparency();
|
||||
|
||||
private:
|
||||
void handleZoom(const LLSD& userdata);
|
||||
void handleStopTracking (const LLSD& userdata);
|
||||
|
|
|
|||
|
|
@ -139,9 +139,7 @@
|
|||
</panel>
|
||||
</panel>
|
||||
<panel label="Mini-Karte" name="tab-minimap">
|
||||
<text name="netmap_color_textbox">
|
||||
Mini-Karte:
|
||||
</text>
|
||||
<slider name="FSMiniMapOpacity" label="Hintergrund-Deckkraft:" label_width="130" width="430"/>
|
||||
<text name="netmap_dots_textbox">
|
||||
Punkte auf Minikarte:
|
||||
</text>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
|
||||
<floater
|
||||
positioning="none"
|
||||
bg_alpha_image_overlay="DkGray_66"
|
||||
bg_alpha_image_overlay="DkGray"
|
||||
legacy_header_height="0"
|
||||
can_minimize="true"
|
||||
can_resize="true"
|
||||
|
|
@ -30,7 +30,7 @@
|
|||
Mini-map
|
||||
</floater.string>
|
||||
<net_map
|
||||
bg_color="NetMapBackgroundColor"
|
||||
bg_color="Transparent"
|
||||
follows="top|left|bottom|right"
|
||||
layout="topleft"
|
||||
left="0"
|
||||
|
|
|
|||
|
|
@ -1163,7 +1163,25 @@
|
|||
right="-1"
|
||||
follows="all"
|
||||
label="Minimap"
|
||||
name="tab-minimap" >
|
||||
name="tab-minimap">
|
||||
<slider
|
||||
can_edit_text="false"
|
||||
control_name="FSMiniMapOpacity"
|
||||
decimal_digits="2"
|
||||
follows="left|top"
|
||||
height="16"
|
||||
increment="0.01"
|
||||
initial_value="1.0"
|
||||
layout="topleft"
|
||||
label_width="115"
|
||||
label="Background opacity:"
|
||||
left="30"
|
||||
max_val="1.00"
|
||||
min_val="0.00"
|
||||
name="FSMiniMapOpacity"
|
||||
show_text="true"
|
||||
top_pad="16"
|
||||
width="415" />
|
||||
<text
|
||||
type="string"
|
||||
length="1"
|
||||
|
|
@ -1413,7 +1431,7 @@
|
|||
width="95">
|
||||
Shout range
|
||||
</text>
|
||||
|
||||
|
||||
</panel>
|
||||
<!-- Misc Panel -->
|
||||
<panel
|
||||
|
|
|
|||
|
|
@ -1,8 +1,7 @@
|
|||
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
|
||||
<floater
|
||||
positioning="none"
|
||||
bg_alpha_image_overlay="DkGray_66"
|
||||
bg_alpha_color="SL-Background_86"
|
||||
bg_alpha_image_overlay="DkGray"
|
||||
legacy_header_height="0"
|
||||
can_minimize="true"
|
||||
can_resize="true"
|
||||
|
|
@ -33,7 +32,7 @@
|
|||
MINIMAP
|
||||
</floater.string>
|
||||
<net_map
|
||||
bg_color="NetMapBackgroundColor"
|
||||
bg_color="Transparent"
|
||||
follows="top|left|bottom|right"
|
||||
layout="topleft"
|
||||
left="0"
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@
|
|||
MINIMAP
|
||||
</floater.string>
|
||||
<net_map
|
||||
bg_color="NetMapBackgroundColor"
|
||||
bg_color="Transparent"
|
||||
follows="top|left|bottom|right"
|
||||
layout="topleft"
|
||||
left="0"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
|
||||
<floater
|
||||
background_visible="false"
|
||||
bg_alpha_image_overlay="White"
|
||||
legacy_header_height="0"
|
||||
can_minimize="false"
|
||||
can_resize="true"
|
||||
|
|
@ -31,7 +31,7 @@
|
|||
MINIMAP
|
||||
</floater.string>
|
||||
<net_map
|
||||
bg_color="NetMapBackgroundColor"
|
||||
bg_color="Transparent"
|
||||
follows="top|left|bottom|right"
|
||||
layout="topleft"
|
||||
left="0"
|
||||
|
|
|
|||
Loading…
Reference in New Issue