Skip to content
This repository has been archived by the owner on Apr 3, 2022. It is now read-only.

Commit

Permalink
first public release for godot3.x in asset lib
Browse files Browse the repository at this point in the history
  • Loading branch information
brunosxs committed Dec 20, 2018
1 parent 3ca10cc commit ce85c07
Show file tree
Hide file tree
Showing 30 changed files with 2,664 additions and 1,359 deletions.
Empty file added SMRT/FramePosition.gd
Empty file.
29 changes: 29 additions & 0 deletions SMRT/Message_background.png.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
[remap]

importer="texture"
type="StreamTexture"
path="res://.import/Message_background.png-ae1d6cdcea7d3200324fb9187c6892c8.stex"

[deps]

source_file="res://addons/SMRT/Message_background.png"
dest_files=[ "res://.import/Message_background.png-ae1d6cdcea7d3200324fb9187c6892c8.stex" ]

[params]

compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=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
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0
2 changes: 1 addition & 1 deletion SMRT/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ It is also ~~most likely~~ responsive and resolution independent.

## Installing

**Needs Godot 2.1 or newer**
**Needs Godot 3 or newer**

[Godot's Website]
(http://www.godotengine.com)
Expand Down
35 changes: 34 additions & 1 deletion SMRT/SMRT.gd
Original file line number Diff line number Diff line change
@@ -1,20 +1,44 @@
#------------------------------------------------------------------------------
# Copyright 2016 brunosxs
#
# 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.
# ------------------------------------------------------------------------------

# init script that sets everything up
# Nothing (that I think) worth mentioning here

tool
extends EditorPlugin

var show_editor_btn
var editor_tscn = preload("res://addons/SMRT/editor.tscn")
var editor_btn
var editor
var selection

func _init():
editor_btn = ToolButton.new()

func _ready():
editor_btn.set_button_icon(preload("icon.png"))
editor_btn.set_text("SMRT-Editor")
editor_btn.connect("pressed",self,"_open_editor")
editor_btn.visible = true

func _enter_tree():
add_control_to_container(CONTAINER_CANVAS_EDITOR_MENU,editor_btn)
Expand All @@ -25,6 +49,7 @@ func _exit_tree():
# As the release of this plugin, there is no oposite function
# to "add_control_to_container" so for now it is not possible to remove a control from a container,
# only the custom type
editor_btn.queue_free()
remove_custom_type("SMRT-Dialog")


Expand All @@ -35,3 +60,11 @@ func _open_editor():
editor.popup_centered()
print("OPENING EDITOR!")
print("===============")


func _selection_changed():
for select in selection.get_selected_nodes():
if select is preload("res://addons/SMRT/dialog.gd"):
editor_btn.visible = true
return
editor_btn.visible = false
21 changes: 21 additions & 0 deletions SMRT/beep_letter.wav.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[remap]

importer="wav"
type="AudioStreamSample"
path="res://.import/beep_letter.wav-daa5033ccc367b3994cce2e607c737e8.sample"

[deps]

source_file="res://addons/SMRT/beep_letter.wav"
dest_files=[ "res://.import/beep_letter.wav-daa5033ccc367b3994cce2e607c737e8.sample" ]

[params]

force/8_bit=false
force/mono=false
force/max_rate=false
force/max_rate_hz=44100
edit/trim=true
edit/normalize=true
edit/loop=false
compress/mode=0
Loading

0 comments on commit ce85c07

Please sign in to comment.