mirror of
https://github.com/Relintai/broken_seals.git
synced 2024-11-13 20:47:19 +01:00
Reworked castbar, now it will always be properly centered.
This commit is contained in:
parent
7d4291190a
commit
b9ecd4248d
@ -1,4 +1,4 @@
|
|||||||
extends MarginContainer
|
extends VBoxContainer
|
||||||
|
|
||||||
# Copyright (c) 2019-2020 Péter Magyar
|
# Copyright (c) 2019-2020 Péter Magyar
|
||||||
#
|
#
|
||||||
|
@ -3,30 +3,50 @@
|
|||||||
[ext_resource path="res://ui/castbar/Castbar.gd" type="Script" id=1]
|
[ext_resource path="res://ui/castbar/Castbar.gd" type="Script" id=1]
|
||||||
[ext_resource path="res://ui/theme/scrollbar_grabber_blue.tres" type="StyleBox" id=2]
|
[ext_resource path="res://ui/theme/scrollbar_grabber_blue.tres" type="StyleBox" id=2]
|
||||||
|
|
||||||
[node name="Castbar" type="MarginContainer"]
|
[node name="Castbar" type="VBoxContainer"]
|
||||||
margin_left = 339.0
|
anchor_right = 1.0
|
||||||
margin_top = 416.0
|
anchor_bottom = 1.0
|
||||||
margin_right = 691.0
|
mouse_filter = 2
|
||||||
margin_bottom = 441.0
|
|
||||||
script = ExtResource( 1 )
|
script = ExtResource( 1 )
|
||||||
__meta__ = {
|
__meta__ = {
|
||||||
"_edit_use_anchors_": false
|
"_edit_use_anchors_": false
|
||||||
}
|
}
|
||||||
progress_bar_path = NodePath("ProgressBar")
|
progress_bar_path = NodePath("HBoxContainer/ProgressBar")
|
||||||
label_path = NodePath("Label")
|
label_path = NodePath("HBoxContainer/ProgressBar/Label")
|
||||||
|
|
||||||
[node name="ProgressBar" type="ProgressBar" parent="."]
|
[node name="Spacer" type="Control" parent="."]
|
||||||
margin_right = 352.0
|
margin_right = 1024.0
|
||||||
margin_bottom = 25.0
|
margin_bottom = 447.0
|
||||||
|
mouse_filter = 2
|
||||||
size_flags_horizontal = 3
|
size_flags_horizontal = 3
|
||||||
size_flags_vertical = 3
|
size_flags_vertical = 3
|
||||||
|
size_flags_stretch_ratio = 3.0
|
||||||
|
|
||||||
|
[node name="HBoxContainer" type="HBoxContainer" parent="."]
|
||||||
|
margin_top = 451.0
|
||||||
|
margin_right = 1024.0
|
||||||
|
margin_bottom = 600.0
|
||||||
|
mouse_filter = 2
|
||||||
|
size_flags_horizontal = 3
|
||||||
|
size_flags_vertical = 3
|
||||||
|
alignment = 1
|
||||||
|
|
||||||
|
[node name="ProgressBar" type="ProgressBar" parent="HBoxContainer"]
|
||||||
|
margin_left = 402.0
|
||||||
|
margin_right = 622.0
|
||||||
|
margin_bottom = 20.0
|
||||||
|
rect_min_size = Vector2( 220, 20 )
|
||||||
|
mouse_filter = 2
|
||||||
custom_styles/fg = ExtResource( 2 )
|
custom_styles/fg = ExtResource( 2 )
|
||||||
percent_visible = false
|
percent_visible = false
|
||||||
|
|
||||||
[node name="Label" type="Label" parent="."]
|
[node name="Label" type="Label" parent="HBoxContainer/ProgressBar"]
|
||||||
margin_right = 352.0
|
anchor_right = 1.0
|
||||||
margin_bottom = 25.0
|
anchor_bottom = 1.0
|
||||||
size_flags_horizontal = 3
|
size_flags_horizontal = 3
|
||||||
size_flags_vertical = 3
|
size_flags_vertical = 3
|
||||||
align = 1
|
align = 1
|
||||||
valign = 1
|
valign = 1
|
||||||
|
__meta__ = {
|
||||||
|
"_edit_use_anchors_": false
|
||||||
|
}
|
||||||
|
@ -431,11 +431,7 @@ margin_left = -331.0
|
|||||||
margin_bottom = 123.0
|
margin_bottom = 123.0
|
||||||
|
|
||||||
[node name="Castbar" parent="GUI" instance=ExtResource( 16 )]
|
[node name="Castbar" parent="GUI" instance=ExtResource( 16 )]
|
||||||
visible = false
|
margin_top = 0.0
|
||||||
margin_left = 382.0
|
|
||||||
margin_top = 461.0
|
|
||||||
margin_right = 607.0
|
|
||||||
margin_bottom = 480.0
|
|
||||||
mouse_filter = 2
|
mouse_filter = 2
|
||||||
|
|
||||||
[node name="ErrorFrame" parent="GUI" instance=ExtResource( 4 )]
|
[node name="ErrorFrame" parent="GUI" instance=ExtResource( 4 )]
|
||||||
|
Loading…
Reference in New Issue
Block a user