Skip to content

Commit

Permalink
💄 Prettify keyboard
Browse files Browse the repository at this point in the history
  • Loading branch information
alicerunsonfedora committed Sep 22, 2023
1 parent e082473 commit e0fa783
Show file tree
Hide file tree
Showing 57 changed files with 430 additions and 132 deletions.
539 changes: 415 additions & 124 deletions Shounin/components/keyboard.tscn

Large diffs are not rendered by default.

20 changes: 13 additions & 7 deletions Shounin/demos/ashashat_demo.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
[ext_resource type="FontFile" uid="uid://u077pytrgt12" path="res://resources/gui/ashashat_fnt.ttf" id="4_cywxo"]

[node name="Control" type="Control"]
texture_filter = 1
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
Expand All @@ -22,17 +23,22 @@ anchor_right = 1.0
anchor_bottom = 0.093
offset_bottom = 0.299998
grow_horizontal = 2
text = "Press a key on the keyboard to start typing..."
text = "Press a key on the keyboard below to start typing..."
horizontal_alignment = 1
vertical_alignment = 1

[node name="Keyboard" parent="." instance=ExtResource("1_g456k")]
layout_mode = 0
anchors_preset = 0
anchor_right = 0.0
anchor_bottom = 0.0
grow_horizontal = 1
grow_vertical = 1
layout_mode = 1
anchors_preset = -1
anchor_left = 0.326875
anchor_top = 0.226667
anchor_right = 0.688125
anchor_bottom = 0.82
offset_top = -8.00001
offset_right = -2.28882e-05
offset_bottom = -7.99999
grow_horizontal = 2
grow_vertical = 2

[node name="TextField" type="Label" parent="."]
layout_mode = 1
Expand Down
Binary file added Shounin/resources/gui/keyboard/A_Focus.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Shounin/resources/gui/keyboard/A_Normal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Shounin/resources/gui/keyboard/A_Press.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Shounin/resources/gui/keyboard/B_Focus.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Shounin/resources/gui/keyboard/B_Normal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Shounin/resources/gui/keyboard/B_Press.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Shounin/resources/gui/keyboard/Delete_Focus.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Shounin/resources/gui/keyboard/Delete_Normal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Shounin/resources/gui/keyboard/Delete_Press.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Shounin/resources/gui/keyboard/Duplicant_Focus.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Shounin/resources/gui/keyboard/Duplicant_Normal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Shounin/resources/gui/keyboard/Duplicant_Press.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Shounin/resources/gui/keyboard/E_Focus.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Shounin/resources/gui/keyboard/E_Normal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Shounin/resources/gui/keyboard/E_Press.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Shounin/resources/gui/keyboard/Ejective_K_Focus.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Shounin/resources/gui/keyboard/Ejective_K_Normal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Shounin/resources/gui/keyboard/Ejective_K_Press.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Shounin/resources/gui/keyboard/Glottal_Focus.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Shounin/resources/gui/keyboard/Glottal_Normal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Shounin/resources/gui/keyboard/Glottal_Press.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Shounin/resources/gui/keyboard/I_Focus.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Shounin/resources/gui/keyboard/I_Normal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Shounin/resources/gui/keyboard/I_Press.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Shounin/resources/gui/keyboard/K_Focus.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Shounin/resources/gui/keyboard/K_Normal.png
Binary file added Shounin/resources/gui/keyboard/K_Press.png
Binary file added Shounin/resources/gui/keyboard/L_Focus.png
Binary file added Shounin/resources/gui/keyboard/L_Normal.png
Binary file added Shounin/resources/gui/keyboard/L_Press.png
Binary file added Shounin/resources/gui/keyboard/N_Focus.png
Binary file added Shounin/resources/gui/keyboard/N_Normal.png
Binary file added Shounin/resources/gui/keyboard/N_Press.png
Binary file added Shounin/resources/gui/keyboard/P_Focus.png
Binary file added Shounin/resources/gui/keyboard/P_Normal.png
Binary file added Shounin/resources/gui/keyboard/P_Press.png
Binary file added Shounin/resources/gui/keyboard/Repeater_Focus.png
Binary file added Shounin/resources/gui/keyboard/Repeater_Normal.png
Binary file added Shounin/resources/gui/keyboard/Repeater_Press.png
Binary file added Shounin/resources/gui/keyboard/Return_Focus.png
Binary file added Shounin/resources/gui/keyboard/Return_Normal.png
Binary file added Shounin/resources/gui/keyboard/Return_Press.png
Binary file added Shounin/resources/gui/keyboard/S_Focus.png
Binary file added Shounin/resources/gui/keyboard/S_Normal.png
Binary file added Shounin/resources/gui/keyboard/S_Press.png
Binary file added Shounin/resources/gui/keyboard/Sh_Focus.png
Binary file added Shounin/resources/gui/keyboard/Sh_Normal.png
Binary file added Shounin/resources/gui/keyboard/Sh_Press.png
Binary file added Shounin/resources/gui/keyboard/T_Focus.png
Binary file added Shounin/resources/gui/keyboard/T_Normal.png
Binary file added Shounin/resources/gui/keyboard/T_Press.png
Binary file added Shounin/resources/gui/keyboard/U_Focus.png
Binary file added Shounin/resources/gui/keyboard/U_Normal.png
Binary file added Shounin/resources/gui/keyboard/U_Press.png
3 changes: 2 additions & 1 deletion Shounin/scripts/demo_ashashat.gd
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,12 @@ func _ready():
if key == "ashashat_key_ejective_k":
textField.text = textField.text + "K"
return
if key == "ashashat_key_repeat":
if key == "ashashat_key_repeater":
textField.text = textField.text + "*"
return
if key == "ashashat_key_duplicant":
textField.text = textField.text + "!"
return
textField.text = textField.text + key.trim_prefix("ashashat_key_")
return
)

0 comments on commit e0fa783

Please sign in to comment.