-
Notifications
You must be signed in to change notification settings - Fork 0
/
World.tscn
161 lines (132 loc) · 5.71 KB
/
World.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
[gd_scene load_steps=14 format=2]
[ext_resource path="res://room/room.png" type="Texture" id=1]
[ext_resource path="res://player/Developer.tscn" type="PackedScene" id=2]
[ext_resource path="res://room/door.png" type="Texture" id=3]
[ext_resource path="res://furniture/Desktop.tscn" type="PackedScene" id=4]
[ext_resource path="res://elements/joblistmenu/JobListMenu.tscn" type="PackedScene" id=5]
[ext_resource path="res://jobs/JobMechanics.gd" type="Script" id=6]
[ext_resource path="res://fonts/caviar-dreams/Caviar_Dreams_Bold.ttf" type="DynamicFontData" id=7]
[ext_resource path="res://kenney/Isometric/chairDesk_NE.png" type="Texture" id=8]
[ext_resource path="res://kenney/Isometric/desk_SE.png" type="Texture" id=9]
[sub_resource type="StyleBoxFlat" id=1]
bg_color = Color( 0.211765, 0.85098, 0.254902, 1 )
[sub_resource type="StyleBoxFlat" id=4]
bg_color = Color( 0.188235, 0.505882, 1, 1 )
[sub_resource type="DynamicFont" id=2]
size = 48
font_data = ExtResource( 7 )
[sub_resource type="StyleBoxFlat" id=3]
draw_center = false
[node name="World" type="Node2D"]
__meta__ = {
"_edit_horizontal_guides_": [ 352.0 ],
"_edit_vertical_guides_": [ 240.0, 640.0 ]
}
[node name="Job-mechanics" type="Control" parent="."]
script = ExtResource( 6 )
MONTHS_IN_SECONDS = 1
MONTH_DAYS = 10
[node name="Room" type="Sprite" parent="Job-mechanics"]
position = Vector2( 640, 344 )
texture = ExtResource( 1 )
[node name="Door" type="Sprite" parent="Job-mechanics"]
position = Vector2( 344, 305 )
texture = ExtResource( 3 )
[node name="Desktop" parent="Job-mechanics" instance=ExtResource( 4 )]
position = Vector2( 562, 259 )
[node name="Developer" parent="Job-mechanics" instance=ExtResource( 2 )]
position = Vector2( 593, 266 )
[node name="JobElements" type="Control" parent="Job-mechanics"]
[node name="GetJob" type="Button" parent="Job-mechanics/JobElements"]
margin_left = 534.0
margin_top = 170.0
margin_right = 569.0
margin_bottom = 190.0
text = "Job!"
[node name="ProgressBar" type="ProgressBar" parent="Job-mechanics/JobElements"]
margin_left = 240.0
margin_top = 669.0
margin_right = 1040.0
margin_bottom = 686.0
custom_styles/fg = SubResource( 1 )
percent_visible = false
[node name="DaysTimer" type="Timer" parent="Job-mechanics/JobElements"]
[node name="DaysNotification" type="Label" parent="Job-mechanics/JobElements"]
margin_left = 240.0
margin_top = 64.0
margin_right = 287.0
margin_bottom = 78.0
rect_pivot_offset = Vector2( 16, 7 )
text = "Days: "
[node name="SelectedJob" type="Label" parent="Job-mechanics/JobElements"]
margin_left = 240.0
margin_top = 96.0
margin_right = 338.0
margin_bottom = 110.0
text = "Selected job is:"
[node name="JobTimer" type="Timer" parent="Job-mechanics/JobElements"]
[node name="CurrentMoney" type="Label" parent="Job-mechanics/JobElements"]
margin_left = 240.0
margin_top = 648.0
margin_right = 339.0
margin_bottom = 662.0
text = "Current money:"
[node name="Workingprogress" type="ProgressBar" parent="Job-mechanics/JobElements"]
margin_left = 600.0
margin_top = 184.0
margin_right = 696.0
margin_bottom = 198.0
custom_styles/fg = SubResource( 4 )
[node name="ReceivedMoney" type="AcceptDialog" parent="Job-mechanics/JobElements"]
margin_left = 576.0
margin_top = 304.0
margin_right = 662.0
margin_bottom = 362.0
window_title = "Done!"
[node name="EndMonthDialog" type="AcceptDialog" parent="Job-mechanics/JobElements"]
margin_left = 576.0
margin_top = 296.0
margin_right = 659.0
margin_bottom = 354.0
[node name="JobListMenu" parent="Job-mechanics/JobElements" instance=ExtResource( 5 )]
visible = false
margin_left = 360.0
margin_top = 120.0
margin_right = 911.0
margin_bottom = 544.0
[node name="DeskSe" type="Sprite" parent="Job-mechanics/JobElements"]
position = Vector2( 451, 316 )
texture = ExtResource( 9 )
[node name="ChairDeskNe" type="Sprite" parent="Job-mechanics/JobElements"]
position = Vector2( 497, 329 )
texture = ExtResource( 8 )
[node name="GameOver" type="ConfirmationDialog" parent="Job-mechanics"]
margin_left = 416.0
margin_top = 280.0
margin_right = 818.0
margin_bottom = 350.0
window_title = "Game Over"
dialog_text = "You are bankrupt sorry, this is the end of your career for now...
Would you like to restart ?"
[node name="MainScreen" type="ColorRect" parent="Job-mechanics"]
visible = false
margin_right = 1280.0
margin_bottom = 720.0
color = Color( 0.0627451, 0.0627451, 0.0627451, 1 )
[node name="StartGame" type="Button" parent="Job-mechanics/MainScreen"]
margin_left = 512.0
margin_top = 320.0
margin_right = 778.0
margin_bottom = 382.0
custom_fonts/font = SubResource( 2 )
custom_styles/normal = SubResource( 3 )
text = "Start Game"
[connection signal="pressed" from="Job-mechanics/JobElements/GetJob" to="Job-mechanics" method="_on_GetJob_pressed"]
[connection signal="timeout" from="Job-mechanics/JobElements/DaysTimer" to="Job-mechanics" method="_on_DaysTimer_timeout"]
[connection signal="timeout" from="Job-mechanics/JobElements/JobTimer" to="Job-mechanics" method="_on_JobTimer_timeout"]
[connection signal="about_to_show" from="Job-mechanics/JobElements/ReceivedMoney" to="Job-mechanics" method="_on_ReceivedMoney_about_to_show"]
[connection signal="popup_hide" from="Job-mechanics/JobElements/ReceivedMoney" to="Job-mechanics" method="_on_ReceivedMoney_popup_hide"]
[connection signal="about_to_show" from="Job-mechanics/JobElements/EndMonthDialog" to="Job-mechanics" method="_on_EndMonthDialog_about_to_show"]
[connection signal="popup_hide" from="Job-mechanics/JobElements/EndMonthDialog" to="Job-mechanics" method="_on_EndMonthDialog_popup_hide"]
[connection signal="popup_hide" from="Job-mechanics/JobElements/JobListMenu" to="Job-mechanics" method="_on_JobListMenu_popup_hide"]
[connection signal="pressed" from="Job-mechanics/MainScreen/StartGame" to="Job-mechanics" method="_on_StartGame_pressed"]