diff --git a/cmi2/assets/selectChar/jauge.png b/cmi2/assets/selectChar/jauge.png new file mode 100644 index 0000000000000000000000000000000000000000..c39362cf517f1749af48e1bf536c158e66a3e3b9 Binary files /dev/null and b/cmi2/assets/selectChar/jauge.png differ diff --git a/cmi2/assets/selectChar/jauge.png.import b/cmi2/assets/selectChar/jauge.png.import new file mode 100644 index 0000000000000000000000000000000000000000..d2460a4ec1b407fc28c6e4534f55876af1e766eb --- /dev/null +++ b/cmi2/assets/selectChar/jauge.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/jauge.png-477ef0a718c7500ab2165f2860713745.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/selectChar/jauge.png" +dest_files=[ "res://.import/jauge.png-477ef0a718c7500ab2165f2860713745.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/cmi2/assets/selectChar/jaugefill.png b/cmi2/assets/selectChar/jaugefill.png new file mode 100644 index 0000000000000000000000000000000000000000..31d91c1e68e3c5782297d015f95d84e21d186fcd Binary files /dev/null and b/cmi2/assets/selectChar/jaugefill.png differ diff --git a/cmi2/assets/selectChar/jaugefill.png.import b/cmi2/assets/selectChar/jaugefill.png.import new file mode 100644 index 0000000000000000000000000000000000000000..e5ec111a305cbbbed1975c531666985c7387daaa --- /dev/null +++ b/cmi2/assets/selectChar/jaugefill.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/jaugefill.png-33a5a2af0a62aa48138f0817703b8864.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/selectChar/jaugefill.png" +dest_files=[ "res://.import/jaugefill.png-33a5a2af0a62aa48138f0817703b8864.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/cmi2/labelSkillFont.tres b/cmi2/labelSkillFont.tres new file mode 100644 index 0000000000000000000000000000000000000000..f5c9f20e6bb1fba344030a0023b63c7fc536729c --- /dev/null +++ b/cmi2/labelSkillFont.tres @@ -0,0 +1,11 @@ +[gd_resource type="Theme" load_steps=3 format=2] + +[ext_resource path="res://assets/fonts/montserrat/Montserrat-SemiBold.otf" type="DynamicFontData" id=1] + +[sub_resource type="DynamicFont" id=1] +size = 14 +extra_spacing_char = 1 +font_data = ExtResource( 1 ) + +[resource] +default_font = SubResource( 1 ) diff --git a/cmi2/project.godot b/cmi2/project.godot index 8e989ef489b7f6eca37e86cb3c3eee199ad7a7c6..1ac25d3358be4412a3349ce5c82640cbe544678d 100644 --- a/cmi2/project.godot +++ b/cmi2/project.godot @@ -22,7 +22,6 @@ config/icon="res://img/icon.png" [autoload] Globals="*res://Globals.gd" -SaveSettings="*res://SaveSettings.gd" [rendering] diff --git a/cmi2/scenes/GridContainer.gd b/cmi2/scenes/GridContainer.gd index 5119a8b934d3245f30854e1336b0577f8f33064a..67cc8e304990f83e2fdea93fd55f16d3d642f2b1 100644 --- a/cmi2/scenes/GridContainer.gd +++ b/cmi2/scenes/GridContainer.gd @@ -18,7 +18,7 @@ func _ready(): #blank_button.set_normal_texture(charPic) #blank_button.set_expand(true) blank_button.set_custom_minimum_size(Vector2(x/ROW,x/ROW)) - self.add_child(blank_button) + #self.add_child(blank_button) get_tree().get_root().connect("size_changed", self, "myfunc") func myfunc(): diff --git a/cmi2/scenes/Login.tscn b/cmi2/scenes/Login.tscn index 33114c70e4eea3a2f176eb1d3fcfd6b0acd22d20..82a3cf1b5d8bcc649fb9f3ac914a1896b53aab18 100644 --- a/cmi2/scenes/Login.tscn +++ b/cmi2/scenes/Login.tscn @@ -1,6 +1,6 @@ [gd_scene load_steps=8 format=2] -[ext_resource path="res://assets/Login/fond_test.jpg" type="Texture" id=1] +[ext_resource path="res://scenes/login.gd" type="Script" id=1] [ext_resource path="res://assets/Karla-Regular.ttf" type="DynamicFontData" id=2] [sub_resource type="DynamicFont" id=1] @@ -26,12 +26,12 @@ font_data = ExtResource( 2 ) [node name="Control" type="Control"] anchor_right = 1.0 anchor_bottom = 1.0 +script = ExtResource( 1 ) [node name="TextureRect" type="TextureRect" parent="."] anchor_right = 1.0 anchor_bottom = 1.0 margin_bottom = 4.0 -texture = ExtResource( 1 ) expand = true stretch_mode = 7 @@ -45,7 +45,7 @@ custom_constants/margin_top = 20 custom_constants/margin_left = 20 custom_constants/margin_bottom = 60 -[node name="VBoxContainer" type="VBoxContainer" parent="TextureRect/MarginContainer"] +[node name="pageLogin" type="VBoxContainer" parent="TextureRect/MarginContainer"] margin_left = 20.0 margin_top = 20.0 margin_right = 1004.0 @@ -54,14 +54,14 @@ size_flags_horizontal = 3 size_flags_vertical = 3 custom_constants/separation = 9 -[node name="title" type="Label" parent="TextureRect/MarginContainer/VBoxContainer"] +[node name="title" type="Label" parent="TextureRect/MarginContainer/pageLogin"] margin_right = 984.0 margin_bottom = 59.0 custom_fonts/font = SubResource( 1 ) text = "Musicarena" align = 1 -[node name="login" type="Label" parent="TextureRect/MarginContainer/VBoxContainer"] +[node name="login" type="Label" parent="TextureRect/MarginContainer/pageLogin"] margin_top = 68.0 margin_right = 984.0 margin_bottom = 127.0 @@ -69,7 +69,7 @@ custom_fonts/font = SubResource( 1 ) text = "Connexion" align = 1 -[node name="TextureRect" type="TextureRect" parent="TextureRect/MarginContainer/VBoxContainer"] +[node name="textureZone" type="TextureRect" parent="TextureRect/MarginContainer/pageLogin"] margin_left = 242.0 margin_top = 136.0 margin_right = 742.0 @@ -79,7 +79,7 @@ size_flags_vertical = 3 texture = SubResource( 3 ) stretch_mode = 1 -[node name="MarginContainer" type="MarginContainer" parent="TextureRect/MarginContainer/VBoxContainer/TextureRect"] +[node name="loginZone" type="MarginContainer" parent="TextureRect/MarginContainer/pageLogin/textureZone"] anchor_left = 0.5 anchor_top = 0.5 anchor_right = 0.5 @@ -95,40 +95,40 @@ custom_constants/margin_top = 30 custom_constants/margin_left = 50 custom_constants/margin_bottom = 30 -[node name="VBoxContainer" type="VBoxContainer" parent="TextureRect/MarginContainer/VBoxContainer/TextureRect/MarginContainer"] +[node name="VBoxContainer" type="VBoxContainer" parent="TextureRect/MarginContainer/pageLogin/textureZone/loginZone"] margin_left = 50.0 margin_top = 30.0 margin_right = 450.0 margin_bottom = 358.0 custom_constants/separation = 17 -[node name="username" type="Label" parent="TextureRect/MarginContainer/VBoxContainer/TextureRect/MarginContainer/VBoxContainer"] +[node name="username" type="Label" parent="TextureRect/MarginContainer/pageLogin/textureZone/loginZone/VBoxContainer"] margin_right = 400.0 margin_bottom = 25.0 custom_fonts/font = SubResource( 4 ) text = "Nom d'utilisateur" -[node name="name" type="LineEdit" parent="TextureRect/MarginContainer/VBoxContainer/TextureRect/MarginContainer/VBoxContainer"] +[node name="usernameArea" type="LineEdit" parent="TextureRect/MarginContainer/pageLogin/textureZone/loginZone/VBoxContainer"] margin_top = 42.0 margin_right = 400.0 margin_bottom = 66.0 placeholder_text = "Ecrire pseudo ici ..." -[node name="password" type="Label" parent="TextureRect/MarginContainer/VBoxContainer/TextureRect/MarginContainer/VBoxContainer"] +[node name="password" type="Label" parent="TextureRect/MarginContainer/pageLogin/textureZone/loginZone/VBoxContainer"] margin_top = 83.0 margin_right = 400.0 margin_bottom = 108.0 custom_fonts/font = SubResource( 4 ) text = "Mot de passe" -[node name="name2" type="LineEdit" parent="TextureRect/MarginContainer/VBoxContainer/TextureRect/MarginContainer/VBoxContainer"] +[node name="passwordArea" type="LineEdit" parent="TextureRect/MarginContainer/pageLogin/textureZone/loginZone/VBoxContainer"] margin_top = 125.0 margin_right = 400.0 margin_bottom = 149.0 secret = true placeholder_text = "Ecrire mot de passe ici ..." -[node name="Button" type="Button" parent="TextureRect/MarginContainer/VBoxContainer/TextureRect/MarginContainer/VBoxContainer"] +[node name="loginButton" type="Button" parent="TextureRect/MarginContainer/pageLogin/textureZone/loginZone/VBoxContainer"] margin_left = 141.0 margin_top = 166.0 margin_right = 258.0 @@ -137,14 +137,14 @@ size_flags_horizontal = 4 custom_fonts/font = SubResource( 5 ) text = "Connexion" -[node name="passwordforgot" type="Label" parent="TextureRect/MarginContainer/VBoxContainer/TextureRect/MarginContainer/VBoxContainer"] +[node name="passwordforgot" type="Label" parent="TextureRect/MarginContainer/pageLogin/textureZone/loginZone/VBoxContainer"] margin_top = 216.0 margin_right = 400.0 margin_bottom = 241.0 custom_fonts/font = SubResource( 4 ) text = "Mot de passe oublié ?" -[node name="suscribe" type="Label" parent="TextureRect/MarginContainer/VBoxContainer/TextureRect/MarginContainer/VBoxContainer"] +[node name="suscribe" type="Label" parent="TextureRect/MarginContainer/pageLogin/textureZone/loginZone/VBoxContainer"] margin_top = 258.0 margin_right = 400.0 margin_bottom = 283.0