Merge branch 'bidouille_de_scoui' into 'master'
Bidouille de scoui See merge request godot_sandbox/Test-client-godot!1
This commit is contained in:
commit
636d8c5b9f
6 changed files with 249 additions and 128 deletions
|
@ -1,10 +1,41 @@
|
|||
tool
|
||||
extends HBoxContainer
|
||||
|
||||
export(String) var action_name = ""
|
||||
#export(String) var action_name = ""
|
||||
export(String) var description = "Lorem ipsum."
|
||||
export(String) var config_file = "user://input.cfg"
|
||||
|
||||
export(String) var default_keyboard
|
||||
export(String) var default_keyboard_alt
|
||||
export(String) var default_joypad
|
||||
|
||||
var action_name
|
||||
var current_keyboard
|
||||
|
||||
func _ready():
|
||||
action_name = self.name
|
||||
current_keyboard = $keyboard
|
||||
load_from_config()
|
||||
|
||||
var key_found = false
|
||||
var key_alt_found = false
|
||||
for event in InputMap.get_action_list( action_name ):
|
||||
if event is InputEventKey:
|
||||
pass
|
||||
if not key_found:
|
||||
$keyboard.text = OS.get_scancode_string( event.get_scancode_with_modifiers() )
|
||||
key_found = true
|
||||
elif not key_alt_found:
|
||||
$keyboard_alt.text = OS.get_scancode_string( event.get_scancode_with_modifiers() )
|
||||
key_alt_found = true
|
||||
elif event is InputEventJoypadButton:
|
||||
$joypad.text = Input.get_joy_button_string( event.button_index )
|
||||
|
||||
$keyboard.connect( "pressed", self, "wait_for_input" )
|
||||
$keyboard_alt.connect( "pressed", self, "wait_for_input_alt" )
|
||||
$joypad.connect( "pressed", self, "wait_for_input" )
|
||||
|
||||
set_process_input(false)
|
||||
func _enter_tree():
|
||||
|
||||
if not self.has_node( "description" ):
|
||||
|
@ -25,6 +56,16 @@ func _enter_tree():
|
|||
new_button.size_flags_vertical = SIZE_EXPAND
|
||||
self.add_child( new_button )
|
||||
new_button.set_owner( self )
|
||||
|
||||
if not self.has_node( "keyboard_alt" ):
|
||||
var new_button = Button.new()
|
||||
new_button.name = "keyboard_alt"
|
||||
new_button.align = HALIGN_LEFT
|
||||
new_button.size_flags_horizontal = SIZE_EXPAND_FILL
|
||||
new_button.size_flags_vertical = SIZE_EXPAND
|
||||
self.add_child( new_button )
|
||||
new_button.set_owner( self )
|
||||
#
|
||||
#
|
||||
if not self.has_node( "joypad" ):
|
||||
var new_button_joypad = Button.new()
|
||||
|
@ -59,53 +100,75 @@ func get_event_with_modifier_from_string( scancode, type ):
|
|||
new_event.button_index = Input.get_joy_button_index_from_string( scancode )
|
||||
return new_event
|
||||
return null
|
||||
|
||||
|
||||
|
||||
func load_from_config():
|
||||
var config = ConfigFile.new()
|
||||
var err = config.load( config_file )
|
||||
if err:# Assuming that file is missing, generate default config
|
||||
for event in InputMap.get_action_list( action_name ):
|
||||
if event is InputEventKey:
|
||||
var scancode = OS.get_scancode_string( event.get_scancode_with_modifiers() )
|
||||
config.set_value("keyboard", action_name, scancode)
|
||||
elif event is InputEventJoypadButton:
|
||||
var joy_button_name = Input.get_joy_button_string( event.button_index )
|
||||
config.set_value("joypad", action_name, joy_button_name)
|
||||
config.save( config_file )
|
||||
else:
|
||||
var action_found = false
|
||||
for action in config.get_section_keys("keyboard"):
|
||||
if action == action_name:
|
||||
action_found = true
|
||||
var event = get_event_with_modifier_from_string( config.get_value("keyboard", action_name), "keyboard")
|
||||
for old_event in InputMap.get_action_list( action_name ):
|
||||
if old_event is InputEventKey:
|
||||
InputMap.action_erase_event(action_name, old_event)
|
||||
InputMap.action_add_event(action_name, event)
|
||||
break
|
||||
if not action_found:
|
||||
|
||||
# on initialise l'entrée, si elle n'existe pas déjà, par la valeur par defaut du projet.
|
||||
if not config.has_section_key("keyboard", action_name):
|
||||
for event in InputMap.get_action_list( action_name ):
|
||||
if event is InputEventKey:
|
||||
var scancode = OS.get_scancode_string( event.get_scancode_with_modifiers() )
|
||||
config.set_value("keyboard", action_name, scancode)
|
||||
|
||||
|
||||
action_found = false
|
||||
for action in config.get_section_keys("joypad"):
|
||||
if action == action_name:
|
||||
action_found = true
|
||||
var event = get_event_with_modifier_from_string( config.get_value("joypad", action_name), "joypad")
|
||||
for old_event in InputMap.get_action_list( action_name ):
|
||||
if old_event is InputEventJoypadButton:
|
||||
InputMap.action_erase_event(action_name, old_event)
|
||||
InputMap.action_add_event(action_name, event)
|
||||
|
||||
if not action_found:
|
||||
break
|
||||
# on initialise l'entrée alternative, si elle n'existe pas déjà, par la valeur par defaut du projet.
|
||||
var is_first = true
|
||||
if not config.has_section_key("keyboard_alt", action_name):
|
||||
for event in InputMap.get_action_list( action_name ):
|
||||
if not is_first and event is InputEventKey:
|
||||
var scancode = OS.get_scancode_string( event.get_scancode_with_modifiers() )
|
||||
config.set_value("keyboard_alt", action_name, scancode)
|
||||
break
|
||||
if is_first and event is InputEventKey:
|
||||
is_first = false
|
||||
|
||||
if not config.has_section_key("joypad", action_name):
|
||||
for event in InputMap.get_action_list( action_name ):
|
||||
if event is InputEventJoypadButton:
|
||||
var joy_button_name = Input.get_joy_button_string( event.button_index )
|
||||
config.set_value("joypad", action_name, joy_button_name)
|
||||
|
||||
var scancode = Input.get_joy_button_string( event.button_index )
|
||||
config.set_value("joypad", action_name, scancode)
|
||||
break
|
||||
|
||||
# On efface toutes les touches de clavier de l'InputMap correspondants à l'action en cours.
|
||||
for old_event in InputMap.get_action_list( action_name ):
|
||||
if old_event is InputEventKey or old_event is InputEventJoypadButton:
|
||||
InputMap.action_erase_event(action_name, old_event)
|
||||
|
||||
# on recupere les touches du fichier de config et on les ajoutes à l'input map.
|
||||
if config.has_section("keyboard"):
|
||||
var action_found = false
|
||||
for action in config.get_section_keys("keyboard"):
|
||||
if action == action_name:
|
||||
action_found = true
|
||||
var event = get_event_with_modifier_from_string( config.get_value("keyboard", action_name), "keyboard")
|
||||
InputMap.action_add_event(action_name, event)
|
||||
break
|
||||
|
||||
if config.has_section("keyboard_alt"):
|
||||
var action_found = false
|
||||
for action in config.get_section_keys("keyboard_alt"):
|
||||
if action == action_name:
|
||||
action_found = true
|
||||
var event = get_event_with_modifier_from_string( config.get_value("keyboard_alt", action_name), "keyboard")
|
||||
InputMap.action_add_event(action_name, event)
|
||||
break
|
||||
|
||||
if config.has_section("joypad"):
|
||||
var action_found = false
|
||||
for action in config.get_section_keys("joypad"):
|
||||
if action == action_name:
|
||||
action_found = true
|
||||
var event = get_event_with_modifier_from_string( config.get_value("joypad", action_name), "joypad")
|
||||
for old_event in InputMap.get_action_list( action_name ):
|
||||
if old_event is InputEventJoypadButton:
|
||||
InputMap.action_erase_event(action_name, old_event)
|
||||
InputMap.action_add_event(action_name, event)
|
||||
|
||||
config.save( config_file )
|
||||
|
||||
|
||||
|
@ -122,8 +185,12 @@ func save_to_config(section, key, value):
|
|||
|
||||
# Input management
|
||||
func wait_for_input():
|
||||
current_keyboard = $keyboard
|
||||
set_process_input(true)
|
||||
|
||||
func wait_for_input_alt():
|
||||
current_keyboard = $keyboard_alt
|
||||
set_process_input(true)
|
||||
# Input management
|
||||
|
||||
func _input(event):
|
||||
|
@ -139,23 +206,33 @@ func _input(event):
|
|||
get_tree().set_input_as_handled()
|
||||
set_process_input( false )
|
||||
|
||||
$keyboard.text = ""
|
||||
current_keyboard.text = ""
|
||||
if event.meta:
|
||||
$keyboard.text += "Meta+"
|
||||
current_keyboard.text += "Meta+"
|
||||
if event.control:
|
||||
$keyboard.text += "Control+"
|
||||
current_keyboard.text += "Control+"
|
||||
if event.alt:
|
||||
$keyboard.text += "Alt+"
|
||||
current_keyboard.text += "Alt+"
|
||||
if event.shift:
|
||||
$keyboard.text += "Shift+"
|
||||
$keyboard.text += input_string
|
||||
current_keyboard.text += "Shift+"
|
||||
current_keyboard.text += input_string
|
||||
|
||||
|
||||
var change_first_key = true
|
||||
if current_keyboard.name == "keyboard_alt":
|
||||
change_first_key = false
|
||||
var is_first_key = true
|
||||
for old_event in InputMap.get_action_list( action_name ):
|
||||
if old_event is InputEventKey:
|
||||
InputMap.action_erase_event(action_name, old_event)
|
||||
if old_event is InputEventKey:
|
||||
if is_first_key:
|
||||
if change_first_key:
|
||||
InputMap.action_erase_event(action_name, old_event)
|
||||
is_first_key = false
|
||||
elif not change_first_key:
|
||||
InputMap.action_erase_event(action_name, old_event)
|
||||
|
||||
InputMap.action_add_event(action_name, event)
|
||||
save_to_config("keyboard", action_name, $keyboard.text)
|
||||
save_to_config(current_keyboard.name, action_name, current_keyboard.text)
|
||||
|
||||
elif event is InputEventJoypadButton and not event.pressed and not event.is_echo():
|
||||
var input_string = Input.get_joy_button_string( event.button_index )
|
||||
|
@ -170,18 +247,3 @@ func _input(event):
|
|||
InputMap.action_add_event(action_name, event)
|
||||
save_to_config("joypad", action_name, $joypad.text)
|
||||
|
||||
|
||||
func _ready():
|
||||
|
||||
load_from_config()
|
||||
|
||||
for event in InputMap.get_action_list( action_name ):
|
||||
if event is InputEventKey:
|
||||
$keyboard.text = OS.get_scancode_string( event.get_scancode_with_modifiers() )
|
||||
elif event is InputEventJoypadButton:
|
||||
$joypad.text = Input.get_joy_button_string( event.button_index )
|
||||
|
||||
$keyboard.connect( "pressed", self, "wait_for_input" )
|
||||
$joypad.connect( "pressed", self, "wait_for_input" )
|
||||
|
||||
set_process_input(false)
|
|
@ -41,15 +41,19 @@ ui_free_cursor=[ Object(InputEventKey,"resource_local_to_scene":false,"resource_
|
|||
]
|
||||
move_up=[ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777232,"unicode":0,"echo":false,"script":null)
|
||||
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":12,"pressure":0.0,"pressed":false,"script":null)
|
||||
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":90,"unicode":0,"echo":false,"script":null)
|
||||
]
|
||||
move_down=[ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777234,"unicode":0,"echo":false,"script":null)
|
||||
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":13,"pressure":0.0,"pressed":false,"script":null)
|
||||
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":83,"unicode":0,"echo":false,"script":null)
|
||||
]
|
||||
move_left=[ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777231,"unicode":0,"echo":false,"script":null)
|
||||
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":14,"pressure":0.0,"pressed":false,"script":null)
|
||||
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":81,"unicode":0,"echo":false,"script":null)
|
||||
]
|
||||
move_right=[ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777233,"unicode":0,"echo":false,"script":null)
|
||||
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":15,"pressure":0.0,"pressed":false,"script":null)
|
||||
move_right=[ Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":15,"pressure":0.0,"pressed":false,"script":null)
|
||||
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777233,"unicode":0,"echo":false,"script":null)
|
||||
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":68,"unicode":0,"echo":false,"script":null)
|
||||
]
|
||||
jump=[ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":32,"unicode":0,"echo":false,"script":null)
|
||||
]
|
||||
|
|
|
@ -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" index="0"]
|
||||
[node name="HUD" type="MarginContainer"]
|
||||
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
|
|
|
@ -8,27 +8,34 @@ const ACTION_LIST = [ "ui_debug_window", "ui_music_controls", "hide_char", "ui_h
|
|||
const ACTION_TEXT = [ "show/hide debug", "show/hide music", "Hide/show character", "hide/show UI", "move up", "move down", "move left", "move right", "fly up", "fly down", "on/off flashlight", "pause/play", "reload the scene", "free/capture mouse cursor", "quit" ]
|
||||
|
||||
func _ready():
|
||||
# Called every time the node is added to the scene.
|
||||
# Initialization here
|
||||
var index = 0
|
||||
for action_name in ACTION_LIST:
|
||||
for event in InputMap.get_action_list( action_name ):
|
||||
if event is InputEventKey:
|
||||
var label = Label.new()
|
||||
label.name = action_name
|
||||
label.text = ACTION_TEXT[ index ] + ": " + OS.get_scancode_string( event.get_scancode_with_modifiers() )
|
||||
$MarginContainer/VBoxContainer.add_child( label )
|
||||
label.set_owner( $MarginContainer/VBoxContainer )
|
||||
index += 1
|
||||
|
||||
|
||||
_on_Refresh_pressed()
|
||||
|
||||
|
||||
func _on_Refresh_pressed():
|
||||
var index = 0
|
||||
for action_name in ACTION_LIST:
|
||||
var event_index = 0
|
||||
for event in InputMap.get_action_list( action_name ):
|
||||
if event is InputEventKey:
|
||||
get_node( "MarginContainer/VBoxContainer" ).get_node( action_name ).text = action_name + ": " + OS.get_scancode_string( event.get_scancode_with_modifiers() )
|
||||
if get_node( "ScrollContainer/MarginContainer/VBoxContainer" ).has_node( action_name+str(event_index) ):
|
||||
get_node( "ScrollContainer/MarginContainer/VBoxContainer" ).remove_child( get_node( "ScrollContainer/MarginContainer/VBoxContainer" ).get_node( action_name+str(event_index) ) )
|
||||
|
||||
var label = Label.new()
|
||||
label.name = action_name+str(event_index)
|
||||
label.text = ACTION_TEXT[ index ] + ": " + OS.get_scancode_string( event.get_scancode_with_modifiers() )
|
||||
$ScrollContainer/MarginContainer/VBoxContainer.add_child( label )
|
||||
label.set_owner( $ScrollContainer/MarginContainer/VBoxContainer )
|
||||
elif event is InputEventJoypadButton:
|
||||
if get_node( "ScrollContainer/MarginContainer/VBoxContainer" ).has_node( action_name+str(event_index) ):
|
||||
get_node( "ScrollContainer/MarginContainer/VBoxContainer" ).remove_child( get_node( "ScrollContainer/MarginContainer/VBoxContainer" ).get_node( action_name+str(event_index) ) )
|
||||
|
||||
var label = Label.new()
|
||||
label.name = action_name+str(event_index)
|
||||
label.text = ACTION_TEXT[ index ] + ": " + Input.get_joy_button_string( event.button_index )
|
||||
$ScrollContainer/MarginContainer/VBoxContainer.add_child( label )
|
||||
label.set_owner( $ScrollContainer/MarginContainer/VBoxContainer )
|
||||
event_index += 1
|
||||
index += 1
|
||||
|
||||
func _input( event ):
|
||||
if event.is_action_pressed( "ui_debug_window" ):
|
||||
|
|
|
@ -14,7 +14,7 @@ flags = 4
|
|||
gradient = SubResource( 1 )
|
||||
width = 2048
|
||||
|
||||
[node name="Help" type="MarginContainer"]
|
||||
[node name="Help" type="MarginContainer" index="0"]
|
||||
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
|
@ -41,8 +41,8 @@ anchor_left = 0.0
|
|||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_right = 135.0
|
||||
margin_bottom = 82.0
|
||||
margin_right = 256.0
|
||||
margin_bottom = 256.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
mouse_filter = 2
|
||||
|
@ -52,13 +52,35 @@ size_flags_vertical = 1
|
|||
texture = SubResource( 2 )
|
||||
_sections_unfolded = [ "Anchor", "Margin", "Size Flags", "Theme" ]
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="." index="1"]
|
||||
[node name="ScrollContainer" type="ScrollContainer" parent="." index="1"]
|
||||
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_right = 135.0
|
||||
margin_right = 256.0
|
||||
margin_bottom = 256.0
|
||||
rect_min_size = Vector2( 256, 256 )
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = true
|
||||
mouse_filter = 0
|
||||
mouse_default_cursor_shape = 0
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
scroll_horizontal_enabled = true
|
||||
scroll_horizontal = 0
|
||||
scroll_vertical_enabled = true
|
||||
scroll_vertical = 0
|
||||
scroll_deadzone = 0
|
||||
_sections_unfolded = [ "Rect", "Size Flags" ]
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="ScrollContainer" index="0"]
|
||||
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_right = 85.0
|
||||
margin_bottom = 82.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
|
@ -72,7 +94,7 @@ custom_constants/margin_left = 4
|
|||
custom_constants/margin_bottom = 4
|
||||
_sections_unfolded = [ "Anchor", "Margin", "custom_constants" ]
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer" index="0"]
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="ScrollContainer/MarginContainer" index="0"]
|
||||
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
|
@ -80,7 +102,7 @@ anchor_right = 0.0
|
|||
anchor_bottom = 0.0
|
||||
margin_left = 4.0
|
||||
margin_top = 4.0
|
||||
margin_right = 131.0
|
||||
margin_right = 81.0
|
||||
margin_bottom = 78.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
|
@ -91,13 +113,13 @@ size_flags_vertical = 1
|
|||
alignment = 0
|
||||
_sections_unfolded = [ "Size Flags" ]
|
||||
|
||||
[node name="Title" type="Label" parent="MarginContainer/VBoxContainer" index="0"]
|
||||
[node name="Title" type="Label" parent="ScrollContainer/MarginContainer/VBoxContainer" index="0"]
|
||||
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_right = 127.0
|
||||
margin_right = 77.0
|
||||
margin_bottom = 14.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
|
@ -110,14 +132,14 @@ percent_visible = 1.0
|
|||
lines_skipped = 0
|
||||
max_lines_visible = -1
|
||||
|
||||
[node name="FPS" type="Label" parent="MarginContainer/VBoxContainer" index="1"]
|
||||
[node name="FPS" type="Label" parent="ScrollContainer/MarginContainer/VBoxContainer" index="1"]
|
||||
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_top = 18.0
|
||||
margin_right = 127.0
|
||||
margin_right = 77.0
|
||||
margin_bottom = 32.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
|
@ -131,14 +153,14 @@ lines_skipped = 0
|
|||
max_lines_visible = -1
|
||||
script = ExtResource( 2 )
|
||||
|
||||
[node name="DefaultKey" type="Label" parent="MarginContainer/VBoxContainer" index="2"]
|
||||
[node name="DefaultKey" type="Label" parent="ScrollContainer/MarginContainer/VBoxContainer" index="2"]
|
||||
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_top = 36.0
|
||||
margin_right = 127.0
|
||||
margin_right = 77.0
|
||||
margin_bottom = 50.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
|
@ -151,14 +173,14 @@ percent_visible = 1.0
|
|||
lines_skipped = 0
|
||||
max_lines_visible = -1
|
||||
|
||||
[node name="Refresh" type="Button" parent="MarginContainer/VBoxContainer" index="3"]
|
||||
[node name="Refresh" type="Button" parent="ScrollContainer/MarginContainer/VBoxContainer" index="3"]
|
||||
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_top = 54.0
|
||||
margin_right = 127.0
|
||||
margin_right = 77.0
|
||||
margin_bottom = 74.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
|
@ -175,6 +197,6 @@ text = "refresh"
|
|||
flat = false
|
||||
align = 1
|
||||
|
||||
[connection signal="pressed" from="MarginContainer/VBoxContainer/Refresh" to="." method="_on_Refresh_pressed"]
|
||||
[connection signal="pressed" from="ScrollContainer/MarginContainer/VBoxContainer/Refresh" to="." method="_on_Refresh_pressed"]
|
||||
|
||||
|
||||
|
|
|
@ -640,7 +640,7 @@ anchor_top = 0.0
|
|||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_right = 1024.0
|
||||
margin_bottom = 445.0
|
||||
margin_bottom = 450.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = true
|
||||
mouse_filter = 0
|
||||
|
@ -661,7 +661,7 @@ anchor_top = 0.0
|
|||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_right = 1024.0
|
||||
margin_bottom = 445.0
|
||||
margin_bottom = 450.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
mouse_filter = 0
|
||||
|
@ -702,7 +702,7 @@ anchor_top = 0.0
|
|||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_right = 1022.0
|
||||
margin_bottom = 44.0
|
||||
margin_bottom = 39.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
mouse_filter = 1
|
||||
|
@ -714,9 +714,11 @@ script = ExtResource( 3 )
|
|||
__meta__ = {
|
||||
"_editor_icon": ExtResource( 4 )
|
||||
}
|
||||
action_name = "game_flashlight"
|
||||
description = "Active/désactive la lampe torche."
|
||||
config_file = "user://input.cfg"
|
||||
default_keyboard = null
|
||||
default_keyboard_alt = null
|
||||
default_joypad = null
|
||||
|
||||
[node name="hide_char" type="HBoxContainer" parent="Menus/TabContainer/Controles/ScrollContainer/TabContainer/Jeu" index="1"]
|
||||
|
||||
|
@ -724,8 +726,9 @@ anchor_left = 0.0
|
|||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_top = 43.0
|
||||
margin_right = 1022.0
|
||||
margin_bottom = 44.0
|
||||
margin_bottom = 82.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
mouse_filter = 1
|
||||
|
@ -737,13 +740,14 @@ script = ExtResource( 3 )
|
|||
__meta__ = {
|
||||
"_editor_icon": ExtResource( 4 )
|
||||
}
|
||||
action_name = "hide_char"
|
||||
description = "Affiche/cache le personnage."
|
||||
config_file = "user://input.cfg"
|
||||
default_keyboard = null
|
||||
default_keyboard_alt = null
|
||||
default_joypad = null
|
||||
|
||||
[node name="Interface" type="VBoxContainer" parent="Menus/TabContainer/Controles/ScrollContainer/TabContainer" index="1"]
|
||||
|
||||
editor/display_folded = true
|
||||
visible = false
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
|
@ -866,9 +870,11 @@ _sections_unfolded = [ "Focus" ]
|
|||
__meta__ = {
|
||||
"_editor_icon": ExtResource( 4 )
|
||||
}
|
||||
action_name = "ui_test"
|
||||
description = "Test."
|
||||
config_file = "user://input.cfg"
|
||||
default_keyboard = null
|
||||
default_keyboard_alt = null
|
||||
default_joypad = null
|
||||
|
||||
[node name="ui_pause" type="HBoxContainer" parent="Menus/TabContainer/Controles/ScrollContainer/TabContainer/Interface" index="2"]
|
||||
|
||||
|
@ -890,9 +896,11 @@ script = ExtResource( 3 )
|
|||
__meta__ = {
|
||||
"_editor_icon": ExtResource( 4 )
|
||||
}
|
||||
action_name = "ui_pause"
|
||||
description = "Play/Pause."
|
||||
config_file = "user://input.cfg"
|
||||
default_keyboard = null
|
||||
default_keyboard_alt = null
|
||||
default_joypad = null
|
||||
|
||||
[node name="ui_reload" type="HBoxContainer" parent="Menus/TabContainer/Controles/ScrollContainer/TabContainer/Interface" index="3"]
|
||||
|
||||
|
@ -914,9 +922,11 @@ script = ExtResource( 3 )
|
|||
__meta__ = {
|
||||
"_editor_icon": ExtResource( 4 )
|
||||
}
|
||||
action_name = "ui_reload"
|
||||
description = "Recharger la scène."
|
||||
config_file = "user://input.cfg"
|
||||
default_keyboard = null
|
||||
default_keyboard_alt = null
|
||||
default_joypad = null
|
||||
|
||||
[node name="ui_free_cursor" type="HBoxContainer" parent="Menus/TabContainer/Controles/ScrollContainer/TabContainer/Interface" index="4"]
|
||||
|
||||
|
@ -938,9 +948,11 @@ script = ExtResource( 3 )
|
|||
__meta__ = {
|
||||
"_editor_icon": ExtResource( 4 )
|
||||
}
|
||||
action_name = "ui_free_cursor"
|
||||
description = "Libéré/capturer le curseur."
|
||||
config_file = "user://input.cfg"
|
||||
default_keyboard = null
|
||||
default_keyboard_alt = null
|
||||
default_joypad = null
|
||||
|
||||
[node name="ui_quit" type="HBoxContainer" parent="Menus/TabContainer/Controles/ScrollContainer/TabContainer/Interface" index="5"]
|
||||
|
||||
|
@ -962,9 +974,11 @@ script = ExtResource( 3 )
|
|||
__meta__ = {
|
||||
"_editor_icon": ExtResource( 4 )
|
||||
}
|
||||
action_name = "ui_quit"
|
||||
description = "Quitter."
|
||||
config_file = "user://input.cfg"
|
||||
default_keyboard = null
|
||||
default_keyboard_alt = null
|
||||
default_joypad = null
|
||||
|
||||
[node name="Deplacement" type="VBoxContainer" parent="Menus/TabContainer/Controles/ScrollContainer/TabContainer" index="2"]
|
||||
|
||||
|
@ -994,7 +1008,7 @@ anchor_top = 0.0
|
|||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_right = 1022.0
|
||||
margin_bottom = 42.0
|
||||
margin_bottom = 37.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
mouse_filter = 1
|
||||
|
@ -1010,7 +1024,7 @@ anchor_top = 0.0
|
|||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_right = 338.0
|
||||
margin_bottom = 42.0
|
||||
margin_bottom = 37.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
mouse_filter = 2
|
||||
|
@ -1034,7 +1048,7 @@ anchor_bottom = 0.0
|
|||
margin_left = 342.0
|
||||
margin_top = 2.0
|
||||
margin_right = 680.0
|
||||
margin_bottom = 40.0
|
||||
margin_bottom = 35.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
mouse_filter = 2
|
||||
|
@ -1057,7 +1071,7 @@ anchor_bottom = 0.0
|
|||
margin_left = 684.0
|
||||
margin_top = 2.0
|
||||
margin_right = 1022.0
|
||||
margin_bottom = 40.0
|
||||
margin_bottom = 35.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
mouse_filter = 2
|
||||
|
@ -1077,9 +1091,9 @@ anchor_left = 0.0
|
|||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_top = 46.0
|
||||
margin_top = 41.0
|
||||
margin_right = 1022.0
|
||||
margin_bottom = 90.0
|
||||
margin_bottom = 80.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
mouse_filter = 1
|
||||
|
@ -1091,9 +1105,11 @@ script = ExtResource( 3 )
|
|||
__meta__ = {
|
||||
"_editor_icon": ExtResource( 4 )
|
||||
}
|
||||
action_name = "move_up"
|
||||
description = "Avancer."
|
||||
config_file = "user://input.cfg"
|
||||
default_keyboard = null
|
||||
default_keyboard_alt = null
|
||||
default_joypad = null
|
||||
|
||||
[node name="move_down" type="HBoxContainer" parent="Menus/TabContainer/Controles/ScrollContainer/TabContainer/Deplacement" index="2"]
|
||||
|
||||
|
@ -1101,9 +1117,9 @@ anchor_left = 0.0
|
|||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_top = 94.0
|
||||
margin_top = 84.0
|
||||
margin_right = 1022.0
|
||||
margin_bottom = 138.0
|
||||
margin_bottom = 123.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
mouse_filter = 1
|
||||
|
@ -1115,9 +1131,11 @@ script = ExtResource( 3 )
|
|||
__meta__ = {
|
||||
"_editor_icon": ExtResource( 4 )
|
||||
}
|
||||
action_name = "move_down"
|
||||
description = "Reculer."
|
||||
config_file = "user://input.cfg"
|
||||
default_keyboard = null
|
||||
default_keyboard_alt = null
|
||||
default_joypad = null
|
||||
|
||||
[node name="move_left" type="HBoxContainer" parent="Menus/TabContainer/Controles/ScrollContainer/TabContainer/Deplacement" index="3"]
|
||||
|
||||
|
@ -1125,9 +1143,9 @@ anchor_left = 0.0
|
|||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_top = 142.0
|
||||
margin_top = 127.0
|
||||
margin_right = 1022.0
|
||||
margin_bottom = 186.0
|
||||
margin_bottom = 166.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
mouse_filter = 1
|
||||
|
@ -1139,9 +1157,11 @@ script = ExtResource( 3 )
|
|||
__meta__ = {
|
||||
"_editor_icon": ExtResource( 4 )
|
||||
}
|
||||
action_name = "move_left"
|
||||
description = "Deplacement latéral gauche."
|
||||
config_file = "user://input.cfg"
|
||||
default_keyboard = null
|
||||
default_keyboard_alt = null
|
||||
default_joypad = null
|
||||
|
||||
[node name="move_right" type="HBoxContainer" parent="Menus/TabContainer/Controles/ScrollContainer/TabContainer/Deplacement" index="4"]
|
||||
|
||||
|
@ -1149,9 +1169,9 @@ anchor_left = 0.0
|
|||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_top = 190.0
|
||||
margin_top = 170.0
|
||||
margin_right = 1022.0
|
||||
margin_bottom = 234.0
|
||||
margin_bottom = 209.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
mouse_filter = 1
|
||||
|
@ -1163,9 +1183,11 @@ script = ExtResource( 3 )
|
|||
__meta__ = {
|
||||
"_editor_icon": ExtResource( 4 )
|
||||
}
|
||||
action_name = "move_right"
|
||||
description = "Deplacement latéral droit."
|
||||
config_file = "user://input.cfg"
|
||||
default_keyboard = null
|
||||
default_keyboard_alt = null
|
||||
default_joypad = null
|
||||
|
||||
[node name="fly_up" type="HBoxContainer" parent="Menus/TabContainer/Controles/ScrollContainer/TabContainer/Deplacement" index="5"]
|
||||
|
||||
|
@ -1173,9 +1195,9 @@ anchor_left = 0.0
|
|||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_top = 238.0
|
||||
margin_top = 213.0
|
||||
margin_right = 1022.0
|
||||
margin_bottom = 282.0
|
||||
margin_bottom = 252.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
mouse_filter = 1
|
||||
|
@ -1187,9 +1209,11 @@ script = ExtResource( 3 )
|
|||
__meta__ = {
|
||||
"_editor_icon": ExtResource( 4 )
|
||||
}
|
||||
action_name = "fly_up"
|
||||
description = "Deplacement vers le haut."
|
||||
config_file = "user://input.cfg"
|
||||
default_keyboard = null
|
||||
default_keyboard_alt = null
|
||||
default_joypad = null
|
||||
|
||||
[node name="fly_down" type="HBoxContainer" parent="Menus/TabContainer/Controles/ScrollContainer/TabContainer/Deplacement" index="6"]
|
||||
|
||||
|
@ -1197,9 +1221,9 @@ anchor_left = 0.0
|
|||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_top = 286.0
|
||||
margin_top = 256.0
|
||||
margin_right = 1022.0
|
||||
margin_bottom = 330.0
|
||||
margin_bottom = 295.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
mouse_filter = 1
|
||||
|
@ -1211,9 +1235,11 @@ script = ExtResource( 3 )
|
|||
__meta__ = {
|
||||
"_editor_icon": ExtResource( 4 )
|
||||
}
|
||||
action_name = "fly_down"
|
||||
description = "Deplacement vers le bas."
|
||||
config_file = "user://input.cfg"
|
||||
default_keyboard = null
|
||||
default_keyboard_alt = null
|
||||
default_joypad = null
|
||||
|
||||
[node name="ResetButton" type="Button" parent="Menus/TabContainer/Controles" index="1"]
|
||||
|
||||
|
|
Loading…
Reference in a new issue