WIP: creation d'une maquette de menu de login et de creation de personnage.
This commit is contained in:
parent
bc227ee904
commit
f800ec8c9a
16 changed files with 1260 additions and 210 deletions
|
@ -10,8 +10,8 @@ var current_rect_position = Vector2( -1, -1 )
|
|||
var is_resizing = false
|
||||
var is_moving = false
|
||||
|
||||
func _ready():
|
||||
|
||||
#func _ready():
|
||||
func _enter_tree():
|
||||
###
|
||||
# self
|
||||
self.size_flags_horizontal = SIZE_EXPAND
|
||||
|
@ -24,183 +24,210 @@ func _ready():
|
|||
###
|
||||
###
|
||||
# Background
|
||||
var background = NinePatchRect.new()
|
||||
background.name = "Background"
|
||||
var background_image = Image.new()
|
||||
if not background_image.load( "res://assets/GUI/images/bg2.jpg" ):
|
||||
print("Errur lors du chargement de l'image: res://assets/GUI/images/bg2.jpg" )
|
||||
background.texture = ImageTexture.new()
|
||||
background.texture.create_from_image( background_image )
|
||||
|
||||
background.axis_stretch_horizontal = NinePatchRect.AXIS_STRETCH_MODE_TILE
|
||||
background.axis_stretch_vertical = NinePatchRect.AXIS_STRETCH_MODE_TILE
|
||||
var background
|
||||
if not self.has_node( "Background" ):
|
||||
background = NinePatchRect.new()
|
||||
background.name = "Background"
|
||||
var background_image = Image.new()
|
||||
if not background_image.load( "res://assets/GUI/images/bg2.jpg" ):
|
||||
print("Erreur lors du chargement de l'image: res://assets/GUI/images/bg2.jpg" )
|
||||
background.texture = ImageTexture.new()
|
||||
background.texture.create_from_image( background_image )
|
||||
|
||||
background.size_flags_horizontal = SIZE_EXPAND_FILL
|
||||
background.size_flags_vertical = SIZE_EXPAND_FILL
|
||||
|
||||
background.region_rect = Rect2( 0, 0, 0, 0 )
|
||||
background.patch_margin_left = 4
|
||||
background.patch_margin_top = 32
|
||||
background.patch_margin_right = 4
|
||||
background.patch_margin_bottom = 3
|
||||
|
||||
background.self_modulate = background_color
|
||||
|
||||
self.add_child( background )
|
||||
background.set_owner( self )
|
||||
###
|
||||
background.axis_stretch_horizontal = NinePatchRect.AXIS_STRETCH_MODE_TILE
|
||||
background.axis_stretch_vertical = NinePatchRect.AXIS_STRETCH_MODE_TILE
|
||||
|
||||
background.size_flags_horizontal = SIZE_EXPAND_FILL
|
||||
background.size_flags_vertical = SIZE_EXPAND_FILL
|
||||
|
||||
background.region_rect = Rect2( 0, 0, 0, 0 )
|
||||
background.patch_margin_left = 4
|
||||
background.patch_margin_top = 32
|
||||
background.patch_margin_right = 4
|
||||
background.patch_margin_bottom = 3
|
||||
|
||||
background.self_modulate = background_color
|
||||
|
||||
self.add_child( background )
|
||||
background.set_owner( self )
|
||||
###
|
||||
|
||||
###
|
||||
var v_box_container
|
||||
# VBoxContainer
|
||||
var v_box_container = VBoxContainer.new()
|
||||
v_box_container.name = "VBoxContainer"
|
||||
v_box_container.size_flags_horizontal = SIZE_EXPAND_FILL
|
||||
v_box_container.size_flags_vertical = SIZE_EXPAND_FILL
|
||||
self.add_child( v_box_container )
|
||||
v_box_container.set_owner( self )
|
||||
###
|
||||
if not self.has_node( "VBoxContainer" ):
|
||||
v_box_container = VBoxContainer.new()
|
||||
v_box_container.name = "VBoxContainer"
|
||||
v_box_container.size_flags_horizontal = SIZE_EXPAND_FILL
|
||||
v_box_container.size_flags_vertical = SIZE_EXPAND_FILL
|
||||
self.add_child( v_box_container )
|
||||
v_box_container.set_owner( self )
|
||||
###
|
||||
|
||||
###
|
||||
# Header
|
||||
var header = MarginContainer.new()
|
||||
header.name = "Header"
|
||||
header.size_flags_horizontal = SIZE_EXPAND_FILL
|
||||
header.size_flags_vertical = SIZE_SHRINK_CENTER
|
||||
|
||||
header.set( "custom_constants/margin_right", 0)
|
||||
header.set( "custom_constants/margin_top", 4)
|
||||
header.set( "custom_constants/margin_left", 4)
|
||||
header.set( "custom_constants/margin_bottom", 4)
|
||||
|
||||
header.mouse_default_cursor_shape = CURSOR_MOVE
|
||||
v_box_container.add_child( header )
|
||||
header.set_owner( v_box_container )
|
||||
header.connect ( "gui_input", self, "_on_Header_gui_input" )
|
||||
###
|
||||
var header
|
||||
if not self.has_node( "Header" ):
|
||||
header = MarginContainer.new()
|
||||
header.name = "Header"
|
||||
header.size_flags_horizontal = SIZE_EXPAND_FILL
|
||||
header.size_flags_vertical = SIZE_SHRINK_CENTER
|
||||
|
||||
header.set( "custom_constants/margin_right", 0)
|
||||
header.set( "custom_constants/margin_top", 4)
|
||||
header.set( "custom_constants/margin_left", 4)
|
||||
header.set( "custom_constants/margin_bottom", 4)
|
||||
|
||||
if is_movable:
|
||||
header.mouse_default_cursor_shape = CURSOR_MOVE
|
||||
v_box_container.add_child( header )
|
||||
header.set_owner( v_box_container )
|
||||
header.connect ( "gui_input", self, "_on_Header_gui_input" )
|
||||
###
|
||||
###
|
||||
var header_box
|
||||
# Header/HBoxContainer
|
||||
var header_box = HBoxContainer.new()
|
||||
header_box.name = "HBoxContainer"
|
||||
header_box.size_flags_horizontal = SIZE_EXPAND_FILL
|
||||
header_box.size_flags_vertical = SIZE_EXPAND | SIZE_SHRINK_CENTER
|
||||
header.mouse_default_cursor_shape = CURSOR_MOVE
|
||||
header.add_child( header_box )
|
||||
header_box.set_owner( header )
|
||||
###
|
||||
if not self.has_node( "HBoxContainer" ):
|
||||
header_box = HBoxContainer.new()
|
||||
header_box.name = "HBoxContainer"
|
||||
header_box.size_flags_horizontal = SIZE_EXPAND_FILL
|
||||
header_box.size_flags_vertical = SIZE_EXPAND | SIZE_SHRINK_CENTER
|
||||
if is_movable:
|
||||
header.mouse_default_cursor_shape = CURSOR_MOVE
|
||||
header.add_child( header_box )
|
||||
header_box.set_owner( header )
|
||||
###
|
||||
###
|
||||
# Quit
|
||||
var quit_button = TextureButton.new()
|
||||
quit_button.name = "Quit"
|
||||
quit_button.size_flags_horizontal = SIZE_SHRINK_END
|
||||
quit_button.size_flags_vertical = SIZE_SHRINK_CENTER
|
||||
|
||||
var tex_quit = ImageTexture.new()
|
||||
var img_quit = Image.new()
|
||||
img_quit.load( "res://assets/GUI/images/button_quit.png" )
|
||||
tex_quit.create_from_image( img_quit )
|
||||
quit_button.texture_normal = tex_quit
|
||||
|
||||
header_box.add_child( quit_button )
|
||||
quit_button.set_owner( header_box )
|
||||
quit_button.connect ( "pressed", self, "_on_Quit_pressed" )
|
||||
###
|
||||
var quit_button
|
||||
if not self.has_node( "Quit" ):
|
||||
quit_button = TextureButton.new()
|
||||
quit_button.name = "Quit"
|
||||
quit_button.size_flags_horizontal = SIZE_SHRINK_END
|
||||
quit_button.size_flags_vertical = SIZE_SHRINK_CENTER
|
||||
|
||||
var tex_quit = ImageTexture.new()
|
||||
var img_quit = Image.new()
|
||||
img_quit.load( "res://assets/GUI/images/button_quit.png" )
|
||||
tex_quit.create_from_image( img_quit )
|
||||
quit_button.texture_normal = tex_quit
|
||||
|
||||
header_box.add_child( quit_button )
|
||||
quit_button.set_owner( header_box )
|
||||
quit_button.connect ( "pressed", self, "_on_Quit_pressed" )
|
||||
###
|
||||
# Close
|
||||
var close_button = TextureButton.new()
|
||||
close_button.name = "Close"
|
||||
close_button.size_flags_horizontal = SIZE_SHRINK_END
|
||||
close_button.size_flags_vertical = SIZE_SHRINK_CENTER
|
||||
|
||||
var tex_close = ImageTexture.new()
|
||||
var img_close = Image.new()
|
||||
img_close.load( "res://assets/GUI/images/button_close.png" )
|
||||
tex_close.create_from_image( img_close )
|
||||
close_button.texture_normal = tex_close
|
||||
|
||||
header_box.add_child( close_button )
|
||||
close_button.set_owner( header_box )
|
||||
close_button.connect ( "pressed", self, "_on_Close_pressed" )
|
||||
###
|
||||
if not self.has_node( "Close" ):
|
||||
close_button = TextureButton.new()
|
||||
close_button.name = "Close"
|
||||
close_button.size_flags_horizontal = SIZE_SHRINK_END
|
||||
close_button.size_flags_vertical = SIZE_SHRINK_CENTER
|
||||
|
||||
var tex_close = ImageTexture.new()
|
||||
var img_close = Image.new()
|
||||
img_close.load( "res://assets/GUI/images/button_close.png" )
|
||||
tex_close.create_from_image( img_close )
|
||||
close_button.texture_normal = tex_close
|
||||
|
||||
header_box.add_child( close_button )
|
||||
close_button.set_owner( header_box )
|
||||
close_button.connect ( "pressed", self, "_on_Close_pressed" )
|
||||
###
|
||||
# Open
|
||||
var open_button = TextureButton.new()
|
||||
open_button.name = "Open"
|
||||
open_button.size_flags_horizontal = SIZE_SHRINK_END
|
||||
open_button.size_flags_vertical = SIZE_SHRINK_CENTER
|
||||
|
||||
var tex_open = ImageTexture.new()
|
||||
var img_open = Image.new()
|
||||
img_open.load( "res://assets/GUI/images/button_open.png" )
|
||||
tex_open.create_from_image( img_open )
|
||||
open_button.texture_normal = tex_open
|
||||
open_button.visible = false
|
||||
header_box.add_child( open_button )
|
||||
open_button.set_owner( header_box )
|
||||
open_button.connect ( "pressed", self, "_on_Open_pressed" )
|
||||
###
|
||||
var open_button
|
||||
if not self.has_node( "Open" ):
|
||||
open_button = TextureButton.new()
|
||||
open_button.name = "Open"
|
||||
open_button.size_flags_horizontal = SIZE_SHRINK_END
|
||||
open_button.size_flags_vertical = SIZE_SHRINK_CENTER
|
||||
|
||||
var tex_open = ImageTexture.new()
|
||||
var img_open = Image.new()
|
||||
img_open.load( "res://assets/GUI/images/button_open.png" )
|
||||
tex_open.create_from_image( img_open )
|
||||
open_button.texture_normal = tex_open
|
||||
open_button.visible = false
|
||||
header_box.add_child( open_button )
|
||||
open_button.set_owner( header_box )
|
||||
open_button.connect ( "pressed", self, "_on_Open_pressed" )
|
||||
###
|
||||
###
|
||||
# Title Label
|
||||
var title_label = Label.new()
|
||||
title_label.name = "Label"
|
||||
title_label.text = title
|
||||
title_label.size_flags_horizontal = SIZE_EXPAND_FILL
|
||||
title_label.size_flags_vertical = SIZE_SHRINK_CENTER
|
||||
title_label.mouse_default_cursor_shape = CURSOR_MOVE
|
||||
header_box.add_child( title_label )
|
||||
title_label.set_owner( header_box )
|
||||
###
|
||||
var title_label
|
||||
if not self.has_node( "Label" ):
|
||||
title_label = Label.new()
|
||||
title_label.name = "Label"
|
||||
title_label.text = title
|
||||
title_label.size_flags_horizontal = SIZE_EXPAND_FILL
|
||||
title_label.size_flags_vertical = SIZE_SHRINK_CENTER
|
||||
if is_movable:
|
||||
title_label.mouse_default_cursor_shape = CURSOR_MOVE
|
||||
header_box.add_child( title_label )
|
||||
title_label.set_owner( header_box )
|
||||
###
|
||||
###
|
||||
# Content
|
||||
var content = MarginContainer.new()
|
||||
content.name = "Content"
|
||||
content.size_flags_horizontal = SIZE_EXPAND_FILL
|
||||
content.size_flags_vertical = SIZE_EXPAND_FILL
|
||||
content.set( "custom_constants/margin_right", 8)
|
||||
content.set( "custom_constants/margin_top", 8)
|
||||
content.set( "custom_constants/margin_left", 8)
|
||||
content.set( "custom_constants/margin_bottom", 8)
|
||||
v_box_container.add_child( content )
|
||||
content.set_owner( v_box_container )
|
||||
###
|
||||
var content
|
||||
if not self.has_node( "Content" ):
|
||||
content = MarginContainer.new()
|
||||
content.name = "Content"
|
||||
content.size_flags_horizontal = SIZE_EXPAND_FILL
|
||||
content.size_flags_vertical = SIZE_EXPAND_FILL
|
||||
content.set( "custom_constants/margin_right", 8)
|
||||
content.set( "custom_constants/margin_top", 8)
|
||||
content.set( "custom_constants/margin_left", 8)
|
||||
content.set( "custom_constants/margin_bottom", 8)
|
||||
v_box_container.add_child( content )
|
||||
content.set_owner( v_box_container )
|
||||
###
|
||||
###
|
||||
# Footer
|
||||
var footer = MarginContainer.new()
|
||||
footer.name = "Footer"
|
||||
footer.size_flags_horizontal = SIZE_FILL
|
||||
footer.size_flags_vertical = SIZE_FILL
|
||||
footer.set( "custom_constants/margin_right", 6)
|
||||
footer.set( "custom_constants/margin_top", 2)
|
||||
footer.set( "custom_constants/margin_left", 6)
|
||||
footer.set( "custom_constants/margin_bottom", 6)
|
||||
v_box_container.add_child( footer )
|
||||
footer.set_owner( v_box_container )
|
||||
###
|
||||
var footer
|
||||
if not self.has_node( "Footer" ):
|
||||
footer = MarginContainer.new()
|
||||
footer.name = "Footer"
|
||||
footer.size_flags_horizontal = SIZE_FILL
|
||||
footer.size_flags_vertical = SIZE_FILL
|
||||
footer.set( "custom_constants/margin_right", 6)
|
||||
footer.set( "custom_constants/margin_top", 2)
|
||||
footer.set( "custom_constants/margin_left", 6)
|
||||
footer.set( "custom_constants/margin_bottom", 6)
|
||||
v_box_container.add_child( footer )
|
||||
footer.set_owner( v_box_container )
|
||||
###
|
||||
###
|
||||
# Header/HBoxContainer
|
||||
var footer_box = HBoxContainer.new()
|
||||
footer_box.name = "HBoxContainer"
|
||||
footer_box.size_flags_horizontal = SIZE_FILL
|
||||
footer_box.size_flags_vertical = SIZE_FILL
|
||||
footer.add_child( footer_box )
|
||||
footer_box.set_owner( footer )
|
||||
###
|
||||
var footer_box
|
||||
if not self.has_node( "HBoxContainer" ):
|
||||
footer_box = HBoxContainer.new()
|
||||
footer_box.name = "HBoxContainer"
|
||||
footer_box.size_flags_horizontal = SIZE_FILL
|
||||
footer_box.size_flags_vertical = SIZE_FILL
|
||||
footer.add_child( footer_box )
|
||||
footer_box.set_owner( footer )
|
||||
###
|
||||
###
|
||||
# Open
|
||||
var resize_button = TextureButton.new()
|
||||
resize_button.name = "Resize"
|
||||
resize_button.size_flags_horizontal = SIZE_EXPAND | SIZE_SHRINK_END
|
||||
resize_button.size_flags_vertical = SIZE_EXPAND
|
||||
|
||||
var tex_resize = ImageTexture.new()
|
||||
var img_resize = Image.new()
|
||||
img_resize.load( "res://assets/GUI/images/button_resize.png" )
|
||||
tex_resize.create_from_image( img_resize )
|
||||
resize_button.texture_normal = tex_resize
|
||||
resize_button.mouse_default_cursor_shape = CURSOR_FDIAGSIZE
|
||||
resize_button.action_mode = Button.ACTION_MODE_BUTTON_PRESS
|
||||
footer_box.add_child( resize_button )
|
||||
resize_button.set_owner( footer_box )
|
||||
resize_button.connect ( "pressed", self, "_on_Resize_pressed" )
|
||||
###
|
||||
|
||||
var resize_button
|
||||
if not self.has_node( "Resize" ):
|
||||
resize_button = TextureButton.new()
|
||||
resize_button.name = "Resize"
|
||||
resize_button.size_flags_horizontal = SIZE_EXPAND | SIZE_SHRINK_END
|
||||
resize_button.size_flags_vertical = SIZE_EXPAND
|
||||
|
||||
var tex_resize = ImageTexture.new()
|
||||
var img_resize = Image.new()
|
||||
img_resize.load( "res://assets/GUI/images/button_resize.png" )
|
||||
tex_resize.create_from_image( img_resize )
|
||||
resize_button.texture_normal = tex_resize
|
||||
resize_button.mouse_default_cursor_shape = CURSOR_FDIAGSIZE
|
||||
resize_button.action_mode = Button.ACTION_MODE_BUTTON_PRESS
|
||||
footer_box.add_child( resize_button )
|
||||
resize_button.set_owner( footer_box )
|
||||
resize_button.connect ( "pressed", self, "_on_Resize_pressed" )
|
||||
###
|
||||
|
||||
current_rect_size = self.rect_min_size
|
||||
|
||||
if is_borderless:
|
||||
|
|
|
@ -85,6 +85,10 @@ fallback="fr"
|
|||
|
||||
file_logging/enable_file_logging=true
|
||||
|
||||
[node]
|
||||
|
||||
name_casing=2
|
||||
|
||||
[rendering]
|
||||
|
||||
quality/filters/use_nearest_mipmap_filter=true
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
extends MarginContainer
|
||||
|
||||
signal character_creation_finished
|
||||
|
||||
func _ready():
|
||||
$Home.show()
|
||||
$Settings.hide()
|
||||
#func _ready():
|
||||
# $Home.show()
|
||||
# $Settings.hide()
|
||||
|
||||
func _on_Home_setting_pressed():
|
||||
$Home.hide()
|
||||
|
@ -86,3 +87,14 @@ func hide_menu():
|
|||
|
||||
func _on_Settings_font_changed( value ):
|
||||
$HUD.get_theme().default_font.size = value
|
||||
|
||||
|
||||
func _on_login_menu_login_button_pressed():
|
||||
$login_menu.hide()
|
||||
$character_creation_menu.show()
|
||||
|
||||
|
||||
func _on_character_creation_menu_valid_button_pressed():
|
||||
$character_creation_menu.hide()
|
||||
pause()
|
||||
emit_signal( "character_creation_finished" )
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=9 format=2]
|
||||
[gd_scene load_steps=11 format=2]
|
||||
|
||||
[ext_resource path="res://scenes/GUI/GUI.gd" type="Script" id=1]
|
||||
[ext_resource path="res://scenes/GUI/HUD/HUD.tscn" type="PackedScene" id=2]
|
||||
|
@ -6,6 +6,8 @@
|
|||
[ext_resource path="res://scenes/GUI/Home/Home.tscn" type="PackedScene" id=4]
|
||||
[ext_resource path="res://scenes/GUI/Settings/Settings.tscn" type="PackedScene" id=5]
|
||||
[ext_resource path="res://scenes/GUI/Help/Help.tscn" type="PackedScene" id=6]
|
||||
[ext_resource path="res://scenes/GUI/character_creation/character_creation_menu.tscn" type="PackedScene" id=7]
|
||||
[ext_resource path="res://scenes/GUI/login/login_menu.tscn" type="PackedScene" id=8]
|
||||
|
||||
[sub_resource type="DynamicFont" id=1]
|
||||
|
||||
|
@ -31,21 +33,20 @@ mouse_filter = 1
|
|||
mouse_default_cursor_shape = 0
|
||||
size_flags_horizontal = 1
|
||||
size_flags_vertical = 1
|
||||
custom_constants/margin_right = 4
|
||||
custom_constants/margin_top = 4
|
||||
custom_constants/margin_left = 4
|
||||
custom_constants/margin_bottom = 4
|
||||
custom_constants/margin_right = 0
|
||||
custom_constants/margin_top = 0
|
||||
custom_constants/margin_left = 0
|
||||
custom_constants/margin_bottom = 0
|
||||
script = ExtResource( 1 )
|
||||
_sections_unfolded = [ "Margin", "Mouse", "Size Flags", "Theme", "custom_constants" ]
|
||||
|
||||
[node name="HUD" parent="." index="0" instance=ExtResource( 2 )]
|
||||
|
||||
visible = false
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_left = 4.0
|
||||
margin_top = 4.0
|
||||
margin_right = 1020.0
|
||||
margin_bottom = 596.0
|
||||
margin_right = 1024.0
|
||||
margin_bottom = 600.0
|
||||
theme = SubResource( 2 )
|
||||
|
||||
[node name="Home" parent="." index="1" instance=ExtResource( 4 )]
|
||||
|
@ -53,10 +54,8 @@ theme = SubResource( 2 )
|
|||
visible = false
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_left = 4.0
|
||||
margin_top = 4.0
|
||||
margin_right = 1020.0
|
||||
margin_bottom = 596.0
|
||||
margin_right = 1024.0
|
||||
margin_bottom = 600.0
|
||||
mouse_filter = 1
|
||||
_sections_unfolded = [ "Mouse", "Size Flags", "Visibility", "custom_constants" ]
|
||||
|
||||
|
@ -65,21 +64,33 @@ _sections_unfolded = [ "Mouse", "Size Flags", "Visibility", "custom_constants" ]
|
|||
visible = false
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_left = 4.0
|
||||
margin_top = 4.0
|
||||
margin_right = 1020.0
|
||||
margin_bottom = 596.0
|
||||
margin_right = 1024.0
|
||||
margin_bottom = 600.0
|
||||
mouse_filter = 1
|
||||
_sections_unfolded = [ "Mouse", "Size Flags", "Theme", "custom_constants" ]
|
||||
|
||||
[node name="Help" parent="." index="3" instance=ExtResource( 6 )]
|
||||
|
||||
margin_left = 4.0
|
||||
margin_top = 4.0
|
||||
margin_right = 89.0
|
||||
margin_bottom = 86.0
|
||||
visible = false
|
||||
margin_right = 256.0
|
||||
margin_bottom = 256.0
|
||||
_sections_unfolded = [ "Margin", "Mouse", "Size Flags", "custom_constants" ]
|
||||
|
||||
[node name="character_creation_menu" parent="." index="4" instance=ExtResource( 7 )]
|
||||
|
||||
visible = false
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_right = 1024.0
|
||||
margin_bottom = 600.0
|
||||
|
||||
[node name="login_menu" parent="." index="5" instance=ExtResource( 8 )]
|
||||
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_right = 1024.0
|
||||
margin_bottom = 600.0
|
||||
|
||||
[connection signal="play_pressed" from="Home" to="." method="_on_Home_play_pressed"]
|
||||
|
||||
[connection signal="setting_pressed" from="Home" to="." method="_on_Home_setting_pressed"]
|
||||
|
@ -88,4 +99,8 @@ _sections_unfolded = [ "Margin", "Mouse", "Size Flags", "custom_constants" ]
|
|||
|
||||
[connection signal="return_pressed" from="Settings" to="." method="_on_Settings_return_pressed"]
|
||||
|
||||
[connection signal="valid_button_pressed" from="character_creation_menu" to="." method="_on_character_creation_menu_valid_button_pressed"]
|
||||
|
||||
[connection signal="login_button_pressed" from="login_menu" to="." method="_on_login_menu_login_button_pressed"]
|
||||
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
[ext_resource path="res://scenes/GUI/HUD/trauma.gd" type="Script" id=12]
|
||||
[ext_resource path="res://scenes/GUI/HUD/douleur.gd" type="Script" id=13]
|
||||
|
||||
[node name="HUD" type="MarginContainer"]
|
||||
[node name="HUD" type="MarginContainer" index="0"]
|
||||
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
|
@ -85,6 +85,7 @@ _sections_unfolded = [ "Mouse", "Size Flags", "Theme", "Visibility", "custom_sty
|
|||
|
||||
[node name="Test" type="MarginContainer" parent="Windows" index="0"]
|
||||
|
||||
editor/display_folded = true
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
|
@ -407,10 +408,10 @@ anchor_left = 0.0
|
|||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_left = 246.0
|
||||
margin_top = 148.0
|
||||
margin_right = 493.0
|
||||
margin_bottom = 335.0
|
||||
margin_left = 266.0
|
||||
margin_top = 154.0
|
||||
margin_right = 513.0
|
||||
margin_bottom = 341.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
hint_tooltip = "Tooltips test."
|
||||
|
@ -764,7 +765,6 @@ _sections_unfolded = [ "Mouse", "Size Flags", "Textures" ]
|
|||
|
||||
[node name="Music" type="MarginContainer" parent="Windows" index="2"]
|
||||
|
||||
editor/display_folded = true
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
|
@ -1096,10 +1096,10 @@ anchor_left = 0.0
|
|||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_left = 534.0
|
||||
margin_top = 175.0
|
||||
margin_right = 986.0
|
||||
margin_bottom = 527.0
|
||||
margin_left = 759.0
|
||||
margin_top = 89.0
|
||||
margin_right = 997.0
|
||||
margin_bottom = 228.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
mouse_filter = 0
|
||||
|
@ -1113,8 +1113,8 @@ __meta__ = {
|
|||
is_movable = true
|
||||
is_resizable = true
|
||||
is_borderless = false
|
||||
title = "Window test !!!!!"
|
||||
background_color = Color( 0.496094, 0.496094, 0.496094, 1 )
|
||||
title = "Window test"
|
||||
background_color = Color( 0.808594, 0.808594, 0.808594, 1 )
|
||||
|
||||
[node name="Music" parent="." index="3" instance=ExtResource( 8 )]
|
||||
|
||||
|
|
|
@ -3,17 +3,6 @@ extends MarginContainer
|
|||
signal play_pressed
|
||||
signal setting_pressed
|
||||
|
||||
func _ready():
|
||||
# Called every time the node is added to the scene.
|
||||
# Initialization here
|
||||
pass
|
||||
|
||||
#func _process(delta):
|
||||
# # Called every frame. Delta is time since last frame.
|
||||
# # Update game logic here.
|
||||
# pass
|
||||
|
||||
|
||||
func _on_PlayButton_pressed():
|
||||
emit_signal("play_pressed" )
|
||||
|
||||
|
|
23
scenes/GUI/character_creation/character_creation_menu.gd
Normal file
23
scenes/GUI/character_creation/character_creation_menu.gd
Normal file
|
@ -0,0 +1,23 @@
|
|||
extends Control
|
||||
|
||||
var character
|
||||
|
||||
signal valid_button_pressed
|
||||
|
||||
func _ready():
|
||||
character = $v_box_container/h_box_container/center_container/character_creation_scene/mesh_instance
|
||||
|
||||
#func _process(delta):
|
||||
# # Called every frame. Delta is time since last frame.
|
||||
# # Update game logic here.
|
||||
# pass
|
||||
|
||||
|
||||
func _on_h_scroll_bar_value_changed(value):
|
||||
if value == 1:
|
||||
character.get_surface_material(0).albedo_color = Color( 1.0, 0.25, 0.25, 1.0 )
|
||||
else:
|
||||
character.get_surface_material(0).albedo_color = Color( 0.0, 0.0, 1.0, 1.0 )
|
||||
|
||||
func _on_valid_button_pressed():
|
||||
emit_signal( "valid_button_pressed" )
|
456
scenes/GUI/character_creation/character_creation_menu.tscn
Normal file
456
scenes/GUI/character_creation/character_creation_menu.tscn
Normal file
|
@ -0,0 +1,456 @@
|
|||
[gd_scene load_steps=5 format=2]
|
||||
|
||||
[ext_resource path="res://scenes/GUI/character_creation/character_creation_menu.gd" type="Script" id=1]
|
||||
[ext_resource path="res://scenes/GUI/character_creation/character_creation_scene.tscn" type="PackedScene" id=2]
|
||||
|
||||
[sub_resource type="Gradient" id=1]
|
||||
|
||||
offsets = PoolRealArray( 0 )
|
||||
colors = PoolColorArray( 0, 0, 0, 1 )
|
||||
|
||||
[sub_resource type="GradientTexture" id=2]
|
||||
|
||||
flags = 4
|
||||
gradient = SubResource( 1 )
|
||||
width = 2048
|
||||
|
||||
[node name="character_creation_menu" type="Control"]
|
||||
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.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 )
|
||||
|
||||
[node name="v_box_container" type="VBoxContainer" parent="." index="0"]
|
||||
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.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
|
||||
alignment = 0
|
||||
|
||||
[node name="header" type="CenterContainer" parent="v_box_container" index="0"]
|
||||
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_right = 1024.0
|
||||
margin_bottom = 14.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
mouse_filter = 0
|
||||
mouse_default_cursor_shape = 0
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 1
|
||||
use_top_left = false
|
||||
_sections_unfolded = [ "Size Flags" ]
|
||||
|
||||
[node name="label" type="Label" parent="v_box_container/header" index="0"]
|
||||
|
||||
modulate = Color( 1, 1, 1, 0.458549 )
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_left = 490.0
|
||||
margin_right = 534.0
|
||||
margin_bottom = 14.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
mouse_filter = 2
|
||||
mouse_default_cursor_shape = 0
|
||||
size_flags_horizontal = 1
|
||||
size_flags_vertical = 4
|
||||
text = "header"
|
||||
percent_visible = 1.0
|
||||
lines_skipped = 0
|
||||
max_lines_visible = -1
|
||||
_sections_unfolded = [ "Visibility" ]
|
||||
|
||||
[node name="h_box_container" type="HBoxContainer" parent="v_box_container" index="1"]
|
||||
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_top = 18.0
|
||||
margin_right = 1024.0
|
||||
margin_bottom = 572.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
mouse_filter = 1
|
||||
mouse_default_cursor_shape = 0
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
alignment = 0
|
||||
_sections_unfolded = [ "Size Flags" ]
|
||||
|
||||
[node name="margin_container" type="MarginContainer" parent="v_box_container/h_box_container" index="0"]
|
||||
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_top = 242.0
|
||||
margin_right = 510.0
|
||||
margin_bottom = 312.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
mouse_filter = 0
|
||||
mouse_default_cursor_shape = 0
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 6
|
||||
custom_constants/margin_right = 8
|
||||
custom_constants/margin_top = 8
|
||||
custom_constants/margin_left = 8
|
||||
custom_constants/margin_bottom = 8
|
||||
_sections_unfolded = [ "Material", "Size Flags", "custom_constants" ]
|
||||
|
||||
[node name="nine_patch_rect" type="NinePatchRect" parent="v_box_container/h_box_container/margin_container" index="0"]
|
||||
|
||||
modulate = Color( 1, 1, 1, 0.501961 )
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_left = 8.0
|
||||
margin_top = 8.0
|
||||
margin_right = 502.0
|
||||
margin_bottom = 62.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
mouse_filter = 2
|
||||
mouse_default_cursor_shape = 0
|
||||
size_flags_horizontal = 1
|
||||
size_flags_vertical = 1
|
||||
texture = SubResource( 2 )
|
||||
_sections_unfolded = [ "Size Flags", "Visibility" ]
|
||||
|
||||
[node name="margin_container" type="MarginContainer" parent="v_box_container/h_box_container/margin_container" index="1"]
|
||||
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_left = 8.0
|
||||
margin_top = 8.0
|
||||
margin_right = 502.0
|
||||
margin_bottom = 62.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
|
||||
custom_constants/margin_right = 8
|
||||
custom_constants/margin_top = 8
|
||||
custom_constants/margin_left = 8
|
||||
custom_constants/margin_bottom = 8
|
||||
_sections_unfolded = [ "custom_constants" ]
|
||||
|
||||
[node name="v_box_container" type="VBoxContainer" parent="v_box_container/h_box_container/margin_container/margin_container" index="0"]
|
||||
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_left = 8.0
|
||||
margin_top = 8.0
|
||||
margin_right = 486.0
|
||||
margin_bottom = 46.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
mouse_filter = 1
|
||||
mouse_default_cursor_shape = 0
|
||||
size_flags_horizontal = 7
|
||||
size_flags_vertical = 6
|
||||
alignment = 0
|
||||
_sections_unfolded = [ "Size Flags", "Theme", "custom_constants" ]
|
||||
|
||||
[node name="sexe_box" type="HBoxContainer" parent="v_box_container/h_box_container/margin_container/margin_container/v_box_container" index="0"]
|
||||
|
||||
editor/display_folded = true
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_right = 478.0
|
||||
margin_bottom = 14.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
|
||||
alignment = 0
|
||||
|
||||
[node name="label" type="Label" parent="v_box_container/h_box_container/margin_container/margin_container/v_box_container/sexe_box" index="0"]
|
||||
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_right = 237.0
|
||||
margin_bottom = 14.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
mouse_filter = 2
|
||||
mouse_default_cursor_shape = 0
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 4
|
||||
text = "Sexe: "
|
||||
align = 1
|
||||
percent_visible = 1.0
|
||||
lines_skipped = 0
|
||||
max_lines_visible = -1
|
||||
_sections_unfolded = [ "Size Flags" ]
|
||||
|
||||
[node name="h_box_container" type="HBoxContainer" parent="v_box_container/h_box_container/margin_container/margin_container/v_box_container/sexe_box" index="1"]
|
||||
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_left = 241.0
|
||||
margin_right = 478.0
|
||||
margin_bottom = 14.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
mouse_filter = 1
|
||||
mouse_default_cursor_shape = 0
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 1
|
||||
alignment = 0
|
||||
_sections_unfolded = [ "Size Flags" ]
|
||||
|
||||
[node name="M" type="Label" parent="v_box_container/h_box_container/margin_container/margin_container/v_box_container/sexe_box/h_box_container" index="0"]
|
||||
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_right = 12.0
|
||||
margin_bottom = 14.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
mouse_filter = 2
|
||||
mouse_default_cursor_shape = 0
|
||||
size_flags_horizontal = 1
|
||||
size_flags_vertical = 4
|
||||
text = "M"
|
||||
percent_visible = 1.0
|
||||
lines_skipped = 0
|
||||
max_lines_visible = -1
|
||||
|
||||
[node name="h_scroll_bar" type="HScrollBar" parent="v_box_container/h_box_container/margin_container/margin_container/v_box_container/sexe_box/h_box_container" index="1"]
|
||||
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_left = 16.0
|
||||
margin_right = 226.0
|
||||
margin_bottom = 12.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
mouse_filter = 0
|
||||
mouse_default_cursor_shape = 0
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 0
|
||||
min_value = 0.0
|
||||
max_value = 1.0
|
||||
step = 1.0
|
||||
page = 0.0
|
||||
value = 0.0
|
||||
exp_edit = false
|
||||
rounded = false
|
||||
custom_step = -1.0
|
||||
_sections_unfolded = [ "Size Flags", "custom_icons" ]
|
||||
|
||||
[node name="F" type="Label" parent="v_box_container/h_box_container/margin_container/margin_container/v_box_container/sexe_box/h_box_container" index="2"]
|
||||
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_left = 230.0
|
||||
margin_right = 237.0
|
||||
margin_bottom = 14.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
mouse_filter = 2
|
||||
mouse_default_cursor_shape = 0
|
||||
size_flags_horizontal = 1
|
||||
size_flags_vertical = 4
|
||||
text = "F"
|
||||
percent_visible = 1.0
|
||||
lines_skipped = 0
|
||||
max_lines_visible = -1
|
||||
|
||||
[node name="valid_button" type="Button" parent="v_box_container/h_box_container/margin_container/margin_container/v_box_container" index="1"]
|
||||
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_top = 18.0
|
||||
margin_right = 478.0
|
||||
margin_bottom = 38.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
focus_mode = 2
|
||||
mouse_filter = 0
|
||||
mouse_default_cursor_shape = 0
|
||||
size_flags_horizontal = 1
|
||||
size_flags_vertical = 1
|
||||
toggle_mode = false
|
||||
enabled_focus_mode = 2
|
||||
shortcut = null
|
||||
group = null
|
||||
text = "Valider"
|
||||
flat = false
|
||||
align = 1
|
||||
|
||||
[node name="center_container" type="CenterContainer" parent="v_box_container/h_box_container" index="1"]
|
||||
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_left = 514.0
|
||||
margin_right = 1024.0
|
||||
margin_bottom = 554.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
mouse_filter = 0
|
||||
mouse_default_cursor_shape = 0
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 1
|
||||
use_top_left = false
|
||||
_sections_unfolded = [ "Size Flags", "Visibility" ]
|
||||
|
||||
[node name="character_creation_scene" parent="v_box_container/h_box_container/center_container" index="0" instance=ExtResource( 2 )]
|
||||
|
||||
[node name="footer" type="CenterContainer" parent="v_box_container" index="2"]
|
||||
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_top = 576.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 = 3
|
||||
size_flags_vertical = 9
|
||||
use_top_left = false
|
||||
_sections_unfolded = [ "Size Flags" ]
|
||||
|
||||
[node name="name_box" type="HBoxContainer" parent="v_box_container/footer" index="0"]
|
||||
|
||||
editor/display_folded = true
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_left = 460.0
|
||||
margin_right = 564.0
|
||||
margin_bottom = 24.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
|
||||
alignment = 0
|
||||
|
||||
[node name="label" type="Label" parent="v_box_container/footer/name_box" index="0"]
|
||||
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_top = 5.0
|
||||
margin_right = 42.0
|
||||
margin_bottom = 19.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
mouse_filter = 2
|
||||
mouse_default_cursor_shape = 0
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 4
|
||||
text = "Name:"
|
||||
align = 1
|
||||
percent_visible = 1.0
|
||||
lines_skipped = 0
|
||||
max_lines_visible = -1
|
||||
_sections_unfolded = [ "Size Flags" ]
|
||||
|
||||
[node name="line_edit" type="LineEdit" parent="v_box_container/footer/name_box" index="1"]
|
||||
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_left = 46.0
|
||||
margin_right = 104.0
|
||||
margin_bottom = 24.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
focus_mode = 2
|
||||
mouse_filter = 0
|
||||
mouse_default_cursor_shape = 1
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 1
|
||||
focus_mode = 2
|
||||
context_menu_enabled = true
|
||||
placeholder_text = "Enter the character's name here."
|
||||
placeholder_alpha = 0.6
|
||||
caret_blink = false
|
||||
caret_blink_speed = 0.65
|
||||
caret_position = 0
|
||||
_sections_unfolded = [ "Placeholder", "Size Flags" ]
|
||||
|
||||
[node name="label" type="Label" parent="v_box_container/footer" index="1"]
|
||||
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_left = 493.0
|
||||
margin_top = 5.0
|
||||
margin_right = 531.0
|
||||
margin_bottom = 19.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
mouse_filter = 2
|
||||
mouse_default_cursor_shape = 0
|
||||
size_flags_horizontal = 1
|
||||
size_flags_vertical = 4
|
||||
text = "footer"
|
||||
percent_visible = 1.0
|
||||
lines_skipped = 0
|
||||
max_lines_visible = -1
|
||||
|
||||
[connection signal="value_changed" from="v_box_container/h_box_container/margin_container/margin_container/v_box_container/sexe_box/h_box_container/h_scroll_bar" to="." method="_on_h_scroll_bar_value_changed"]
|
||||
|
||||
[connection signal="pressed" from="v_box_container/h_box_container/margin_container/margin_container/v_box_container/valid_button" to="." method="_on_valid_button_pressed"]
|
||||
|
||||
|
98
scenes/GUI/character_creation/character_creation_scene.tscn
Normal file
98
scenes/GUI/character_creation/character_creation_scene.tscn
Normal file
|
@ -0,0 +1,98 @@
|
|||
[gd_scene load_steps=3 format=2]
|
||||
|
||||
[sub_resource type="CapsuleMesh" id=1]
|
||||
|
||||
custom_aabb = AABB( 0, 0, 0, 0, 0, 0 )
|
||||
radius = 1.0
|
||||
mid_height = 1.0
|
||||
radial_segments = 64
|
||||
rings = 8
|
||||
|
||||
[sub_resource type="SpatialMaterial" id=2]
|
||||
|
||||
render_priority = 0
|
||||
flags_transparent = false
|
||||
flags_unshaded = false
|
||||
flags_vertex_lighting = false
|
||||
flags_no_depth_test = false
|
||||
flags_use_point_size = false
|
||||
flags_world_triplanar = false
|
||||
flags_fixed_size = false
|
||||
flags_albedo_tex_force_srgb = false
|
||||
vertex_color_use_as_albedo = false
|
||||
vertex_color_is_srgb = false
|
||||
params_diffuse_mode = 0
|
||||
params_specular_mode = 0
|
||||
params_blend_mode = 0
|
||||
params_cull_mode = 0
|
||||
params_depth_draw_mode = 0
|
||||
params_line_width = 1.0
|
||||
params_point_size = 1.0
|
||||
params_billboard_mode = 0
|
||||
params_grow = false
|
||||
params_use_alpha_scissor = false
|
||||
albedo_color = Color( 0, 0, 1, 1 )
|
||||
metallic = 0.0
|
||||
metallic_specular = 0.5
|
||||
metallic_texture_channel = 0
|
||||
roughness = 0.0
|
||||
roughness_texture_channel = 0
|
||||
emission_enabled = false
|
||||
normal_enabled = false
|
||||
rim_enabled = false
|
||||
clearcoat_enabled = false
|
||||
anisotropy_enabled = false
|
||||
ao_enabled = false
|
||||
depth_enabled = false
|
||||
subsurf_scatter_enabled = false
|
||||
transmission_enabled = false
|
||||
refraction_enabled = false
|
||||
detail_enabled = false
|
||||
uv1_scale = Vector3( 1, 1, 1 )
|
||||
uv1_offset = Vector3( 0, 0, 0 )
|
||||
uv1_triplanar = false
|
||||
uv1_triplanar_sharpness = 1.0
|
||||
uv2_scale = Vector3( 1, 1, 1 )
|
||||
uv2_offset = Vector3( 0, 0, 0 )
|
||||
uv2_triplanar = false
|
||||
uv2_triplanar_sharpness = 1.0
|
||||
proximity_fade_enable = false
|
||||
distance_fade_enable = false
|
||||
_sections_unfolded = [ "Albedo" ]
|
||||
|
||||
[node name="character_creation_scene" type="Spatial"]
|
||||
|
||||
[node name="camera" type="Camera" parent="." index="0"]
|
||||
|
||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -3.46509, 3.17379, 5.93324 )
|
||||
keep_aspect = 1
|
||||
cull_mask = 1048575
|
||||
environment = null
|
||||
h_offset = 0.0
|
||||
v_offset = 0.0
|
||||
doppler_tracking = 0
|
||||
projection = 0
|
||||
current = false
|
||||
fov = 70.0
|
||||
size = 1.0
|
||||
near = 0.05
|
||||
far = 100.0
|
||||
|
||||
[node name="mesh_instance" type="MeshInstance" parent="." index="1"]
|
||||
|
||||
transform = Transform( 1, 0, 0, 0, -8.50716e-008, 1.94621, 0, -1, -4.37114e-008, 0, 2.95691, 0 )
|
||||
layers = 1
|
||||
material_override = null
|
||||
cast_shadow = 1
|
||||
extra_cull_margin = 0.0
|
||||
use_in_baked_light = false
|
||||
lod_min_distance = 0.0
|
||||
lod_min_hysteresis = 0.0
|
||||
lod_max_distance = 0.0
|
||||
lod_max_hysteresis = 0.0
|
||||
mesh = SubResource( 1 )
|
||||
skeleton = NodePath("..")
|
||||
material/0 = SubResource( 2 )
|
||||
_sections_unfolded = [ "Transform", "material" ]
|
||||
|
||||
|
6
scenes/GUI/login/login_menu.gd
Normal file
6
scenes/GUI/login/login_menu.gd
Normal file
|
@ -0,0 +1,6 @@
|
|||
extends Control
|
||||
|
||||
signal login_button_pressed
|
||||
|
||||
func _on_login_button_pressed():
|
||||
emit_signal( "login_button_pressed" )
|
342
scenes/GUI/login/login_menu.tscn
Normal file
342
scenes/GUI/login/login_menu.tscn
Normal file
|
@ -0,0 +1,342 @@
|
|||
[gd_scene load_steps=7 format=2]
|
||||
|
||||
[ext_resource path="res://scenes/GUI/login/login_menu.gd" type="Script" id=1]
|
||||
[ext_resource path="res://assets/GUI/images/new_launcher_bg_0-1.png" type="Texture" id=2]
|
||||
[ext_resource path="res://scenes/GUI/login/quit_button.gd" type="Script" id=3]
|
||||
|
||||
[sub_resource type="CanvasItemMaterial" id=1]
|
||||
|
||||
render_priority = 0
|
||||
blend_mode = 0
|
||||
light_mode = 0
|
||||
|
||||
[sub_resource type="Gradient" id=2]
|
||||
|
||||
offsets = PoolRealArray( 0, 0.5, 1 )
|
||||
colors = PoolColorArray( 0.417969, 0.417969, 0.417969, 1, 0, 0, 0, 1, 0.415686, 0.415686, 0.415686, 1 )
|
||||
|
||||
[sub_resource type="GradientTexture" id=3]
|
||||
|
||||
flags = 4
|
||||
gradient = SubResource( 2 )
|
||||
width = 2048
|
||||
|
||||
[node name="login_menu" type="Control"]
|
||||
|
||||
material = SubResource( 1 )
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.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 = [ "Material", "Theme", "Visibility", "custom_styles" ]
|
||||
|
||||
[node name="texture_rect" type="TextureRect" parent="." index="0"]
|
||||
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.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="center_container" type="CenterContainer" parent="." index="1"]
|
||||
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.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
|
||||
use_top_left = false
|
||||
|
||||
[node name="bacground_control" type="NinePatchRect" parent="center_container" index="0"]
|
||||
|
||||
modulate = Color( 1, 1, 1, 0.501961 )
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_left = 338.0
|
||||
margin_top = 126.0
|
||||
margin_right = 686.0
|
||||
margin_bottom = 474.0
|
||||
rect_min_size = Vector2( 348, 348 )
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
mouse_filter = 2
|
||||
mouse_default_cursor_shape = 0
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
texture = SubResource( 3 )
|
||||
_sections_unfolded = [ "Patch Margin", "Rect", "Size Flags", "Theme", "Visibility", "custom_styles" ]
|
||||
|
||||
[node name="v_box_container" type="VBoxContainer" parent="center_container" index="1"]
|
||||
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_left = 384.0
|
||||
margin_top = 170.0
|
||||
margin_right = 640.0
|
||||
margin_bottom = 429.0
|
||||
rect_min_size = Vector2( 256, 256 )
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
mouse_filter = 1
|
||||
mouse_default_cursor_shape = 0
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
custom_constants/separation = 24
|
||||
alignment = 0
|
||||
_sections_unfolded = [ "Focus", "Rect", "Size Flags", "custom_constants" ]
|
||||
|
||||
[node name="login_box" type="HBoxContainer" parent="center_container/v_box_container" index="0"]
|
||||
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_right = 256.0
|
||||
margin_bottom = 24.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
|
||||
alignment = 0
|
||||
|
||||
[node name="login_label" type="Label" parent="center_container/v_box_container/login_box" index="0"]
|
||||
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_top = 5.0
|
||||
margin_right = 92.0
|
||||
margin_bottom = 19.0
|
||||
rect_min_size = Vector2( 92, 0 )
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
mouse_filter = 2
|
||||
mouse_default_cursor_shape = 0
|
||||
size_flags_horizontal = 1
|
||||
size_flags_vertical = 4
|
||||
text = "Login: "
|
||||
align = 2
|
||||
percent_visible = 1.0
|
||||
lines_skipped = 0
|
||||
max_lines_visible = -1
|
||||
_sections_unfolded = [ "Rect", "Size Flags" ]
|
||||
|
||||
[node name="login_input" type="LineEdit" parent="center_container/v_box_container/login_box" index="1"]
|
||||
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_left = 96.0
|
||||
margin_right = 256.0
|
||||
margin_bottom = 24.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
focus_mode = 2
|
||||
mouse_filter = 0
|
||||
mouse_default_cursor_shape = 1
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 1
|
||||
focus_mode = 2
|
||||
context_menu_enabled = true
|
||||
placeholder_text = "Enter your id here."
|
||||
placeholder_alpha = 0.6
|
||||
caret_blink = true
|
||||
caret_blink_speed = 0.65
|
||||
caret_position = 0
|
||||
_sections_unfolded = [ "Caret", "Placeholder", "Rect", "Size Flags" ]
|
||||
|
||||
[node name="password_box" type="HBoxContainer" parent="center_container/v_box_container" index="1"]
|
||||
|
||||
editor/display_folded = true
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_top = 48.0
|
||||
margin_right = 256.0
|
||||
margin_bottom = 72.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
|
||||
alignment = 0
|
||||
|
||||
[node name="password_label" type="Label" parent="center_container/v_box_container/password_box" index="0"]
|
||||
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_top = 5.0
|
||||
margin_right = 92.0
|
||||
margin_bottom = 19.0
|
||||
rect_min_size = Vector2( 92, 0 )
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
mouse_filter = 2
|
||||
mouse_default_cursor_shape = 0
|
||||
size_flags_horizontal = 1
|
||||
size_flags_vertical = 4
|
||||
text = "Password: "
|
||||
align = 2
|
||||
percent_visible = 1.0
|
||||
lines_skipped = 0
|
||||
max_lines_visible = -1
|
||||
_sections_unfolded = [ "Rect", "Size Flags" ]
|
||||
|
||||
[node name="password_input" type="LineEdit" parent="center_container/v_box_container/password_box" index="1"]
|
||||
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_left = 96.0
|
||||
margin_right = 256.0
|
||||
margin_bottom = 24.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
focus_mode = 2
|
||||
mouse_filter = 0
|
||||
mouse_default_cursor_shape = 1
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 1
|
||||
secret = true
|
||||
focus_mode = 2
|
||||
context_menu_enabled = true
|
||||
placeholder_text = "Enter your password here."
|
||||
placeholder_alpha = 0.6
|
||||
caret_blink = true
|
||||
caret_blink_speed = 0.65
|
||||
caret_position = 0
|
||||
_sections_unfolded = [ "Caret", "Placeholder", "Rect", "Size Flags" ]
|
||||
|
||||
[node name="login_button" type="Button" parent="center_container/v_box_container" index="2"]
|
||||
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_top = 96.0
|
||||
margin_right = 256.0
|
||||
margin_bottom = 116.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
focus_mode = 2
|
||||
mouse_filter = 0
|
||||
mouse_default_cursor_shape = 0
|
||||
size_flags_horizontal = 1
|
||||
size_flags_vertical = 1
|
||||
toggle_mode = false
|
||||
enabled_focus_mode = 2
|
||||
shortcut = null
|
||||
group = null
|
||||
text = "Login"
|
||||
flat = false
|
||||
align = 1
|
||||
_sections_unfolded = [ "Rect" ]
|
||||
|
||||
[node name="register_button" type="Button" parent="center_container/v_box_container" index="3"]
|
||||
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_top = 140.0
|
||||
margin_right = 256.0
|
||||
margin_bottom = 160.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
focus_mode = 2
|
||||
mouse_filter = 0
|
||||
mouse_default_cursor_shape = 0
|
||||
size_flags_horizontal = 1
|
||||
size_flags_vertical = 1
|
||||
toggle_mode = false
|
||||
enabled_focus_mode = 2
|
||||
shortcut = null
|
||||
group = null
|
||||
text = "Register"
|
||||
flat = false
|
||||
align = 1
|
||||
|
||||
[node name="quit_button" type="Button" parent="center_container/v_box_container" index="4"]
|
||||
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_top = 184.0
|
||||
margin_right = 256.0
|
||||
margin_bottom = 204.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
focus_mode = 2
|
||||
mouse_filter = 0
|
||||
mouse_default_cursor_shape = 0
|
||||
size_flags_horizontal = 1
|
||||
size_flags_vertical = 1
|
||||
toggle_mode = false
|
||||
enabled_focus_mode = 2
|
||||
shortcut = null
|
||||
group = null
|
||||
text = "Quit"
|
||||
flat = false
|
||||
align = 1
|
||||
script = ExtResource( 3 )
|
||||
|
||||
[node name="error_label" type="Label" parent="center_container/v_box_container" index="5"]
|
||||
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_top = 228.0
|
||||
margin_right = 256.0
|
||||
margin_bottom = 259.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
mouse_filter = 2
|
||||
mouse_default_cursor_shape = 0
|
||||
size_flags_horizontal = 1
|
||||
size_flags_vertical = 4
|
||||
text = "Ceci n'est qu'une maquette, cliquer sur login pour passer a la suite."
|
||||
autowrap = true
|
||||
percent_visible = 1.0
|
||||
lines_skipped = 0
|
||||
max_lines_visible = -1
|
||||
|
||||
[connection signal="pressed" from="center_container/v_box_container/login_button" to="." method="_on_login_button_pressed"]
|
||||
|
||||
[connection signal="pressed" from="center_container/v_box_container/quit_button" to="center_container/v_box_container/quit_button" method="_on_quit_button_pressed"]
|
||||
|
||||
|
4
scenes/GUI/login/quit_button.gd
Normal file
4
scenes/GUI/login/quit_button.gd
Normal file
|
@ -0,0 +1,4 @@
|
|||
extends Button
|
||||
|
||||
func _on_quit_button_pressed():
|
||||
get_tree().quit()
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=4 format=2]
|
||||
[gd_scene load_steps=5 format=2]
|
||||
|
||||
[ext_resource path="res://scenes/Game/Character/Character.gd" type="Script" id=1]
|
||||
|
||||
|
@ -15,6 +15,57 @@ radial_segments = 64
|
|||
rings = 32
|
||||
is_hemisphere = false
|
||||
|
||||
[sub_resource type="SpatialMaterial" id=3]
|
||||
|
||||
render_priority = 0
|
||||
flags_transparent = false
|
||||
flags_unshaded = false
|
||||
flags_vertex_lighting = false
|
||||
flags_no_depth_test = false
|
||||
flags_use_point_size = false
|
||||
flags_world_triplanar = false
|
||||
flags_fixed_size = false
|
||||
flags_albedo_tex_force_srgb = false
|
||||
vertex_color_use_as_albedo = false
|
||||
vertex_color_is_srgb = false
|
||||
params_diffuse_mode = 0
|
||||
params_specular_mode = 0
|
||||
params_blend_mode = 0
|
||||
params_cull_mode = 0
|
||||
params_depth_draw_mode = 0
|
||||
params_line_width = 1.0
|
||||
params_point_size = 1.0
|
||||
params_billboard_mode = 0
|
||||
params_grow = false
|
||||
params_use_alpha_scissor = false
|
||||
albedo_color = Color( 1, 1, 1, 1 )
|
||||
metallic = 0.0
|
||||
metallic_specular = 0.5
|
||||
metallic_texture_channel = 0
|
||||
roughness = 0.0
|
||||
roughness_texture_channel = 0
|
||||
emission_enabled = false
|
||||
normal_enabled = false
|
||||
rim_enabled = false
|
||||
clearcoat_enabled = false
|
||||
anisotropy_enabled = false
|
||||
ao_enabled = false
|
||||
depth_enabled = false
|
||||
subsurf_scatter_enabled = false
|
||||
transmission_enabled = false
|
||||
refraction_enabled = false
|
||||
detail_enabled = false
|
||||
uv1_scale = Vector3( 1, 1, 1 )
|
||||
uv1_offset = Vector3( 0, 0, 0 )
|
||||
uv1_triplanar = false
|
||||
uv1_triplanar_sharpness = 1.0
|
||||
uv2_scale = Vector3( 1, 1, 1 )
|
||||
uv2_offset = Vector3( 0, 0, 0 )
|
||||
uv2_triplanar = false
|
||||
uv2_triplanar_sharpness = 1.0
|
||||
proximity_fade_enable = false
|
||||
distance_fade_enable = false
|
||||
|
||||
[node name="Character" type="KinematicBody"]
|
||||
|
||||
transform = Transform( 1, 0, 0, 0, 0.589355, 0, 0, 0, 1, -0.0409546, 1.06519, 6.02408 )
|
||||
|
@ -74,7 +125,8 @@ lod_max_distance = 0.0
|
|||
lod_max_hysteresis = 0.0
|
||||
mesh = SubResource( 2 )
|
||||
skeleton = NodePath("..")
|
||||
material/0 = null
|
||||
material/0 = SubResource( 3 )
|
||||
_sections_unfolded = [ "material" ]
|
||||
|
||||
[node name="Flashlight" type="SpotLight" parent="MeshInstance" index="0"]
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -10,7 +10,16 @@ func _ready():
|
|||
change_title()
|
||||
get_tree().get_root().connect("size_changed", self, "on_window_size_changed")
|
||||
|
||||
$GUI.pause()
|
||||
# $GUI.pause()
|
||||
$GUI/character_creation_menu/v_box_container/h_box_container/center_container/character_creation_scene/camera.make_current()
|
||||
$Game.hide()
|
||||
|
||||
# BugGodot?: Meme si tous les nodes parent sont caché les gridmaps s'affichent quand meme :/
|
||||
# ce qui les rends quelque peu inutilisables.
|
||||
$Game/World/GridMaps/Ground.hide()
|
||||
$Game/World/GridMaps/wall.hide()
|
||||
$Game/World/GridMaps/ceilling.hide()
|
||||
|
||||
|
||||
func _process(delta):
|
||||
pass
|
||||
|
@ -24,4 +33,13 @@ func change_title():
|
|||
if title_node and not title_node.text.strip_edges() == "":
|
||||
title = title_node.text.strip_edges()
|
||||
title += " (" + String(OS.get_window_size().x) + "x" + String(OS.get_window_size().y) + ")"
|
||||
OS.set_window_title( title )
|
||||
OS.set_window_title( title )
|
||||
|
||||
func _on_GUI_character_creation_finished():
|
||||
$Game.show()
|
||||
$Game/World/GridMaps/Ground.show()
|
||||
$Game/World/GridMaps/wall.show()
|
||||
$Game/World/GridMaps/ceilling.show()
|
||||
$Game/Character/Camera_rotation_helper/Camera.make_current()
|
||||
$GUI/character_creation_menu/v_box_container/h_box_container/center_container/character_creation_scene.hide()
|
||||
$Game/Character/MeshInstance.get_surface_material(0).albedo_color = $GUI/character_creation_menu/v_box_container/h_box_container/center_container/character_creation_scene/mesh_instance.get_surface_material(0).albedo_color
|
|
@ -4,13 +4,15 @@
|
|||
[ext_resource path="res://scenes/Game/Game.tscn" type="PackedScene" id=2]
|
||||
[ext_resource path="res://scenes/GUI/GUI.tscn" type="PackedScene" id=3]
|
||||
|
||||
[node name="Main" type="Node"]
|
||||
[node name="Main" type="Node" index="0"]
|
||||
|
||||
script = ExtResource( 1 )
|
||||
_sections_unfolded = [ "Pause" ]
|
||||
|
||||
[node name="Game" parent="." index="0" instance=ExtResource( 2 )]
|
||||
|
||||
visible = false
|
||||
|
||||
[node name="GUI" parent="." index="1" instance=ExtResource( 3 )]
|
||||
|
||||
pause_mode = 2
|
||||
|
@ -18,4 +20,6 @@ size_flags_horizontal = 0
|
|||
size_flags_vertical = 0
|
||||
_sections_unfolded = [ "Margin", "Mouse", "Pause", "Size Flags", "Theme", "custom_constants" ]
|
||||
|
||||
[connection signal="character_creation_finished" from="GUI" to="." method="_on_GUI_character_creation_finished"]
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue