SUI is now an addon!

This commit is contained in:
JeremyStar™ 2024-05-10 14:39:53 +02:00
parent 18070404b2
commit d830ea5780
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D
43 changed files with 130 additions and 118 deletions

View file

@ -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

View file

@ -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]

6
dist/sui.png.import vendored
View file

@ -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]

View file

@ -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"
rm -rf "~/.cache/pnpm" "~/.local/share/pnpm" "~/.local/state/pnpm"

View file

@ -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"
```
```

View file

@ -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
- [ ] Progress bars

View file

@ -25,28 +25,32 @@ You'll need to execute all commands in your project root.
<Tabs groupId="git">
<TabItem value="direct-develop" label="Develop branch">
```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
```
</TabItem>
<TabItem value="direct-stable" label="Stable branch" default>
```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
```
</TabItem>
<TabItem value="submodule-develop" label="Develop branch (submodule)">
```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
```
</TabItem>
<TabItem value="submodule-stable" label="Stable branch (submodule)">
```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
<Tabs groupId="git">
<TabItem value="direct-develop" label="Develop branch">
```bash
cd SUI
cd addons/SUI
git pull
```
</TabItem>
<TabItem value="direct-stable" label="Stable branch" default>
```bash
cd SUI
cd addons/SUI
git pull
```
</TabItem>
<TabItem value="submodule-develop" label="Develop branch (submodule)">
```bash
cd SUI
cd addons/SUI
git pull origin develop
cd ..
git add SUI
@ -77,7 +81,7 @@ git commit -m "Update StarOpenSource UI"
</TabItem>
<TabItem value="submodule-stable" label="Stable branch (submodule)">
```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
<Tabs groupId="git-branch">
<TabItem value="direct-develop2stable" label="Develop » Stable">
```bash
cd SUI
cd addons/SUI
git fetch
git checkout stable
```
</TabItem>
<TabItem value="direct-stable2develop" label="Stable » Develop" default>
```bash
cd SUI
cd addons/SUI
git fetch
git checkout develop
```
</TabItem>
<TabItem value="submodule-develop2stable" label="Develop » Stable (submodule)">
```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"
</TabItem>
<TabItem value="submodule-stable2develop" label="Stable » Develop (submodule)">
```bash
cd SUI
cd addons/SUI
git fetch
git checkout develop
cd ..

View file

@ -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`.
Make sure to replace `REPLACETHIS` with the UI element you want, for example `SuiTextButton`.

View file

@ -37,4 +37,4 @@ Use this to implement your own element update logic.
### *bool* <u>execute_process</u>()
Determines if `_process()` is allowed to execute.
### *bool* <u>in_editor</u>()
Determines if running inside or outside the editor.
Determines if running inside or outside the editor.

View file

@ -1 +0,0 @@
../sui

View file

@ -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

1
godot/addons/SUI Symbolic link
View file

@ -0,0 +1 @@
../../sui

View file

@ -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]

View file

@ -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]

View file

@ -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]

View file

@ -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]

View file

@ -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]

View file

@ -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]

View file

@ -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]

View file

@ -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]

View file

@ -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]

View file

@ -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]

View file

@ -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]

View file

@ -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]

View file

@ -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]

View file

@ -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]

View file

@ -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]

View file

@ -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]

View file

@ -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]

View file

@ -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]

View file

@ -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]

View file

@ -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]

View file

@ -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]

View file

@ -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]

View file

@ -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]

7
sui/plugin.cfg Normal file
View file

@ -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"

6
sui/plugin.gd Normal file
View file

@ -0,0 +1,6 @@
@tool
extends EditorPlugin
func _enter_tree(): pass
func _exit_tree(): pass

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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.