From 0c99e345ff89e140983791d75ab7f2437fad4b2b Mon Sep 17 00:00:00 2001 From: Terry Hearst Date: Mon, 19 Feb 2024 00:10:50 -0500 Subject: [PATCH] Go back to Labels instead of RichTextLabel in licenses screen I compiled a mini build of godot with a bunch of features removed to help save filesize. One of the things I disabled are "advanced" gui controls, which includes RichTextLabel. No big deal, I was only using it there --- src/menu.tscn | 74 ++++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 59 insertions(+), 15 deletions(-) diff --git a/src/menu.tscn b/src/menu.tscn index dd30b2d..4f6860c 100644 --- a/src/menu.tscn +++ b/src/menu.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=9 format=3 uid="uid://173vb7ig0vfd"] +[gd_scene load_steps=11 format=3 uid="uid://173vb7ig0vfd"] [ext_resource type="Script" path="res://src/menu.gd" id="1_53n2c"] [ext_resource type="FontFile" uid="uid://b7jasa607pvfx" path="res://fonts/Louis George Cafe Bold.ttf" id="2_4qysc"] @@ -49,6 +49,12 @@ font_size = 24 [sub_resource type="LabelSettings" id="LabelSettings_cdviw"] font_size = 24 +[sub_resource type="LabelSettings" id="LabelSettings_fsnny"] +font_size = 36 + +[sub_resource type="LabelSettings" id="LabelSettings_p1763"] +line_spacing = 0.0 + [node name="Menu" type="Control"] layout_mode = 3 anchors_preset = 15 @@ -151,14 +157,26 @@ layout_mode = 2 layout_mode = 2 size_flags_vertical = 3 -[node name="RichTextLabel" type="RichTextLabel" parent="Credits/M/V/Panel"] +[node name="ScrollContainer" type="ScrollContainer" parent="Credits/M/V/Panel"] layout_mode = 2 -theme_override_font_sizes/normal_font_size = 16 -theme_override_font_sizes/bold_font_size = 36 -bbcode_enabled = true -text = "[center][b]Godot Engine[/b][/center] +horizontal_scroll_mode = 0 +vertical_scroll_mode = 2 -This game uses Godot Engine, available under the following license: +[node name="VBoxContainer" type="VBoxContainer" parent="Credits/M/V/Panel/ScrollContainer"] +layout_mode = 2 +size_flags_horizontal = 3 +size_flags_vertical = 3 +theme_override_constants/separation = 12 + +[node name="GodotTitle" type="Label" parent="Credits/M/V/Panel/ScrollContainer/VBoxContainer"] +layout_mode = 2 +text = "Godot Engine" +label_settings = SubResource("LabelSettings_fsnny") +horizontal_alignment = 1 + +[node name="GodotText" type="Label" parent="Credits/M/V/Panel/ScrollContainer/VBoxContainer"] +layout_mode = 2 +text = "This game uses Godot Engine, available under the following license: Copyright (c) 2014-present Godot Engine contributors. Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. @@ -166,31 +184,57 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE." +label_settings = SubResource("LabelSettings_p1763") +autowrap_mode = 2 -[center][b]FreeType[/b][/center] +[node name="FreeTypeTitle" type="Label" parent="Credits/M/V/Panel/ScrollContainer/VBoxContainer"] +layout_mode = 2 +text = "FreeType" +label_settings = SubResource("LabelSettings_fsnny") +horizontal_alignment = 1 -Portions of this software are copyright © 1996-2023 The FreeType Project (www.freetype.org). All rights reserved. +[node name="FreeTypeText" type="Label" parent="Credits/M/V/Panel/ScrollContainer/VBoxContainer"] +layout_mode = 2 +text = "Portions of this software are copyright © 1996-2023 The FreeType Project (www.freetype.org). All rights reserved." +label_settings = SubResource("LabelSettings_p1763") +autowrap_mode = 2 -[center][b]ENet[/b][/center] +[node name="ENetTitle" type="Label" parent="Credits/M/V/Panel/ScrollContainer/VBoxContainer"] +layout_mode = 2 +text = "ENet" +label_settings = SubResource("LabelSettings_fsnny") +horizontal_alignment = 1 -Copyright (c) 2002-2020 Lee Salzman +[node name="ENetText" type="Label" parent="Credits/M/V/Panel/ScrollContainer/VBoxContainer"] +layout_mode = 2 +text = "Copyright (c) 2002-2020 Lee Salzman Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE." +label_settings = SubResource("LabelSettings_p1763") +autowrap_mode = 2 -[center][b]mbed TLS[/b][/center] +[node name="MbedTlsTitle" type="Label" parent="Credits/M/V/Panel/ScrollContainer/VBoxContainer"] +layout_mode = 2 +text = "mbed TLS" +label_settings = SubResource("LabelSettings_fsnny") +horizontal_alignment = 1 -Copyright The Mbed TLS Contributors +[node name="MbedTlsText" type="Label" parent="Credits/M/V/Panel/ScrollContainer/VBoxContainer"] +layout_mode = 2 +text = "Copyright The Mbed TLS Contributors Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License." +label_settings = SubResource("LabelSettings_p1763") +autowrap_mode = 2 [node name="CreditsBackButton" type="Button" parent="Credits/M/V"] layout_mode = 2