Commit 1b4a22b0 authored by Chloé Paris's avatar Chloé Paris

new design of the interface

parent 6391f7d0
......@@ -2,7 +2,7 @@
[ext_resource path="res://SceneTree/Sign/Edit/Create/Name.tscn" type="PackedScene" id=1]
[node name="Interface" type="Node"]
[node name="Interface" type="Node" index="0"]
[node name="Name" parent="." index="0" instance=ExtResource( 1 )]
......
[gd_scene load_steps=3 format=2]
[ext_resource path="res://scene-tree/sentence/sentence.tscn" type="PackedScene" id=1]
[ext_resource path="res://resources/pictures/bouchetrou/perso.png" type="Texture" id=2]
[node name="VSplitContainer" type="VSplitContainer"]
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_right = 2048.0
margin_bottom = 1200.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
mouse_filter = 0
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 1
split_offset = 800
collapsed = false
dragger_visibility = 0
_sections_unfolded = [ "Rect" ]
[node name="HSplitContainer" type="HSplitContainer" parent="." index="0"]
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_right = 2048.0
margin_bottom = 812.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
mouse_filter = 0
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 1
split_offset = 1600
collapsed = false
dragger_visibility = 0
_sections_unfolded = [ "Rect" ]
[node name="Container" type="Container" parent="HSplitContainer" index="0"]
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_right = 1600.0
margin_bottom = 812.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
mouse_filter = 0
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 1
_sections_unfolded = [ "Rect" ]
[node name="Control" parent="HSplitContainer/Container" index="0" instance=ExtResource( 1 )]
[node name="VSplitContainer" type="VSplitContainer" parent="HSplitContainer" index="1"]
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_left = 1612.0
margin_right = 2048.0
margin_bottom = 812.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
mouse_filter = 0
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 1
split_offset = 500
collapsed = false
dragger_visibility = 0
[node name="MarginContainer" type="MarginContainer" parent="HSplitContainer/VSplitContainer" index="0"]
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_right = 436.0
margin_bottom = 500.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
mouse_filter = 0
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 1
_sections_unfolded = [ "Margin" ]
[node name="TextureRect" type="TextureRect" parent="HSplitContainer/VSplitContainer/MarginContainer" index="0"]
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_left = 8.0
margin_right = 436.0
margin_bottom = 500.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
mouse_filter = 1
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 1
texture = ExtResource( 2 )
expand = true
stretch_mode = 0
[node name="MarginContainer2" type="MarginContainer" parent="HSplitContainer/VSplitContainer" index="1"]
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_top = 512.0
margin_right = 436.0
margin_bottom = 812.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
mouse_filter = 0
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 1
[node name="MarginContainer" type="MarginContainer" parent="." index="1"]
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_top = 824.0
margin_right = 2048.0
margin_bottom = 1200.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
mouse_filter = 0
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 1
MIT License
Copyright (c) 2018 Karsten Bock
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
# godot-yaml-asset
Godot yaml adds printing and parsing yaml data.
It uses yaml-cpp for the basic parsing and specific converters for Godot classes.
Supported classes are printed as either their matching yaml type or, if special handling is necessary, using a yaml tag to identify them as that special type.
Currently it prints and parses all Variant variables except objects and thus currently has the same behaviour as JSON.
Usage:
Since this is a godot native plugin, you first need to (pre)load it like this:
```
yaml = preload("res://addons/godot-yaml/gdyaml.gdns").new()
```
After this the basic usage is like for JSON:
To convert a value to a yaml string you need to use the print method, like this:
```
var yamlstring = yaml.print(1.0)
```
The parse method takes a yaml formatted string and tries to convert it into a godot variable
```
var value = yaml.parse(yamlstring)
```
If it cannot convert the string it will give an error message with information why it could not convert something and the position inside the string where it failed.
[general]
singleton=false
load_once=true
symbol_prefix="godot_"
[entry]
X11.64="res://addons/godot-yaml/x11/libgodotyaml.so"
Windows.64="res://addons/godot-yaml/win64/libgodotyaml.dll"
OSX.64="res://addons/godot-yaml/osx/libgodotyaml.dylib"
Windows.32="res://addons/godot-yaml/win32/libgodotyaml.dll"
[dependencies]
X11.64=[]
Windows.64=[]
OSX.64=[]
\ No newline at end of file
[gd_resource type="NativeScript" load_steps=2 format=2]
[ext_resource path="res://addons/godot-yaml/gdyaml.gdnlib" type="GDNativeLibrary" id=1]
[resource]
resource_name = "gdyaml"
class_name = "YAML"
library = ExtResource( 1 )
_sections_unfolded = [ "Resource" ]
[gd_resource type="Environment" load_steps=2 format=2]
[sub_resource type="ProceduralSky" id=1]
radiance_size = 4
sky_top_color = Color( 0.0470588, 0.454902, 0.976471, 1 )
sky_horizon_color = Color( 0.556863, 0.823529, 0.909804, 1 )
sky_curve = 0.25
sky_energy = 1.0
ground_bottom_color = Color( 0.101961, 0.145098, 0.188235, 1 )
ground_horizon_color = Color( 0.482353, 0.788235, 0.952941, 1 )
ground_curve = 0.01
ground_energy = 1.0
sun_color = Color( 1, 1, 1, 1 )
sun_latitude = 35.0
sun_longitude = 0.0
sun_angle_min = 1.0
sun_angle_max = 100.0
sun_curve = 0.05
sun_energy = 16.0
texture_size = 2
[resource]
background_mode = 2
background_sky = SubResource( 1 )
background_sky_custom_fov = 0.0
background_color = Color( 0, 0, 0, 1 )
background_energy = 1.0
background_canvas_max_layer = 0
ambient_light_color = Color( 0, 0, 0, 1 )
ambient_light_energy = 1.0
ambient_light_sky_contribution = 1.0
fog_enabled = false
fog_color = Color( 0.5, 0.6, 0.7, 1 )
fog_sun_color = Color( 1, 0.9, 0.7, 1 )
fog_sun_amount = 0.0
fog_depth_enabled = true
fog_depth_begin = 10.0
fog_depth_curve = 1.0
fog_transmit_enabled = false
fog_transmit_curve = 1.0
fog_height_enabled = false
fog_height_min = 0.0
fog_height_max = 100.0
fog_height_curve = 1.0
tonemap_mode = 0
tonemap_exposure = 1.0
tonemap_white = 1.0
auto_exposure_enabled = false
auto_exposure_scale = 0.4
auto_exposure_min_luma = 0.05
auto_exposure_max_luma = 8.0
auto_exposure_speed = 0.5
ss_reflections_enabled = false
ss_reflections_max_steps = 64
ss_reflections_fade_in = 0.15
ss_reflections_fade_out = 2.0
ss_reflections_depth_tolerance = 0.2
ss_reflections_roughness = true
ssao_enabled = false
ssao_radius = 1.0
ssao_intensity = 1.0
ssao_radius2 = 0.0
ssao_intensity2 = 1.0
ssao_bias = 0.01
ssao_light_affect = 0.0
ssao_color = Color( 0, 0, 0, 1 )
ssao_quality = 0
ssao_blur = 3
ssao_edge_sharpness = 4.0
dof_blur_far_enabled = false
dof_blur_far_distance = 10.0
dof_blur_far_transition = 5.0
dof_blur_far_amount = 0.1
dof_blur_far_quality = 1
dof_blur_near_enabled = false
dof_blur_near_distance = 2.0
dof_blur_near_transition = 1.0
dof_blur_near_amount = 0.1
dof_blur_near_quality = 1
glow_enabled = false
glow_levels/1 = false
glow_levels/2 = false
glow_levels/3 = true
glow_levels/4 = false
glow_levels/5 = true
glow_levels/6 = false
glow_levels/7 = false
glow_intensity = 0.8
glow_strength = 1.0
glow_bloom = 0.0
glow_blend_mode = 2
glow_hdr_threshold = 1.0
glow_hdr_scale = 2.0
glow_bicubic_upscale = false
adjustment_enabled = false
adjustment_brightness = 1.0
adjustment_contrast = 1.0
adjustment_saturation = 1.0
This diff is collapsed.
This diff is collapsed.
extends Control
var signEdit
var speechEdit
var tree
func _ready():
signEdit = get_node("Sign").get_popup()
signEdit.add_item("Nouveau signe")
speechEdit = get_node("Speech").get_popup()
tree = get_node("ControlTree")
tree.set_column_title(0,"SIGNE")
tree.set_column_title(1,"DISCOURS")
tree.set_column_titles_visible(true)
var root = tree.create_item()
tree.set_hide_root(true)
# signEdit = tree.create_item()#root)
# speechEdit = tree.create_item()#root)
# signEdit.set_text(0,"SIGNE")
# speechEdit.set_text(1,"DISCOURS")
# tree.set_hide_root(false)
pass
#func _process(delta):
# pass
[gd_scene load_steps=2 format=2]
[ext_resource path="res://resources/global-variables/Edit.gd" type="Script" id=1]
[node name="Edit" type="Control" index="0"]
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_right = 1024.0
margin_bottom = 600.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
mouse_filter = 0
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 1
script = ExtResource( 1 )
_sections_unfolded = [ "Rect" ]
[node name="Sign" type="MenuButton" parent="." index="0"]
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_right = 100.0
margin_bottom = 20.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
mouse_filter = 0
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 1
toggle_mode = false
action_mode = 0
enabled_focus_mode = 0
shortcut = null
group = null
text = "SIGNE"
flat = true
align = 1
items = [ ]
_sections_unfolded = [ "Rect" ]
[node name="ControlTree" type="Tree" parent="." index="1"]
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_left = 107.0
margin_top = 168.0
margin_right = 307.0
margin_bottom = 208.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = true
focus_mode = 2
mouse_filter = 0
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 1
columns = 2
allow_reselect = false
allow_rmb_select = false
hide_folding = false
hide_root = false
drop_mode_flags = 0
select_mode = 0
_sections_unfolded = [ "Rect" ]
[node name="Speech" type="MenuButton" parent="." index="2"]
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_left = 100.0
margin_right = 200.0
margin_bottom = 20.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
mouse_filter = 0
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 1
toggle_mode = false
action_mode = 0
enabled_focus_mode = 0
shortcut = null
group = null
text = "DISCOURS"
flat = true
align = 1
items = [ ]
_sections_unfolded = [ "Rect" ]
[node name="SpeechTree" type="Tree" parent="." index="3"]
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_left = 493.0
margin_top = 213.0
margin_right = 593.0
margin_bottom = 253.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = true
focus_mode = 2
mouse_filter = 0
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 1
columns = 1
allow_reselect = false
allow_rmb_select = false
hide_folding = false
hide_root = false
drop_mode_flags = 0
select_mode = 0
_sections_unfolded = [ "Rect" ]
extends Node
var wordCount = 0 #nb of words in the speech
var sign_index = 0
var sentence = ["Alinéa"]
#var sentence = ["Alinéa","Liste","Mots","Hasard","Test","Idées","Trouver","Inspiration","Manque","Besoin","Plus","Long","Essai","On","Verra","Je","Ne","Sais","Pas","Un","Ou","Deux","De","Plus","Last"]
var speechName = null
func _ready():
wordCount = len(sentence)
sign_index = -1
\ No newline at end of file