Skip to content

Commit

Permalink
Merge pull request #9 from Jeremi360/master
Browse files Browse the repository at this point in the history
fixes in combat
  • Loading branch information
Jeremi360 authored Aug 23, 2020
2 parents 9477665 + 97b1845 commit aa9f403
Show file tree
Hide file tree
Showing 70 changed files with 107,390 additions and 107,352 deletions.
6 changes: 3 additions & 3 deletions .github/FUNDING.yml
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/]
78 changes: 39 additions & 39 deletions rakugo-rpg/addons/Rakugo/emojis/EmojiPanel.gd
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
122 changes: 61 additions & 61 deletions rakugo-rpg/addons/Rakugo/emojis/EmojiPanel.tscn
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
Loading

0 comments on commit aa9f403

Please sign in to comment.