clean up size slider

This commit is contained in:
Crispy 2021-06-05 11:28:21 +02:00
parent d14e90bb3c
commit c6298484a1
5 changed files with 6 additions and 5 deletions

View file

@ -31,4 +31,4 @@ process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=10.0
svg/scale=16.0

Binary file not shown.

View file

@ -115,7 +115,7 @@ icon = ExtResource( 4 )
anchor_top = -0.016
anchor_right = 1.0
anchor_bottom = -0.016
margin_top = -464.944
margin_top = -448.944
margin_bottom = 0.0560002
__meta__ = {
"_edit_use_anchors_": false
@ -124,12 +124,12 @@ __meta__ = {
[node name="SizeSlider" type="VSlider" parent="MoreOptions/Container/List/SetSize/PanelContainer"]
margin_left = 8.0
margin_top = 8.0
margin_right = 108.0
margin_bottom = 457.0
margin_right = 168.0
margin_bottom = 441.0
min_value = 0.1
max_value = 1.0
step = 0.05
value = 0.1
value = 0.4
__meta__ = {
"_edit_use_anchors_": false
}

View file

@ -6,6 +6,7 @@ var overlay
func _ready() -> void:
overlay = OverlayManager.get_node(overlay_name)
$MoreOptions/Container/List/SetSize/PanelContainer.visible = false
$MoreOptions/Container/List/SetSize/PanelContainer/SizeSlider.value = Settings.s.overlays[overlay_name].width
$MoreOptions.visible = false
$BasicOptions/Label.text = overlay_name
name = overlay_name