add cpu module with /proc/stat collector, visible grid cells, dark background, and fullscreen dashboard
This commit is contained in:
parent
5aabc1f7ef
commit
499df2846c
6 changed files with 190 additions and 3 deletions
40
panels/cpu/cpu_module.tscn
Normal file
40
panels/cpu/cpu_module.tscn
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
[gd_scene format=3 uid="uid://bq3bs2hb4r7fb"]
|
||||
|
||||
[ext_resource type="Script" path="res://panels/cpu/cpu_module.gd" id="1"]
|
||||
|
||||
[node name="CpuModule" type="PanelContainer"]
|
||||
anchors_preset = 0
|
||||
script = ExtResource("1")
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="."]
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
theme_constant_overrides/margin_left = 12
|
||||
theme_constant_overrides/margin_top = 12
|
||||
theme_constant_overrides/margin_right = 12
|
||||
theme_constant_overrides/margin_bottom = 12
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer"]
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
|
||||
[node name="Title" type="Label" parent="MarginContainer/VBoxContainer"]
|
||||
unique_name_in_owner = true
|
||||
text = "CPU"
|
||||
|
||||
[node name="Spacer" type="Control" parent="MarginContainer/VBoxContainer"]
|
||||
size_flags_vertical = 3
|
||||
|
||||
[node name="Label" type="Label" parent="MarginContainer/VBoxContainer"]
|
||||
unique_name_in_owner = true
|
||||
horizontal_alignment = 1
|
||||
size_flags_horizontal = 4
|
||||
|
||||
[node name="ProgressBar" type="ProgressBar" parent="MarginContainer/VBoxContainer"]
|
||||
unique_name_in_owner = true
|
||||
size_flags_horizontal = 4
|
||||
max_value = 100.0
|
||||
value = 0.0
|
||||
show_percentage = false
|
||||
Loading…
Add table
Add a link
Reference in a new issue