mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2026-01-04 06:09:46 +03:00
Updated demo to work with Godot 3.1 with changes in the demo rewrite PR. Changed comments according to discussion in merged PR
This commit is contained in:
@@ -23,4 +23,3 @@ ambient_light_energy = 0.28
|
||||
ambient_light_sky_contribution = 0.0
|
||||
ssao_blur = 1
|
||||
script = SubResource( 2 )
|
||||
|
||||
|
||||
@@ -14,19 +14,25 @@ var last_mouse_pos2D = null
|
||||
onready var node_viewport = $Viewport
|
||||
onready var node_quad = $Quad
|
||||
onready var node_area = $Quad/Area
|
||||
onready var node_collision = $Quad/Area/CollisionShape
|
||||
|
||||
|
||||
func _ready():
|
||||
node_area.connect("mouse_entered", self, "_mouse_entered_area")
|
||||
print(node_quad.get_surface_material(0).params_billboard_mode)
|
||||
|
||||
# If the material is NOT set to use billboard settings, then avoid running billboard specific code
|
||||
if node_quad.get_surface_material(0).params_billboard_mode == 0:
|
||||
set_process(false)
|
||||
|
||||
|
||||
func _process(delta):
|
||||
#NOTE: Remove this function if you don't plan on using billboard settings.
|
||||
rotate_area_to_billboard()
|
||||
|
||||
|
||||
func _mouse_entered_area():
|
||||
mouse_inside = true
|
||||
|
||||
|
||||
|
||||
func _input(event):
|
||||
# Check if the event is a non-mouse/non-touch event
|
||||
var is_mouse_event = false
|
||||
@@ -35,13 +41,15 @@ func _input(event):
|
||||
is_mouse_event = true
|
||||
break
|
||||
|
||||
# If the event is not a mouse/touch event, then pass the event to the viewport as we do not
|
||||
# need to do any conversions for these events.
|
||||
# If the event is a mouse/touch event and/or the mouse is either held or inside the area, then
|
||||
# we need to do some additional processing in the handle_mouse function before passing the event to the viewport.
|
||||
# If the event is not a mouse/touch event, then we can just pass the event directly to the viewport.
|
||||
if is_mouse_event and (mouse_inside or mouse_held):
|
||||
handle_mouse(event)
|
||||
elif not is_mouse_event:
|
||||
node_viewport.input(event)
|
||||
|
||||
|
||||
# Handle mouse events inside Area. (Area.input_event had many issues with dragging)
|
||||
func handle_mouse(event):
|
||||
#Get mesh size to detect edges and make conversions. This code only support PlaneMesh and QuadMesh.
|
||||
@@ -102,6 +110,7 @@ func handle_mouse(event):
|
||||
# Finally, send the processed input event to the viewport.
|
||||
node_viewport.input(event)
|
||||
|
||||
|
||||
func find_mouse(global_position):
|
||||
var camera = get_viewport().get_camera()
|
||||
|
||||
@@ -112,13 +121,14 @@ func find_mouse(global_position):
|
||||
|
||||
|
||||
#Manually raycasts the are to find the mouse position
|
||||
var result = get_world().direct_space_state.intersect_ray(from, to, [], node_area.collision_layer) #,false,true) #for 3.1 changes
|
||||
var result = get_world().direct_space_state.intersect_ray(from, to, [], node_area.collision_layer,false,true) #for 3.1 changes
|
||||
|
||||
if result.size() > 0:
|
||||
return result.position
|
||||
else:
|
||||
return null
|
||||
|
||||
|
||||
func find_further_distance_to(origin):
|
||||
#Find edges of collision and change to global positions
|
||||
var edges = []
|
||||
@@ -137,6 +147,7 @@ func find_further_distance_to(origin):
|
||||
|
||||
return far_dist
|
||||
|
||||
|
||||
func rotate_area_to_billboard():
|
||||
var billboard_mode = node_quad.get_surface_material(0).params_billboard_mode
|
||||
|
||||
|
||||
@@ -3,10 +3,8 @@
|
||||
[ext_resource path="res://view_gui.tscn" type="PackedScene" id=1]
|
||||
|
||||
[sub_resource type="Animation" id=1]
|
||||
|
||||
length = 6.0
|
||||
loop = true
|
||||
step = 0.1
|
||||
tracks/0/type = "value"
|
||||
tracks/0/path = NodePath("Camera:transform")
|
||||
tracks/0/interp = 1
|
||||
@@ -22,13 +20,7 @@ tracks/0/keys = {
|
||||
|
||||
[sub_resource type="PlaneMesh" id=2]
|
||||
|
||||
custom_aabb = AABB( 0, 0, 0, 0, 0, 0 )
|
||||
size = Vector2( 2, 2 )
|
||||
subdivide_width = 0
|
||||
subdivide_depth = 0
|
||||
|
||||
[sub_resource type="GDScript" id=3]
|
||||
|
||||
script/source = "tool
|
||||
extends Object
|
||||
func e():
|
||||
@@ -36,7 +28,6 @@ func e():
|
||||
"
|
||||
|
||||
[sub_resource type="GDScript" id=4]
|
||||
|
||||
script/source = "tool
|
||||
extends Object
|
||||
func e():
|
||||
@@ -44,7 +35,6 @@ func e():
|
||||
"
|
||||
|
||||
[sub_resource type="GDScript" id=5]
|
||||
|
||||
script/source = "tool
|
||||
extends Object
|
||||
func e():
|
||||
@@ -53,257 +43,77 @@ func e():
|
||||
|
||||
[sub_resource type="CubeMesh" id=6]
|
||||
|
||||
custom_aabb = AABB( 0, 0, 0, 0, 0, 0 )
|
||||
size = Vector3( 2, 2, 2 )
|
||||
subdivide_width = 0
|
||||
subdivide_height = 0
|
||||
subdivide_depth = 0
|
||||
|
||||
[sub_resource type="SpatialMaterial" id=7]
|
||||
|
||||
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.722656, 0.791992, 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" ]
|
||||
|
||||
[sub_resource type="GDScript" id=8]
|
||||
|
||||
script/source = "tool
|
||||
extends Object
|
||||
func e():
|
||||
return 0
|
||||
"
|
||||
|
||||
[node name="gui_in_3d" type="Spatial" index="0"]
|
||||
[node name="gui_in_3d" type="Spatial"]
|
||||
|
||||
[node name="view_gui" parent="." index="0" instance=ExtResource( 1 )]
|
||||
|
||||
_sections_unfolded = [ "Transform", "Visibility" ]
|
||||
|
||||
[node name="Camera" type="Camera" parent="." index="1"]
|
||||
[node name="view_gui" parent="." instance=ExtResource( 1 )]
|
||||
|
||||
[node name="Camera" type="Camera" parent="."]
|
||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 0.999999, 0, 0, 3 )
|
||||
keep_aspect = 1
|
||||
cull_mask = 1048575
|
||||
environment = null
|
||||
h_offset = 0.0
|
||||
v_offset = 0.0
|
||||
doppler_tracking = 0
|
||||
projection = 0
|
||||
current = false
|
||||
fov = 74.0
|
||||
size = 1.0
|
||||
near = 0.1
|
||||
far = 100.0
|
||||
_sections_unfolded = [ "Transform" ]
|
||||
|
||||
[node name="OmniLight" type="OmniLight" parent="." index="2"]
|
||||
|
||||
[node name="OmniLight" type="OmniLight" parent="."]
|
||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 1.38866, 1.2413, 2.72141 )
|
||||
layers = 1
|
||||
light_color = Color( 1, 1, 1, 1 )
|
||||
light_energy = 1.0
|
||||
light_indirect_energy = 1.0
|
||||
light_negative = false
|
||||
light_specular = 0.5
|
||||
light_bake_mode = 1
|
||||
light_cull_mask = -1
|
||||
shadow_enabled = true
|
||||
shadow_color = Color( 0, 0, 0, 1 )
|
||||
shadow_bias = 0.15
|
||||
shadow_contact = 0.0
|
||||
shadow_reverse_cull_face = false
|
||||
editor_only = false
|
||||
omni_range = 10.0
|
||||
omni_attenuation = 1.0
|
||||
omni_shadow_mode = 1
|
||||
omni_shadow_detail = 1
|
||||
_sections_unfolded = [ "Light", "Omni", "Shadow" ]
|
||||
|
||||
[node name="Camera_Move" type="AnimationPlayer" parent="." index="3"]
|
||||
|
||||
root_node = NodePath("..")
|
||||
[node name="Camera_Move" type="AnimationPlayer" parent="."]
|
||||
autoplay = "Move_camera"
|
||||
playback_process_mode = 1
|
||||
playback_default_blend_time = 0.0
|
||||
playback_speed = 0.25
|
||||
anims/Move_camera = SubResource( 1 )
|
||||
blend_times = [ ]
|
||||
_sections_unfolded = [ "Playback Options" ]
|
||||
|
||||
[node name="3D_background" type="Spatial" parent="." index="4"]
|
||||
|
||||
[node name="3D_background" type="Spatial" parent="."]
|
||||
editor/display_folded = true
|
||||
|
||||
[node name="Wall" type="MeshInstance" parent="3D_background" index="0"]
|
||||
|
||||
transform = Transform( 4, 0, 0, 0, -1.74846e-007, -4, 0, 4, -1.74846e-007, -2.60819, 0.589247, -2.08943 )
|
||||
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
|
||||
[node name="Wall" type="MeshInstance" parent="3D_background"]
|
||||
transform = Transform( 4, 0, 0, 0, -1.74846e-07, -4, 0, 4, -1.74846e-07, -2.60819, 0.589247, -2.08943 )
|
||||
mesh = SubResource( 2 )
|
||||
skeleton = NodePath("..")
|
||||
material/0 = null
|
||||
script = SubResource( 3 )
|
||||
_sections_unfolded = [ "Transform" ]
|
||||
|
||||
[node name="Wall2" type="MeshInstance" parent="3D_background" index="1"]
|
||||
|
||||
transform = Transform( 4, 0, 0, 0, -1.74846e-007, -4, 0, 4, -1.74846e-007, 5.08055, 0.589247, -2.08943 )
|
||||
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
|
||||
[node name="Wall2" type="MeshInstance" parent="3D_background"]
|
||||
transform = Transform( 4, 0, 0, 0, -1.74846e-07, -4, 0, 4, -1.74846e-07, 5.08055, 0.589247, -2.08943 )
|
||||
mesh = SubResource( 2 )
|
||||
skeleton = NodePath("..")
|
||||
material/0 = null
|
||||
script = SubResource( 3 )
|
||||
_sections_unfolded = [ "Transform" ]
|
||||
|
||||
[node name="Wall3" type="MeshInstance" parent="3D_background" index="2"]
|
||||
|
||||
transform = Transform( -1.74846e-007, -4, 0, -1.74846e-007, 7.64274e-015, -4, 4, -1.74846e-007, -1.74846e-007, 9.04446, 0.589247, 1.62058 )
|
||||
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
|
||||
[node name="Wall3" type="MeshInstance" parent="3D_background"]
|
||||
transform = Transform( -1.74846e-07, -4, 0, -1.74846e-07, 7.64274e-15, -4, 4, -1.74846e-07, -1.74846e-07, 9.04446, 0.589247, 1.62058 )
|
||||
mesh = SubResource( 2 )
|
||||
skeleton = NodePath("..")
|
||||
material/0 = null
|
||||
script = SubResource( 4 )
|
||||
_sections_unfolded = [ "Transform" ]
|
||||
|
||||
[node name="Floor" type="MeshInstance" parent="3D_background" index="3"]
|
||||
|
||||
[node name="Floor" type="MeshInstance" parent="3D_background"]
|
||||
transform = Transform( 4, 0, 0, 0, 4, 0, 0, 0, 4, -2.60819, -2.68765, 1.46502 )
|
||||
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( 2 )
|
||||
skeleton = NodePath("..")
|
||||
material/0 = null
|
||||
script = SubResource( 5 )
|
||||
_sections_unfolded = [ "Transform" ]
|
||||
|
||||
[node name="Floor2" type="MeshInstance" parent="3D_background" index="4"]
|
||||
|
||||
[node name="Floor2" type="MeshInstance" parent="3D_background"]
|
||||
transform = Transform( 4, 0, 0, 0, 4, 0, 0, 0, 4, 5.08055, -2.68765, 1.46502 )
|
||||
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( 2 )
|
||||
skeleton = NodePath("..")
|
||||
material/0 = null
|
||||
script = SubResource( 5 )
|
||||
_sections_unfolded = [ "Transform" ]
|
||||
|
||||
[node name="Cube" type="MeshInstance" parent="3D_background" index="5"]
|
||||
|
||||
[node name="Cube" type="MeshInstance" parent="3D_background"]
|
||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 4.25901, -0.598608, 0.374871 )
|
||||
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( 6 )
|
||||
skeleton = NodePath("..")
|
||||
material/0 = SubResource( 7 )
|
||||
script = SubResource( 8 )
|
||||
_sections_unfolded = [ "Transform", "material" ]
|
||||
|
||||
[node name="Cube2" type="MeshInstance" parent="3D_background" index="6"]
|
||||
|
||||
[node name="Cube2" type="MeshInstance" parent="3D_background"]
|
||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 2.88761, 2.01326, 0.374871 )
|
||||
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( 6 )
|
||||
skeleton = NodePath("..")
|
||||
material/0 = SubResource( 7 )
|
||||
script = SubResource( 8 )
|
||||
_sections_unfolded = [ "Transform" ]
|
||||
|
||||
|
||||
|
||||
@@ -3,6 +3,9 @@
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
@@ -14,6 +17,7 @@ dest_files=[ "res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" ]
|
||||
compress/mode=0
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/bptc_ldr=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=0
|
||||
flags/filter=true
|
||||
@@ -23,6 +27,7 @@ flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
process/invert_color=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=true
|
||||
|
||||
@@ -6,7 +6,12 @@
|
||||
; [section] ; section goes between []
|
||||
; param=value ; assign values to parameters
|
||||
|
||||
config_version=3
|
||||
config_version=4
|
||||
|
||||
_global_script_classes=[ ]
|
||||
_global_script_class_icons={
|
||||
|
||||
}
|
||||
|
||||
[application]
|
||||
|
||||
|
||||
@@ -4,72 +4,19 @@
|
||||
[ext_resource path="res://icon.png" type="Texture" id=2]
|
||||
|
||||
[sub_resource type="QuadMesh" id=1]
|
||||
|
||||
custom_aabb = AABB( 0, 0, 0, 0, 0, 0 )
|
||||
size = Vector2( 3, 2 )
|
||||
|
||||
[sub_resource type="ViewportTexture" id=2]
|
||||
|
||||
resource_local_to_scene = true
|
||||
flags = 0
|
||||
viewport_path = NodePath("Viewport")
|
||||
|
||||
[sub_resource type="SpatialMaterial" id=3]
|
||||
|
||||
resource_local_to_scene = true
|
||||
render_priority = 0
|
||||
flags_transparent = true
|
||||
flags_unshaded = true
|
||||
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 = true
|
||||
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 )
|
||||
albedo_texture = SubResource( 2 )
|
||||
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 = [ "Flags", "Parameters", "Vertex Color" ]
|
||||
|
||||
[sub_resource type="GDScript" id=4]
|
||||
|
||||
script/source = "tool
|
||||
extends Object
|
||||
func e():
|
||||
@@ -77,194 +24,63 @@ func e():
|
||||
"
|
||||
|
||||
[sub_resource type="BoxShape" id=5]
|
||||
|
||||
extents = Vector3( 1.5, 1, 0.01 )
|
||||
script = SubResource( 4 )
|
||||
|
||||
[node name="GUI_3D" type="Spatial" index="0"]
|
||||
|
||||
[node name="GUI_3D" type="Spatial"]
|
||||
script = ExtResource( 1 )
|
||||
_sections_unfolded = [ "Transform" ]
|
||||
|
||||
[node name="Viewport" type="Viewport" parent="." index="0"]
|
||||
|
||||
arvr = false
|
||||
[node name="Viewport" type="Viewport" parent="."]
|
||||
size = Vector2( 280, 180 )
|
||||
own_world = false
|
||||
world = null
|
||||
transparent_bg = false
|
||||
msaa = 0
|
||||
hdr = false
|
||||
disable_3d = false
|
||||
usage = 0
|
||||
debug_draw = 0
|
||||
render_target_v_flip = true
|
||||
render_target_clear_mode = 0
|
||||
render_target_update_mode = 3
|
||||
audio_listener_enable_2d = false
|
||||
audio_listener_enable_3d = false
|
||||
physics_object_picking = false
|
||||
gui_disable_input = false
|
||||
gui_snap_controls_to_pixels = true
|
||||
shadow_atlas_size = 0
|
||||
shadow_atlas_quad_0 = 2
|
||||
shadow_atlas_quad_1 = 2
|
||||
shadow_atlas_quad_2 = 3
|
||||
shadow_atlas_quad_3 = 4
|
||||
|
||||
[node name="GUI" type="Control" parent="Viewport" index="0"]
|
||||
|
||||
[node name="GUI" type="Control" parent="Viewport"]
|
||||
editor/display_folded = true
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_right = 280.0
|
||||
margin_bottom = 180.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
|
||||
|
||||
[node name="Panel" type="Panel" parent="Viewport/GUI" index="0"]
|
||||
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
[node name="Panel" type="Panel" parent="Viewport/GUI"]
|
||||
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
|
||||
_sections_unfolded = [ "Rect" ]
|
||||
|
||||
[node name="Label" type="Label" parent="Viewport/GUI/Panel" index="0"]
|
||||
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
[node name="Label" type="Label" parent="Viewport/GUI/Panel"]
|
||||
margin_left = 44.0
|
||||
margin_top = 27.0
|
||||
margin_right = 121.0
|
||||
margin_bottom = 41.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 = "Hello world!"
|
||||
percent_visible = 1.0
|
||||
lines_skipped = 0
|
||||
max_lines_visible = -1
|
||||
|
||||
[node name="Button" type="Button" parent="Viewport/GUI/Panel" index="1"]
|
||||
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
[node name="Button" type="Button" parent="Viewport/GUI/Panel"]
|
||||
margin_left = 14.0
|
||||
margin_top = 46.0
|
||||
margin_right = 154.0
|
||||
margin_bottom = 74.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 = "A button!"
|
||||
flat = false
|
||||
align = 1
|
||||
_sections_unfolded = [ "Rect" ]
|
||||
|
||||
[node name="TextEdit" type="LineEdit" parent="Viewport/GUI/Panel" index="2"]
|
||||
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
[node name="TextEdit" type="LineEdit" parent="Viewport/GUI/Panel"]
|
||||
margin_left = 14.0
|
||||
margin_top = 87.0
|
||||
margin_right = 154.0
|
||||
margin_bottom = 111.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 = 1
|
||||
size_flags_vertical = 1
|
||||
focus_mode = 2
|
||||
context_menu_enabled = true
|
||||
placeholder_alpha = 0.6
|
||||
caret_blink = false
|
||||
caret_blink_speed = 0.65
|
||||
caret_position = 0
|
||||
_sections_unfolded = [ "Rect" ]
|
||||
|
||||
[node name="HSlider" type="HSlider" parent="Viewport/GUI/Panel" index="3"]
|
||||
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
[node name="HSlider" type="HSlider" parent="Viewport/GUI/Panel"]
|
||||
margin_left = 14.0
|
||||
margin_top = 118.0
|
||||
margin_right = 154.0
|
||||
margin_bottom = 143.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 = 0
|
||||
min_value = 0.0
|
||||
max_value = 100.0
|
||||
step = 1.0
|
||||
page = 0.0
|
||||
value = 0.0
|
||||
exp_edit = false
|
||||
rounded = false
|
||||
editable = true
|
||||
tick_count = 0
|
||||
ticks_on_borders = false
|
||||
focus_mode = 2
|
||||
_sections_unfolded = [ "Rect" ]
|
||||
|
||||
[node name="ColorRect" type="ColorRect" parent="Viewport/GUI/Panel" index="4"]
|
||||
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
[node name="ColorRect" type="ColorRect" parent="Viewport/GUI/Panel"]
|
||||
margin_left = 180.0
|
||||
margin_top = 26.0
|
||||
margin_right = 244.0
|
||||
margin_bottom = 90.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
|
||||
color = Color( 1, 0, 0, 1 )
|
||||
_sections_unfolded = [ "Rect" ]
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="Viewport/GUI/Panel" index="5"]
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="Viewport/GUI/Panel"]
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
@@ -273,117 +89,31 @@ margin_left = 52.0
|
||||
margin_top = -52.0
|
||||
margin_right = 92.0
|
||||
margin_bottom = -12.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="VSlider" type="VSlider" parent="Viewport/GUI/Panel" index="6"]
|
||||
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
[node name="VSlider" type="VSlider" parent="Viewport/GUI/Panel"]
|
||||
margin_left = 260.0
|
||||
margin_top = 26.0
|
||||
margin_right = 276.0
|
||||
margin_bottom = 166.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 = 0
|
||||
size_flags_vertical = 1
|
||||
min_value = 0.0
|
||||
max_value = 100.0
|
||||
step = 1.0
|
||||
page = 0.0
|
||||
value = 0.0
|
||||
exp_edit = false
|
||||
rounded = false
|
||||
editable = true
|
||||
tick_count = 0
|
||||
ticks_on_borders = false
|
||||
focus_mode = 2
|
||||
_sections_unfolded = [ "Rect" ]
|
||||
|
||||
[node name="OptionButton" type="OptionButton" parent="Viewport/GUI/Panel" index="7"]
|
||||
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
[node name="OptionButton" type="OptionButton" parent="Viewport/GUI/Panel"]
|
||||
margin_left = 170.0
|
||||
margin_top = 111.0
|
||||
margin_right = 252.0
|
||||
margin_bottom = 165.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
|
||||
action_mode = 0
|
||||
enabled_focus_mode = 2
|
||||
shortcut = null
|
||||
group = null
|
||||
text = "Item 0"
|
||||
flat = false
|
||||
align = 0
|
||||
items = [ "Item 0", null, false, -1, null, "Item 1", null, false, -1, null, "Item 2", null, false, -1, null ]
|
||||
selected = 0
|
||||
_sections_unfolded = [ "Rect" ]
|
||||
|
||||
[node name="Quad" type="MeshInstance" parent="." index="1"]
|
||||
|
||||
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
|
||||
[node name="Quad" type="MeshInstance" parent="."]
|
||||
mesh = SubResource( 1 )
|
||||
skeleton = NodePath("..")
|
||||
material/0 = SubResource( 3 )
|
||||
_sections_unfolded = [ "Geometry", "Transform", "material" ]
|
||||
|
||||
[node name="Area" type="Area" parent="Quad" index="0"]
|
||||
|
||||
input_ray_pickable = true
|
||||
[node name="Area" type="Area" parent="Quad"]
|
||||
input_capture_on_drag = true
|
||||
space_override = 0
|
||||
gravity_point = false
|
||||
gravity_distance_scale = 0.0
|
||||
gravity_vec = Vector3( 0, -1, 0 )
|
||||
gravity = 9.8
|
||||
linear_damp = 0.1
|
||||
angular_damp = 1.0
|
||||
priority = 0.0
|
||||
monitoring = true
|
||||
monitorable = true
|
||||
collision_layer = 2
|
||||
collision_mask = 1
|
||||
audio_bus_override = false
|
||||
audio_bus_name = "Master"
|
||||
reverb_bus_enable = false
|
||||
reverb_bus_name = "Master"
|
||||
reverb_bus_amount = 0.0
|
||||
reverb_bus_uniformity = 0.0
|
||||
|
||||
[node name="CollisionShape" type="CollisionShape" parent="Quad/Area" index="0"]
|
||||
|
||||
[node name="CollisionShape" type="CollisionShape" parent="Quad/Area"]
|
||||
shape = SubResource( 5 )
|
||||
disabled = false
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user