412 lines
10 KiB
Plaintext
412 lines
10 KiB
Plaintext
[gd_scene load_steps=10 format=2]
|
|
|
|
[ext_resource path="res://game.gd" type="Script" id=1]
|
|
[ext_resource path="res://ui/prompt.gd" type="Script" id=2]
|
|
[ext_resource path="res://ui/help.png" type="Texture" id=3]
|
|
[ext_resource path="res://ui/mapsize.tscn" type="PackedScene" id=4]
|
|
[ext_resource path="res://ui/timer.tscn" type="PackedScene" id=5]
|
|
[ext_resource path="res://ui/current_resources.tscn" type="PackedScene" id=6]
|
|
[ext_resource path="res://help_popup.gd" type="Script" id=7]
|
|
|
|
[sub_resource type="Environment" id=1]
|
|
|
|
background_mode = 0
|
|
background_sky_custom_fov = 0.0
|
|
background_color = Color( 0, 0, 0, 1 )
|
|
background_energy = 1.0
|
|
background_canvas_max_layer = 0
|
|
ambient_light_color = Color( 0, 0, 0, 1 )
|
|
ambient_light_energy = 1.0
|
|
ambient_light_sky_contribution = 1.0
|
|
fog_enabled = false
|
|
fog_color = Color( 0.5, 0.6, 0.7, 1 )
|
|
fog_sun_color = Color( 1, 0.9, 0.7, 1 )
|
|
fog_sun_amount = 0.0
|
|
fog_depth_enabled = true
|
|
fog_depth_begin = 10.0
|
|
fog_depth_curve = 1.0
|
|
fog_transmit_enabled = false
|
|
fog_transmit_curve = 1.0
|
|
fog_height_enabled = false
|
|
fog_height_min = 0.0
|
|
fog_height_max = 100.0
|
|
fog_height_curve = 1.0
|
|
tonemap_mode = 0
|
|
tonemap_exposure = 1.0
|
|
tonemap_white = 1.0
|
|
auto_exposure_enabled = false
|
|
auto_exposure_scale = 0.4
|
|
auto_exposure_min_luma = 0.05
|
|
auto_exposure_max_luma = 8.0
|
|
auto_exposure_speed = 0.5
|
|
ss_reflections_enabled = false
|
|
ss_reflections_max_steps = 64
|
|
ss_reflections_fade_in = 0.15
|
|
ss_reflections_fade_out = 2.0
|
|
ss_reflections_depth_tolerance = 0.2
|
|
ss_reflections_roughness = true
|
|
ssao_enabled = false
|
|
ssao_radius = 1.0
|
|
ssao_intensity = 1.0
|
|
ssao_radius2 = 0.0
|
|
ssao_intensity2 = 1.0
|
|
ssao_bias = 0.01
|
|
ssao_light_affect = 0.0
|
|
ssao_color = Color( 0, 0, 0, 1 )
|
|
ssao_quality = 0
|
|
ssao_blur = 3
|
|
ssao_edge_sharpness = 4.0
|
|
dof_blur_far_enabled = false
|
|
dof_blur_far_distance = 10.0
|
|
dof_blur_far_transition = 5.0
|
|
dof_blur_far_amount = 0.1
|
|
dof_blur_far_quality = 1
|
|
dof_blur_near_enabled = false
|
|
dof_blur_near_distance = 2.0
|
|
dof_blur_near_transition = 1.0
|
|
dof_blur_near_amount = 0.1
|
|
dof_blur_near_quality = 1
|
|
glow_enabled = false
|
|
glow_levels/1 = false
|
|
glow_levels/2 = false
|
|
glow_levels/3 = true
|
|
glow_levels/4 = false
|
|
glow_levels/5 = true
|
|
glow_levels/6 = false
|
|
glow_levels/7 = false
|
|
glow_intensity = 0.8
|
|
glow_strength = 1.0
|
|
glow_bloom = 0.0
|
|
glow_blend_mode = 2
|
|
glow_hdr_threshold = 1.0
|
|
glow_hdr_scale = 2.0
|
|
glow_bicubic_upscale = false
|
|
adjustment_enabled = false
|
|
adjustment_brightness = 1.0
|
|
adjustment_contrast = 1.0
|
|
adjustment_saturation = 1.0
|
|
|
|
[sub_resource type="World" id=2]
|
|
|
|
environment = SubResource( 1 )
|
|
|
|
[node name="game" type="Node" index="0"]
|
|
|
|
script = ExtResource( 1 )
|
|
debug = true
|
|
level_path = "res://levels/sample/level.tscn"
|
|
turn_max_length = 60.0
|
|
population_start = 10
|
|
jobs_start = 0
|
|
food_start = 20
|
|
resources_start = 0
|
|
effort_start = 20
|
|
goods_start = 0
|
|
advance_turn_on_successful_command = true
|
|
|
|
[node name="ui" type="Control" parent="." index="0"]
|
|
|
|
anchor_left = 0.0
|
|
anchor_top = 0.0
|
|
anchor_right = 0.0
|
|
anchor_bottom = 0.0
|
|
margin_right = 40.0
|
|
margin_bottom = 40.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 = [ "Anchor", "Grow Direction", "Hint", "Margin", "Material", "Rect", "Visibility" ]
|
|
|
|
[node name="left sidebar" type="VBoxContainer" parent="ui" index="0"]
|
|
|
|
anchor_left = 0.0
|
|
anchor_top = 0.0
|
|
anchor_right = 0.0
|
|
anchor_bottom = 0.0
|
|
margin_right = 175.0
|
|
margin_bottom = 600.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
|
|
alignment = 0
|
|
_sections_unfolded = [ "Rect", "Size Flags" ]
|
|
|
|
[node name="toggleWorldButton" type="CheckButton" parent="ui/left sidebar" index="0"]
|
|
|
|
anchor_left = 0.0
|
|
anchor_top = 0.0
|
|
anchor_right = 0.0
|
|
anchor_bottom = 0.0
|
|
margin_right = 175.0
|
|
margin_bottom = 40.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 = true
|
|
enabled_focus_mode = 2
|
|
shortcut = null
|
|
group = null
|
|
text = "Show World"
|
|
flat = false
|
|
align = 0
|
|
|
|
[node name="ViewportContainer" type="ViewportContainer" parent="ui" index="1"]
|
|
|
|
anchor_left = 0.0
|
|
anchor_top = 0.0
|
|
anchor_right = 0.0
|
|
anchor_bottom = 0.0
|
|
margin_left = 175.0
|
|
margin_right = 850.0
|
|
margin_bottom = 550.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
|
|
stretch = false
|
|
stretch_shrink = 1
|
|
_sections_unfolded = [ "Rect" ]
|
|
|
|
[node name="history" type="RichTextLabel" parent="ui/ViewportContainer" index="0"]
|
|
|
|
anchor_left = 0.0
|
|
anchor_top = 0.0
|
|
anchor_right = 0.0
|
|
anchor_bottom = 0.0
|
|
margin_left = 2.0
|
|
margin_top = 1.0
|
|
margin_right = 677.0
|
|
margin_bottom = 551.0
|
|
rect_pivot_offset = Vector2( 0, 0 )
|
|
rect_clip_content = true
|
|
mouse_filter = 0
|
|
mouse_default_cursor_shape = 0
|
|
size_flags_horizontal = 1
|
|
size_flags_vertical = 1
|
|
bbcode_enabled = false
|
|
bbcode_text = ""
|
|
visible_characters = -1
|
|
percent_visible = 1.0
|
|
meta_underlined = true
|
|
tab_size = 4
|
|
text = ""
|
|
scroll_active = true
|
|
scroll_following = false
|
|
selection_enabled = false
|
|
override_selected_font_color = false
|
|
|
|
[node name="Viewport" type="Viewport" parent="ui/ViewportContainer" index="1"]
|
|
|
|
arvr = false
|
|
size = Vector2( 0, 0 )
|
|
own_world = true
|
|
world = SubResource( 2 )
|
|
transparent_bg = false
|
|
msaa = 0
|
|
hdr = true
|
|
disable_3d = false
|
|
usage = 2
|
|
debug_draw = 0
|
|
render_target_v_flip = false
|
|
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="prompt" type="LineEdit" parent="ui" index="2"]
|
|
|
|
anchor_left = 0.0
|
|
anchor_top = 0.0
|
|
anchor_right = 0.0
|
|
anchor_bottom = 0.0
|
|
margin_left = 175.0
|
|
margin_top = 550.0
|
|
margin_right = 850.0
|
|
margin_bottom = 600.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_text = "Click here and type to start entering commands"
|
|
placeholder_alpha = 0.6
|
|
caret_blink = true
|
|
caret_blink_speed = 0.65
|
|
caret_position = 0
|
|
script = ExtResource( 2 )
|
|
_sections_unfolded = [ "Caret", "Placeholder", "Rect" ]
|
|
|
|
[node name="right sidebar" type="VBoxContainer" parent="ui" index="3"]
|
|
|
|
anchor_left = 0.0
|
|
anchor_top = 0.0
|
|
anchor_right = 0.0
|
|
anchor_bottom = 0.0
|
|
margin_left = 850.0
|
|
margin_right = 1025.0
|
|
margin_bottom = 600.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
|
|
alignment = 0
|
|
_sections_unfolded = [ "Rect" ]
|
|
|
|
[node name="help" type="Button" parent="ui/right sidebar" index="0"]
|
|
|
|
anchor_left = 0.0
|
|
anchor_top = 0.0
|
|
anchor_right = 0.0
|
|
anchor_bottom = 0.0
|
|
margin_right = 175.0
|
|
margin_bottom = 38.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 = "Help"
|
|
icon = ExtResource( 3 )
|
|
flat = false
|
|
align = 1
|
|
_sections_unfolded = [ "Rect", "Textures", "Theme", "Visibility" ]
|
|
|
|
[node name="MapSizeContainer" parent="ui/right sidebar" index="1" instance=ExtResource( 4 )]
|
|
|
|
margin_top = 42.0
|
|
margin_bottom = 56.0
|
|
alignment = 2
|
|
|
|
[node name="timer" parent="ui/right sidebar" index="2" instance=ExtResource( 5 )]
|
|
|
|
margin_top = 60.0
|
|
margin_bottom = 260.0
|
|
rect_min_size = Vector2( 175, 200 )
|
|
|
|
[node name="resources" parent="ui/right sidebar" index="3" instance=ExtResource( 6 )]
|
|
|
|
margin_top = 264.0
|
|
margin_bottom = 464.0
|
|
rect_min_size = Vector2( 175, 200 )
|
|
|
|
[node name="help_popup" type="PopupPanel" parent="ui" index="4"]
|
|
|
|
editor/display_folded = true
|
|
visible = false
|
|
anchor_left = 0.0
|
|
anchor_top = 0.0
|
|
anchor_right = 0.0
|
|
anchor_bottom = 0.0
|
|
margin_left = 166.0
|
|
margin_top = 2.0
|
|
margin_right = 852.0
|
|
margin_bottom = 539.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
|
|
popup_exclusive = true
|
|
script = ExtResource( 7 )
|
|
_sections_unfolded = [ "Popup" ]
|
|
|
|
[node name="Label" type="Label" parent="ui/help_popup" index="0"]
|
|
|
|
anchor_left = 0.0
|
|
anchor_top = 0.0
|
|
anchor_right = 0.0
|
|
anchor_bottom = 0.0
|
|
margin_left = 310.0
|
|
margin_top = 5.0
|
|
margin_right = 350.0
|
|
margin_bottom = 19.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 = "Help"
|
|
percent_visible = 1.0
|
|
lines_skipped = 0
|
|
max_lines_visible = -1
|
|
|
|
[node name="ToolButton" type="ToolButton" parent="ui/help_popup" index="1"]
|
|
|
|
anchor_left = 0.0
|
|
anchor_top = 0.0
|
|
anchor_right = 0.0
|
|
anchor_bottom = 0.0
|
|
margin_left = 5.0
|
|
margin_top = 5.0
|
|
margin_right = 52.0
|
|
margin_bottom = 27.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 = "Close"
|
|
flat = true
|
|
align = 1
|
|
|
|
[node name="world" type="Node2D" parent="." index="1"]
|
|
|
|
z_index = -1
|
|
_sections_unfolded = [ "Transform", "Z Index" ]
|
|
|
|
[connection signal="toggled" from="ui/left sidebar/toggleWorldButton" to="." method="_on_toggleWorldButton_toggled"]
|
|
|
|
[connection signal="gui_input" from="ui/prompt" to="ui/prompt" method="_on_prompt_gui_input"]
|
|
|
|
[connection signal="text_entered" from="ui/prompt" to="." method="_on_prompt_text_entered"]
|
|
|
|
[connection signal="text_entered" from="ui/prompt" to="ui/prompt" method="_on_prompt_text_entered"]
|
|
|
|
[connection signal="pressed" from="ui/right sidebar/help" to="ui/help_popup" method="_on_help_pressed"]
|
|
|
|
[connection signal="skip_presssed" from="ui/right sidebar/timer" to="." method="_on_timer_skip_presssed"]
|
|
|
|
[connection signal="pressed" from="ui/help_popup/ToolButton" to="ui/help_popup" method="_on_ToolButton_pressed"]
|
|
|
|
|