Skip to content

Commit

Permalink
Add some basic exercises. and update Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
stmSi committed Mar 5, 2023
1 parent 65714bd commit 48a2308
Show file tree
Hide file tree
Showing 12 changed files with 32 additions and 8 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
zip \
# adb \
# openjdk-11-jdk-headless \
libfontconfig \
rsync \
&& rm -rf /var/lib/apt/lists/*

Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@ If you want to download `latest` commit build (may not be stable and produce err
### **Exercise Editor Screenshots**

![](screenshots/ExerciseEditor.png)
-----------------------------------

![](screenshots/ExerciseEditor_02.png)
<!-- ![](screenshots/ExerciseEditor_02.png) -->

---

Expand Down
8 changes: 8 additions & 0 deletions Texts/Lessons/Basic/00000013.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[Exercise]

texts=PackedStringArray("", "", "", "")
repeats=3.0
allow_mistakes=80.0
randomize=false
hide_keyboard=false
message="\" လ ည အ ပ \" လေးလုံးကို လေ့ကျင့်ရအောင်"
7 changes: 7 additions & 0 deletions Texts/Lessons/Basic/00000014.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[Exercise]

texts=PackedStringArray("လည်", "အလက်", "အညီ", "အည", "အတည်", "အစည်", "အပင်", "အပန်", "လက်", "အလိင်", "လမ်း", "မည်", "လိမ်", "အပတ်", "သည်", "အလည်", "ပိန်", "အလတ်", "လိမ်သည်", "လာလည်သည်", "ဆတ်လက်", "မိတ်", "လိတ်", "လိပ်", "ညီ", "ပင်ပန်", "အိမ်")
repeats=1.0
allow_mistakes=80.0
randomize=true
hide_keyboard=false
8 changes: 8 additions & 0 deletions Texts/Lessons/Basic/00000015.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[Exercise]

texts=PackedStringArray("ဆိုင်", "တိုင်", "သူ", "တုပ", "အမူ", "အကူ", "အတူ", "ကူး", "ကင်း", "တိုင်း", "လည်း", "သိမ်း", "တိမ်း", "နန်း", "တန်း", "ဆန်း", "သန်း", "ငူ")
repeats=1.0
allow_mistakes=80.0
randomize=false
hide_keyboard=false
message="\" ု ူ း \" သုံးလုံး လေ့လာရအောင်"
Binary file modified screenshots/ExerciseEditor.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 modified screenshots/Playground.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 modified screenshots/Playground_02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/ExerciseEditor/exercise_editor.gd
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ extends Control
@onready var hide_keyboard_check: CheckButton = %HideKeyboardCheck
@onready var add_messsage_btn: Button = %AddMesssageBtn

@onready var add_update_line_btn: Button = %AddUpdteLineBtn
@onready var add_update_line_btn: Button = %AddUpdateLineBtn
@onready var reset_btn: Button = %ResetBtn
@onready var remove_line_btn: Button = %RemoveLineBtn

Expand Down
4 changes: 2 additions & 2 deletions src/ExerciseEditor/exercise_editor.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ script = SubResource("GDScript_lc0i3")
[node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer2/VBoxContainer/HBoxContainer/VBoxContainer2"]
layout_mode = 2

[node name="AddUpdteLineBtn" type="Button" parent="MarginContainer2/VBoxContainer/HBoxContainer/VBoxContainer2/HBoxContainer" groups=["scene_change_element"]]
[node name="AddUpdateLineBtn" type="Button" parent="MarginContainer2/VBoxContainer/HBoxContainer/VBoxContainer2/HBoxContainer" groups=["scene_change_element"]]
unique_name_in_owner = true
custom_minimum_size = Vector2(0, 50)
layout_mode = 2
Expand Down Expand Up @@ -376,7 +376,7 @@ layout_mode = 1
[connection signal="item_selected" from="MarginContainer2/VBoxContainer/HBoxContainer/VBoxContainer2/LineListContainer/LinesList" to="." method="_on_lines_list_item_selected"]
[connection signal="text_changed" from="MarginContainer2/VBoxContainer/HBoxContainer/VBoxContainer2/LineEditContainer/LineEdit" to="MarginContainer2/VBoxContainer/HBoxContainer/VBoxContainer2/LineEditContainer/LineEdit" method="_on_text_changed"]
[connection signal="text_submitted" from="MarginContainer2/VBoxContainer/HBoxContainer/VBoxContainer2/LineEditContainer/LineEdit" to="." method="_on_line_edit_text_submitted"]
[connection signal="pressed" from="MarginContainer2/VBoxContainer/HBoxContainer/VBoxContainer2/HBoxContainer/AddUpdteLineBtn" to="." method="_on_add_updte_line_btn_pressed"]
[connection signal="pressed" from="MarginContainer2/VBoxContainer/HBoxContainer/VBoxContainer2/HBoxContainer/AddUpdateLineBtn" to="." method="_on_add_update_line_btn_pressed"]
[connection signal="pressed" from="MarginContainer2/VBoxContainer/HBoxContainer/VBoxContainer2/HBoxContainer/ResetBtn" to="." method="_on_reset_btn_pressed"]
[connection signal="pressed" from="MarginContainer2/VBoxContainer/HBoxContainer/VBoxContainer2/HBoxContainer/RemoveLineBtn" to="." method="_on_remove_line_btn_pressed"]
[connection signal="pressed" from="AddLessonMessage/VBoxContainer/HBoxContainer/CancelLessonMsgBtn" to="." method="_on_cancel_lesson_msg_btn_pressed"]
Expand Down
6 changes: 3 additions & 3 deletions src/MessagePopup/message_popup.gd
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ extends VBoxContainer

func _ready() -> void:
add_to_group('msg_popups')
get_tree().paused = true
# get_tree().paused = true


func set_msg(msg: String) -> void:
Expand All @@ -17,8 +17,8 @@ func set_msg(msg: String) -> void:
$AnimationPlayer.play('running')

func _on_ok_btn_pressed() -> void:
if len(get_tree().get_nodes_in_group('msg_popups')) == 1:
get_tree().paused = false
# if len(get_tree().get_nodes_in_group('msg_popups')) == 1:
# get_tree().paused = false

EventBus.message_popup_closed.emit()
$AnimationPlayer.play('close')
Expand Down
1 change: 1 addition & 0 deletions src/Playground/Playground.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ text = "Exercise Editor
script = SubResource("GDScript_r5ri8")
[node name="AudioBtn" type="TextureButton" parent="MarginContainer/VBoxContainer/BottomButtonsContainer" groups=["scene_change_element"]]
visible = false
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 4
Expand Down

0 comments on commit 48a2308

Please sign in to comment.