Skip to content

Commit 77f7afa

Browse files
committed
Fix window management demo for 3.0+
1 parent da618f4 commit 77f7afa

File tree

4 files changed

+53
-423
lines changed

4 files changed

+53
-423
lines changed

misc/window_management/icon.png.import

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,14 @@ path="res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex"
77
[deps]
88

99
source_file="res://icon.png"
10-
source_md5="c28e0db2f5a967b654ad97060476c589"
11-
1210
dest_files=[ "res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" ]
13-
dest_md5="fdb1aa47e7dac052e4263c47685a630d"
1411

1512
[params]
1613

1714
compress/mode=0
1815
compress/lossy_quality=0.7
1916
compress/hdr_mode=0
17+
compress/bptc_ldr=0
2018
compress/normal_map=0
2119
flags/repeat=0
2220
flags/filter=true
@@ -26,6 +24,7 @@ flags/srgb=2
2624
process/fix_alpha_border=true
2725
process/premult_alpha=false
2826
process/HDR_as_SRGB=false
27+
process/invert_color=false
2928
stream=false
3029
size_limit=0
3130
detect_3d=true

misc/window_management/observer/observer.gd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
extends Spatial
1+
extends KinematicBody
22

33
# Constants
44
const STATE_MENU = 0
Lines changed: 10 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,20 @@
1-
[gd_scene load_steps=2 format=2]
1+
[gd_scene load_steps=3 format=2]
22

33
[ext_resource path="res://observer/observer.gd" type="Script" id=1]
44

5-
[node name="Observer" type="KinematicBody" index="0"]
6-
7-
input_ray_pickable = true
8-
input_capture_on_drag = false
9-
collision_layer = 1
10-
collision_mask = 1
11-
axis_lock_linear_x = false
12-
axis_lock_linear_y = false
13-
axis_lock_linear_z = false
14-
axis_lock_angular_x = false
15-
axis_lock_angular_y = false
16-
axis_lock_angular_z = false
17-
collision/safe_margin = 0.001
5+
[sub_resource type="BoxShape" id=1]
6+
7+
8+
[node name="Observer" type="KinematicBody"]
189
script = ExtResource( 1 )
1910

20-
[node name="Camera" type="Camera" parent="." index="0"]
11+
[node name="CollisionShape" type="CollisionShape" parent="."]
12+
shape = SubResource( 1 )
2113

22-
keep_aspect = 1
23-
cull_mask = 1048575
24-
environment = null
25-
h_offset = 0.0
26-
v_offset = 0.0
27-
doppler_tracking = 0
28-
projection = 0
29-
current = false
14+
[node name="Camera" type="Camera" parent="."]
3015
fov = 74.0
31-
size = 1.0
3216
near = 0.1
3317
far = 1000.0
3418

35-
[node name="OmniLight" type="OmniLight" parent="." index="1"]
36-
37-
layers = 1
38-
light_color = Color( 1, 1, 1, 1 )
39-
light_energy = 1.0
40-
light_indirect_energy = 1.0
41-
light_negative = false
42-
light_specular = 0.5
43-
light_bake_mode = 1
44-
light_cull_mask = -1
45-
shadow_enabled = false
46-
shadow_color = Color( 0, 0, 0, 1 )
47-
shadow_bias = 0.15
48-
shadow_contact = 0.0
49-
shadow_reverse_cull_face = false
50-
editor_only = false
51-
omni_range = 5.0
52-
omni_attenuation = 1.0
53-
omni_shadow_mode = 1
54-
omni_shadow_detail = 1
19+
[node name="OmniLight" type="OmniLight" parent="."]
20+

0 commit comments

Comments
 (0)