From d830ea578038cd0b8e5c20c0cefd1fca8a9de27d Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Fri, 10 May 2024 14:39:53 +0200 Subject: [PATCH] SUI is now an addon! --- dist/build-distrib.sh | 1 + dist/example.png.import | 6 ++-- dist/sui.png.import | 6 ++-- docs/Makefile | 2 +- docs/README.md | 2 +- docs/docs/about.md | 2 +- docs/docs/getting-started/setting-up.mdx | 28 +++++++++++-------- docs/docs/getting-started/using-sui.md | 2 +- docs/docs/reference/classes/baseclass.md | 2 +- godot/SUI | 1 - godot/Test.tscn | 18 ++++-------- godot/addons/SUI | 1 + sui/fonts/FiraCode/Bold.ttf.import | 6 ++-- sui/fonts/FiraCode/Light.ttf.import | 6 ++-- sui/fonts/FiraCode/Medium.ttf.import | 6 ++-- sui/fonts/FiraCode/Regular.ttf.import | 6 ++-- sui/fonts/FiraCode/Retina.ttf.import | 6 ++-- sui/fonts/Jost/Jost-Black.ttf.import | 6 ++-- sui/fonts/Jost/Jost-BlackItalic.ttf.import | 6 ++-- sui/fonts/Jost/Jost-Bold.ttf.import | 6 ++-- sui/fonts/Jost/Jost-BoldItalic.ttf.import | 6 ++-- sui/fonts/Jost/Jost-Book.ttf.import | 6 ++-- sui/fonts/Jost/Jost-BookItalic.ttf.import | 6 ++-- sui/fonts/Jost/Jost-Hairline.ttf.import | 6 ++-- sui/fonts/Jost/Jost-HairlineItalic.ttf.import | 6 ++-- sui/fonts/Jost/Jost-Heavy.ttf.import | 6 ++-- sui/fonts/Jost/Jost-HeavyItalic.ttf.import | 6 ++-- sui/fonts/Jost/Jost-Light.ttf.import | 6 ++-- sui/fonts/Jost/Jost-LightItalic.ttf.import | 6 ++-- sui/fonts/Jost/Jost-Medium.ttf.import | 6 ++-- sui/fonts/Jost/Jost-MediumItalic.ttf.import | 6 ++-- sui/fonts/Jost/Jost-Semi.ttf.import | 6 ++-- sui/fonts/Jost/Jost-SemiItalic.ttf.import | 6 ++-- sui/fonts/Jost/Jost-Thin.ttf.import | 6 ++-- sui/fonts/Jost/Jost-ThinItalic.ttf.import | 6 ++-- sui/plugin.cfg | 7 +++++ sui/plugin.gd | 6 ++++ sui/scenesrc/SuiHeader.tscn | 4 +-- sui/scenesrc/SuiIconButton.tscn | 4 +-- sui/scenesrc/SuiScroller.tscn | 4 +-- sui/scenesrc/SuiText.tscn | 4 +-- sui/scenesrc/SuiTextButton.tscn | 6 ++-- sui/src/SuiTextButton.gd | 4 +-- 43 files changed, 130 insertions(+), 118 deletions(-) delete mode 120000 godot/SUI create mode 120000 godot/addons/SUI create mode 100644 sui/plugin.cfg create mode 100644 sui/plugin.gd diff --git a/dist/build-distrib.sh b/dist/build-distrib.sh index 843f20a..d4ae320 100755 --- a/dist/build-distrib.sh +++ b/dist/build-distrib.sh @@ -34,6 +34,7 @@ cp -r ../../sui/src src cp -r ../../sui/scenesrc scenesrc cp -r ../../sui/fonts fonts cp -r ../../sui/themes themes +cp -r ../../sui/plugin.{gd,cfg} . cp -r ../sui.* dist cp -r ../example.* dist cp -r ../../LICENSE LICENSE diff --git a/dist/example.png.import b/dist/example.png.import index 758258d..f52c485 100644 --- a/dist/example.png.import +++ b/dist/example.png.import @@ -3,15 +3,15 @@ importer="texture" type="CompressedTexture2D" uid="uid://beqhfqbyme6in" -path="res://.godot/imported/example.png-47be253adf4d5d94d259a060339b95e0.ctex" +path="res://.godot/imported/example.png-79ae4e30d20a5d2033286350990a93fe.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://SUI/dist/example.png" -dest_files=["res://.godot/imported/example.png-47be253adf4d5d94d259a060339b95e0.ctex"] +source_file="res://addons/SUI/dist/example.png" +dest_files=["res://.godot/imported/example.png-79ae4e30d20a5d2033286350990a93fe.ctex"] [params] diff --git a/dist/sui.png.import b/dist/sui.png.import index d9473d2..89b506f 100644 --- a/dist/sui.png.import +++ b/dist/sui.png.import @@ -3,15 +3,15 @@ importer="texture" type="CompressedTexture2D" uid="uid://db6wn76fb2bnu" -path="res://.godot/imported/sui.png-06a43b445987005f6f28d7a54ee82d35.ctex" +path="res://.godot/imported/sui.png-c2630d6c0f48be3e5128a131222590e3.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://SUI/dist/sui.png" -dest_files=["res://.godot/imported/sui.png-06a43b445987005f6f28d7a54ee82d35.ctex"] +source_file="res://addons/SUI/dist/sui.png" +dest_files=["res://.godot/imported/sui.png-c2630d6c0f48be3e5128a131222590e3.ctex"] [params] diff --git a/docs/Makefile b/docs/Makefile index 40e81bd..aa26e78 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -21,4 +21,4 @@ clean-extra: clean # The nuclear option. Why is it here you might ask? I made it while creating the documentation README.md clean-ultra: clean clean-extra - rm -rf "~/.cache/pnpm" "~/.local/share/pnpm" "~/.local/state/pnpm" \ No newline at end of file + rm -rf "~/.cache/pnpm" "~/.local/share/pnpm" "~/.local/state/pnpm" diff --git a/docs/README.md b/docs/README.md index 90b1151..5cc45b5 100644 --- a/docs/README.md +++ b/docs/README.md @@ -113,4 +113,4 @@ pnpm run clear [SUCCESS] Removed the Webpack persistent cache folder at "/home/jeremystartm/Code/JeremyStarTM/Presencode/docs/node_modules/.cache". rm -rf "out" ".docusaurus" ".cache-loader" rm -rf "node_modules" "pnpm-lock.yaml" -``` \ No newline at end of file +``` diff --git a/docs/docs/about.md b/docs/docs/about.md index 0b729e1..b6d20f9 100644 --- a/docs/docs/about.md +++ b/docs/docs/about.md @@ -13,4 +13,4 @@ StarOpenSource UI (`SUI` for short) is a collection of common ui elements for th - [ ] Scroll bars - [ ] Support for Text scroll bars - [ ] Check boxes -- [ ] Progress bars \ No newline at end of file +- [ ] Progress bars diff --git a/docs/docs/getting-started/setting-up.mdx b/docs/docs/getting-started/setting-up.mdx index 48595a7..5911f35 100644 --- a/docs/docs/getting-started/setting-up.mdx +++ b/docs/docs/getting-started/setting-up.mdx @@ -25,28 +25,32 @@ You'll need to execute all commands in your project root. ```bash -git clone https://git.staropensource.de/StarOpenSource/SUI-distrib.git SUI +mkdir -p addons +git clone https://git.staropensource.de/StarOpenSource/SUI-distrib.git addons/SUI cd SUI git checkout develop ``` ```bash -git clone https://git.staropensource.de/StarOpenSource/SUI-distrib.git SUI +mkdir -p addons +git clone https://git.staropensource.de/StarOpenSource/SUI-distrib.git addons/SUI cd SUI git checkout stable ``` ```bash -git submodule add https://git.staropensource.de/StarOpenSource/SUI-distrib.git SUI +mkdir -p addons +git submodule add https://git.staropensource.de/StarOpenSource/SUI-distrib.git addons/SUI cd SUI git checkout develop ``` ```bash -git submodule add https://git.staropensource.de/StarOpenSource/SUI-distrib.git SUI +mkdir -p addons +git submodule add https://git.staropensource.de/StarOpenSource/SUI-distrib.git addons/SUI cd SUI git checkout stable ``` @@ -56,19 +60,19 @@ git checkout stable ```bash -cd SUI +cd addons/SUI git pull ``` ```bash -cd SUI +cd addons/SUI git pull ``` ```bash -cd SUI +cd addons/SUI git pull origin develop cd .. git add SUI @@ -77,7 +81,7 @@ git commit -m "Update StarOpenSource UI" ```bash -cd SUI +cd addons/SUI git pull origin stable cd .. git add SUI @@ -92,21 +96,21 @@ Changing branches can result in errors and missing features. We don't accept iss ```bash -cd SUI +cd addons/SUI git fetch git checkout stable ``` ```bash -cd SUI +cd addons/SUI git fetch git checkout develop ``` ```bash -cd SUI +cd addons/SUI git fetch git checkout stable cd .. @@ -116,7 +120,7 @@ git commit -m "Switch SUI branch from develop to stable" ```bash -cd SUI +cd addons/SUI git fetch git checkout develop cd .. diff --git a/docs/docs/getting-started/using-sui.md b/docs/docs/getting-started/using-sui.md index 341262a..7cf7017 100644 --- a/docs/docs/getting-started/using-sui.md +++ b/docs/docs/getting-started/using-sui.md @@ -36,4 +36,4 @@ func _ready() -> void: add_child(load("res://SUI/scenesrc/REPLACETHIS.tscn").instantiate()) ``` -Make sure to replace `REPLACETHIS` with the UI element you want, for example `SuiTextButton`. \ No newline at end of file +Make sure to replace `REPLACETHIS` with the UI element you want, for example `SuiTextButton`. diff --git a/docs/docs/reference/classes/baseclass.md b/docs/docs/reference/classes/baseclass.md index 714dbdd..51cb2e5 100644 --- a/docs/docs/reference/classes/baseclass.md +++ b/docs/docs/reference/classes/baseclass.md @@ -37,4 +37,4 @@ Use this to implement your own element update logic. ### *bool* execute_process() Determines if `_process()` is allowed to execute. ### *bool* in_editor() -Determines if running inside or outside the editor. \ No newline at end of file +Determines if running inside or outside the editor. diff --git a/godot/SUI b/godot/SUI deleted file mode 120000 index bc1ca42..0000000 --- a/godot/SUI +++ /dev/null @@ -1 +0,0 @@ -../sui \ No newline at end of file diff --git a/godot/Test.tscn b/godot/Test.tscn index ae3ee4f..4bee187 100644 --- a/godot/Test.tscn +++ b/godot/Test.tscn @@ -1,12 +1,12 @@ [gd_scene load_steps=8 format=3 uid="uid://5fghtsgvqc7j"] -[ext_resource type="PackedScene" uid="uid://cxg471hoqg6mr" path="res://SUI/scenesrc/SuiIconButton.tscn" id="1_3di6k"] +[ext_resource type="PackedScene" uid="uid://cxg471hoqg6mr" path="res://addons/SUI/scenesrc/SuiIconButton.tscn" id="1_3di6k"] [ext_resource type="Script" path="res://Test.gd" id="1_xnmp1"] -[ext_resource type="PackedScene" uid="uid://4hi8y7pu3w0v" path="res://SUI/scenesrc/SuiTextButton.tscn" id="2_dxvwu"] -[ext_resource type="PackedScene" uid="uid://1r7pvm0biuk7" path="res://SUI/scenesrc/SuiHeader.tscn" id="2_pcev0"] -[ext_resource type="PackedScene" uid="uid://bso65vpjqc4g4" path="res://SUI/scenesrc/SuiText.tscn" id="4_1lt1v"] -[ext_resource type="Texture2D" uid="uid://beqhfqbyme6in" path="res://SUI/dist/example.png" id="4_12skp"] -[ext_resource type="PackedScene" uid="uid://b31tqrkh73to2" path="res://SUI/scenesrc/SuiScroller.tscn" id="6_6g04c"] +[ext_resource type="PackedScene" uid="uid://4hi8y7pu3w0v" path="res://addons/SUI/scenesrc/SuiTextButton.tscn" id="2_dxvwu"] +[ext_resource type="PackedScene" uid="uid://1r7pvm0biuk7" path="res://addons/SUI/scenesrc/SuiHeader.tscn" id="2_pcev0"] +[ext_resource type="PackedScene" uid="uid://bso65vpjqc4g4" path="res://addons/SUI/scenesrc/SuiText.tscn" id="4_1lt1v"] +[ext_resource type="Texture2D" uid="uid://beqhfqbyme6in" path="res://addons/SUI/dist/example.png" id="4_12skp"] +[ext_resource type="PackedScene" uid="uid://b31tqrkh73to2" path="res://addons/SUI/scenesrc/SuiScroller.tscn" id="6_6g04c"] [node name="Test" type="Control"] layout_mode = 3 @@ -55,9 +55,6 @@ offset_left = 11.0 offset_top = 8.0 offset_right = -1124.0 offset_bottom = -576.0 -thickness_mode = null -thickness_multiplier = null -thickness_value = null [node name="Control" type="Control" parent="SuiScroller"] anchors_preset = 0 @@ -114,9 +111,6 @@ offset_left = 338.0 offset_top = 20.0 offset_right = -814.0 offset_bottom = -577.0 -thickness_mode = null -thickness_multiplier = null -thickness_value = null [node name="Control" type="Control" parent="SuiScroller2"] anchors_preset = 0 diff --git a/godot/addons/SUI b/godot/addons/SUI new file mode 120000 index 0000000..954a8c1 --- /dev/null +++ b/godot/addons/SUI @@ -0,0 +1 @@ +../../sui \ No newline at end of file diff --git a/sui/fonts/FiraCode/Bold.ttf.import b/sui/fonts/FiraCode/Bold.ttf.import index 8a9d76a..06d0927 100644 --- a/sui/fonts/FiraCode/Bold.ttf.import +++ b/sui/fonts/FiraCode/Bold.ttf.import @@ -3,12 +3,12 @@ importer="font_data_dynamic" type="FontFile" uid="uid://bvg3rkn8w7apl" -path="res://.godot/imported/Bold.ttf-22cba54e4f49541df0f88d22919fa43c.fontdata" +path="res://.godot/imported/Bold.ttf-9d02378de508f6c4574455afb9e0f76f.fontdata" [deps] -source_file="res://SUI/fonts/FiraCode/Bold.ttf" -dest_files=["res://.godot/imported/Bold.ttf-22cba54e4f49541df0f88d22919fa43c.fontdata"] +source_file="res://addons/SUI/fonts/FiraCode/Bold.ttf" +dest_files=["res://.godot/imported/Bold.ttf-9d02378de508f6c4574455afb9e0f76f.fontdata"] [params] diff --git a/sui/fonts/FiraCode/Light.ttf.import b/sui/fonts/FiraCode/Light.ttf.import index 379b536..f68ae45 100644 --- a/sui/fonts/FiraCode/Light.ttf.import +++ b/sui/fonts/FiraCode/Light.ttf.import @@ -3,12 +3,12 @@ importer="font_data_dynamic" type="FontFile" uid="uid://bvluo6uibvwwo" -path="res://.godot/imported/Light.ttf-b7c03199b472b55574b9b45080c68c17.fontdata" +path="res://.godot/imported/Light.ttf-5358520cff11f8deca184a7167eaf2b7.fontdata" [deps] -source_file="res://SUI/fonts/FiraCode/Light.ttf" -dest_files=["res://.godot/imported/Light.ttf-b7c03199b472b55574b9b45080c68c17.fontdata"] +source_file="res://addons/SUI/fonts/FiraCode/Light.ttf" +dest_files=["res://.godot/imported/Light.ttf-5358520cff11f8deca184a7167eaf2b7.fontdata"] [params] diff --git a/sui/fonts/FiraCode/Medium.ttf.import b/sui/fonts/FiraCode/Medium.ttf.import index cc3a6b0..d5119ff 100644 --- a/sui/fonts/FiraCode/Medium.ttf.import +++ b/sui/fonts/FiraCode/Medium.ttf.import @@ -3,12 +3,12 @@ importer="font_data_dynamic" type="FontFile" uid="uid://b1pxod4r5puw8" -path="res://.godot/imported/Medium.ttf-40e43fa0b24d32cf56e9d3d649b2df2c.fontdata" +path="res://.godot/imported/Medium.ttf-86d1745537123a429e6bccd6d86eb8b0.fontdata" [deps] -source_file="res://SUI/fonts/FiraCode/Medium.ttf" -dest_files=["res://.godot/imported/Medium.ttf-40e43fa0b24d32cf56e9d3d649b2df2c.fontdata"] +source_file="res://addons/SUI/fonts/FiraCode/Medium.ttf" +dest_files=["res://.godot/imported/Medium.ttf-86d1745537123a429e6bccd6d86eb8b0.fontdata"] [params] diff --git a/sui/fonts/FiraCode/Regular.ttf.import b/sui/fonts/FiraCode/Regular.ttf.import index 5ab9fc1..1d0be63 100644 --- a/sui/fonts/FiraCode/Regular.ttf.import +++ b/sui/fonts/FiraCode/Regular.ttf.import @@ -3,12 +3,12 @@ importer="font_data_dynamic" type="FontFile" uid="uid://dmyes0lwt4sgw" -path="res://.godot/imported/Regular.ttf-04045b5ea8a54f2ef953f12106a268da.fontdata" +path="res://.godot/imported/Regular.ttf-52cf847b22463b3df20f23164c25ab4e.fontdata" [deps] -source_file="res://SUI/fonts/FiraCode/Regular.ttf" -dest_files=["res://.godot/imported/Regular.ttf-04045b5ea8a54f2ef953f12106a268da.fontdata"] +source_file="res://addons/SUI/fonts/FiraCode/Regular.ttf" +dest_files=["res://.godot/imported/Regular.ttf-52cf847b22463b3df20f23164c25ab4e.fontdata"] [params] diff --git a/sui/fonts/FiraCode/Retina.ttf.import b/sui/fonts/FiraCode/Retina.ttf.import index 4913723..f59a8ad 100644 --- a/sui/fonts/FiraCode/Retina.ttf.import +++ b/sui/fonts/FiraCode/Retina.ttf.import @@ -3,12 +3,12 @@ importer="font_data_dynamic" type="FontFile" uid="uid://c2qswgll1vpc6" -path="res://.godot/imported/Retina.ttf-3255d7691679a4e571c84d2485e39ad1.fontdata" +path="res://.godot/imported/Retina.ttf-1b39772f452475d30e5a51f5e07cc1ae.fontdata" [deps] -source_file="res://SUI/fonts/FiraCode/Retina.ttf" -dest_files=["res://.godot/imported/Retina.ttf-3255d7691679a4e571c84d2485e39ad1.fontdata"] +source_file="res://addons/SUI/fonts/FiraCode/Retina.ttf" +dest_files=["res://.godot/imported/Retina.ttf-1b39772f452475d30e5a51f5e07cc1ae.fontdata"] [params] diff --git a/sui/fonts/Jost/Jost-Black.ttf.import b/sui/fonts/Jost/Jost-Black.ttf.import index 43d7940..58cf2fa 100644 --- a/sui/fonts/Jost/Jost-Black.ttf.import +++ b/sui/fonts/Jost/Jost-Black.ttf.import @@ -3,12 +3,12 @@ importer="font_data_dynamic" type="FontFile" uid="uid://m6urwfj4pmcw" -path="res://.godot/imported/Jost-Black.ttf-d2b76427d7ff73b7de9d6cb2ebbbffd9.fontdata" +path="res://.godot/imported/Jost-Black.ttf-2c635ee32d5da5865ec199bd682a2d50.fontdata" [deps] -source_file="res://SUI/fonts/Jost/Jost-Black.ttf" -dest_files=["res://.godot/imported/Jost-Black.ttf-d2b76427d7ff73b7de9d6cb2ebbbffd9.fontdata"] +source_file="res://addons/SUI/fonts/Jost/Jost-Black.ttf" +dest_files=["res://.godot/imported/Jost-Black.ttf-2c635ee32d5da5865ec199bd682a2d50.fontdata"] [params] diff --git a/sui/fonts/Jost/Jost-BlackItalic.ttf.import b/sui/fonts/Jost/Jost-BlackItalic.ttf.import index e911be3..f2ee6ec 100644 --- a/sui/fonts/Jost/Jost-BlackItalic.ttf.import +++ b/sui/fonts/Jost/Jost-BlackItalic.ttf.import @@ -3,12 +3,12 @@ importer="font_data_dynamic" type="FontFile" uid="uid://c8pq1wpbkpcaj" -path="res://.godot/imported/Jost-BlackItalic.ttf-c46f41f0d59e6636f3e254b2a526b666.fontdata" +path="res://.godot/imported/Jost-BlackItalic.ttf-7c2c0ed51407347a2a6fdca6b6852845.fontdata" [deps] -source_file="res://SUI/fonts/Jost/Jost-BlackItalic.ttf" -dest_files=["res://.godot/imported/Jost-BlackItalic.ttf-c46f41f0d59e6636f3e254b2a526b666.fontdata"] +source_file="res://addons/SUI/fonts/Jost/Jost-BlackItalic.ttf" +dest_files=["res://.godot/imported/Jost-BlackItalic.ttf-7c2c0ed51407347a2a6fdca6b6852845.fontdata"] [params] diff --git a/sui/fonts/Jost/Jost-Bold.ttf.import b/sui/fonts/Jost/Jost-Bold.ttf.import index d0f576f..07c43de 100644 --- a/sui/fonts/Jost/Jost-Bold.ttf.import +++ b/sui/fonts/Jost/Jost-Bold.ttf.import @@ -3,12 +3,12 @@ importer="font_data_dynamic" type="FontFile" uid="uid://b6kyv4fqc0h0r" -path="res://.godot/imported/Jost-Bold.ttf-530330f4d453cedaf0fa5c530f0e9499.fontdata" +path="res://.godot/imported/Jost-Bold.ttf-89758df4d1e4651df1f9f59f663b9998.fontdata" [deps] -source_file="res://SUI/fonts/Jost/Jost-Bold.ttf" -dest_files=["res://.godot/imported/Jost-Bold.ttf-530330f4d453cedaf0fa5c530f0e9499.fontdata"] +source_file="res://addons/SUI/fonts/Jost/Jost-Bold.ttf" +dest_files=["res://.godot/imported/Jost-Bold.ttf-89758df4d1e4651df1f9f59f663b9998.fontdata"] [params] diff --git a/sui/fonts/Jost/Jost-BoldItalic.ttf.import b/sui/fonts/Jost/Jost-BoldItalic.ttf.import index a9fbeae..eb0f133 100644 --- a/sui/fonts/Jost/Jost-BoldItalic.ttf.import +++ b/sui/fonts/Jost/Jost-BoldItalic.ttf.import @@ -3,12 +3,12 @@ importer="font_data_dynamic" type="FontFile" uid="uid://dyie3a0vo05m6" -path="res://.godot/imported/Jost-BoldItalic.ttf-ce61bd5c22a68649a11234fc3f5045a4.fontdata" +path="res://.godot/imported/Jost-BoldItalic.ttf-5c2bdb46e5980b65ed9ca1075638d114.fontdata" [deps] -source_file="res://SUI/fonts/Jost/Jost-BoldItalic.ttf" -dest_files=["res://.godot/imported/Jost-BoldItalic.ttf-ce61bd5c22a68649a11234fc3f5045a4.fontdata"] +source_file="res://addons/SUI/fonts/Jost/Jost-BoldItalic.ttf" +dest_files=["res://.godot/imported/Jost-BoldItalic.ttf-5c2bdb46e5980b65ed9ca1075638d114.fontdata"] [params] diff --git a/sui/fonts/Jost/Jost-Book.ttf.import b/sui/fonts/Jost/Jost-Book.ttf.import index 608465c..6b98488 100644 --- a/sui/fonts/Jost/Jost-Book.ttf.import +++ b/sui/fonts/Jost/Jost-Book.ttf.import @@ -3,12 +3,12 @@ importer="font_data_dynamic" type="FontFile" uid="uid://dmal2c285wyd5" -path="res://.godot/imported/Jost-Book.ttf-fcca27ee59160551b9f968d4a28f3094.fontdata" +path="res://.godot/imported/Jost-Book.ttf-e796e63ee3da21fdf38d9a3c4b3b676b.fontdata" [deps] -source_file="res://SUI/fonts/Jost/Jost-Book.ttf" -dest_files=["res://.godot/imported/Jost-Book.ttf-fcca27ee59160551b9f968d4a28f3094.fontdata"] +source_file="res://addons/SUI/fonts/Jost/Jost-Book.ttf" +dest_files=["res://.godot/imported/Jost-Book.ttf-e796e63ee3da21fdf38d9a3c4b3b676b.fontdata"] [params] diff --git a/sui/fonts/Jost/Jost-BookItalic.ttf.import b/sui/fonts/Jost/Jost-BookItalic.ttf.import index 382d484..0c49b74 100644 --- a/sui/fonts/Jost/Jost-BookItalic.ttf.import +++ b/sui/fonts/Jost/Jost-BookItalic.ttf.import @@ -3,12 +3,12 @@ importer="font_data_dynamic" type="FontFile" uid="uid://cbwek1bifl4ug" -path="res://.godot/imported/Jost-BookItalic.ttf-1620829af2a0daf59631f59a0bbfa89e.fontdata" +path="res://.godot/imported/Jost-BookItalic.ttf-b20af08f46b9a9385e74f352e8542f31.fontdata" [deps] -source_file="res://SUI/fonts/Jost/Jost-BookItalic.ttf" -dest_files=["res://.godot/imported/Jost-BookItalic.ttf-1620829af2a0daf59631f59a0bbfa89e.fontdata"] +source_file="res://addons/SUI/fonts/Jost/Jost-BookItalic.ttf" +dest_files=["res://.godot/imported/Jost-BookItalic.ttf-b20af08f46b9a9385e74f352e8542f31.fontdata"] [params] diff --git a/sui/fonts/Jost/Jost-Hairline.ttf.import b/sui/fonts/Jost/Jost-Hairline.ttf.import index e1bd038..ea4aa90 100644 --- a/sui/fonts/Jost/Jost-Hairline.ttf.import +++ b/sui/fonts/Jost/Jost-Hairline.ttf.import @@ -3,12 +3,12 @@ importer="font_data_dynamic" type="FontFile" uid="uid://ojsgind3ered" -path="res://.godot/imported/Jost-Hairline.ttf-60a860c6f046fc64490aa060536a6c96.fontdata" +path="res://.godot/imported/Jost-Hairline.ttf-d1dd71e771c1b42e0258e87923e65831.fontdata" [deps] -source_file="res://SUI/fonts/Jost/Jost-Hairline.ttf" -dest_files=["res://.godot/imported/Jost-Hairline.ttf-60a860c6f046fc64490aa060536a6c96.fontdata"] +source_file="res://addons/SUI/fonts/Jost/Jost-Hairline.ttf" +dest_files=["res://.godot/imported/Jost-Hairline.ttf-d1dd71e771c1b42e0258e87923e65831.fontdata"] [params] diff --git a/sui/fonts/Jost/Jost-HairlineItalic.ttf.import b/sui/fonts/Jost/Jost-HairlineItalic.ttf.import index 3a2d945..b6554dc 100644 --- a/sui/fonts/Jost/Jost-HairlineItalic.ttf.import +++ b/sui/fonts/Jost/Jost-HairlineItalic.ttf.import @@ -3,12 +3,12 @@ importer="font_data_dynamic" type="FontFile" uid="uid://qni4pu0bm308" -path="res://.godot/imported/Jost-HairlineItalic.ttf-1f22e8ae5a4c4ea3cdc6663fef01e37c.fontdata" +path="res://.godot/imported/Jost-HairlineItalic.ttf-fb69b6a296010f64da381646abf766ae.fontdata" [deps] -source_file="res://SUI/fonts/Jost/Jost-HairlineItalic.ttf" -dest_files=["res://.godot/imported/Jost-HairlineItalic.ttf-1f22e8ae5a4c4ea3cdc6663fef01e37c.fontdata"] +source_file="res://addons/SUI/fonts/Jost/Jost-HairlineItalic.ttf" +dest_files=["res://.godot/imported/Jost-HairlineItalic.ttf-fb69b6a296010f64da381646abf766ae.fontdata"] [params] diff --git a/sui/fonts/Jost/Jost-Heavy.ttf.import b/sui/fonts/Jost/Jost-Heavy.ttf.import index 575138b..2807ca6 100644 --- a/sui/fonts/Jost/Jost-Heavy.ttf.import +++ b/sui/fonts/Jost/Jost-Heavy.ttf.import @@ -3,12 +3,12 @@ importer="font_data_dynamic" type="FontFile" uid="uid://c6pvexxexmc7r" -path="res://.godot/imported/Jost-Heavy.ttf-b0c23db38ef7e5d8579dac98f7f0e1bc.fontdata" +path="res://.godot/imported/Jost-Heavy.ttf-13a86b042195fc082920b8b1790b2121.fontdata" [deps] -source_file="res://SUI/fonts/Jost/Jost-Heavy.ttf" -dest_files=["res://.godot/imported/Jost-Heavy.ttf-b0c23db38ef7e5d8579dac98f7f0e1bc.fontdata"] +source_file="res://addons/SUI/fonts/Jost/Jost-Heavy.ttf" +dest_files=["res://.godot/imported/Jost-Heavy.ttf-13a86b042195fc082920b8b1790b2121.fontdata"] [params] diff --git a/sui/fonts/Jost/Jost-HeavyItalic.ttf.import b/sui/fonts/Jost/Jost-HeavyItalic.ttf.import index 05c44a0..b019e75 100644 --- a/sui/fonts/Jost/Jost-HeavyItalic.ttf.import +++ b/sui/fonts/Jost/Jost-HeavyItalic.ttf.import @@ -3,12 +3,12 @@ importer="font_data_dynamic" type="FontFile" uid="uid://dv5eppfnp0g1p" -path="res://.godot/imported/Jost-HeavyItalic.ttf-e7fcb33dfb4a18e0f2c41c8c1568acf0.fontdata" +path="res://.godot/imported/Jost-HeavyItalic.ttf-53870a664183e8ede629796746926a7d.fontdata" [deps] -source_file="res://SUI/fonts/Jost/Jost-HeavyItalic.ttf" -dest_files=["res://.godot/imported/Jost-HeavyItalic.ttf-e7fcb33dfb4a18e0f2c41c8c1568acf0.fontdata"] +source_file="res://addons/SUI/fonts/Jost/Jost-HeavyItalic.ttf" +dest_files=["res://.godot/imported/Jost-HeavyItalic.ttf-53870a664183e8ede629796746926a7d.fontdata"] [params] diff --git a/sui/fonts/Jost/Jost-Light.ttf.import b/sui/fonts/Jost/Jost-Light.ttf.import index 94b3eec..cefca92 100644 --- a/sui/fonts/Jost/Jost-Light.ttf.import +++ b/sui/fonts/Jost/Jost-Light.ttf.import @@ -3,12 +3,12 @@ importer="font_data_dynamic" type="FontFile" uid="uid://lgdhrfvuirc8" -path="res://.godot/imported/Jost-Light.ttf-ba510b840fdc146937673fd2582f4389.fontdata" +path="res://.godot/imported/Jost-Light.ttf-2dbed4b0da6ce9f06416069dec6915ed.fontdata" [deps] -source_file="res://SUI/fonts/Jost/Jost-Light.ttf" -dest_files=["res://.godot/imported/Jost-Light.ttf-ba510b840fdc146937673fd2582f4389.fontdata"] +source_file="res://addons/SUI/fonts/Jost/Jost-Light.ttf" +dest_files=["res://.godot/imported/Jost-Light.ttf-2dbed4b0da6ce9f06416069dec6915ed.fontdata"] [params] diff --git a/sui/fonts/Jost/Jost-LightItalic.ttf.import b/sui/fonts/Jost/Jost-LightItalic.ttf.import index 039976d..d561d4b 100644 --- a/sui/fonts/Jost/Jost-LightItalic.ttf.import +++ b/sui/fonts/Jost/Jost-LightItalic.ttf.import @@ -3,12 +3,12 @@ importer="font_data_dynamic" type="FontFile" uid="uid://b71mb2nm3qhpc" -path="res://.godot/imported/Jost-LightItalic.ttf-7f878179a0fd0bc18ca1d551eac1268b.fontdata" +path="res://.godot/imported/Jost-LightItalic.ttf-702988867a5b4796d468dce0ad421d3a.fontdata" [deps] -source_file="res://SUI/fonts/Jost/Jost-LightItalic.ttf" -dest_files=["res://.godot/imported/Jost-LightItalic.ttf-7f878179a0fd0bc18ca1d551eac1268b.fontdata"] +source_file="res://addons/SUI/fonts/Jost/Jost-LightItalic.ttf" +dest_files=["res://.godot/imported/Jost-LightItalic.ttf-702988867a5b4796d468dce0ad421d3a.fontdata"] [params] diff --git a/sui/fonts/Jost/Jost-Medium.ttf.import b/sui/fonts/Jost/Jost-Medium.ttf.import index 513eee0..7bbd977 100644 --- a/sui/fonts/Jost/Jost-Medium.ttf.import +++ b/sui/fonts/Jost/Jost-Medium.ttf.import @@ -3,12 +3,12 @@ importer="font_data_dynamic" type="FontFile" uid="uid://d3cdnrnmplqa2" -path="res://.godot/imported/Jost-Medium.ttf-18a1c5f1f46710985bb7bd431a626c3b.fontdata" +path="res://.godot/imported/Jost-Medium.ttf-f161b5eb0d0dc3093b24164ab7b49c5c.fontdata" [deps] -source_file="res://SUI/fonts/Jost/Jost-Medium.ttf" -dest_files=["res://.godot/imported/Jost-Medium.ttf-18a1c5f1f46710985bb7bd431a626c3b.fontdata"] +source_file="res://addons/SUI/fonts/Jost/Jost-Medium.ttf" +dest_files=["res://.godot/imported/Jost-Medium.ttf-f161b5eb0d0dc3093b24164ab7b49c5c.fontdata"] [params] diff --git a/sui/fonts/Jost/Jost-MediumItalic.ttf.import b/sui/fonts/Jost/Jost-MediumItalic.ttf.import index 730779f..e5cca98 100644 --- a/sui/fonts/Jost/Jost-MediumItalic.ttf.import +++ b/sui/fonts/Jost/Jost-MediumItalic.ttf.import @@ -3,12 +3,12 @@ importer="font_data_dynamic" type="FontFile" uid="uid://c8pypsury6pp0" -path="res://.godot/imported/Jost-MediumItalic.ttf-74fab0e71b9d6a783a4c23d09e5a8bc2.fontdata" +path="res://.godot/imported/Jost-MediumItalic.ttf-01b4f8b1311e6c370cf8956be27a4d92.fontdata" [deps] -source_file="res://SUI/fonts/Jost/Jost-MediumItalic.ttf" -dest_files=["res://.godot/imported/Jost-MediumItalic.ttf-74fab0e71b9d6a783a4c23d09e5a8bc2.fontdata"] +source_file="res://addons/SUI/fonts/Jost/Jost-MediumItalic.ttf" +dest_files=["res://.godot/imported/Jost-MediumItalic.ttf-01b4f8b1311e6c370cf8956be27a4d92.fontdata"] [params] diff --git a/sui/fonts/Jost/Jost-Semi.ttf.import b/sui/fonts/Jost/Jost-Semi.ttf.import index 93c7cb4..1c0f350 100644 --- a/sui/fonts/Jost/Jost-Semi.ttf.import +++ b/sui/fonts/Jost/Jost-Semi.ttf.import @@ -3,12 +3,12 @@ importer="font_data_dynamic" type="FontFile" uid="uid://gnouta0qju0p" -path="res://.godot/imported/Jost-Semi.ttf-0d5b54fce18b66b9a3efd1947bd643ee.fontdata" +path="res://.godot/imported/Jost-Semi.ttf-9377052d79aeca7e001c2ca77cfcbe8e.fontdata" [deps] -source_file="res://SUI/fonts/Jost/Jost-Semi.ttf" -dest_files=["res://.godot/imported/Jost-Semi.ttf-0d5b54fce18b66b9a3efd1947bd643ee.fontdata"] +source_file="res://addons/SUI/fonts/Jost/Jost-Semi.ttf" +dest_files=["res://.godot/imported/Jost-Semi.ttf-9377052d79aeca7e001c2ca77cfcbe8e.fontdata"] [params] diff --git a/sui/fonts/Jost/Jost-SemiItalic.ttf.import b/sui/fonts/Jost/Jost-SemiItalic.ttf.import index 1de902e..7527ce0 100644 --- a/sui/fonts/Jost/Jost-SemiItalic.ttf.import +++ b/sui/fonts/Jost/Jost-SemiItalic.ttf.import @@ -3,12 +3,12 @@ importer="font_data_dynamic" type="FontFile" uid="uid://d2iwusq4f7oql" -path="res://.godot/imported/Jost-SemiItalic.ttf-c0398693734e1f928de1f3d879cec4ca.fontdata" +path="res://.godot/imported/Jost-SemiItalic.ttf-68daaa58429e6ae8bd8151fd1bf4b7c6.fontdata" [deps] -source_file="res://SUI/fonts/Jost/Jost-SemiItalic.ttf" -dest_files=["res://.godot/imported/Jost-SemiItalic.ttf-c0398693734e1f928de1f3d879cec4ca.fontdata"] +source_file="res://addons/SUI/fonts/Jost/Jost-SemiItalic.ttf" +dest_files=["res://.godot/imported/Jost-SemiItalic.ttf-68daaa58429e6ae8bd8151fd1bf4b7c6.fontdata"] [params] diff --git a/sui/fonts/Jost/Jost-Thin.ttf.import b/sui/fonts/Jost/Jost-Thin.ttf.import index 1e59d88..f6cfba1 100644 --- a/sui/fonts/Jost/Jost-Thin.ttf.import +++ b/sui/fonts/Jost/Jost-Thin.ttf.import @@ -3,12 +3,12 @@ importer="font_data_dynamic" type="FontFile" uid="uid://cgcmctm1yk74f" -path="res://.godot/imported/Jost-Thin.ttf-e0ab4e7fb89f79107d9e4dd6035aa171.fontdata" +path="res://.godot/imported/Jost-Thin.ttf-cf88a1c2ba9d17fec2aa86a24e8ff592.fontdata" [deps] -source_file="res://SUI/fonts/Jost/Jost-Thin.ttf" -dest_files=["res://.godot/imported/Jost-Thin.ttf-e0ab4e7fb89f79107d9e4dd6035aa171.fontdata"] +source_file="res://addons/SUI/fonts/Jost/Jost-Thin.ttf" +dest_files=["res://.godot/imported/Jost-Thin.ttf-cf88a1c2ba9d17fec2aa86a24e8ff592.fontdata"] [params] diff --git a/sui/fonts/Jost/Jost-ThinItalic.ttf.import b/sui/fonts/Jost/Jost-ThinItalic.ttf.import index 4b4cff6..463a541 100644 --- a/sui/fonts/Jost/Jost-ThinItalic.ttf.import +++ b/sui/fonts/Jost/Jost-ThinItalic.ttf.import @@ -3,12 +3,12 @@ importer="font_data_dynamic" type="FontFile" uid="uid://boi4bwfisvegs" -path="res://.godot/imported/Jost-ThinItalic.ttf-8c39a4954eac56e794cf73949a2e807e.fontdata" +path="res://.godot/imported/Jost-ThinItalic.ttf-7838f2160d46284d888598d15fd30dc0.fontdata" [deps] -source_file="res://SUI/fonts/Jost/Jost-ThinItalic.ttf" -dest_files=["res://.godot/imported/Jost-ThinItalic.ttf-8c39a4954eac56e794cf73949a2e807e.fontdata"] +source_file="res://addons/SUI/fonts/Jost/Jost-ThinItalic.ttf" +dest_files=["res://.godot/imported/Jost-ThinItalic.ttf-7838f2160d46284d888598d15fd30dc0.fontdata"] [params] diff --git a/sui/plugin.cfg b/sui/plugin.cfg new file mode 100644 index 0000000..ee75a2d --- /dev/null +++ b/sui/plugin.cfg @@ -0,0 +1,7 @@ +[plugin] + +name="StarOpenSource UI" +description="StarOpenSource UI (SUI for short) is a collection of common ui elements for the Godot Engine." +author="The StarOpenSource Project & Contributors" +version="" +script="plugin.gd" diff --git a/sui/plugin.gd b/sui/plugin.gd new file mode 100644 index 0000000..7be64c2 --- /dev/null +++ b/sui/plugin.gd @@ -0,0 +1,6 @@ +@tool +extends EditorPlugin + +func _enter_tree(): pass + +func _exit_tree(): pass diff --git a/sui/scenesrc/SuiHeader.tscn b/sui/scenesrc/SuiHeader.tscn index fd63996..39d161f 100644 --- a/sui/scenesrc/SuiHeader.tscn +++ b/sui/scenesrc/SuiHeader.tscn @@ -1,7 +1,7 @@ [gd_scene load_steps=3 format=3 uid="uid://1r7pvm0biuk7"] -[ext_resource type="Script" path="res://SUI/src/SuiHeader.gd" id="2_bnj46"] -[ext_resource type="Theme" uid="uid://c08yxv1cirbxe" path="res://SUI/themes/RichTextLabel.tres" id="3_877pi"] +[ext_resource type="Script" path="res://addons/SUI/src/SuiHeader.gd" id="2_bnj46"] +[ext_resource type="Theme" uid="uid://c08yxv1cirbxe" path="res://addons/SUI/themes/RichTextLabel.tres" id="3_877pi"] [node name="SuiHeader" type="Control"] layout_mode = 3 diff --git a/sui/scenesrc/SuiIconButton.tscn b/sui/scenesrc/SuiIconButton.tscn index b36489f..4db2a8e 100644 --- a/sui/scenesrc/SuiIconButton.tscn +++ b/sui/scenesrc/SuiIconButton.tscn @@ -1,7 +1,7 @@ [gd_scene load_steps=3 format=3 uid="uid://cxg471hoqg6mr"] -[ext_resource type="Script" path="res://SUI/src/SuiIconButton.gd" id="2_g6elc"] -[ext_resource type="Theme" uid="uid://prqv77t23rsq" path="res://SUI/themes/Button.tres" id="3_knxki"] +[ext_resource type="Script" path="res://addons/SUI/src/SuiIconButton.gd" id="2_g6elc"] +[ext_resource type="Theme" uid="uid://prqv77t23rsq" path="res://addons/SUI/themes/Button.tres" id="3_knxki"] [node name="SuiIconButton" type="Control"] layout_mode = 3 diff --git a/sui/scenesrc/SuiScroller.tscn b/sui/scenesrc/SuiScroller.tscn index 190b980..c2a90ae 100644 --- a/sui/scenesrc/SuiScroller.tscn +++ b/sui/scenesrc/SuiScroller.tscn @@ -1,7 +1,7 @@ [gd_scene load_steps=3 format=3 uid="uid://b31tqrkh73to2"] -[ext_resource type="Script" path="res://SUI/src/SuiScroller.gd" id="1_dcfql"] -[ext_resource type="Theme" uid="uid://jg7l68yqa6n2" path="res://SUI/themes/ScrollBar.tres" id="2_4lteo"] +[ext_resource type="Script" path="res://addons/SUI/src/SuiScroller.gd" id="1_dcfql"] +[ext_resource type="Theme" uid="uid://jg7l68yqa6n2" path="res://addons/SUI/themes/ScrollBar.tres" id="2_4lteo"] [node name="SuiScroller" type="Control"] clip_contents = true diff --git a/sui/scenesrc/SuiText.tscn b/sui/scenesrc/SuiText.tscn index 4357ad0..868b12b 100644 --- a/sui/scenesrc/SuiText.tscn +++ b/sui/scenesrc/SuiText.tscn @@ -1,7 +1,7 @@ [gd_scene load_steps=3 format=3 uid="uid://bso65vpjqc4g4"] -[ext_resource type="Script" path="res://SUI/src/SuiText.gd" id="2_87ovr"] -[ext_resource type="Theme" uid="uid://c08yxv1cirbxe" path="res://SUI/themes/RichTextLabel.tres" id="3_fttgr"] +[ext_resource type="Script" path="res://addons/SUI/src/SuiText.gd" id="2_87ovr"] +[ext_resource type="Theme" uid="uid://c08yxv1cirbxe" path="res://addons/SUI/themes/RichTextLabel.tres" id="3_fttgr"] [node name="SuiText" type="Control"] layout_mode = 3 diff --git a/sui/scenesrc/SuiTextButton.tscn b/sui/scenesrc/SuiTextButton.tscn index 786150e..77e5e4e 100644 --- a/sui/scenesrc/SuiTextButton.tscn +++ b/sui/scenesrc/SuiTextButton.tscn @@ -1,8 +1,8 @@ [gd_scene load_steps=4 format=3 uid="uid://4hi8y7pu3w0v"] -[ext_resource type="Script" path="res://SUI/src/SuiTextButton.gd" id="2_43xd1"] -[ext_resource type="Theme" uid="uid://prqv77t23rsq" path="res://SUI/themes/Button.tres" id="3_u0br7"] -[ext_resource type="Theme" uid="uid://c08yxv1cirbxe" path="res://SUI/themes/RichTextLabel.tres" id="4_vp57w"] +[ext_resource type="Script" path="res://addons/SUI/src/SuiTextButton.gd" id="2_43xd1"] +[ext_resource type="Theme" uid="uid://prqv77t23rsq" path="res://addons/SUI/themes/Button.tres" id="3_u0br7"] +[ext_resource type="Theme" uid="uid://c08yxv1cirbxe" path="res://addons/SUI/themes/RichTextLabel.tres" id="4_vp57w"] [node name="SuiTextButton" type="Control"] layout_mode = 3 diff --git a/sui/src/SuiTextButton.gd b/sui/src/SuiTextButton.gd index 6345cc2..2022c81 100644 --- a/sui/src/SuiTextButton.gd +++ b/sui/src/SuiTextButton.gd @@ -7,14 +7,14 @@ extends SuiBaseClass @export var disabled: bool = false ## Makes the button toggleable. @export var toggle_mode: bool = false -## Forwarded from the internal [Button]. Will be overwritten with the internal button's value, any manual changes to this variable will not be reflected. +## Forwarded from the internal [Button]. Will be overriden with the internal button's value, any changes to this variable will not be reflected. @export var button_pressed: bool = false @export_subgroup("RichTextLabel") ## Enables support for BBCode. @export var bbcode_support: bool = true ## The text you want to display. @export_multiline var text: String = "[center]SuiTextButton[/center]" -## The size your font should have. +## The size your text should have. @export var font_size: int = 35 ## Emitted when the button is pressed.