-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
358 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
extends HBoxContainer | ||
|
||
|
||
# Called when the node enters the scene tree for the first time. | ||
func _ready() -> void: | ||
%ButHelp.button_down.connect(_help_show) | ||
|
||
|
||
|
||
func _help_show(): | ||
if %PanelHelp.visible == false: | ||
UI.tween_alpha(%PanelHelp, false, false) | ||
get_node("/root/Main")._on_window_resized() | ||
else: | ||
%PanelHelp._help_exit() | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
extends PanelContainer | ||
|
||
|
||
# Called when the node enters the scene tree for the first time. | ||
func _ready() -> void: | ||
|
||
%ButExit.button_down.connect(_help_exit) | ||
%LabelInfo.meta_clicked.connect(_on_meta_clicked) | ||
|
||
|
||
# Called every frame. 'delta' is the elapsed time since the previous frame. | ||
func _process(delta: float) -> void: | ||
if visible == true: size = Vector2(800, 621) #Bandaid fix, because for some stupid reason the y coordinate keeps exploding. | ||
|
||
func _help_exit(): | ||
UI.tween_alpha(self, true, true) | ||
|
||
func _on_meta_clicked(meta): | ||
OS.shell_open(meta) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
[remap] | ||
|
||
importer="font_data_dynamic" | ||
type="FontFile" | ||
uid="uid://c4sdsntgoqvby" | ||
path="res://.godot/imported/Poppins-SemiBold.ttf-9d86f25f37c92107ed16fc627f040ecf.fontdata" | ||
|
||
[deps] | ||
|
||
source_file="res://assets/Poppins-SemiBold.ttf" | ||
dest_files=["res://.godot/imported/Poppins-SemiBold.ttf-9d86f25f37c92107ed16fc627f040ecf.fontdata"] | ||
|
||
[params] | ||
|
||
Rendering=null | ||
antialiasing=1 | ||
generate_mipmaps=false | ||
multichannel_signed_distance_field=false | ||
msdf_pixel_range=8 | ||
msdf_size=48 | ||
allow_system_fallback=true | ||
force_autohinter=false | ||
hinting=1 | ||
subpixel_positioning=1 | ||
oversampling=0.0 | ||
Fallbacks=null | ||
fallbacks=[] | ||
Compress=null | ||
compress=true | ||
preload=[] | ||
language_support={} | ||
script_support={} | ||
opentype_features={} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
extends Node | ||
|
||
|
||
#Tween the alpha value of a node, used for UI nodes. Can also hide and delete nodes once done tweening. | ||
func tween_alpha(node: Object, to_transparent:bool, hide:bool): | ||
#to_transparent = whether we're tweening to becoming transparent. Otherwise, tweens to non-transparency. | ||
#delete = whether to delete the node at the end of the tween | ||
var tween = node.create_tween() | ||
var result | ||
node.visible = true | ||
|
||
if to_transparent == true: #Check whether we're tweening to transparency or in reverse | ||
node.modulate = Color("ffffff") | ||
result = Color("ffffff00") | ||
else: #Transparent to non-transparent | ||
node.modulate = Color("ffffff00") | ||
result = Color("ffffff") | ||
|
||
tween.tween_property(node, "modulate", result,.3).set_trans(Tween.TRANS_SINE) | ||
|
||
#If we're just hiding, make sure to set the visibility to false | ||
if hide == true and to_transparent == true: | ||
tween.tween_callback(node.hide) | ||
|
||
func texture_tween_alpha(node: Object, to_transparent:bool): | ||
var tween = node.create_tween() | ||
tween.finished.connect(_texture_tween_finished.bind((node))) | ||
var result | ||
node.visible = true | ||
|
||
if to_transparent == true: #Check whether we're tweening to transparency or in reverse | ||
node.modulate = Color("ffffff") | ||
result = Color("ffffff00") | ||
else: #Transparent to non-transparent | ||
node.modulate = Color("ffffff00") | ||
result = Color("ffffff") | ||
|
||
tween.tween_property(node, "modulate", result,.3).set_trans(Tween.TRANS_SINE) | ||
|
||
|
||
func _texture_tween_finished(node): | ||
node.texture = null |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.