├── .gitignore ├── LICENSE ├── README.md ├── addons └── Todot │ ├── Assets │ ├── Checklist.png.import │ ├── ChecklistFilled.svg │ ├── ChecklistFilled.svg.import │ ├── Desc.png.import │ ├── Description.svg │ ├── Description.svg.import │ ├── Todo.png.import │ ├── Todo.svg │ ├── Todo.svg.import │ └── clock.png~ │ ├── Roboto-Light.ttf │ ├── Src │ ├── Scenes │ │ ├── AddList.tscn │ │ ├── CheckItem.tscn │ │ ├── Checklist.tscn │ │ ├── List.tscn │ │ ├── ListTitle.tscn │ │ ├── Preview.tscn │ │ ├── Todo.tscn │ │ └── TodoPopup.tscn │ └── Scripts │ │ ├── AddList.gd │ │ ├── AddListButton.gd │ │ ├── CheckItem.gd │ │ ├── Checklist.gd │ │ ├── ChecklistTitle.gd │ │ ├── List.gd │ │ ├── ListPreview.gd │ │ ├── ListTitle.gd │ │ ├── Mouse.gd │ │ ├── Todo.gd │ │ └── TodoPopup.gd │ ├── Todot.gd │ ├── Todot.tres │ ├── Todot.tscn │ ├── TodotIcon.svg │ ├── TodotIcon.svg.import │ ├── plugin.cfg │ └── plugin.gd ├── icon.png ├── icon.png.import └── project.godot /.gitignore: -------------------------------------------------------------------------------- 1 | # Godot-specific ignores 2 | .import/ 3 | export.cfg 4 | export_presets.cfg 5 | 6 | # Imported translations (automatically generated from CSV files) 7 | *.translation 8 | 9 | # Mono-specific ignores 10 | .mono/ 11 | data_*/ 12 | mono_crash.*.json 13 | 14 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2021 AbhinavKDev 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Todot 2 | Todot is a kanban styled todo and planning addon for the [godot game engine](https://godotengine.org) 3 | 4 | Why 5 | -- 6 | Opening trello and going back and forth between it and godot is... not the most efficient thing sometimes. Depending on your internet connection or your willingness to open a browser while your ram has 100MB left, using it might just end up being counterproductive. But... with this addon, you've got all the boards and cards you could ever ask for - right beside the 2D, 3D, Script and AssetLib tabs. This addon works offline and you have access to it in the comfort of your own godot project. What more could you ask for? ( Note: This is an actual question. I want you to make issues for the features you need or that is never gonna come to todot. ) 7 | 8 | What to expect 9 | -- 10 | 1. You have to fix the font scaling issues your selves. 11 | 2. has a lot of bugs. 12 | 13 | How to install? 14 | -- 15 | Download this repository then copy the addon folder to your project root. If you have any other addons installed you might have to copy the Todot folder inside the addons folder to the addons directory inside your project 16 | 17 | How to pronounce? 18 | -- 19 | Depends. If you pronounce Godot as go - doh then pronounce it as to - doh. If you pronounce Godot as go - dot. then call it to-dot. 20 | 21 | How is the data saved? 22 | -- 23 | I collect all data and save it using the stor_var function in gdscript 24 | 25 | Screenshots 26 | -- 27 | ![image](https://user-images.githubusercontent.com/62714538/131214367-2953be60-1125-4670-a9a6-f0f358e5dab0.png) 28 | ![image](https://user-images.githubusercontent.com/62714538/131214429-f0fdaeb2-93e0-4d7f-af4a-bdd9bc1ec427.png) 29 | -------------------------------------------------------------------------------- /addons/Todot/Assets/Checklist.png.import: -------------------------------------------------------------------------------- 1 | [remap] 2 | 3 | importer="texture" 4 | type="StreamTexture" 5 | path="res://.import/Checklist.png-52bec946fec5ad350f6f1d51c824f444.stex" 6 | metadata={ 7 | "vram_texture": false 8 | } 9 | 10 | [deps] 11 | 12 | source_file="res://addons/Todot/Assets/Checklist.png" 13 | dest_files=[ "res://.import/Checklist.png-52bec946fec5ad350f6f1d51c824f444.stex" ] 14 | 15 | [params] 16 | 17 | compress/mode=0 18 | compress/lossy_quality=0.7 19 | compress/hdr_mode=0 20 | compress/bptc_ldr=0 21 | compress/normal_map=0 22 | flags/repeat=0 23 | flags/filter=true 24 | flags/mipmaps=false 25 | flags/anisotropic=false 26 | flags/srgb=2 27 | process/fix_alpha_border=true 28 | process/premult_alpha=false 29 | process/HDR_as_SRGB=false 30 | process/invert_color=false 31 | stream=false 32 | size_limit=0 33 | detect_3d=true 34 | svg/scale=1.0 35 | -------------------------------------------------------------------------------- /addons/Todot/Assets/ChecklistFilled.svg: -------------------------------------------------------------------------------- 1 | 2 | 14 | 16 | 35 | 39 | 44 | 45 | -------------------------------------------------------------------------------- /addons/Todot/Assets/ChecklistFilled.svg.import: -------------------------------------------------------------------------------- 1 | [remap] 2 | 3 | importer="texture" 4 | type="StreamTexture" 5 | path="res://.import/ChecklistFilled.svg-f59da4528323b3fdd152801251db3a4d.stex" 6 | metadata={ 7 | "vram_texture": false 8 | } 9 | 10 | [deps] 11 | 12 | source_file="res://addons/Todot/Assets/ChecklistFilled.svg" 13 | dest_files=[ "res://.import/ChecklistFilled.svg-f59da4528323b3fdd152801251db3a4d.stex" ] 14 | 15 | [params] 16 | 17 | compress/mode=0 18 | compress/lossy_quality=0.7 19 | compress/hdr_mode=0 20 | compress/bptc_ldr=0 21 | compress/normal_map=0 22 | flags/repeat=0 23 | flags/filter=true 24 | flags/mipmaps=false 25 | flags/anisotropic=false 26 | flags/srgb=2 27 | process/fix_alpha_border=true 28 | process/premult_alpha=false 29 | process/HDR_as_SRGB=false 30 | process/invert_color=false 31 | process/normal_map_invert_y=false 32 | stream=false 33 | size_limit=0 34 | detect_3d=true 35 | svg/scale=1.0 36 | -------------------------------------------------------------------------------- /addons/Todot/Assets/Desc.png.import: -------------------------------------------------------------------------------- 1 | [remap] 2 | 3 | importer="texture" 4 | type="StreamTexture" 5 | path="res://.import/Desc.png-13aa7f094c07b75843680140e0465eac.stex" 6 | metadata={ 7 | "vram_texture": false 8 | } 9 | 10 | [deps] 11 | 12 | source_file="res://addons/Todot/Assets/Desc.png" 13 | dest_files=[ "res://.import/Desc.png-13aa7f094c07b75843680140e0465eac.stex" ] 14 | 15 | [params] 16 | 17 | compress/mode=0 18 | compress/lossy_quality=0.7 19 | compress/hdr_mode=0 20 | compress/bptc_ldr=0 21 | compress/normal_map=0 22 | flags/repeat=0 23 | flags/filter=true 24 | flags/mipmaps=false 25 | flags/anisotropic=false 26 | flags/srgb=2 27 | process/fix_alpha_border=true 28 | process/premult_alpha=false 29 | process/HDR_as_SRGB=false 30 | process/invert_color=false 31 | stream=false 32 | size_limit=0 33 | detect_3d=true 34 | svg/scale=1.0 35 | -------------------------------------------------------------------------------- /addons/Todot/Assets/Description.svg: -------------------------------------------------------------------------------- 1 | 2 | 14 | 16 | 35 | 39 | 44 | 45 | -------------------------------------------------------------------------------- /addons/Todot/Assets/Description.svg.import: -------------------------------------------------------------------------------- 1 | [remap] 2 | 3 | importer="texture" 4 | type="StreamTexture" 5 | path="res://.import/Description.svg-6351806b68d2cd22ed769f7a445a5897.stex" 6 | metadata={ 7 | "vram_texture": false 8 | } 9 | 10 | [deps] 11 | 12 | source_file="res://addons/Todot/Assets/Description.svg" 13 | dest_files=[ "res://.import/Description.svg-6351806b68d2cd22ed769f7a445a5897.stex" ] 14 | 15 | [params] 16 | 17 | compress/mode=0 18 | compress/lossy_quality=0.7 19 | compress/hdr_mode=0 20 | compress/bptc_ldr=0 21 | compress/normal_map=0 22 | flags/repeat=0 23 | flags/filter=true 24 | flags/mipmaps=false 25 | flags/anisotropic=false 26 | flags/srgb=2 27 | process/fix_alpha_border=true 28 | process/premult_alpha=false 29 | process/HDR_as_SRGB=false 30 | process/invert_color=false 31 | process/normal_map_invert_y=false 32 | stream=false 33 | size_limit=0 34 | detect_3d=true 35 | svg/scale=1.0 36 | -------------------------------------------------------------------------------- /addons/Todot/Assets/Todo.png.import: -------------------------------------------------------------------------------- 1 | [remap] 2 | 3 | importer="texture" 4 | type="StreamTexture" 5 | path="res://.import/Todo.png-43ec30903668a7a108ad1d855f3fd0f8.stex" 6 | metadata={ 7 | "vram_texture": false 8 | } 9 | 10 | [deps] 11 | 12 | source_file="res://addons/Todot/Assets/Todo.png" 13 | dest_files=[ "res://.import/Todo.png-43ec30903668a7a108ad1d855f3fd0f8.stex" ] 14 | 15 | [params] 16 | 17 | compress/mode=0 18 | compress/lossy_quality=0.7 19 | compress/hdr_mode=0 20 | compress/bptc_ldr=0 21 | compress/normal_map=0 22 | flags/repeat=0 23 | flags/filter=true 24 | flags/mipmaps=false 25 | flags/anisotropic=false 26 | flags/srgb=2 27 | process/fix_alpha_border=true 28 | process/premult_alpha=false 29 | process/HDR_as_SRGB=false 30 | process/invert_color=false 31 | stream=false 32 | size_limit=0 33 | detect_3d=false 34 | svg/scale=1.0 35 | -------------------------------------------------------------------------------- /addons/Todot/Assets/Todo.svg: -------------------------------------------------------------------------------- 1 | 2 | 14 | 16 | 35 | 39 | 44 | 45 | -------------------------------------------------------------------------------- /addons/Todot/Assets/Todo.svg.import: -------------------------------------------------------------------------------- 1 | [remap] 2 | 3 | importer="texture" 4 | type="StreamTexture" 5 | path="res://.import/Todo.svg-10aed8177afbe2900e088a4de18b24a2.stex" 6 | metadata={ 7 | "vram_texture": false 8 | } 9 | 10 | [deps] 11 | 12 | source_file="res://addons/Todot/Assets/Todo.svg" 13 | dest_files=[ "res://.import/Todo.svg-10aed8177afbe2900e088a4de18b24a2.stex" ] 14 | 15 | [params] 16 | 17 | compress/mode=0 18 | compress/lossy_quality=0.7 19 | compress/hdr_mode=0 20 | compress/bptc_ldr=0 21 | compress/normal_map=0 22 | flags/repeat=0 23 | flags/filter=true 24 | flags/mipmaps=false 25 | flags/anisotropic=false 26 | flags/srgb=2 27 | process/fix_alpha_border=true 28 | process/premult_alpha=false 29 | process/HDR_as_SRGB=false 30 | process/invert_color=false 31 | process/normal_map_invert_y=false 32 | stream=false 33 | size_limit=0 34 | detect_3d=true 35 | svg/scale=1.0 36 | -------------------------------------------------------------------------------- /addons/Todot/Assets/clock.png~: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IsotoxalDev/Todot/1cf281a48aef9c0df34dcaafc1cf666f80835e04/addons/Todot/Assets/clock.png~ -------------------------------------------------------------------------------- /addons/Todot/Roboto-Light.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IsotoxalDev/Todot/1cf281a48aef9c0df34dcaafc1cf666f80835e04/addons/Todot/Roboto-Light.ttf -------------------------------------------------------------------------------- /addons/Todot/Src/Scenes/AddList.tscn: -------------------------------------------------------------------------------- 1 | [gd_scene load_steps=4 format=2] 2 | 3 | [ext_resource path="res://addons/Todot/Src/Scripts/AddList.gd" type="Script" id=1] 4 | [ext_resource path="res://addons/Todot/Src/Scenes/ListTitle.tscn" type="PackedScene" id=2] 5 | 6 | [sub_resource type="StyleBoxFlat" id=1] 7 | bg_color = Color( 0.109804, 0.109804, 0.109804, 1 ) 8 | 9 | [node name="AddList" type="PanelContainer" groups=[ 10 | "List", 11 | ]] 12 | margin_right = 280.0 13 | margin_bottom = 60.0 14 | rect_min_size = Vector2( 280, 60 ) 15 | size_flags_vertical = 0 16 | custom_styles/panel = SubResource( 1 ) 17 | script = ExtResource( 1 ) 18 | __meta__ = { 19 | "_edit_use_anchors_": false 20 | } 21 | 22 | [node name="HBoxContainer" type="HBoxContainer" parent="."] 23 | margin_right = 341.0 24 | margin_bottom = 60.0 25 | custom_constants/separation = 20 26 | 27 | [node name="ListTitle" parent="HBoxContainer" instance=ExtResource( 2 )] 28 | margin_bottom = 60.0 29 | rect_min_size = Vector2( 280, 60 ) 30 | focus_mode = 0 31 | size_flags_horizontal = 0 32 | size_flags_vertical = 0 33 | custom_constants/hseparation = 0 34 | enabled_focus_mode = 0 35 | 36 | [node name="Button" type="Button" parent="HBoxContainer"] 37 | margin_left = 300.0 38 | margin_right = 341.0 39 | margin_bottom = 60.0 40 | text = "ADD" 41 | 42 | [connection signal="on_enter_pressed" from="HBoxContainer/ListTitle" to="." method="_on_ListTitle_on_enter_pressed"] 43 | [connection signal="pressed" from="HBoxContainer/Button" to="." method="add_list"] 44 | -------------------------------------------------------------------------------- /addons/Todot/Src/Scenes/CheckItem.tscn: -------------------------------------------------------------------------------- 1 | [gd_scene load_steps=5 format=2] 2 | 3 | [ext_resource path="res://addons/Todot/Roboto-Light.ttf" type="DynamicFontData" id=1] 4 | [ext_resource path="res://addons/Todot/Src/Scripts/CheckItem.gd" type="Script" id=2] 5 | 6 | [sub_resource type="DynamicFont" id=2] 7 | font_data = ExtResource( 1 ) 8 | 9 | [sub_resource type="StyleBoxFlat" id=1] 10 | bg_color = Color( 0.6, 0.6, 0.6, 0 ) 11 | 12 | [node name="CheckItem" type="HBoxContainer"] 13 | margin_right = 1023.0 14 | margin_bottom = 24.0 15 | script = ExtResource( 2 ) 16 | 17 | [node name="CheckBox" type="CheckBox" parent="."] 18 | margin_right = 24.0 19 | margin_bottom = 24.0 20 | size_flags_horizontal = 0 21 | flat = true 22 | 23 | [node name="LineEdit" type="LineEdit" parent="."] 24 | margin_left = 28.0 25 | margin_right = 995.0 26 | margin_bottom = 24.0 27 | size_flags_horizontal = 3 28 | custom_fonts/font = SubResource( 2 ) 29 | custom_styles/focus = SubResource( 1 ) 30 | custom_styles/normal = SubResource( 1 ) 31 | placeholder_text = "Enter Sub-Goals..." 32 | 33 | [node name="Remove" type="Button" parent="."] 34 | margin_left = 999.0 35 | margin_right = 1023.0 36 | margin_bottom = 24.0 37 | rect_min_size = Vector2( 24, 24 ) 38 | text = "x" 39 | 40 | [connection signal="text_changed" from="LineEdit" to="." method="_on_LineEdit_text_changed"] 41 | [connection signal="pressed" from="Remove" to="." method="_on_Remove_pressed"] 42 | -------------------------------------------------------------------------------- /addons/Todot/Src/Scenes/Checklist.tscn: -------------------------------------------------------------------------------- 1 | [gd_scene load_steps=8 format=2] 2 | 3 | [ext_resource path="res://addons/Todot/Roboto-Light.ttf" type="DynamicFontData" id=1] 4 | [ext_resource path="res://addons/Todot/Assets/ChecklistFilled.svg" type="Texture" id=2] 5 | [ext_resource path="res://addons/Todot/Src/Scripts/Checklist.gd" type="Script" id=3] 6 | 7 | [sub_resource type="DynamicFont" id=2] 8 | font_data = ExtResource( 1 ) 9 | 10 | [sub_resource type="StyleBoxFlat" id=1] 11 | bg_color = Color( 0, 0, 0, 0 ) 12 | 13 | [sub_resource type="StyleBoxFlat" id=3] 14 | bg_color = Color( 0.647059, 1, 0.32549, 1 ) 15 | corner_radius_top_left = 20 16 | corner_radius_top_right = 20 17 | corner_radius_bottom_right = 20 18 | corner_radius_bottom_left = 20 19 | 20 | [sub_resource type="StyleBoxFlat" id=4] 21 | bg_color = Color( 0, 0, 0, 0.192157 ) 22 | corner_radius_top_left = 20 23 | corner_radius_top_right = 20 24 | corner_radius_bottom_right = 20 25 | corner_radius_bottom_left = 20 26 | 27 | [node name="Checklist" type="VBoxContainer"] 28 | anchor_right = 1.0 29 | anchor_bottom = 1.0 30 | margin_left = -0.280609 31 | margin_top = -0.280609 32 | margin_right = -0.28064 33 | margin_bottom = -0.28064 34 | size_flags_horizontal = 3 35 | size_flags_vertical = 3 36 | custom_constants/separation = 10 37 | script = ExtResource( 3 ) 38 | 39 | [node name="TitleContainer" type="HBoxContainer" parent="."] 40 | margin_right = 1023.0 41 | margin_bottom = 25.0 42 | 43 | [node name="TextureRect" type="TextureRect" parent="TitleContainer"] 44 | margin_right = 25.0 45 | margin_bottom = 25.0 46 | rect_min_size = Vector2( 25, 25 ) 47 | texture = ExtResource( 2 ) 48 | expand = true 49 | stretch_mode = 6 50 | 51 | [node name="TitleEdit" type="LineEdit" parent="TitleContainer"] 52 | margin_left = 29.0 53 | margin_right = 893.0 54 | margin_bottom = 25.0 55 | size_flags_horizontal = 3 56 | custom_fonts/font = SubResource( 2 ) 57 | custom_styles/focus = SubResource( 1 ) 58 | custom_styles/normal = SubResource( 1 ) 59 | placeholder_text = "Enter Goal..." 60 | __meta__ = { 61 | "_edit_use_anchors_": false 62 | } 63 | 64 | [node name="Remove" type="Button" parent="TitleContainer"] 65 | margin_left = 897.0 66 | margin_right = 1023.0 67 | margin_bottom = 25.0 68 | text = "Remove Checklist" 69 | 70 | [node name="ProgressContainer" type="HBoxContainer" parent="."] 71 | margin_top = 35.0 72 | margin_right = 1023.0 73 | margin_bottom = 49.0 74 | 75 | [node name="PercentLabel" type="Label" parent="ProgressContainer"] 76 | margin_right = 20.0 77 | margin_bottom = 14.0 78 | text = "0%" 79 | valign = 1 80 | __meta__ = { 81 | "_edit_use_anchors_": false 82 | } 83 | 84 | [node name="ProgressBar" type="ProgressBar" parent="ProgressContainer"] 85 | margin_left = 24.0 86 | margin_right = 1023.0 87 | margin_bottom = 14.0 88 | rect_min_size = Vector2( 0, 10 ) 89 | size_flags_horizontal = 3 90 | size_flags_vertical = 3 91 | custom_styles/fg = SubResource( 3 ) 92 | custom_styles/bg = SubResource( 4 ) 93 | percent_visible = false 94 | 95 | [node name="CheckItemContainer" type="VBoxContainer" parent="."] 96 | margin_top = 59.0 97 | margin_right = 1023.0 98 | margin_bottom = 59.0 99 | 100 | [node name="Add" type="Button" parent="."] 101 | margin_left = 491.0 102 | margin_top = 69.0 103 | margin_right = 532.0 104 | margin_bottom = 89.0 105 | size_flags_horizontal = 4 106 | text = "ADD" 107 | 108 | [connection signal="text_changed" from="TitleContainer/TitleEdit" to="." method="_on_TitleEdit_text_changed"] 109 | [connection signal="pressed" from="TitleContainer/Remove" to="." method="_on_Remove_pressed"] 110 | [connection signal="pressed" from="Add" to="." method="_on_Add_pressed"] 111 | -------------------------------------------------------------------------------- /addons/Todot/Src/Scenes/List.tscn: -------------------------------------------------------------------------------- 1 | [gd_scene load_steps=3 format=2] 2 | 3 | [ext_resource path="res://addons/Todot/Src/Scripts/List.gd" type="Script" id=1] 4 | [ext_resource path="res://addons/Todot/Src/Scenes/ListTitle.tscn" type="PackedScene" id=2] 5 | 6 | [node name="List" type="PanelContainer" groups=["List"]] 7 | margin_right = 280.0 8 | margin_bottom = 90.0 9 | rect_min_size = Vector2( 280, 0 ) 10 | size_flags_vertical = 0 11 | script = ExtResource( 1 ) 12 | 13 | [node name="VBox" type="VBoxContainer" parent="."] 14 | margin_left = 7.0 15 | margin_top = 7.0 16 | margin_right = 287.0 17 | margin_bottom = 83.0 18 | custom_constants/separation = 16 19 | 20 | [node name="ListTitle" parent="VBox" instance=ExtResource( 2 )] 21 | margin_bottom = 40.0 22 | focus_mode = 0 23 | custom_constants/hseparation = 0 24 | enabled_focus_mode = 0 25 | 26 | [node name="VBox" type="VBoxContainer" parent="VBox"] 27 | margin_top = 56.0 28 | margin_right = 280.0 29 | margin_bottom = 76.0 30 | size_flags_horizontal = 3 31 | custom_constants/separation = 5 32 | 33 | [node name="Add" type="Button" parent="VBox/VBox"] 34 | margin_right = 280.0 35 | margin_bottom = 20.0 36 | text = "ADD" 37 | 38 | [connection signal="pressed" from="VBox/VBox/Add" to="." method="_on_Button_pressed"] 39 | -------------------------------------------------------------------------------- /addons/Todot/Src/Scenes/ListTitle.tscn: -------------------------------------------------------------------------------- 1 | [gd_scene load_steps=8 format=2] 2 | 3 | [ext_resource path="res://addons/Todot/Src/Scripts/ListTitle.gd" type="Script" id=1] 4 | [ext_resource path="res://addons/Todot/Roboto-Light.ttf" type="DynamicFontData" id=2] 5 | 6 | [sub_resource type="DynamicFont" id=2] 7 | font_data = ExtResource( 2 ) 8 | 9 | [sub_resource type="StyleBoxFlat" id=1] 10 | bg_color = Color( 0.6, 0.6, 0.6, 0 ) 11 | 12 | [sub_resource type="DynamicFont" id=3] 13 | size = 18 14 | font_data = ExtResource( 2 ) 15 | 16 | [sub_resource type="DynamicFont" id=5] 17 | size = 18 18 | font_data = ExtResource( 2 ) 19 | 20 | [sub_resource type="StyleBoxFlat" id=4] 21 | bg_color = Color( 0.6, 0.6, 0.6, 0 ) 22 | 23 | [node name="ListTitle" type="Button"] 24 | margin_right = 280.0 25 | margin_bottom = 44.0 26 | rect_min_size = Vector2( 280, 40 ) 27 | size_flags_horizontal = 3 28 | size_flags_vertical = 3 29 | custom_fonts/font = SubResource( 2 ) 30 | custom_styles/hover = SubResource( 1 ) 31 | custom_styles/pressed = SubResource( 1 ) 32 | custom_styles/focus = SubResource( 1 ) 33 | custom_styles/disabled = SubResource( 1 ) 34 | custom_styles/normal = SubResource( 1 ) 35 | clip_text = true 36 | align = 0 37 | script = ExtResource( 1 ) 38 | 39 | [node name="VBoxContainer" type="VBoxContainer" parent="."] 40 | anchor_right = 1.0 41 | anchor_bottom = 1.0 42 | margin_left = 6.0 43 | margin_top = 5.0 44 | margin_right = -6.0 45 | margin_bottom = -5.0 46 | mouse_filter = 2 47 | 48 | [node name="Title" type="Label" parent="VBoxContainer"] 49 | unique_name_in_owner = true 50 | margin_right = 268.0 51 | margin_bottom = 34.0 52 | size_flags_vertical = 3 53 | custom_fonts/font = SubResource( 3 ) 54 | valign = 1 55 | autowrap = true 56 | 57 | [node name="EditBox" type="HBoxContainer" parent="VBoxContainer"] 58 | unique_name_in_owner = true 59 | visible = false 60 | margin_right = 268.0 61 | margin_bottom = 34.0 62 | mouse_filter = 2 63 | size_flags_horizontal = 3 64 | size_flags_vertical = 3 65 | 66 | [node name="TitleEdit" type="LineEdit" parent="VBoxContainer/EditBox"] 67 | unique_name_in_owner = true 68 | margin_right = 200.0 69 | margin_bottom = 34.0 70 | size_flags_horizontal = 3 71 | custom_fonts/font = SubResource( 5 ) 72 | custom_styles/normal = SubResource( 4 ) 73 | placeholder_text = "Enter Title..." 74 | __meta__ = { 75 | "_edit_use_anchors_": false 76 | } 77 | 78 | [node name="Remove" type="Button" parent="VBoxContainer/EditBox"] 79 | margin_left = 204.0 80 | margin_right = 268.0 81 | margin_bottom = 34.0 82 | text = "Remove" 83 | 84 | [connection signal="button_down" from="." to="." method="_on_ListTitle_button_down"] 85 | [connection signal="mouse_entered" from="." to="." method="_on_ListTitle_mouse_entered"] 86 | [connection signal="mouse_exited" from="." to="." method="_on_ListTitle_mouse_exited"] 87 | [connection signal="pressed" from="VBoxContainer/EditBox/Remove" to="." method="_on_Remove_pressed"] 88 | -------------------------------------------------------------------------------- /addons/Todot/Src/Scenes/Preview.tscn: -------------------------------------------------------------------------------- 1 | [gd_scene load_steps=3 format=2] 2 | 3 | [ext_resource path="res://addons/Todot/Src/Scripts/ListPreview.gd" type="Script" id=1] 4 | 5 | [sub_resource type="StyleBoxFlat" id=1] 6 | bg_color = Color( 0, 0, 0, 0.145098 ) 7 | 8 | [node name="Preview" type="PanelContainer"] 9 | margin_right = 14.0 10 | margin_bottom = 14.0 11 | size_flags_vertical = 0 12 | custom_styles/panel = SubResource( 1 ) 13 | script = ExtResource( 1 ) 14 | __meta__ = { 15 | "_edit_use_anchors_": false 16 | } 17 | -------------------------------------------------------------------------------- /addons/Todot/Src/Scenes/Todo.tscn: -------------------------------------------------------------------------------- 1 | [gd_scene load_steps=4 format=2] 2 | 3 | [ext_resource path="res://addons/Todot/Src/Scripts/Todo.gd" type="Script" id=1] 4 | [ext_resource path="res://addons/Todot/Roboto-Light.ttf" type="DynamicFontData" id=3] 5 | 6 | [sub_resource type="DynamicFont" id=1] 7 | size = 20 8 | font_data = ExtResource( 3 ) 9 | 10 | [node name="Todo" type="Control" groups=["Todo"]] 11 | anchor_right = 1.0 12 | anchor_bottom = 1.0 13 | margin_right = -744.0 14 | margin_bottom = -555.0 15 | rect_min_size = Vector2( 280, 45 ) 16 | size_flags_horizontal = 3 17 | size_flags_vertical = 0 18 | script = ExtResource( 1 ) 19 | 20 | [node name="Todo" type="Button" parent="."] 21 | anchor_right = 1.0 22 | anchor_bottom = 1.0 23 | rect_min_size = Vector2( 276, 40 ) 24 | focus_mode = 0 25 | size_flags_horizontal = 3 26 | 27 | [node name="HBoxContainer" type="HBoxContainer" parent="Todo"] 28 | anchor_right = 1.0 29 | anchor_bottom = 1.0 30 | mouse_filter = 2 31 | 32 | [node name="Title" type="Label" parent="Todo/HBoxContainer"] 33 | margin_right = 257.0 34 | margin_bottom = 45.0 35 | rect_min_size = Vector2( 250, 30 ) 36 | size_flags_horizontal = 3 37 | size_flags_vertical = 1 38 | custom_fonts/font = SubResource( 1 ) 39 | valign = 1 40 | autowrap = true 41 | __meta__ = { 42 | "_edit_use_anchors_": false 43 | } 44 | 45 | [node name="Remove" type="Button" parent="Todo/HBoxContainer"] 46 | margin_left = 261.0 47 | margin_right = 280.0 48 | margin_bottom = 45.0 49 | text = "x" 50 | 51 | [connection signal="button_down" from="Todo" to="." method="_on_Todo_button_down"] 52 | [connection signal="mouse_entered" from="Todo" to="." method="_on_Todo_mouse_entered"] 53 | [connection signal="mouse_exited" from="Todo" to="." method="_on_Todo_mouse_exited"] 54 | [connection signal="pressed" from="Todo/HBoxContainer/Remove" to="." method="_on_Remove_pressed"] 55 | -------------------------------------------------------------------------------- /addons/Todot/Src/Scenes/TodoPopup.tscn: -------------------------------------------------------------------------------- 1 | [gd_scene load_steps=13 format=2] 2 | 3 | [ext_resource path="res://addons/Todot/Roboto-Light.ttf" type="DynamicFontData" id=1] 4 | [ext_resource path="res://addons/Todot/Src/Scripts/TodoPopup.gd" type="Script" id=2] 5 | [ext_resource path="res://addons/Todot/Assets/Todo.svg" type="Texture" id=3] 6 | [ext_resource path="res://addons/Todot/Assets/ChecklistFilled.svg" type="Texture" id=4] 7 | [ext_resource path="res://addons/Todot/Assets/Description.svg" type="Texture" id=5] 8 | 9 | [sub_resource type="DynamicFont" id=1] 10 | size = 25 11 | use_filter = true 12 | font_data = ExtResource( 1 ) 13 | 14 | [sub_resource type="DynamicFont" id=4] 15 | size = 25 16 | font_data = ExtResource( 1 ) 17 | 18 | [sub_resource type="StyleBoxFlat" id=2] 19 | bg_color = Color( 0.6, 0.6, 0.6, 0 ) 20 | 21 | [sub_resource type="StyleBoxFlat" id=3] 22 | bg_color = Color( 0.0431373, 0.0431373, 0.0431373, 0.223529 ) 23 | border_width_left = 2 24 | border_width_top = 2 25 | border_width_right = 3 26 | border_width_bottom = 3 27 | expand_margin_left = 2.0 28 | expand_margin_right = 2.0 29 | expand_margin_top = 2.0 30 | expand_margin_bottom = 2.0 31 | 32 | [sub_resource type="DynamicFont" id=5] 33 | use_filter = true 34 | font_data = ExtResource( 1 ) 35 | 36 | [sub_resource type="DynamicFont" id=7] 37 | size = 20 38 | font_data = ExtResource( 1 ) 39 | 40 | [sub_resource type="DynamicFont" id=8] 41 | size = 17 42 | use_filter = true 43 | font_data = ExtResource( 1 ) 44 | 45 | [node name="TodoPopup" type="PopupDialog"] 46 | margin_right = 500.0 47 | margin_bottom = 500.0 48 | rect_min_size = Vector2( 550, 500 ) 49 | script = ExtResource( 2 ) 50 | x_width = 15 51 | 52 | [node name="VBoxContainer" type="VBoxContainer" parent="."] 53 | anchor_right = 1.0 54 | anchor_bottom = 1.0 55 | margin_left = 10.0 56 | margin_top = 10.0 57 | margin_right = -10.0 58 | margin_bottom = -10.0 59 | custom_constants/separation = 20 60 | 61 | [node name="TitleArea" type="HBoxContainer" parent="VBoxContainer"] 62 | margin_right = 530.0 63 | margin_bottom = 40.0 64 | custom_constants/separation = 10 65 | __meta__ = { 66 | "_edit_use_anchors_": false 67 | } 68 | 69 | [node name="TextureRect" type="TextureRect" parent="VBoxContainer/TitleArea"] 70 | margin_right = 31.248 71 | margin_bottom = 40.0 72 | rect_min_size = Vector2( 31.248, 40 ) 73 | texture = ExtResource( 3 ) 74 | expand = true 75 | stretch_mode = 6 76 | __meta__ = { 77 | "_edit_use_anchors_": false 78 | } 79 | 80 | [node name="Control" type="Control" parent="VBoxContainer/TitleArea"] 81 | margin_left = 41.0 82 | margin_right = 501.0 83 | margin_bottom = 40.0 84 | rect_min_size = Vector2( 460, 40 ) 85 | __meta__ = { 86 | "_edit_use_anchors_": false 87 | } 88 | 89 | [node name="Title" type="Label" parent="VBoxContainer/TitleArea/Control"] 90 | unique_name_in_owner = true 91 | margin_left = 5.0 92 | margin_top = 5.0 93 | margin_right = 465.0 94 | margin_bottom = 36.0 95 | custom_fonts/font = SubResource( 1 ) 96 | text = "taerisntearst" 97 | clip_text = true 98 | 99 | [node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer/TitleArea/Control"] 100 | margin_top = 5.0 101 | margin_right = 420.0 102 | margin_bottom = 36.0 103 | alignment = 1 104 | 105 | [node name="TitleEdit" type="LineEdit" parent="VBoxContainer/TitleArea/Control/HBoxContainer"] 106 | unique_name_in_owner = true 107 | visible = false 108 | margin_right = 460.0 109 | margin_bottom = 31.0 110 | rect_min_size = Vector2( 460, 0 ) 111 | custom_fonts/font = SubResource( 4 ) 112 | custom_styles/read_only = SubResource( 2 ) 113 | custom_styles/focus = SubResource( 3 ) 114 | custom_styles/normal = SubResource( 2 ) 115 | placeholder_text = "Enter Title..." 116 | 117 | [node name="DescriptionArea" type="HBoxContainer" parent="VBoxContainer"] 118 | margin_top = 60.0 119 | margin_right = 530.0 120 | margin_bottom = 183.0 121 | custom_constants/separation = 10 122 | 123 | [node name="DescriptionIcon" type="TextureRect" parent="VBoxContainer/DescriptionArea"] 124 | margin_right = 32.0 125 | margin_bottom = 40.0 126 | rect_min_size = Vector2( 32, 40 ) 127 | size_flags_vertical = 0 128 | texture = ExtResource( 5 ) 129 | expand = true 130 | stretch_mode = 6 131 | 132 | [node name="VBoxContainer" type="VBoxContainer" parent="VBoxContainer/DescriptionArea"] 133 | margin_left = 42.0 134 | margin_right = 530.0 135 | margin_bottom = 123.0 136 | size_flags_horizontal = 3 137 | size_flags_vertical = 3 138 | __meta__ = { 139 | "_edit_use_anchors_": false 140 | } 141 | 142 | [node name="DescriptionLabel" type="Label" parent="VBoxContainer/DescriptionArea/VBoxContainer"] 143 | margin_right = 488.0 144 | margin_bottom = 19.0 145 | size_flags_vertical = 7 146 | custom_fonts/font = SubResource( 5 ) 147 | text = "Description" 148 | valign = 1 149 | 150 | [node name="Description" type="TextEdit" parent="VBoxContainer/DescriptionArea/VBoxContainer"] 151 | unique_name_in_owner = true 152 | margin_top = 23.0 153 | margin_right = 488.0 154 | margin_bottom = 123.0 155 | rect_min_size = Vector2( 0, 100 ) 156 | hint_tooltip = "Description" 157 | wrap_enabled = true 158 | 159 | [node name="TasksArea" type="HBoxContainer" parent="VBoxContainer"] 160 | margin_top = 203.0 161 | margin_right = 530.0 162 | margin_bottom = 480.0 163 | size_flags_vertical = 3 164 | custom_constants/separation = 20 165 | 166 | [node name="ChecklistArea" type="Panel" parent="VBoxContainer/TasksArea"] 167 | self_modulate = Color( 1, 1, 1, 0.34902 ) 168 | margin_right = 350.0 169 | margin_bottom = 277.0 170 | rect_min_size = Vector2( 350, 0 ) 171 | rect_clip_content = true 172 | size_flags_horizontal = 3 173 | size_flags_vertical = 3 174 | __meta__ = { 175 | "_editor_description_": "" 176 | } 177 | 178 | [node name="ScrollContainer" type="ScrollContainer" parent="VBoxContainer/TasksArea/ChecklistArea"] 179 | anchor_right = 1.0 180 | anchor_bottom = 1.0 181 | 182 | [node name="ChecklistContainer" type="VBoxContainer" parent="VBoxContainer/TasksArea/ChecklistArea/ScrollContainer"] 183 | unique_name_in_owner = true 184 | margin_right = 350.0 185 | size_flags_horizontal = 3 186 | 187 | [node name="AddTaskArea" type="Panel" parent="VBoxContainer/TasksArea"] 188 | self_modulate = Color( 1, 1, 1, 0.34902 ) 189 | margin_left = 370.0 190 | margin_right = 530.0 191 | margin_bottom = 277.0 192 | mouse_filter = 1 193 | size_flags_horizontal = 3 194 | __meta__ = { 195 | "_editor_description_": "" 196 | } 197 | 198 | [node name="ScrollContainer" type="ScrollContainer" parent="VBoxContainer/TasksArea/AddTaskArea"] 199 | anchor_right = 1.0 200 | anchor_bottom = 1.0 201 | 202 | [node name="VBoxContainer" type="VBoxContainer" parent="VBoxContainer/TasksArea/AddTaskArea/ScrollContainer"] 203 | margin_right = 160.0 204 | margin_bottom = 63.0 205 | size_flags_horizontal = 3 206 | 207 | [node name="Label" type="Label" parent="VBoxContainer/TasksArea/AddTaskArea/ScrollContainer/VBoxContainer"] 208 | margin_right = 160.0 209 | margin_bottom = 24.0 210 | custom_colors/font_color = Color( 0.698039, 0.698039, 0.698039, 1 ) 211 | custom_fonts/font = SubResource( 7 ) 212 | text = "Add:" 213 | align = 1 214 | 215 | [node name="HSeparator" type="HSeparator" parent="VBoxContainer/TasksArea/AddTaskArea/ScrollContainer/VBoxContainer"] 216 | margin_top = 28.0 217 | margin_right = 160.0 218 | margin_bottom = 32.0 219 | 220 | [node name="Checklist" type="Button" parent="VBoxContainer/TasksArea/AddTaskArea/ScrollContainer/VBoxContainer"] 221 | margin_top = 36.0 222 | margin_right = 160.0 223 | margin_bottom = 63.0 224 | custom_colors/font_color = Color( 1, 1, 1, 1 ) 225 | custom_fonts/font = SubResource( 8 ) 226 | text = "Checklist" 227 | icon = ExtResource( 4 ) 228 | flat = true 229 | align = 0 230 | expand_icon = true 231 | 232 | [node name="CloseButton" type="Button" parent="."] 233 | unique_name_in_owner = true 234 | anchor_left = 0.995 235 | anchor_top = 0.008 236 | anchor_right = 0.995 237 | anchor_bottom = 0.008 238 | margin_left = -25.2501 239 | margin_top = 13.0 240 | margin_right = -5.25006 241 | margin_bottom = 33.0 242 | rect_min_size = Vector2( 20, 20 ) 243 | focus_mode = 0 244 | enabled_focus_mode = 0 245 | flat = true 246 | 247 | [connection signal="mouse_entered" from="VBoxContainer/TitleArea/Control" to="." method="_on_Control_mouse_entered"] 248 | [connection signal="mouse_exited" from="VBoxContainer/TitleArea/Control" to="." method="_on_Control_mouse_exited"] 249 | [connection signal="pressed" from="VBoxContainer/TasksArea/AddTaskArea/ScrollContainer/VBoxContainer/Checklist" to="." method="_on_Button_pressed"] 250 | [connection signal="pressed" from="CloseButton" to="." method="_on_CloseButton_pressed"] 251 | -------------------------------------------------------------------------------- /addons/Todot/Src/Scripts/AddList.gd: -------------------------------------------------------------------------------- 1 | tool 2 | extends PanelContainer 3 | 4 | 5 | onready var list = preload("res://addons/Todot/Src/Scenes/List.tscn") 6 | onready var list_container :HBoxContainer = get_parent() 7 | 8 | 9 | func _on_ListTitle_on_enter_pressed(): 10 | add_list() 11 | 12 | 13 | func add_list(): 14 | var new_list = list.instance() 15 | list_container.add_child(new_list) 16 | list_container.move_child(new_list, list_container.get_child_count()-2) 17 | -------------------------------------------------------------------------------- /addons/Todot/Src/Scripts/AddListButton.gd: -------------------------------------------------------------------------------- 1 | tool 2 | extends Button 3 | 4 | 5 | onready var list = preload("res://addons/Todot/Src/Scenes/List.tscn") 6 | onready var list_container :HBoxContainer = get_parent() 7 | onready var todot = get_node("../../../") 8 | 9 | 10 | func add_list(): 11 | var new_list = list.instance() 12 | list_container.add_child(new_list) 13 | list_container.move_child(new_list, list_container.get_child_count()-2) 14 | todot.save() 15 | -------------------------------------------------------------------------------- /addons/Todot/Src/Scripts/CheckItem.gd: -------------------------------------------------------------------------------- 1 | tool 2 | extends HBoxContainer 3 | 4 | onready var title = $LineEdit 5 | 6 | func _on_Remove_pressed() -> void: 7 | queue_free() 8 | 9 | 10 | func _on_LineEdit_text_changed(new_text: String) -> void: 11 | title.hint_tooltip = auto_nex_text(new_text) 12 | 13 | 14 | func auto_nex_text(text :String, max_spaces_in_line: int = 8): 15 | # Algorithm that adds new line after a given number of words 16 | var space_count = 0 17 | var from = 0 18 | while text.findn(" ", from) != -1: 19 | var space = text.findn(" ", from) 20 | space_count += 1 21 | from = space + 1 22 | if space_count == max_spaces_in_line: 23 | text[space] = "\n" 24 | space_count = 0 25 | return text 26 | -------------------------------------------------------------------------------- /addons/Todot/Src/Scripts/Checklist.gd: -------------------------------------------------------------------------------- 1 | tool 2 | extends VBoxContainer 3 | 4 | onready var check_item_container = $CheckItemContainer 5 | onready var progress_bar = $ProgressContainer/ProgressBar 6 | onready var percent_label = $ProgressContainer/PercentLabel 7 | onready var title = $TitleContainer/TitleEdit 8 | var check_item = preload("res://addons/Todot/Src/Scenes/CheckItem.tscn") 9 | 10 | 11 | func remove(): 12 | queue_free() 13 | 14 | 15 | func auto_nex_text(text :String, max_spaces_in_line: int = 8): 16 | # Algorithm that adds new line after a given number of words 17 | var space_count = 0 18 | var from = 0 19 | while text.findn(" ", from) != -1: 20 | var space = text.findn(" ", from) 21 | space_count += 1 22 | from = space + 1 23 | if space_count == max_spaces_in_line: 24 | text[space] = "\n" 25 | space_count = 0 26 | return text 27 | 28 | 29 | func _on_Add_pressed(): 30 | check_item_container.add_child(check_item.instance()) 31 | 32 | 33 | func _on_TitleEdit_text_changed(new_text: String) -> void: 34 | title.hint_tooltip = auto_nex_text(new_text) 35 | 36 | 37 | func _add_check_item(text: String, done: bool): 38 | var check_itme_inst = check_item.instance() 39 | check_itme_inst.get_node("LineEdit").text = text 40 | check_itme_inst.get_node("CheckBox").pressed = done 41 | check_item_container.add_child(check_itme_inst) 42 | 43 | 44 | func _process(delta): 45 | if check_item_container.get_children(): 46 | var finished_task = 0 47 | if visible && check_item_container: 48 | for item in check_item_container.get_children(): 49 | finished_task += float(item.get_node("CheckBox").pressed) 50 | var progress = finished_task/check_item_container.get_child_count()*100 51 | progress_bar.value = progress 52 | percent_label.text = str(progress, "%") 53 | 54 | 55 | func _on_Remove_pressed() -> void: 56 | remove() 57 | -------------------------------------------------------------------------------- /addons/Todot/Src/Scripts/ChecklistTitle.gd: -------------------------------------------------------------------------------- 1 | tool 2 | extends Button 3 | 4 | 5 | var hover := false 6 | var drag := false 7 | onready var title : Label = $HBoxContainer/Control/Title 8 | onready var title_edit : LineEdit = $HBoxContainer/Control/LineEdit 9 | onready var list : PanelContainer = get_node("../../") 10 | onready var todot : Control = get_node("../../../../../") 11 | 12 | 13 | func _on_ListTitle_button_down(): 14 | drag = true 15 | 16 | 17 | func _on_ListTitle_mouse_entered(): 18 | hover = true 19 | 20 | 21 | func _on_ListTitle_mouse_exited(): 22 | hover = false 23 | 24 | 25 | func _process(delta): 26 | if title != null and list != null and list.get_parent().name == "ListContainer": 27 | title.set_size(Vector2.ZERO) 28 | rect_min_size = title.get_size() 29 | list.get_parent().queue_sort() 30 | 31 | 32 | func _input(event): 33 | if event is InputEventMouseButton and event.button_index == 1: 34 | if !event.is_pressed(): 35 | if drag: 36 | drag = false 37 | var pos = todot.get_local_mouse_position() 38 | if list in todot.mouse.get_children(): 39 | todot.to_list(list) 40 | reset() 41 | 42 | if event.is_pressed(): 43 | if hover: 44 | yield(get_tree().create_timer(0.2), "timeout") 45 | if list.get_parent().name != "Mouse": 46 | title.hide() 47 | title_edit.show() 48 | title_edit.select_all() 49 | title_edit.grab_focus() 50 | 51 | 52 | elif event is InputEventMouseMotion and drag: 53 | if list != null: 54 | if list.get_parent().name != "Mouse": 55 | todot.to_mouse(list, get_local_mouse_position()) 56 | elif event is InputEventKey and event.get_scancode() == KEY_ENTER: reset() 57 | 58 | 59 | func reset(): 60 | if title != null: 61 | title.show() 62 | title_edit.hide() 63 | title.set_text(title_edit.get_text()) 64 | -------------------------------------------------------------------------------- /addons/Todot/Src/Scripts/List.gd: -------------------------------------------------------------------------------- 1 | tool 2 | extends PanelContainer 3 | 4 | onready var todo_container = $VBox/VBox 5 | onready var todo = preload("res://addons/Todot/Src/Scenes/Todo.tscn") 6 | onready var todot: Control = get_node("../../../") 7 | onready var title = $VBox/ListTitle 8 | 9 | func _ready(): 10 | var t = todot.get_theme().get_stylebox("read_only", "LineEdit") 11 | add_stylebox_override("panel", t) 12 | 13 | func _on_Button_pressed(): 14 | var _n = add_todo() 15 | todot.save() 16 | 17 | 18 | func add_todo(): 19 | var new_todo = todo.instance() 20 | todo_container.add_child(new_todo) 21 | todo_container.move_child(new_todo, todo_container.get_child_count()-2) 22 | return new_todo 23 | 24 | func remove(): 25 | get_parent().remove_child(self) 26 | queue_free() 27 | -------------------------------------------------------------------------------- /addons/Todot/Src/Scripts/ListPreview.gd: -------------------------------------------------------------------------------- 1 | tool 2 | extends PanelContainer 3 | 4 | 5 | onready var todot : Control = get_node("../../../") 6 | 7 | 8 | class_name List_preview 9 | 10 | 11 | func init(size): 12 | rect_min_size = size 13 | -------------------------------------------------------------------------------- /addons/Todot/Src/Scripts/ListTitle.gd: -------------------------------------------------------------------------------- 1 | tool 2 | extends Button 3 | 4 | 5 | signal on_enter_pressed 6 | 7 | 8 | var hover := false 9 | var drag := false 10 | onready var title: Label = $"%Title" 11 | onready var edit_box: HBoxContainer = $"%EditBox" 12 | onready var title_edit: LineEdit = $"%TitleEdit" 13 | onready var list : PanelContainer = get_node("../../") 14 | onready var todot : Control = get_node("../../../../../") 15 | 16 | 17 | func _on_ListTitle_button_down(): 18 | drag = true 19 | 20 | 21 | func _on_ListTitle_mouse_entered(): 22 | hover = true 23 | 24 | 25 | func _on_ListTitle_mouse_exited(): 26 | hover = false 27 | 28 | 29 | func _process(delta): 30 | if title != null and list != null and list.get_parent().name == "ListContainer": 31 | title.set_size(Vector2.ZERO) 32 | rect_min_size = title.get_size() 33 | list.get_parent().queue_sort() 34 | 35 | 36 | func _gui_input(event: InputEvent) -> void: 37 | if event.is_pressed(): 38 | if hover: 39 | yield(get_tree().create_timer(0.2), "timeout") 40 | if list.get_parent().name != "Mouse": 41 | title.hide() 42 | edit_box.show() 43 | title_edit.grab_focus() 44 | title_edit.editable = true 45 | title_edit.select_all() 46 | 47 | 48 | func _input(event): 49 | if event is InputEventMouseButton and event.button_index == 1: 50 | if !event.is_pressed(): 51 | if drag: 52 | drag = false 53 | var pos = todot.get_local_mouse_position() 54 | if list in todot.mouse.get_children(): 55 | todot.to_list(list) 56 | reset() 57 | 58 | elif event is InputEventMouseMotion and drag: 59 | if list != null: 60 | if list.get_parent().name != "Mouse": 61 | todot.to_mouse(list, get_local_mouse_position()) 62 | elif event is InputEventKey and event.get_scancode() == KEY_ENTER: 63 | if event.pressed: 64 | reset() 65 | emit_signal("on_enter_pressed") 66 | 67 | 68 | func reset(): 69 | if title != null: 70 | title.show() 71 | edit_box.hide() 72 | title_edit.editable = false 73 | if title_edit.get_text(): 74 | title.set_text(title_edit.get_text()) 75 | else: 76 | title.set_text(title_edit.placeholder_text) 77 | 78 | todot.save() 79 | 80 | 81 | func _on_Remove_pressed() -> void: 82 | list.remove() 83 | -------------------------------------------------------------------------------- /addons/Todot/Src/Scripts/Mouse.gd: -------------------------------------------------------------------------------- 1 | tool 2 | extends Control 3 | 4 | 5 | var list_index : int = 0 6 | var todo_index : Vector2 7 | var preview : PanelContainer 8 | var mousepos : Vector2 9 | onready var todot : Control = get_parent() 10 | 11 | 12 | func _input(event): 13 | if event is InputEventMouseMotion: 14 | for child in get_children(): 15 | child.rect_position += event.relative 16 | mousepos = todot.get_local_mouse_position() 17 | 18 | if child.is_in_group("List"): 19 | var scroll_hor :float = preview.get_parent().get_parent().scroll_horizontal 20 | if list_index != get_list_index(child, scroll_hor): 21 | list_index = get_list_index(child, scroll_hor) 22 | preview.get_parent().move_child(preview, list_index if list_index != -1 else 0) 23 | 24 | if child.is_in_group("Todo"): 25 | var scroll_hor :float = preview.get_parent().get_parent().get_parent().get_parent().get_parent().scroll_horizontal 26 | var scroll_ver :float = preview.get_parent().get_parent().get_parent().get_parent().get_parent().scroll_vertical 27 | if todo_index != get_todo_index(child, scroll_hor, scroll_ver): 28 | todo_index = get_todo_index(child, scroll_hor, scroll_ver) 29 | preview.get_parent().remove_child(preview) 30 | var list = todot.list_container.get_child(todo_index.x) 31 | list.get_node("VBox/VBox").add_child(preview) 32 | 33 | if todo_index.y < 0: 34 | todo_index.y = 0 35 | preview.get_parent().move_child(preview, todo_index.y) 36 | 37 | 38 | func get_list_index(list : PanelContainer,scroll_hor :float): 39 | var index = preview.get_index() 40 | var dist = list.get_size().x+30 41 | 42 | while mousepos.x+scroll_hor >= dist*index: 43 | index+=1 44 | 45 | if index < 0: 46 | index = 1 47 | 48 | if index >= todot.list_container.get_child_count(): 49 | index = todot.list_container.get_child_count() -1 50 | 51 | return index-1 52 | 53 | 54 | func get_todo_index(todo : Control,scroll_hor :float, scroll_ver :float): 55 | var todo_index = Vector2() 56 | todo_index.x = preview.get_node("../../../").get_index() 57 | todo_index.y = preview.get_index() 58 | var dist = Vector2() 59 | dist.x = todo.list.get_size().x + 30 60 | var title_size = preview.get_node("../../ListTitle").get_size().y 61 | 62 | while mousepos.x+scroll_hor >= dist.x*todo_index.x: 63 | todo_index.x += 1 64 | 65 | if todo_index.x < 0: 66 | todo_index.x = 0 67 | 68 | if todo_index.x > todot.list_container.get_child_count(): 69 | todo_index.x = todot.list_container.get_child_count() 70 | 71 | var size = 0 72 | var list = todot.list_container.get_child(todo_index.x-1) 73 | for i in range(todo_index.y): 74 | if list.get_node("VBox/VBox").get_child(i) and list: 75 | size = list.get_node("VBox/VBox").get_child(i).get_end().y 76 | while todo.get_position().y + scroll_ver >= title_size + size: 77 | todo_index.y += 1 78 | if list.get_node("VBox/VBox").get_child_count() > todo_index.y: 79 | size += list.get_node("VBox/VBox").get_child(todo_index.y).get_size().y 80 | else: break 81 | 82 | if todo_index.y < 0: 83 | todo_index.y = 1 84 | 85 | if todo_index.y > preview.get_parent().get_child_count(): 86 | todo_index.y = preview.get_parent().get_child_count() 87 | 88 | return todo_index - Vector2(1, 2) 89 | -------------------------------------------------------------------------------- /addons/Todot/Src/Scripts/Todo.gd: -------------------------------------------------------------------------------- 1 | tool 2 | extends Control 3 | 4 | 5 | class_name Todo 6 | 7 | 8 | var drag := false 9 | var hover := false 10 | var desc := "" 11 | var text := "" setget set_text 12 | var checklist := [] 13 | onready var todo_button :Button = $Todo 14 | onready var title : Label = $Todo/HBoxContainer/Title 15 | onready var list : PanelContainer = get_node("../../../") 16 | onready var todot :Control = get_node("../../../../../../") 17 | 18 | signal todo_pressed 19 | 20 | func _ready(): 21 | connect("todo_pressed", todot.get_node("Dialouges/TodoPopup"), "todo_pressed") 22 | 23 | func _on_Todo_button_down(): 24 | drag = true 25 | 26 | 27 | func _on_Todo_mouse_entered(): 28 | hover = true 29 | 30 | 31 | func _on_Todo_mouse_exited(): 32 | hover = false 33 | 34 | 35 | func _on_Remove_pressed() -> void: 36 | remove() 37 | 38 | 39 | func set_text(val : String): 40 | text = val 41 | title.text = text 42 | 43 | 44 | func remove(): 45 | get_parent().remove_child(self) 46 | queue_free() 47 | 48 | 49 | func _process(delta): 50 | if title: 51 | title.set_size(Vector2.ZERO) 52 | rect_min_size.y = title.get_size().y+15 53 | todo_button.rect_min_size.y = title.get_size().y+10 54 | 55 | 56 | func _input(event): 57 | if event is InputEventMouseButton and event.button_index == 1: 58 | if !event.is_pressed() and drag: 59 | drag = false 60 | var pos = todot.get_local_mouse_position() 61 | if self in todot.mouse.get_children(): 62 | todot.to_list(self) 63 | elif event.is_pressed() and !drag: 64 | if hover: 65 | yield(get_tree().create_timer(0.2), "timeout") 66 | if get_parent().name != "Mouse": 67 | emit_signal("todo_pressed", self) 68 | 69 | 70 | elif event is InputEventMouseMotion and drag: 71 | if get_parent().name != "Mouse": 72 | todot.to_mouse(self, get_local_mouse_position()) 73 | -------------------------------------------------------------------------------- /addons/Todot/Src/Scripts/TodoPopup.gd: -------------------------------------------------------------------------------- 1 | tool 2 | extends PopupDialog 3 | 4 | 5 | export var x_width : int = 10 setget set_x_width 6 | 7 | onready var close_button: Button = $"%CloseButton" 8 | onready var title: Label = $"%Title" 9 | onready var title_edit: LineEdit = $"%TitleEdit" 10 | onready var checklist_container: VBoxContainer = $"%ChecklistContainer" 11 | onready var desc: TextEdit = $"%Description" 12 | onready var todot = get_node("../../") 13 | 14 | var checklist = preload("res://addons/Todot/Src/Scenes/Checklist.tscn") 15 | var todo : Control 16 | var hover := false 17 | 18 | func _on_Control_mouse_entered(): 19 | hover = true 20 | 21 | 22 | func _on_Control_mouse_exited(): 23 | hover = false 24 | 25 | 26 | func _on_CloseButton_pressed(): 27 | todo.hover = false 28 | hide() 29 | 30 | 31 | func _draw(): 32 | var start = close_button.rect_position 33 | draw_line(Vector2(0, 0) + start, Vector2(x_width, x_width) + start, Color.black, 5, true) 34 | draw_line(Vector2(x_width, 0) + start, Vector2(0, x_width) + start, Color.black, 5, true) 35 | 36 | 37 | func _input(event): 38 | if event is InputEventMouseButton and event.is_pressed(): 39 | if hover: 40 | title.hide() 41 | title_edit.show() 42 | title_edit.text = title.text 43 | title_edit.select_all() 44 | title_edit.grab_focus() 45 | elif !hover: 46 | reset() 47 | if event is InputEventKey and event.get_scancode() == KEY_ENTER: 48 | reset() 49 | 50 | 51 | func _on_TodoPopup_popup_hide(): 52 | todo.text = title_edit.text 53 | todo.desc = desc.text 54 | todo.todo_button.hint_tooltip = todo.desc 55 | todo.checklist = [] 56 | for i in checklist_container.get_children(): 57 | var checkitems = [] 58 | for j in i.check_item_container.get_children(): 59 | checkitems.append({ 60 | 'name': j.get_node("LineEdit").text, 61 | 'done': j.get_node("CheckBox").pressed 62 | }) 63 | todo.checklist.append({ 64 | 'name': i.title.text, 65 | 'checkitems': checkitems, 66 | }) 67 | todot.save() 68 | todo = null 69 | 70 | 71 | func todo_pressed(todo : Todo): 72 | self.todo = todo 73 | title.set_text(todo.text) 74 | title_edit.set_text(todo.text) 75 | if !title.text: 76 | title.hide() 77 | title_edit.show() 78 | title_edit.text = title.text 79 | title_edit.grab_focus() 80 | desc.set_text(todo.desc) 81 | for i in checklist_container.get_children(): i.queue_free() 82 | for i in todo.checklist: 83 | var checklist_inst = checklist.instance() 84 | checklist_container.add_child(checklist_inst) 85 | checklist_inst.title.text = i.name 86 | for j in i.checkitems: 87 | checklist_inst._add_check_item(j.name, j.done) 88 | popup_centered() 89 | 90 | 91 | func set_x_width(val): 92 | x_width = val 93 | update() 94 | 95 | 96 | func reset(): 97 | if title and todo: 98 | title.show() 99 | title.text = title_edit.text 100 | title_edit.hide() 101 | todo.title.set_text(title.text) 102 | 103 | 104 | func _on_Button_pressed(): 105 | var checklist_inst = checklist.instance() 106 | checklist_container.add_child(checklist_inst) 107 | -------------------------------------------------------------------------------- /addons/Todot/Todot.gd: -------------------------------------------------------------------------------- 1 | tool 2 | extends Control 3 | 4 | 5 | var on := false 6 | onready var mouse : Control = $Mouse 7 | onready var dialogues : Control = $Dialouges 8 | onready var list_container :HBoxContainer = $ListScrollContainer/ListContainer 9 | var preview : PackedScene = preload("res://addons/Todot/Src/Scenes/Preview.tscn") 10 | var list : PackedScene = preload("res://addons/Todot/Src/Scenes/List.tscn") 11 | 12 | func _ready(): 13 | load_data() 14 | 15 | func save(): 16 | var data = [] 17 | for i in list_container.get_children(): 18 | if i is Button: continue 19 | if i is List_preview: continue 20 | var todo_data = [] 21 | for j in i.todo_container.get_children(): 22 | if j is Button: continue 23 | if j is List_preview: continue 24 | todo_data.append({ 25 | 'text': j.text, 26 | 'desc': j.desc, 27 | 'checklist': j.checklist 28 | }) 29 | var list_data = { 30 | "title": i.title.title.text, 31 | "todos": todo_data 32 | } 33 | 34 | data.append(list_data) 35 | var file: File = File.new() 36 | file.open("res://addons/Todot/data", File.WRITE) 37 | file.store_var(data, true) 38 | 39 | func load_data(): 40 | var file: File = File.new() 41 | if file.file_exists("res://addons/Todot/data"): 42 | file.open("res://addons/Todot/data", File.READ) 43 | var data: Array = file.get_var(true) 44 | for i in data: 45 | var list_instance = list.instance() 46 | list_container.add_child(list_instance) 47 | list_container.move_child(list_instance, list_container.get_child_count()-2) 48 | list_instance.title.title.text = i.title 49 | list_instance.title.title_edit.text = i.title 50 | list_instance.title.title_edit.hide() 51 | for j in i.todos: 52 | var todo = list_instance.add_todo() 53 | todo.set_text(j.text) 54 | todo.desc = j.desc 55 | todo.checklist = j.checklist 56 | 57 | func to_mouse(object : Control, offset): 58 | var new_preview : List_preview= preview.instance() 59 | object.get_parent().add_child(new_preview) 60 | new_preview.get_parent().move_child(new_preview, object.get_index()) 61 | new_preview.init(object.rect_size) 62 | mouse.preview = new_preview 63 | object.get_parent().remove_child(object) 64 | mouse.add_child(object) 65 | object.set_global_position(get_global_mouse_position()-offset) 66 | 67 | func to_list(object : Node): 68 | mouse.remove_child(object) 69 | mouse.preview.queue_free() 70 | mouse.preview = null 71 | 72 | if object.is_in_group("List"): 73 | list_container.add_child(object) 74 | list_container.move_child(object, (mouse.list_index if mouse.list_index != -1 else 0)) 75 | list_container.queue_sort() 76 | 77 | elif object.is_in_group("Todo"): 78 | var list = list_container.get_child(mouse.todo_index.x) 79 | list.get_node("VBox/VBox").add_child(object) 80 | object.get_parent().move_child(object, mouse.todo_index.y) 81 | object.get_parent().queue_sort() 82 | -------------------------------------------------------------------------------- /addons/Todot/Todot.tscn: -------------------------------------------------------------------------------- 1 | [gd_scene load_steps=8 format=2] 2 | 3 | [ext_resource path="res://addons/Todot/Todot.tres" type="Theme" id=1] 4 | [ext_resource path="res://addons/Todot/Src/Scripts/Mouse.gd" type="Script" id=3] 5 | [ext_resource path="res://addons/Todot/Todot.gd" type="Script" id=4] 6 | [ext_resource path="res://addons/Todot/Src/Scenes/TodoPopup.tscn" type="PackedScene" id=5] 7 | [ext_resource path="res://addons/Todot/Src/Scripts/AddListButton.gd" type="Script" id=6] 8 | [ext_resource path="res://addons/Todot/Roboto-Light.ttf" type="DynamicFontData" id=7] 9 | 10 | [sub_resource type="DynamicFont" id=1] 11 | size = 40 12 | font_data = ExtResource( 7 ) 13 | 14 | [node name="Todot" type="Control"] 15 | anchor_right = 1.0 16 | anchor_bottom = 1.0 17 | size_flags_horizontal = 3 18 | size_flags_vertical = 3 19 | theme = ExtResource( 1 ) 20 | script = ExtResource( 4 ) 21 | __meta__ = { 22 | "_edit_use_anchors_": false 23 | } 24 | 25 | [node name="ListScrollContainer" type="ScrollContainer" parent="."] 26 | anchor_right = 1.0 27 | anchor_bottom = 1.0 28 | size_flags_vertical = 3 29 | follow_focus = true 30 | __meta__ = { 31 | "_edit_use_anchors_": false 32 | } 33 | 34 | [node name="ListContainer" type="HBoxContainer" parent="ListScrollContainer"] 35 | margin_right = 35.0 36 | margin_bottom = 56.0 37 | custom_constants/separation = 30 38 | 39 | [node name="Button" type="Button" parent="ListScrollContainer/ListContainer"] 40 | margin_right = 35.0 41 | margin_bottom = 56.0 42 | size_flags_vertical = 0 43 | custom_fonts/font = SubResource( 1 ) 44 | text = "+" 45 | script = ExtResource( 6 ) 46 | 47 | [node name="Dialouges" type="Control" parent="."] 48 | anchor_right = 1.0 49 | anchor_bottom = 1.0 50 | mouse_filter = 2 51 | __meta__ = { 52 | "_edit_use_anchors_": false 53 | } 54 | 55 | [node name="DialogueBackground" type="ColorRect" parent="Dialouges"] 56 | visible = false 57 | anchor_right = 1.0 58 | anchor_bottom = 1.0 59 | color = Color( 0, 0, 0, 0.509804 ) 60 | __meta__ = { 61 | "_edit_use_anchors_": false 62 | } 63 | 64 | [node name="TodoPopup" parent="Dialouges" instance=ExtResource( 5 )] 65 | 66 | [node name="Mouse" type="Control" parent="."] 67 | anchor_right = 1.0 68 | anchor_bottom = 1.0 69 | mouse_filter = 2 70 | size_flags_horizontal = 3 71 | size_flags_vertical = 3 72 | script = ExtResource( 3 ) 73 | __meta__ = { 74 | "_edit_use_anchors_": false 75 | } 76 | 77 | [connection signal="pressed" from="ListScrollContainer/ListContainer/Button" to="ListScrollContainer/ListContainer/Button" method="add_list"] 78 | [connection signal="about_to_show" from="Dialouges/TodoPopup" to="Dialouges/DialogueBackground" method="show"] 79 | [connection signal="popup_hide" from="Dialouges/TodoPopup" to="Dialouges/DialogueBackground" method="hide"] 80 | [connection signal="popup_hide" from="Dialouges/TodoPopup" to="Dialouges/TodoPopup" method="_on_TodoPopup_popup_hide"] 81 | -------------------------------------------------------------------------------- /addons/Todot/TodotIcon.svg: -------------------------------------------------------------------------------- 1 | 2 | 40 | -------------------------------------------------------------------------------- /addons/Todot/TodotIcon.svg.import: -------------------------------------------------------------------------------- 1 | [remap] 2 | 3 | importer="texture" 4 | type="StreamTexture" 5 | path="res://.import/TodotIcon.svg-984cd7992210bee4c54b1f0e8dd4ec2d.stex" 6 | metadata={ 7 | "vram_texture": false 8 | } 9 | 10 | [deps] 11 | 12 | source_file="res://addons/Todot/TodotIcon.svg" 13 | dest_files=[ "res://.import/TodotIcon.svg-984cd7992210bee4c54b1f0e8dd4ec2d.stex" ] 14 | 15 | [params] 16 | 17 | compress/mode=0 18 | compress/lossy_quality=0.7 19 | compress/hdr_mode=0 20 | compress/bptc_ldr=0 21 | compress/normal_map=0 22 | flags/repeat=0 23 | flags/filter=true 24 | flags/mipmaps=false 25 | flags/anisotropic=false 26 | flags/srgb=2 27 | process/fix_alpha_border=true 28 | process/premult_alpha=false 29 | process/HDR_as_SRGB=false 30 | process/invert_color=false 31 | process/normal_map_invert_y=false 32 | stream=false 33 | size_limit=0 34 | detect_3d=true 35 | svg/scale=1.0 36 | -------------------------------------------------------------------------------- /addons/Todot/plugin.cfg: -------------------------------------------------------------------------------- 1 | [plugin] 2 | 3 | name="Todot" 4 | description="Kanban style todo and planing addon for godot" 5 | author="AbhinavKDev" 6 | version="0.1.0" 7 | script="plugin.gd" 8 | -------------------------------------------------------------------------------- /addons/Todot/plugin.gd: -------------------------------------------------------------------------------- 1 | tool 2 | extends EditorPlugin 3 | 4 | const todot : PackedScene = preload("res://addons/Todot/Todot.tscn") 5 | const todot_icon: Texture = preload("res://addons/Todot/TodotIcon.svg") 6 | 7 | var todot_instance 8 | 9 | 10 | func _enter_tree(): 11 | todot_instance = todot.instance() 12 | get_editor_interface().get_editor_viewport().add_child(todot_instance) 13 | make_visible(false) 14 | 15 | 16 | func _exit_tree(): 17 | if todot_instance: 18 | todot_instance.queue_free() 19 | 20 | 21 | func has_main_screen(): 22 | return true 23 | 24 | 25 | func make_visible(visible): 26 | if todot_instance: 27 | todot_instance.visible = visible 28 | 29 | 30 | func get_plugin_name(): return "Todot" 31 | 32 | 33 | func get_plugin_icon(): return todot_icon 34 | -------------------------------------------------------------------------------- /icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IsotoxalDev/Todot/1cf281a48aef9c0df34dcaafc1cf666f80835e04/icon.png -------------------------------------------------------------------------------- /icon.png.import: -------------------------------------------------------------------------------- 1 | [remap] 2 | 3 | importer="texture" 4 | type="StreamTexture" 5 | path="res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" 6 | metadata={ 7 | "vram_texture": false 8 | } 9 | 10 | [deps] 11 | 12 | source_file="res://icon.png" 13 | dest_files=[ "res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" ] 14 | 15 | [params] 16 | 17 | compress/mode=0 18 | compress/lossy_quality=0.7 19 | compress/hdr_mode=0 20 | compress/bptc_ldr=0 21 | compress/normal_map=0 22 | flags/repeat=0 23 | flags/filter=true 24 | flags/mipmaps=false 25 | flags/anisotropic=false 26 | flags/srgb=2 27 | process/fix_alpha_border=true 28 | process/premult_alpha=false 29 | process/HDR_as_SRGB=false 30 | process/invert_color=false 31 | stream=false 32 | size_limit=0 33 | detect_3d=true 34 | svg/scale=1.0 35 | -------------------------------------------------------------------------------- /project.godot: -------------------------------------------------------------------------------- 1 | ; Engine configuration file. 2 | ; It's best edited using the editor UI and not directly, 3 | ; since the parameters that go here are not all obvious. 4 | ; 5 | ; Format: 6 | ; [section] ; section goes between [] 7 | ; param=value ; assign values to parameters 8 | 9 | config_version=4 10 | 11 | _global_script_classes=[ { 12 | "base": "PanelContainer", 13 | "class": "List_preview", 14 | "language": "GDScript", 15 | "path": "res://addons/Todot/Src/Scripts/ListPreview.gd" 16 | }, { 17 | "base": "Control", 18 | "class": "Todo", 19 | "language": "GDScript", 20 | "path": "res://addons/Todot/Src/Scripts/Todo.gd" 21 | } ] 22 | _global_script_class_icons={ 23 | "List_preview": "", 24 | "Todo": "" 25 | } 26 | 27 | [application] 28 | 29 | config/name="Todot" 30 | run/main_scene="res://addons/Todot/Todot.tscn" 31 | config/icon="res://icon.png" 32 | 33 | [editor_plugins] 34 | 35 | enabled=PoolStringArray( "res://addons/Todot/plugin.cfg" ) 36 | 37 | [input] 38 | 39 | ui_accept={ 40 | "deadzone": 0.5, 41 | "events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777221,"physical_scancode":0,"unicode":0,"echo":false,"script":null) 42 | , Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777222,"physical_scancode":0,"unicode":0,"echo":false,"script":null) 43 | , Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":0,"pressure":0.0,"pressed":false,"script":null) 44 | ] 45 | } 46 | 47 | [rendering] 48 | 49 | quality/driver/driver_name="GLES2" 50 | vram_compression/import_etc=true 51 | vram_compression/import_etc2=false 52 | --------------------------------------------------------------------------------