Skip to content

Commit

Permalink
add help button
Browse files Browse the repository at this point in the history
  • Loading branch information
ElectronicBlueberry committed Aug 30, 2021
1 parent 3c94644 commit 95697d1
Show file tree
Hide file tree
Showing 7 changed files with 89 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .import/ExternalLink.svg-68da2553f64c9b2f7a0ae4a9502e3475.md5
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
source_md5="4d1ac565f96f8972455f27654842864d"
dest_md5="5a9c6332721056c9cc99fc2e00418852"

Binary file not shown.
13 changes: 13 additions & 0 deletions addons/texture_fonts/Assets/ExternalLink.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions addons/texture_fonts/Assets/ExternalLink.svg.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[remap]

importer="texture"
type="StreamTexture"
path="res://.import/ExternalLink.svg-68da2553f64c9b2f7a0ae4a9502e3475.stex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://addons/texture_fonts/Assets/ExternalLink.svg"
dest_files=[ "res://.import/ExternalLink.svg-68da2553f64c9b2f7a0ae4a9502e3475.stex" ]

[params]

compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0
34 changes: 33 additions & 1 deletion addons/texture_fonts/UI/FontEditor.tscn
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
[gd_scene load_steps=11 format=2]
[gd_scene load_steps=13 format=2]

[ext_resource path="res://addons/texture_fonts/UI/Components/Vector2Edit.tscn" type="PackedScene" id=1]
[ext_resource path="res://addons/texture_fonts/Assets/ExternalLink.svg" type="Texture" id=2]
[ext_resource path="res://addons/texture_fonts/UI/FontSettings.gd" type="Script" id=3]
[ext_resource path="res://addons/texture_fonts/UI/Components/TextureViewer/TextureViewer.tscn" type="PackedScene" id=4]
[ext_resource path="res://addons/texture_fonts/Assets/Fonts/RobotoMono/RobotoMono-Medium.ttf" type="DynamicFontData" id=5]
[ext_resource path="res://addons/texture_fonts/UI/FontEditor.gd" type="Script" id=6]
[ext_resource path="res://addons/texture_fonts/UI/FileSettings.gd" type="Script" id=7]
[ext_resource path="res://addons/texture_fonts/UI/Preview.gd" type="Script" id=8]
[ext_resource path="res://addons/texture_fonts/UI/HelpButton.gd" type="Script" id=9]

[sub_resource type="DynamicFont" id=1]
font_data = ExtResource( 5 )
Expand Down Expand Up @@ -601,6 +603,36 @@ size_flags_vertical = 3
custom_styles/focus = SubResource( 2 )
custom_styles/normal = SubResource( 3 )

[node name="Control" type="Control" parent="."]
margin_right = 1048.0
margin_bottom = 628.0

[node name="HelpButton" type="Button" parent="Control"]
anchor_left = 1.0
anchor_right = 1.0
margin_left = -63.0
margin_bottom = 20.0
text = "Help"
align = 0
script = ExtResource( 9 )
__meta__ = {
"_edit_use_anchors_": false
}

[node name="TextureRect" type="TextureRect" parent="Control/HelpButton"]
anchor_left = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = -16.0
margin_right = -4.0
grow_horizontal = 0
grow_vertical = 2
texture = ExtResource( 2 )
stretch_mode = 4
__meta__ = {
"_edit_use_anchors_": false
}

[connection signal="pressed" from="TabContainer/Textures/Files/HeadingBox/AddTextureButton" to="." method="_on_AddTextureButton_pressed"]
[connection signal="file_selected" from="TabContainer/Textures/Files/HeadingBox/AddTextureButton/FileDialog" to="." method="_on_FileDialog_file_selected"]
[connection signal="value_changed" from="TabContainer/Textures/FileSettings/VBoxContainer/RectSettings/Size" to="TabContainer/Textures/FileSettings" method="_on_Size_value_changed"]
Expand Down
6 changes: 6 additions & 0 deletions addons/texture_fonts/UI/HelpButton.gd
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
tool
extends Button


func _pressed():
OS.shell_open("https://github.com/ElectronicBlueberry/Texture-Fonts/wiki")
Binary file added source_files/ExternalLink.afdesign
Binary file not shown.

0 comments on commit 95697d1

Please sign in to comment.