petit nettoyage de code commenté obsolete.
This commit is contained in:
parent
d573beff97
commit
97c99cc0ef
3 changed files with 1 additions and 16 deletions
|
@ -54,9 +54,7 @@ func _enter_tree():
|
|||
background.size_flags_horizontal = SIZE_EXPAND_FILL
|
||||
background.size_flags_vertical = SIZE_EXPAND_FILL
|
||||
|
||||
# background.rect_clip_content = true
|
||||
|
||||
# background.region_rect = Rect2( 0, 0, 0, 0 )
|
||||
background.region_rect = Rect2( 0, 0, 0, 0 )
|
||||
background.patch_margin_left = 4
|
||||
background.patch_margin_top = 32
|
||||
background.patch_margin_right = 4
|
||||
|
@ -327,12 +325,6 @@ func _input( event ):
|
|||
if event is InputEventMouseMotion and is_resizing:
|
||||
var delta = event.relative
|
||||
self.rect_size += delta
|
||||
#
|
||||
# var mouse_position = get_viewport().get_mouse_position()
|
||||
# var size_modulo = Vector2( int(self.rect_size.x) % 2, int(self.rect_size.y) % 2 )
|
||||
# self.rect_size -= size_modulo
|
||||
# get_viewport().warp_mouse( mouse_position - size_modulo )
|
||||
|
||||
|
||||
func check_if_clicked( event ):
|
||||
if not is_moving and event is InputEventMouseButton and event.is_pressed() and not event.is_echo() and event.button_index == 1 :
|
||||
|
@ -350,8 +342,6 @@ func _on_Header_gui_input( event ):
|
|||
if event is InputEventMouseMotion and is_moving:
|
||||
var delta = event.relative
|
||||
self.rect_position += delta
|
||||
# self.rect_position -= Vector2( int(self.rect_size.x) % 2, int(self.rect_size.y) % 2 )
|
||||
# get_viewport().warp_mouse( get_viewport().get_mouse_position() - Vector2( int(get_viewport().get_mouse_position().x) % 2, int(get_viewport().get_mouse_position().y) % 2 ) )
|
||||
|
||||
func _on_window_gui_input( event ):
|
||||
check_if_clicked( event )
|
||||
|
|
|
@ -140,7 +140,6 @@ _sections_unfolded = [ "Axis Stretch", "Grow Direction", "Material", "Mouse", "P
|
|||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="Windows/Test" index="1"]
|
||||
|
||||
editor/display_folded = true
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
|
|
|
@ -155,7 +155,3 @@ func save_to_file( config_file ):
|
|||
|
||||
func _on_window_gui_input( event ):
|
||||
check_if_clicked( event )
|
||||
|
||||
func _on_footer_gui_input( event ):
|
||||
# check_if_clicked( event )
|
||||
pass
|
Loading…
Reference in a new issue