Compare commits
No commits in common. "a79c4ba65b46378f59d04661d150d19242f3ab2f" and "c4fa05cfb5621c53d338b0f6ad463ab2ed2047de" have entirely different histories.
a79c4ba65b
...
c4fa05cfb5
20 changed files with 140 additions and 217 deletions
|
|
@ -6,6 +6,10 @@ var preview_scene = preload("res://addons/dialogic/Editor/Events/Common/Images/I
|
|||
var preview = "..."
|
||||
var image_picker
|
||||
|
||||
# This is the information of this event and it will get parsed and saved to the JSON file.
|
||||
var event_data = {
|
||||
'background': ''
|
||||
}
|
||||
|
||||
func _ready():
|
||||
image_picker = get_header()
|
||||
|
|
@ -13,14 +17,10 @@ func _ready():
|
|||
image_picker.editor_reference = editor_reference
|
||||
image_picker.connect("file_selected", self, "_on_file_selected")
|
||||
image_picker.connect("clear_pressed", self, "_on_clear_pressed")
|
||||
# Init the data
|
||||
event_data = {
|
||||
'background': ''
|
||||
}
|
||||
|
||||
|
||||
func load_data(data):
|
||||
.load_data(data)
|
||||
event_data = data
|
||||
load_image(event_data['background'])
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,13 +0,0 @@
|
|||
tool
|
||||
extends HBoxContainer
|
||||
|
||||
onready var spinbox := $SpinBox
|
||||
|
||||
signal value_changed(value)
|
||||
|
||||
func set_value(val: float):
|
||||
spinbox.value = val
|
||||
|
||||
|
||||
func _on_SpinBox_value_changed(value):
|
||||
emit_signal("value_changed", value)
|
||||
|
|
@ -1,37 +0,0 @@
|
|||
[gd_scene load_steps=3 format=2]
|
||||
|
||||
[ext_resource path="res://addons/dialogic/Editor/Events/Common/SpinBoxPreventDnD.gd" type="Script" id=1]
|
||||
[ext_resource path="res://addons/dialogic/Editor/Events/Common/SecondsSelector.gd" type="Script" id=2]
|
||||
|
||||
[node name="SecondsSelector" type="HBoxContainer"]
|
||||
margin_right = 139.0
|
||||
margin_bottom = 28.0
|
||||
script = ExtResource( 2 )
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="SpinBox" type="SpinBox" parent="."]
|
||||
margin_right = 74.0
|
||||
margin_bottom = 28.0
|
||||
min_value = 0.1
|
||||
step = 0.1
|
||||
value = 1.0
|
||||
allow_greater = true
|
||||
align = 1
|
||||
script = ExtResource( 1 )
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="."]
|
||||
margin_left = 78.0
|
||||
margin_right = 141.0
|
||||
margin_bottom = 28.0
|
||||
mouse_filter = 1
|
||||
custom_constants/margin_left = 10
|
||||
|
||||
[node name="Title" type="Label" parent="MarginContainer"]
|
||||
margin_left = 10.0
|
||||
margin_top = 7.0
|
||||
margin_right = 63.0
|
||||
margin_bottom = 21.0
|
||||
text = "Seconds"
|
||||
[connection signal="value_changed" from="SpinBox" to="." method="_on_SpinBox_value_changed"]
|
||||
|
|
@ -30,17 +30,10 @@ var indent_size = 25
|
|||
# Useful for making placeholder events in drag and drop
|
||||
var ignore_save = false
|
||||
|
||||
# This is the data that is going to be saved to json
|
||||
var event_data := {}
|
||||
|
||||
## *****************************************************************************
|
||||
## PUBLIC METHODS
|
||||
## *****************************************************************************
|
||||
|
||||
# Called when timeline editor loads
|
||||
func load_data(data):
|
||||
event_data = data
|
||||
|
||||
|
||||
func set_event_style(style: StyleBoxFlat):
|
||||
panel.set('custom_styles/panel', style)
|
||||
|
|
|
|||
|
|
@ -6,10 +6,6 @@
|
|||
[ext_resource path="res://addons/dialogic/Images/Plugin/plugin-editor-icon-dark-theme.svg" type="Texture" id=6]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id=1]
|
||||
content_margin_left = 0.0
|
||||
content_margin_right = 0.0
|
||||
content_margin_top = 0.0
|
||||
content_margin_bottom = 0.0
|
||||
bg_color = Color( 0.262745, 0.262745, 0.262745, 1 )
|
||||
border_width_left = 2
|
||||
border_width_top = 2
|
||||
|
|
@ -22,8 +18,8 @@ corner_radius_bottom_left = 6
|
|||
|
||||
[node name="EventTemplate" type="HBoxContainer"]
|
||||
anchor_right = 1.0
|
||||
margin_bottom = 42.0
|
||||
rect_min_size = Vector2( 0, 42 )
|
||||
margin_bottom = 44.0
|
||||
rect_min_size = Vector2( 0, 44 )
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 9
|
||||
__meta__ = {
|
||||
|
|
@ -36,7 +32,7 @@ margin_bottom = 64.0
|
|||
|
||||
[node name="PanelContainer" type="PanelContainer" parent="."]
|
||||
margin_right = 1024.0
|
||||
margin_bottom = 42.0
|
||||
margin_bottom = 46.0
|
||||
mouse_filter = 1
|
||||
mouse_default_cursor_shape = 6
|
||||
size_flags_horizontal = 3
|
||||
|
|
@ -44,8 +40,10 @@ size_flags_vertical = 3
|
|||
custom_styles/panel = SubResource( 1 )
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="PanelContainer"]
|
||||
margin_right = 1024.0
|
||||
margin_bottom = 42.0
|
||||
margin_left = 2.0
|
||||
margin_top = 2.0
|
||||
margin_right = 1022.0
|
||||
margin_bottom = 44.0
|
||||
mouse_filter = 1
|
||||
custom_constants/margin_right = 6
|
||||
custom_constants/margin_top = 6
|
||||
|
|
@ -55,13 +53,13 @@ custom_constants/margin_bottom = 6
|
|||
[node name="VBoxContainer" type="VBoxContainer" parent="PanelContainer/MarginContainer"]
|
||||
margin_left = 6.0
|
||||
margin_top = 6.0
|
||||
margin_right = 1018.0
|
||||
margin_right = 1014.0
|
||||
margin_bottom = 36.0
|
||||
rect_min_size = Vector2( 0, 30 )
|
||||
size_flags_horizontal = 3
|
||||
|
||||
[node name="Header" type="HBoxContainer" parent="PanelContainer/MarginContainer/VBoxContainer"]
|
||||
margin_right = 1012.0
|
||||
margin_right = 1008.0
|
||||
margin_bottom = 30.0
|
||||
rect_min_size = Vector2( 0, 30 )
|
||||
size_flags_horizontal = 3
|
||||
|
|
@ -128,18 +126,18 @@ margin_right = 230.0
|
|||
|
||||
[node name="Spacer" parent="PanelContainer/MarginContainer/VBoxContainer/Header" instance=ExtResource( 4 )]
|
||||
margin_left = 178.0
|
||||
margin_right = 966.0
|
||||
margin_right = 962.0
|
||||
margin_bottom = 30.0
|
||||
|
||||
[node name="VSeparator3" type="VSeparator" parent="PanelContainer/MarginContainer/VBoxContainer/Header"]
|
||||
margin_left = 970.0
|
||||
margin_right = 974.0
|
||||
margin_left = 966.0
|
||||
margin_right = 970.0
|
||||
margin_bottom = 30.0
|
||||
mouse_filter = 1
|
||||
|
||||
[node name="OptionsControl" parent="PanelContainer/MarginContainer/VBoxContainer/Header" instance=ExtResource( 5 )]
|
||||
margin_left = 978.0
|
||||
margin_right = 1012.0
|
||||
margin_left = 974.0
|
||||
margin_right = 1008.0
|
||||
margin_bottom = 30.0
|
||||
items = [ "Move Up", null, 0, false, false, 0, 0, null, "", false, "Move Down", null, 0, false, false, 1, 0, null, "", false, "", null, 0, false, false, 2, 0, null, "", false, "Remove", null, 0, false, false, 3, 0, null, "", false ]
|
||||
|
||||
|
|
|
|||
|
|
@ -1,19 +1,18 @@
|
|||
tool
|
||||
extends "res://addons/dialogic/Editor/Events/Templates/EventTemplate.gd"
|
||||
extends Control
|
||||
|
||||
var editor_reference
|
||||
|
||||
func _ready():
|
||||
event_data = {
|
||||
'wait_seconds': 1
|
||||
}
|
||||
get_header().set_value(float(event_data['wait_seconds']))
|
||||
get_header().connect("value_changed", self, "_on_Selector_value_changed")
|
||||
# This is the information of this event and it will get parsed and saved to the JSON file.
|
||||
var event_data = {
|
||||
'wait_seconds': 0
|
||||
}
|
||||
|
||||
|
||||
func load_data(data):
|
||||
.load_data(data)
|
||||
get_header().set_value(float(event_data['wait_seconds']))
|
||||
event_data = data
|
||||
$PanelContainer/VBoxContainer/Header/SpinBox.value = event_data['wait_seconds']
|
||||
|
||||
|
||||
func _on_Selector_value_changed(value):
|
||||
func _on_SpinBox_value_changed(value):
|
||||
event_data['wait_seconds'] = value
|
||||
|
|
|
|||
|
|
@ -1,50 +1,110 @@
|
|||
[gd_scene load_steps=6 format=2]
|
||||
[gd_scene load_steps=7 format=2]
|
||||
|
||||
[ext_resource path="res://addons/dialogic/Images/Event Icons/Main Icons/wait-seconds.svg" type="Texture" id=1]
|
||||
[ext_resource path="res://addons/dialogic/Editor/Events/WaitSeconds.gd" type="Script" id=2]
|
||||
[ext_resource path="res://addons/dialogic/Editor/Events/Common/SecondsSelector.tscn" type="PackedScene" id=3]
|
||||
[ext_resource path="res://addons/dialogic/Editor/Events/Templates/EventTemplate.tscn" type="PackedScene" id=4]
|
||||
[ext_resource path="res://addons/dialogic/Editor/Events/styles/WaitSeconds.tres" type="StyleBox" id=5]
|
||||
[ext_resource path="res://addons/dialogic/Editor/Events/Common/Spacer.tscn" type="PackedScene" id=3]
|
||||
[ext_resource path="res://addons/dialogic/Editor/Events/Common/PieceExtraSettings.tscn" type="PackedScene" id=4]
|
||||
[ext_resource path="res://addons/dialogic/Editor/Events/Common/SpinBoxPreventDnD.gd" type="Script" id=6]
|
||||
|
||||
[node name="EventTemplate" instance=ExtResource( 4 )]
|
||||
margin_bottom = 46.0
|
||||
[sub_resource type="StyleBoxFlat" id=1]
|
||||
content_margin_left = 16.0
|
||||
content_margin_right = 6.0
|
||||
content_margin_top = 6.0
|
||||
content_margin_bottom = 6.0
|
||||
bg_color = Color( 0.435294, 0.301961, 0.603922, 0.192157 )
|
||||
border_width_left = 2
|
||||
border_width_top = 2
|
||||
border_width_right = 2
|
||||
border_width_bottom = 2
|
||||
border_color = Color( 0.12549, 0.12549, 0.12549, 1 )
|
||||
corner_radius_top_left = 6
|
||||
corner_radius_top_right = 6
|
||||
corner_radius_bottom_right = 6
|
||||
corner_radius_bottom_left = 6
|
||||
|
||||
[node name="WaitSeconds" type="HBoxContainer"]
|
||||
margin_right = 1004.0
|
||||
margin_bottom = 42.0
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 9
|
||||
script = ExtResource( 2 )
|
||||
event_style = ExtResource( 5 )
|
||||
event_icon = ExtResource( 1 )
|
||||
event_name = "Wait"
|
||||
header_scene = ExtResource( 3 )
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="PanelContainer" parent="." index="1"]
|
||||
custom_styles/panel = ExtResource( 5 )
|
||||
[node name="Indent" type="Control" parent="."]
|
||||
visible = false
|
||||
margin_bottom = 42.0
|
||||
|
||||
[node name="IconMarginContainer" parent="PanelContainer/MarginContainer/VBoxContainer/Header" index="0"]
|
||||
margin_right = 37.0
|
||||
[node name="PanelContainer" type="PanelContainer" parent="."]
|
||||
margin_right = 1004.0
|
||||
margin_bottom = 42.0
|
||||
mouse_filter = 1
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
custom_styles/panel = SubResource( 1 )
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="IconTexture" parent="PanelContainer/MarginContainer/VBoxContainer/Header/IconMarginContainer" index="0"]
|
||||
margin_right = 32.0
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="PanelContainer"]
|
||||
margin_left = 16.0
|
||||
margin_top = 6.0
|
||||
margin_right = 998.0
|
||||
margin_bottom = 36.0
|
||||
size_flags_horizontal = 3
|
||||
|
||||
[node name="Header" type="HBoxContainer" parent="PanelContainer/VBoxContainer"]
|
||||
margin_right = 982.0
|
||||
margin_bottom = 28.0
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="PanelContainer/VBoxContainer/Header"]
|
||||
margin_right = 22.0
|
||||
margin_bottom = 28.0
|
||||
texture = ExtResource( 1 )
|
||||
stretch_mode = 6
|
||||
|
||||
[node name="TitleHBoxContainer" parent="PanelContainer/MarginContainer/VBoxContainer/Header" index="1"]
|
||||
margin_left = 41.0
|
||||
margin_right = 96.0
|
||||
[node name="Title" type="Label" parent="PanelContainer/VBoxContainer/Header"]
|
||||
margin_left = 26.0
|
||||
margin_top = 7.0
|
||||
margin_right = 75.0
|
||||
margin_bottom = 21.0
|
||||
text = " Wait "
|
||||
|
||||
[node name="TitleMarginContainer" parent="PanelContainer/MarginContainer/VBoxContainer/Header/TitleHBoxContainer" index="1"]
|
||||
margin_right = 47.0
|
||||
[node name="SpinBox" type="SpinBox" parent="PanelContainer/VBoxContainer/Header"]
|
||||
margin_left = 79.0
|
||||
margin_right = 153.0
|
||||
margin_bottom = 28.0
|
||||
min_value = 0.1
|
||||
step = 0.1
|
||||
value = 1.0
|
||||
allow_greater = true
|
||||
align = 1
|
||||
script = ExtResource( 6 )
|
||||
|
||||
[node name="TitleLabel" parent="PanelContainer/MarginContainer/VBoxContainer/Header/TitleHBoxContainer/TitleMarginContainer" index="0"]
|
||||
margin_right = 34.0
|
||||
text = "Wait"
|
||||
[node name="Title2" type="Label" parent="PanelContainer/VBoxContainer/Header"]
|
||||
margin_left = 157.0
|
||||
margin_top = 7.0
|
||||
margin_right = 218.0
|
||||
margin_bottom = 21.0
|
||||
text = " Seconds"
|
||||
|
||||
[node name="VSeparator2" parent="PanelContainer/MarginContainer/VBoxContainer/Header/TitleHBoxContainer" index="2"]
|
||||
margin_left = 51.0
|
||||
margin_right = 55.0
|
||||
[node name="Preview" type="Label" parent="PanelContainer/VBoxContainer/Header"]
|
||||
margin_left = 222.0
|
||||
margin_top = 7.0
|
||||
margin_right = 222.0
|
||||
margin_bottom = 21.0
|
||||
custom_colors/font_color = Color( 1, 1, 1, 0.513726 )
|
||||
|
||||
[node name="Content" parent="PanelContainer/MarginContainer/VBoxContainer/Header" index="2"]
|
||||
margin_left = 100.0
|
||||
margin_right = 249.0
|
||||
[node name="Spacer" parent="PanelContainer/VBoxContainer/Header" instance=ExtResource( 3 )]
|
||||
margin_left = 226.0
|
||||
margin_right = 941.0
|
||||
margin_bottom = 28.0
|
||||
|
||||
[node name="Spacer" parent="PanelContainer/MarginContainer/VBoxContainer/Header" index="4"]
|
||||
margin_left = 253.0
|
||||
[node name="OptionButton" parent="PanelContainer/VBoxContainer/Header" instance=ExtResource( 4 )]
|
||||
margin_left = 945.0
|
||||
margin_right = 982.0
|
||||
margin_bottom = 28.0
|
||||
items = [ "Move Up", null, 0, false, false, 0, 0, null, "", false, "Move Down", null, 0, false, false, 1, 0, null, "", false, "", null, 0, false, false, 2, 0, null, "", true, "Remove", null, 0, false, false, 3, 0, null, "", false ]
|
||||
|
||||
[node name="OptionsControl" parent="PanelContainer/MarginContainer/VBoxContainer/Header" index="6"]
|
||||
items = [ "Move Up", null, 0, false, false, 0, 0, null, "", false, "Move Down", null, 0, false, false, 1, 0, null, "", false, "", null, 0, false, false, 2, 0, null, "", false, "Remove", null, 0, false, false, 3, 0, null, "", false ]
|
||||
[connection signal="value_changed" from="PanelContainer/VBoxContainer/Header/SpinBox" to="." method="_on_SpinBox_value_changed"]
|
||||
|
|
|
|||
|
|
@ -1,10 +1,6 @@
|
|||
[gd_resource type="StyleBoxFlat" format=2]
|
||||
|
||||
[resource]
|
||||
content_margin_left = 0.0
|
||||
content_margin_right = 0.0
|
||||
content_margin_top = 0.0
|
||||
content_margin_bottom = 0.0
|
||||
bg_color = Color( 0.219608, 0.34902, 0.701961, 0.443137 )
|
||||
border_width_left = 2
|
||||
border_width_top = 2
|
||||
|
|
|
|||
|
|
@ -1,17 +0,0 @@
|
|||
[gd_resource type="StyleBoxFlat" format=2]
|
||||
|
||||
[resource]
|
||||
content_margin_left = 0.0
|
||||
content_margin_right = 0.0
|
||||
content_margin_top = 0.0
|
||||
content_margin_bottom = 0.0
|
||||
bg_color = Color( 0.435294, 0.301961, 0.603922, 0.192157 )
|
||||
border_width_left = 2
|
||||
border_width_top = 2
|
||||
border_width_right = 2
|
||||
border_width_bottom = 2
|
||||
border_color = Color( 0.12549, 0.12549, 0.12549, 1 )
|
||||
corner_radius_top_left = 6
|
||||
corner_radius_top_right = 6
|
||||
corner_radius_bottom_right = 6
|
||||
corner_radius_bottom_left = 6
|
||||
|
|
@ -1,10 +1,6 @@
|
|||
[gd_resource type="StyleBoxFlat" format=2]
|
||||
|
||||
[resource]
|
||||
content_margin_left = 0.0
|
||||
content_margin_right = 0.0
|
||||
content_margin_top = 0.0
|
||||
content_margin_bottom = 0.0
|
||||
bg_color = Color( 0.0980392, 0.329412, 0.509804, 1 )
|
||||
border_width_left = 2
|
||||
border_width_top = 2
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ var moving_piece = null
|
|||
var piece_was_dragged = false
|
||||
|
||||
func _has_template(event):
|
||||
return event.event_data.has("background") or event.event_data.has("wait_seconds")
|
||||
return event.event_data.has("background")
|
||||
|
||||
|
||||
func _ready():
|
||||
|
|
|
|||
|
|
@ -15,7 +15,6 @@ var definition_visible: bool = false
|
|||
var settings: ConfigFile
|
||||
var current_theme: ConfigFile
|
||||
var current_timeline: String = ''
|
||||
var current_event: Dictionary
|
||||
|
||||
## The timeline to load when starting the scene
|
||||
export(String, "TimelineDropdown") var timeline: String
|
||||
|
|
@ -104,15 +103,9 @@ func resize_main():
|
|||
if current_theme != null:
|
||||
$TextBubble.rect_position.y = (reference.y) - ($TextBubble.rect_size.y) - current_theme.get_value('box', 'bottom_gap', 40)
|
||||
|
||||
|
||||
var background = get_node_or_null('Background')
|
||||
if background != null:
|
||||
background.rect_size = reference
|
||||
|
||||
var portraits = get_node_or_null('Portraits')
|
||||
if portraits != null:
|
||||
portraits.rect_position.x = reference.x / 2
|
||||
portraits.rect_position.y = reference.y
|
||||
|
||||
|
||||
func set_current_dialog(dialog_path: String):
|
||||
|
|
@ -167,17 +160,19 @@ func parse_text_lines(unparsed_dialog_script: Dictionary) -> Dictionary:
|
|||
# Parsing
|
||||
for event in unparsed_dialog_script['events']:
|
||||
if event.has('text') and event.has('character') and event.has('portrait'):
|
||||
if event['text'].empty() and remove_empty_messages == true:
|
||||
if event['text'] == '' and remove_empty_messages == true:
|
||||
pass
|
||||
elif '\n' in event['text'] and preview == false and split_new_lines == true:
|
||||
var lines = event['text'].split('\n')
|
||||
var i = 0
|
||||
for line in lines:
|
||||
if not line.empty():
|
||||
new_events.append({
|
||||
'text': line,
|
||||
'character': event['character'],
|
||||
'portrait': event['portrait']
|
||||
})
|
||||
var _e = {
|
||||
'text': lines[i],
|
||||
'character': event['character'],
|
||||
'portrait': event['portrait']
|
||||
}
|
||||
new_events.append(_e)
|
||||
i += 1
|
||||
else:
|
||||
new_events.append(event)
|
||||
else:
|
||||
|
|
@ -345,10 +340,6 @@ func update_text(text: String) -> String:
|
|||
|
||||
func _on_text_completed():
|
||||
finished = true
|
||||
if current_event.has('options'):
|
||||
for o in current_event['options']:
|
||||
add_choice_button(o)
|
||||
|
||||
|
||||
func on_timeline_start():
|
||||
if not Engine.is_editor_hint():
|
||||
|
|
@ -432,7 +423,6 @@ func event_handler(event: Dictionary):
|
|||
reset_options()
|
||||
|
||||
dprint('[D] Current Event: ', event)
|
||||
current_event = event
|
||||
match event:
|
||||
{'text', 'character', 'portrait'}:
|
||||
emit_signal("event_start", "text", event)
|
||||
|
|
@ -454,6 +444,9 @@ func event_handler(event: Dictionary):
|
|||
update_name(character_data)
|
||||
grab_portrait_focus(character_data, event)
|
||||
update_text(event['question'])
|
||||
if event.has('options'):
|
||||
for o in event['options']:
|
||||
add_choice_button(o)
|
||||
{'choice', 'question_id'}:
|
||||
emit_signal("event_start", "choice", event)
|
||||
for q in questions:
|
||||
|
|
|
|||
Binary file not shown.
|
Before Width: | Height: | Size: 211 KiB After Width: | Height: | Size: 212 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 255 KiB After Width: | Height: | Size: 256 KiB |
|
|
@ -1 +1 @@
|
|||
{"glossary":[{"extra":"","id":"1618913698-364","name":"fermer","text":"Utilisateur habitué à cette fonctionnalité. Il n’est pas déboussolé face à une nouveauté.","title":"Téléphone verrouillé","type":1},{"extra":"","id":"1618913732-731","name":"ouvert","text":"Donne à l’entreprise une image moderne et éco-responsable. Possibilité de fidéliser des clients qui dépensent plus habituellement.","title":"Téléphone déverrouillé","type":1}],"variables":[{"id":"1618954308-648","name":"jauge_travail","type":0,"value":"0"},{"id":"1618954325-787","name":"jauge_education","type":0,"value":"0"},{"id":"1618954333-366","name":"jauge_financier","type":0,"value":"0"},{"id":"1618954344-146","name":"jauge_ecologie","type":0,"value":"0"},{"id":"1618954357-918","name":"jauge_social","type":0,"value":""},{"id":"1618954386-970","name":"relation_jm","type":0,"value":"0"},{"id":"1618954375-483","name":"relation_evelyne","type":0,"value":"0"},{"id":"1616657225-648","name":"choix_tel_ouvert","type":0,"value":"0"}]}
|
||||
{"glossary":[{"extra":"","id":"1618913698-364","name":"fermer","text":"Utilisateur habitué à cette fonctionnalité. Il n’est pas déboussolé face à une nouveauté.","title":"Téléphone verrouillé","type":1},{"extra":"","id":"1618913732-731","name":"ouvert","text":"Donne à l’entreprise une image moderne et éco-responsable. Possibilité de fidéliser des clients qui dépensent plus habituellement.","title":"Téléphone déverrouillé","type":1}],"variables":[{"id":"1616657225-648","name":"tel_ouvert","type":0,"value":"0"}]}
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ shadow=false
|
|||
|
||||
[definitions]
|
||||
|
||||
color="#ff3bca27"
|
||||
color="#ffffffff"
|
||||
|
||||
[name]
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
[gd_scene load_steps=9 format=2]
|
||||
|
||||
[ext_resource path="res://scenes/Credits.gd" type="Script" id=1]
|
||||
[ext_resource path="res://backgrounds/bureauGroupe-1.jpg" type="Texture" id=2]
|
||||
[ext_resource path="res://backgrounds/bureauGroupe-2.jpg" type="Texture" id=2]
|
||||
[ext_resource path="res://fonts/Title.tres" type="DynamicFont" id=3]
|
||||
[ext_resource path="res://fonts/open-sans/OpenSans-Regular.ttf" type="DynamicFontData" id=4]
|
||||
[ext_resource path="res://scenes/typo/Title.tscn" type="PackedScene" id=5]
|
||||
|
|
@ -26,7 +26,6 @@ __meta__ = {
|
|||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
texture = ExtResource( 2 )
|
||||
expand = true
|
||||
stretch_mode = 7
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
|
|
@ -75,7 +74,7 @@ size_flags_vertical = 3
|
|||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
size_flags_vertical = 3
|
||||
color = Color( 0, 0, 0, 0.694118 )
|
||||
color = Color( 0, 0, 0, 0.423529 )
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,32 +0,0 @@
|
|||
extends Control
|
||||
|
||||
var GAUGE_PREFIX = "jauge_"
|
||||
var RELATIONS_PREFIX = "relation_"
|
||||
var CHOICES_PREFIX = "choix_"
|
||||
|
||||
var gauges_names := ["travail", "education", "financier", "ecologie", "social"]
|
||||
var relations_names := ["evelyne", "jm"]
|
||||
var choices_names := ["tel_ouvert"]
|
||||
|
||||
var gauges := {}
|
||||
var relations := {}
|
||||
var choices := {}
|
||||
|
||||
func _ready():
|
||||
var definitions = Dialogic.get_definitions()
|
||||
# Get relations and gauges from variables
|
||||
for d in definitions["variables"]:
|
||||
for g in gauges_names:
|
||||
if d["name"] == GAUGE_PREFIX + g:
|
||||
gauges[g] = d
|
||||
for r in relations_names:
|
||||
if d["name"] == RELATIONS_PREFIX + r:
|
||||
relations[r] = d
|
||||
for c in choices_names:
|
||||
if d["name"] == CHOICES_PREFIX + c:
|
||||
choices[c] = d
|
||||
print(gauges)
|
||||
print("--")
|
||||
print(relations)
|
||||
print("--")
|
||||
print(choices)
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
[gd_scene load_steps=2 format=2]
|
||||
|
||||
[ext_resource path="res://scenes/EndRecap.gd" type="Script" id=1]
|
||||
|
||||
[node name="EndRecap" type="Control"]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
script = ExtResource( 1 )
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
|
@ -3,7 +3,7 @@
|
|||
[ext_resource path="res://characters/Evelyne/evelyne_satisfaite.png" type="Texture" id=1]
|
||||
[ext_resource path="res://characters/Patrick/Patrick sans Barbe/Pat_cool.png" type="Texture" id=2]
|
||||
[ext_resource path="res://characters/Jean-Michel/Jean-Méchant.png" type="Texture" id=3]
|
||||
[ext_resource path="res://backgrounds/bureauGroupe-1.jpg" type="Texture" id=4]
|
||||
[ext_resource path="res://backgrounds/bureauGroupe-2.jpg" type="Texture" id=4]
|
||||
[ext_resource path="res://fonts/Title.tres" type="DynamicFont" id=6]
|
||||
[ext_resource path="res://scenes/MainMenu.gd" type="Script" id=7]
|
||||
[ext_resource path="res://scenes/typo/Button.tscn" type="PackedScene" id=8]
|
||||
|
|
@ -20,7 +20,6 @@ __meta__ = {
|
|||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
texture = ExtResource( 4 )
|
||||
expand = true
|
||||
stretch_mode = 7
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
|
|
|
|||
Loading…
Reference in a new issue