Divers petit fix mineurs.
This commit is contained in:
parent
a6bc1ee1a9
commit
f4ec7bb1cb
1 changed files with 15 additions and 15 deletions
|
@ -78,7 +78,7 @@ func _enter_tree():
|
|||
background = NinePatchRect.new()
|
||||
background.name = "background"
|
||||
var background_image = Image.new()
|
||||
if not background_image.load( background_texture ):
|
||||
if not background_image.load( background_texture ) == OK :
|
||||
print("Erreur lors du chargement de l'image: "+background_texture )
|
||||
background.texture = ImageTexture.new()
|
||||
background.texture.create_from_image( background_image )
|
||||
|
@ -98,7 +98,7 @@ func _enter_tree():
|
|||
background.self_modulate = background_color
|
||||
|
||||
self.add_window_part( background )
|
||||
background.set_owner( self )
|
||||
# background.set_owner( self )
|
||||
###
|
||||
###
|
||||
# parts
|
||||
|
@ -109,7 +109,7 @@ func _enter_tree():
|
|||
parts.size_flags_horizontal = SIZE_EXPAND_FILL
|
||||
parts.size_flags_vertical = SIZE_EXPAND_FILL
|
||||
self.add_window_part( parts )
|
||||
parts.set_owner( self )
|
||||
# parts.set_owner( self )
|
||||
###
|
||||
###
|
||||
# header_box
|
||||
|
@ -128,7 +128,7 @@ func _enter_tree():
|
|||
if is_movable:
|
||||
header_box.mouse_default_cursor_shape = CURSOR_MOVE
|
||||
parts.add_child( header_box )
|
||||
header_box.set_owner( parts )
|
||||
# header_box.set_owner( parts )
|
||||
header_box.connect ( "gui_input", self, "_on_Header_gui_input" )
|
||||
###
|
||||
###
|
||||
|
@ -142,7 +142,7 @@ func _enter_tree():
|
|||
if is_movable:
|
||||
header.mouse_default_cursor_shape = CURSOR_MOVE
|
||||
header_box.add_child( header )
|
||||
header.set_owner( header )
|
||||
# header.set_owner( header_box )
|
||||
###
|
||||
###
|
||||
# quit
|
||||
|
@ -160,7 +160,7 @@ func _enter_tree():
|
|||
quit_button.texture_normal = tex_quit
|
||||
|
||||
header.add_child( quit_button )
|
||||
quit_button.set_owner( header )
|
||||
# quit_button.set_owner( header )
|
||||
quit_button.connect ( "pressed", self, "_on_Quit_pressed" )
|
||||
###
|
||||
# close
|
||||
|
@ -178,7 +178,7 @@ func _enter_tree():
|
|||
close_button.texture_normal = tex_close
|
||||
|
||||
header.add_child( close_button )
|
||||
close_button.set_owner( header )
|
||||
# close_button.set_owner( header )
|
||||
close_button.connect ( "pressed", self, "_on_Close_pressed" )
|
||||
###
|
||||
# open
|
||||
|
@ -196,7 +196,7 @@ func _enter_tree():
|
|||
open_button.texture_normal = tex_open
|
||||
open_button.visible = false
|
||||
header.add_child( open_button )
|
||||
open_button.set_owner( header )
|
||||
# open_button.set_owner( header )
|
||||
open_button.connect ( "pressed", self, "_on_Open_pressed" )
|
||||
###
|
||||
###
|
||||
|
@ -211,7 +211,7 @@ func _enter_tree():
|
|||
if is_movable:
|
||||
title_label.mouse_default_cursor_shape = CURSOR_MOVE
|
||||
header.add_child( title_label )
|
||||
title_label.set_owner( header )
|
||||
# title_label.set_owner( header )
|
||||
###
|
||||
###
|
||||
# Content
|
||||
|
@ -226,7 +226,7 @@ func _enter_tree():
|
|||
content_box.set( "custom_constants/margin_left", 8)
|
||||
content_box.set( "custom_constants/margin_bottom", 8)
|
||||
parts.add_child( content_box )
|
||||
content_box.set_owner( parts )
|
||||
# content_box.set_owner( parts )
|
||||
###
|
||||
###
|
||||
# content_box/scroll_container
|
||||
|
@ -238,7 +238,7 @@ func _enter_tree():
|
|||
content_scroll_container.size_flags_vertical = SIZE_FILL
|
||||
content_scroll_container.scroll_deadzone = 0
|
||||
content_box.add_child( content_scroll_container )
|
||||
content_scroll_container.set_owner( content_box )
|
||||
# content_scroll_container.set_owner( content_box )
|
||||
###
|
||||
###
|
||||
# content
|
||||
|
@ -249,7 +249,7 @@ func _enter_tree():
|
|||
content.size_flags_horizontal = SIZE_EXPAND_FILL
|
||||
content.size_flags_vertical = SIZE_EXPAND_FILL
|
||||
content_scroll_container.add_child( content )
|
||||
content.set_owner( content_scroll_container )
|
||||
# content.set_owner( content_scroll_container )
|
||||
###
|
||||
|
||||
|
||||
|
@ -266,7 +266,7 @@ func _enter_tree():
|
|||
footer_box.set( "custom_constants/margin_left", 6)
|
||||
footer_box.set( "custom_constants/margin_bottom", 6)
|
||||
parts.add_child( footer_box )
|
||||
footer_box.set_owner( parts )
|
||||
# footer_box.set_owner( parts )
|
||||
###
|
||||
###
|
||||
# footer_box/footer
|
||||
|
@ -277,7 +277,7 @@ func _enter_tree():
|
|||
footer.size_flags_horizontal = SIZE_EXPAND_FILL
|
||||
footer.size_flags_vertical = SIZE_EXPAND_FILL
|
||||
footer_box.add_child( footer )
|
||||
footer.set_owner( footer_box )
|
||||
# footer.set_owner( footer_box )
|
||||
###
|
||||
###
|
||||
# footer_label
|
||||
|
@ -307,7 +307,7 @@ func _enter_tree():
|
|||
resize_button.mouse_default_cursor_shape = CURSOR_FDIAGSIZE
|
||||
resize_button.action_mode = Button.ACTION_MODE_BUTTON_PRESS
|
||||
footer.add_child( resize_button )
|
||||
resize_button.set_owner( footer )
|
||||
# resize_button.set_owner( footer )
|
||||
resize_button.connect ( "pressed", self, "_on_Resize_pressed" )
|
||||
###er_label.set_owner( footer )
|
||||
###
|
||||
|
|
Loading…
Reference in a new issue