forked from gdquest-demos/godot-open-rpg
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from Jeremi360/master
fixes in combat
- Loading branch information
Showing
70 changed files
with
107,390 additions
and
107,352 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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
|
||
github: [jebedaia360] | ||
custom: [https://rakugoteam.github.io/fund/] | ||
|
||
github: [jebedaia360] | ||
custom: [https://rakugoteam.github.io/fund/] |
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 |
---|---|---|
@@ -1,39 +1,39 @@ | ||
tool | ||
extends Node | ||
|
||
onready var grid := $ScrollContainer/GridContainer | ||
var file := File.new() | ||
|
||
func _ready(): | ||
for e in $Emojis.emojis_dict.keys(): | ||
var png = $Emojis.get_path_to_emoji(e, 36) | ||
if not file.file_exists(png): | ||
continue | ||
|
||
var b := Button.new() | ||
b.name = e | ||
b.icon = load(png) | ||
b.connect("pressed", self, "on_button", [b]) | ||
grid.add_child(b) | ||
|
||
$LineEdit.connect("text_changed", self, "on_text_changed") | ||
|
||
|
||
|
||
func on_button(button: Button): | ||
var text = '"' + button.name + '"' + "copied to clipboard" | ||
$Label.notify(text) | ||
OS.clipboard = button.name | ||
|
||
|
||
func on_text_changed(text: String): | ||
if text == "": | ||
for ch in grid.get_children(): | ||
ch.visible = true | ||
|
||
return | ||
|
||
for ch in grid.get_children(): | ||
ch.visible = false | ||
if ch.name.find(text) != -1: | ||
ch.visible = true | ||
tool | ||
extends Node | ||
|
||
onready var grid := $ScrollContainer/GridContainer | ||
var file := File.new() | ||
|
||
func _ready(): | ||
for e in $Emojis.emojis_dict.keys(): | ||
var png = $Emojis.get_path_to_emoji(e, 36) | ||
if not file.file_exists(png): | ||
continue | ||
|
||
var b := Button.new() | ||
b.name = e | ||
b.icon = load(png) | ||
b.connect("pressed", self, "on_button", [b]) | ||
grid.add_child(b) | ||
|
||
$LineEdit.connect("text_changed", self, "on_text_changed") | ||
|
||
|
||
|
||
func on_button(button: Button): | ||
var text = '"' + button.name + '"' + "copied to clipboard" | ||
$Label.notify(text) | ||
OS.clipboard = button.name | ||
|
||
|
||
func on_text_changed(text: String): | ||
if text == "": | ||
for ch in grid.get_children(): | ||
ch.visible = true | ||
|
||
return | ||
|
||
for ch in grid.get_children(): | ||
ch.visible = false | ||
if ch.name.find(text) != -1: | ||
ch.visible = true |
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 |
---|---|---|
@@ -1,61 +1,61 @@ | ||
[gd_scene load_steps=4 format=2] | ||
|
||
[ext_resource path="res://addons/Rakugo/emojis/EmojiPanel.gd" type="Script" id=1] | ||
[ext_resource path="res://addons/Rakugo/emojis/emojis.gd" type="Script" id=2] | ||
[ext_resource path="res://addons/Rakugo/nodes/controls/notify_label.gd" type="Script" id=3] | ||
|
||
|
||
|
||
|
||
[node name="PopupDialog" type="WindowDialog"] | ||
margin_right = 288.0 | ||
margin_bottom = 516.0 | ||
window_title = "Emoji" | ||
|
||
[node name="Emoji" type="VBoxContainer" parent="."] | ||
anchor_right = 1.0 | ||
anchor_bottom = 1.0 | ||
margin_left = 8.0 | ||
margin_top = 8.0 | ||
margin_right = -8.0 | ||
margin_bottom = -9.0 | ||
rect_min_size = Vector2( 100, 100 ) | ||
size_flags_horizontal = 3 | ||
size_flags_vertical = 3 | ||
script = ExtResource( 1 ) | ||
__meta__ = { | ||
"_edit_use_anchors_": false | ||
} | ||
|
||
[node name="Emojis" type="Node" parent="Emoji"] | ||
script = ExtResource( 2 ) | ||
|
||
[node name="LineEdit" type="LineEdit" parent="Emoji"] | ||
margin_right = 272.0 | ||
margin_bottom = 24.0 | ||
caret_blink = true | ||
caret_blink_speed = 0.5 | ||
|
||
[node name="Label" type="Label" parent="Emoji"] | ||
visible = false | ||
modulate = Color( 0.176471, 1, 0.305882, 1 ) | ||
margin_top = 28.0 | ||
margin_right = 272.0 | ||
margin_bottom = 42.0 | ||
text = "notify" | ||
valign = 1 | ||
script = ExtResource( 3 ) | ||
|
||
[node name="ScrollContainer" type="ScrollContainer" parent="Emoji"] | ||
margin_top = 28.0 | ||
margin_right = 272.0 | ||
margin_bottom = 499.0 | ||
size_flags_horizontal = 3 | ||
size_flags_vertical = 3 | ||
|
||
[node name="GridContainer" type="GridContainer" parent="Emoji/ScrollContainer"] | ||
margin_right = 272.0 | ||
margin_bottom = 7862.0 | ||
size_flags_horizontal = 3 | ||
size_flags_vertical = 3 | ||
columns = 5 | ||
[gd_scene load_steps=4 format=2] | ||
|
||
[ext_resource path="res://addons/Rakugo/emojis/EmojiPanel.gd" type="Script" id=1] | ||
[ext_resource path="res://addons/Rakugo/emojis/emojis.gd" type="Script" id=2] | ||
[ext_resource path="res://addons/Rakugo/nodes/controls/notify_label.gd" type="Script" id=3] | ||
|
||
|
||
|
||
|
||
[node name="PopupDialog" type="WindowDialog"] | ||
margin_right = 288.0 | ||
margin_bottom = 516.0 | ||
window_title = "Emoji" | ||
|
||
[node name="Emoji" type="VBoxContainer" parent="."] | ||
anchor_right = 1.0 | ||
anchor_bottom = 1.0 | ||
margin_left = 8.0 | ||
margin_top = 8.0 | ||
margin_right = -8.0 | ||
margin_bottom = -9.0 | ||
rect_min_size = Vector2( 100, 100 ) | ||
size_flags_horizontal = 3 | ||
size_flags_vertical = 3 | ||
script = ExtResource( 1 ) | ||
__meta__ = { | ||
"_edit_use_anchors_": false | ||
} | ||
|
||
[node name="Emojis" type="Node" parent="Emoji"] | ||
script = ExtResource( 2 ) | ||
|
||
[node name="LineEdit" type="LineEdit" parent="Emoji"] | ||
margin_right = 272.0 | ||
margin_bottom = 24.0 | ||
caret_blink = true | ||
caret_blink_speed = 0.5 | ||
|
||
[node name="Label" type="Label" parent="Emoji"] | ||
visible = false | ||
modulate = Color( 0.176471, 1, 0.305882, 1 ) | ||
margin_top = 28.0 | ||
margin_right = 272.0 | ||
margin_bottom = 42.0 | ||
text = "notify" | ||
valign = 1 | ||
script = ExtResource( 3 ) | ||
|
||
[node name="ScrollContainer" type="ScrollContainer" parent="Emoji"] | ||
margin_top = 28.0 | ||
margin_right = 272.0 | ||
margin_bottom = 499.0 | ||
size_flags_horizontal = 3 | ||
size_flags_vertical = 3 | ||
|
||
[node name="GridContainer" type="GridContainer" parent="Emoji/ScrollContainer"] | ||
margin_right = 272.0 | ||
margin_bottom = 7862.0 | ||
size_flags_horizontal = 3 | ||
size_flags_vertical = 3 | ||
columns = 5 |
Oops, something went wrong.