Debug device selection list too long
This commit is contained in:
@@ -20,7 +20,7 @@ func _refresh() -> void:
|
||||
for device: int in UserDataManager.teacher_settings.students.keys():
|
||||
var button: DeviceButton = DEVICE_BUTTON_SCENE.instantiate()
|
||||
button.number = device
|
||||
button.background_color = Globals.device_colors[device-1 % Globals.device_colors.size()]
|
||||
button.background_color = Globals.device_colors[(device - 1) % Globals.device_colors.size()]
|
||||
container.add_child(button)
|
||||
button.pressed.connect(_device_button_pressed.bind(device))
|
||||
OpeningCurtain.open()
|
||||
|
||||
@@ -17,15 +17,14 @@ layout_mode = 1
|
||||
|
||||
[node name="PanelContainer" type="PanelContainer" parent="." unique_id=268912689]
|
||||
layout_mode = 1
|
||||
anchors_preset = 8
|
||||
anchors_preset = 14
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -332.5
|
||||
offset_top = -1.0
|
||||
offset_top = 50.0
|
||||
offset_right = 332.5
|
||||
offset_bottom = 1.0
|
||||
offset_bottom = -50.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_type_variation = &"PanelKaluluBig"
|
||||
@@ -48,7 +47,13 @@ text = "PICK_YOUR_DEVICE"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="GridContainer" type="GridContainer" parent="PanelContainer/MarginContainer/VBoxContainer" unique_id=505066062]
|
||||
[node name="ScrollContainer" type="ScrollContainer" parent="PanelContainer/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
horizontal_scroll_mode = 0
|
||||
|
||||
[node name="GridContainer" type="GridContainer" parent="PanelContainer/MarginContainer/VBoxContainer/ScrollContainer" unique_id=505066062]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
|
||||
Reference in New Issue
Block a user