Initial Android commit
This commit is contained in:
commit
1e2b80c13d
8521 changed files with 231475 additions and 0 deletions
63
dialogic/custom-events/Pause/EventBlock.tscn
Normal file
63
dialogic/custom-events/Pause/EventBlock.tscn
Normal file
|
@ -0,0 +1,63 @@
|
|||
[gd_scene load_steps=6 format=2]
|
||||
|
||||
[ext_resource path="res://addons/dialogic/Editor/Events/Templates/EventTemplate.tscn" type="PackedScene" id=1]
|
||||
[ext_resource path="res://addons/dialogic/Images/Event Icons/Main Icons/custom-event.svg" type="Texture" id=2]
|
||||
|
||||
[sub_resource type="Image" id=4]
|
||||
data = {
|
||||
"data": PoolByteArray( 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ),
|
||||
"format": "LumAlpha8",
|
||||
"height": 16,
|
||||
"mipmaps": false,
|
||||
"width": 16
|
||||
}
|
||||
|
||||
[sub_resource type="ImageTexture" id=2]
|
||||
flags = 4
|
||||
flags = 4
|
||||
image = SubResource( 4 )
|
||||
size = Vector2( 16, 16 )
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id=3]
|
||||
|
||||
[node name="ExampleCustomEvent" instance=ExtResource( 1 )]
|
||||
event_name = "Pause"
|
||||
event_data = {
|
||||
"event_id": "pause_99"
|
||||
}
|
||||
event_icon = ExtResource( 2 )
|
||||
|
||||
[node name="PanelContainer" parent="." index="1"]
|
||||
margin_right = 998.0
|
||||
|
||||
[node name="MarginContainer" parent="PanelContainer" index="1"]
|
||||
margin_right = 998.0
|
||||
|
||||
[node name="VBoxContainer" parent="PanelContainer/MarginContainer" index="0"]
|
||||
margin_right = 992.0
|
||||
|
||||
[node name="Header" parent="PanelContainer/MarginContainer/VBoxContainer" index="0"]
|
||||
margin_right = 982.0
|
||||
|
||||
[node name="IconTexture" parent="PanelContainer/MarginContainer/VBoxContainer/Header/CenterContainer/IconPanel" index="0"]
|
||||
self_modulate = Color( 0, 0, 0, 1 )
|
||||
texture = ExtResource( 2 )
|
||||
|
||||
[node name="Warning" parent="PanelContainer/MarginContainer/VBoxContainer/Header/CenterContainer/IconPanel" index="1"]
|
||||
texture = SubResource( 2 )
|
||||
|
||||
[node name="TitleLabel" parent="PanelContainer/MarginContainer/VBoxContainer/Header" index="1"]
|
||||
margin_right = 38.0
|
||||
text = "Pause"
|
||||
|
||||
[node name="Content" parent="PanelContainer/MarginContainer/VBoxContainer/Header" index="2"]
|
||||
margin_left = 38.0
|
||||
margin_right = 48.0
|
||||
|
||||
[node name="Spacer" parent="PanelContainer/MarginContainer/VBoxContainer/Header" index="4"]
|
||||
margin_left = 48.0
|
||||
margin_right = 982.0
|
||||
|
||||
[node name="PopupMenu" parent="." index="2"]
|
||||
custom_styles/hover = SubResource( 3 )
|
||||
items = [ "Documentation", SubResource( 2 ), 0, false, false, 0, 0, null, "", false, "", null, 0, false, false, -1, 0, null, "", true, "Move up", SubResource( 2 ), 0, false, false, 2, 0, null, "", false, "Move down", SubResource( 2 ), 0, false, false, 3, 0, null, "", false, "", null, 0, false, false, -1, 0, null, "", true, "Delete", SubResource( 2 ), 0, false, false, 5, 0, null, "", false ]
|
33
dialogic/custom-events/Pause/EventPart_Example.gd
Normal file
33
dialogic/custom-events/Pause/EventPart_Example.gd
Normal file
|
@ -0,0 +1,33 @@
|
|||
tool
|
||||
extends "res://addons/dialogic/Editor/Events/Parts/EventPart.gd"
|
||||
|
||||
|
||||
|
||||
|
||||
onready var input_field = $InputField
|
||||
|
||||
|
||||
func _ready():
|
||||
|
||||
input_field.connect("text_changed", self, "_on_InputField_text_changed")
|
||||
pass
|
||||
|
||||
|
||||
func load_data(data:Dictionary):
|
||||
|
||||
.load_data(data)
|
||||
|
||||
|
||||
|
||||
input_field.text = event_data["my_text_key"]
|
||||
|
||||
|
||||
func get_preview():
|
||||
return ""
|
||||
|
||||
|
||||
func _on_InputField_text_changed(text):
|
||||
event_data["my_text_key"] = text
|
||||
|
||||
|
||||
data_changed()
|
51
dialogic/custom-events/Pause/EventPart_Example.tscn
Normal file
51
dialogic/custom-events/Pause/EventPart_Example.tscn
Normal file
|
@ -0,0 +1,51 @@
|
|||
[gd_scene load_steps=4 format=2]
|
||||
|
||||
[ext_resource path="res://addons/dialogic/Editor/Events/Parts/Text/CustomLineEdit.tscn" type="PackedScene" id=1]
|
||||
[ext_resource path="res://dialogic/custom-events/Pause/EventPart_Example.gd" type="Script" id=2]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id=1]
|
||||
content_margin_left = 11.0
|
||||
content_margin_right = 9.0
|
||||
content_margin_top = 5.0
|
||||
content_margin_bottom = 5.0
|
||||
bg_color = Color( 0.12549, 0.141176, 0.192157, 1 )
|
||||
border_width_left = 1
|
||||
border_width_top = 1
|
||||
border_width_right = 1
|
||||
border_width_bottom = 1
|
||||
border_color = Color( 0.0980392, 0.113725, 0.152941, 1 )
|
||||
corner_radius_top_left = 3
|
||||
corner_radius_top_right = 3
|
||||
corner_radius_bottom_right = 3
|
||||
corner_radius_bottom_left = 3
|
||||
|
||||
[node name="EventPart_Example" type="HBoxContainer"]
|
||||
margin_right = 40.0
|
||||
margin_bottom = 40.0
|
||||
script = ExtResource( 2 )
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="InputField" type="LineEdit" parent="." instance=ExtResource( 1 )]
|
||||
margin_top = 6.0
|
||||
margin_right = 48.0
|
||||
margin_bottom = 33.0
|
||||
rect_min_size = Vector2( 130, 27 )
|
||||
size_flags_vertical = 6
|
||||
custom_colors/selection_color = Color( 0.345098, 0.345098, 0.345098, 1 )
|
||||
custom_colors/cursor_color = Color( 1, 1, 1, 1 )
|
||||
custom_colors/clear_button_color_pressed = Color( 0.960784, 0.960784, 0.960784, 1 )
|
||||
custom_colors/font_color_selected = Color( 1, 1, 1, 1 )
|
||||
custom_colors/font_color = Color( 1, 1, 1, 1 )
|
||||
custom_colors/clear_button_color = Color( 0, 0, 0, 1 )
|
||||
custom_colors/font_color_uneditable = Color( 0, 0, 0, 1 )
|
||||
custom_styles/read_only = SubResource( 1 )
|
||||
custom_styles/focus = SubResource( 1 )
|
||||
custom_styles/normal = SubResource( 1 )
|
||||
expand_to_text_length = true
|
||||
caret_blink = true
|
||||
caret_blink_speed = 0.5
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
13
dialogic/custom-events/Pause/event_pause_99.gd
Normal file
13
dialogic/custom-events/Pause/event_pause_99.gd
Normal file
|
@ -0,0 +1,13 @@
|
|||
extends Node
|
||||
|
||||
|
||||
func handle_event(_event_data, dialog_node):
|
||||
"
\n If this event should wait for dialog advance to occur, uncomment the WAITING line
\n If this event should block the dialog from continuing, uncomment the WAITINT_INPUT line
\n While other states exist, they generally are not neccesary, but include IDLE, TYPING, and ANIMATING
\n "
|
||||
dialog_node.set_state(dialog_node.state.WAITING)
|
||||
|
||||
|
||||
pass
|
||||
|
||||
|
||||
|
||||
|
29
dialogic/custom-events/SaveInSlot/EventBlock.tscn
Normal file
29
dialogic/custom-events/SaveInSlot/EventBlock.tscn
Normal file
|
@ -0,0 +1,29 @@
|
|||
[gd_scene load_steps=5 format=2]
|
||||
|
||||
[ext_resource path="res://addons/dialogic/Editor/Events/Templates/EventTemplate.tscn" type="PackedScene" id=1]
|
||||
[ext_resource path="res://addons/dialogic/Images/Event Icons/Main Icons/custom-event.svg" type="Texture" id=2]
|
||||
|
||||
[sub_resource type="Image" id=4]
|
||||
data = {
|
||||
"data": PoolByteArray( 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ),
|
||||
"format": "LumAlpha8",
|
||||
"height": 16,
|
||||
"mipmaps": false,
|
||||
"width": 16
|
||||
}
|
||||
|
||||
[sub_resource type="ImageTexture" id=3]
|
||||
flags = 4
|
||||
flags = 4
|
||||
image = SubResource( 4 )
|
||||
size = Vector2( 16, 16 )
|
||||
|
||||
[node name="ExampleCustomEvent" instance=ExtResource( 1 )]
|
||||
event_name = "SaveInSlot"
|
||||
event_data = {
|
||||
"event_id": "save_077"
|
||||
}
|
||||
event_icon = ExtResource( 2 )
|
||||
|
||||
[node name="PopupMenu" parent="." index="2"]
|
||||
items = [ "Documentation", SubResource( 3 ), 0, false, false, 0, 0, null, "", false, "", null, 0, false, false, -1, 0, null, "", true, "Move up", SubResource( 3 ), 0, false, false, 2, 0, null, "", false, "Move down", SubResource( 3 ), 0, false, false, 3, 0, null, "", false, "", null, 0, false, false, -1, 0, null, "", true, "Delete", SubResource( 3 ), 0, false, false, 5, 0, null, "", false ]
|
33
dialogic/custom-events/SaveInSlot/EventPart_Example.gd
Normal file
33
dialogic/custom-events/SaveInSlot/EventPart_Example.gd
Normal file
|
@ -0,0 +1,33 @@
|
|||
tool
|
||||
extends "res://addons/dialogic/Editor/Events/Parts/EventPart.gd"
|
||||
|
||||
|
||||
|
||||
|
||||
onready var input_field = $InputField
|
||||
|
||||
|
||||
func _ready():
|
||||
|
||||
input_field.connect("text_changed", self, "_on_InputField_text_changed")
|
||||
pass
|
||||
|
||||
|
||||
func load_data(data:Dictionary):
|
||||
|
||||
.load_data(data)
|
||||
|
||||
|
||||
|
||||
input_field.text = event_data["my_text_key"]
|
||||
|
||||
|
||||
func get_preview():
|
||||
return ""
|
||||
|
||||
|
||||
func _on_InputField_text_changed(text):
|
||||
event_data["my_text_key"] = text
|
||||
|
||||
|
||||
data_changed()
|
51
dialogic/custom-events/SaveInSlot/EventPart_Example.tscn
Normal file
51
dialogic/custom-events/SaveInSlot/EventPart_Example.tscn
Normal file
|
@ -0,0 +1,51 @@
|
|||
[gd_scene load_steps=4 format=2]
|
||||
|
||||
[ext_resource path="res://addons/dialogic/Editor/Events/Parts/Text/CustomLineEdit.tscn" type="PackedScene" id=1]
|
||||
[ext_resource path="res://dialogic/custom-events/SaveInSlot/EventPart_Example.gd" type="Script" id=2]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id=1]
|
||||
content_margin_left = 11.0
|
||||
content_margin_right = 9.0
|
||||
content_margin_top = 5.0
|
||||
content_margin_bottom = 5.0
|
||||
bg_color = Color( 0.12549, 0.141176, 0.192157, 1 )
|
||||
border_width_left = 1
|
||||
border_width_top = 1
|
||||
border_width_right = 1
|
||||
border_width_bottom = 1
|
||||
border_color = Color( 0.0980392, 0.113725, 0.152941, 1 )
|
||||
corner_radius_top_left = 3
|
||||
corner_radius_top_right = 3
|
||||
corner_radius_bottom_right = 3
|
||||
corner_radius_bottom_left = 3
|
||||
|
||||
[node name="EventPart_Example" type="HBoxContainer"]
|
||||
margin_right = 40.0
|
||||
margin_bottom = 40.0
|
||||
script = ExtResource( 2 )
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="InputField" type="LineEdit" parent="." instance=ExtResource( 1 )]
|
||||
margin_top = 6.0
|
||||
margin_right = 48.0
|
||||
margin_bottom = 33.0
|
||||
rect_min_size = Vector2( 130, 27 )
|
||||
size_flags_vertical = 6
|
||||
custom_colors/selection_color = Color( 0.345098, 0.345098, 0.345098, 1 )
|
||||
custom_colors/cursor_color = Color( 1, 1, 1, 1 )
|
||||
custom_colors/clear_button_color_pressed = Color( 0.960784, 0.960784, 0.960784, 1 )
|
||||
custom_colors/font_color_selected = Color( 1, 1, 1, 1 )
|
||||
custom_colors/font_color = Color( 1, 1, 1, 1 )
|
||||
custom_colors/clear_button_color = Color( 0, 0, 0, 1 )
|
||||
custom_colors/font_color_uneditable = Color( 0, 0, 0, 1 )
|
||||
custom_styles/read_only = SubResource( 1 )
|
||||
custom_styles/focus = SubResource( 1 )
|
||||
custom_styles/normal = SubResource( 1 )
|
||||
expand_to_text_length = true
|
||||
caret_blink = true
|
||||
caret_blink_speed = 0.5
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
14
dialogic/custom-events/SaveInSlot/event_save_077.gd
Normal file
14
dialogic/custom-events/SaveInSlot/event_save_077.gd
Normal file
|
@ -0,0 +1,14 @@
|
|||
extends Node
|
||||
|
||||
|
||||
func handle_event(_event_data, dialog_node):
|
||||
"
\n If this event should wait for dialog advance to occur, uncomment the WAITING line
\n If this event should block the dialog from continuing, uncomment the WAITINT_INPUT line
\n While other states exist, they generally are not neccesary, but include IDLE, TYPING, and ANIMATING
\n "
|
||||
|
||||
|
||||
|
||||
Dialogic.save(Dialogic.get_variable("SaveSlotName"))
|
||||
SceneManagerSingleton.TakeScreenShot(Dialogic.get_variable("SaveSlotName"))
|
||||
|
||||
|
||||
dialog_node._load_next_event()
|
||||
dialog_node.set_state(dialog_node.state.READY)
|
Loading…
Add table
Add a link
Reference in a new issue