diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2020-07-15 10:55:47 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2020-07-15 10:55:47 +0200 |
commit | 594a82b45e5d9dcd90faad8fa4f8eb42b2c981b6 (patch) | |
tree | f44fbc21362e79fb8f9c987b542406cb7d61ca71 /Main.tscn | |
parent | 9274d1351f527de8ccee89eaccea1cf5dc141756 (diff) | |
download | godot-hexgrid-594a82b45e5d9dcd90faad8fa4f8eb42b2c981b6.zip godot-hexgrid-594a82b45e5d9dcd90faad8fa4f8eb42b2c981b6.tar.gz |
add zoom buttons, support one button mouse, add font
Diffstat (limited to 'Main.tscn')
-rw-r--r-- | Main.tscn | 130 |
1 files changed, 82 insertions, 48 deletions
@@ -1,12 +1,20 @@ -[gd_scene load_steps=7 format=2] +[gd_scene load_steps=10 format=2] [ext_resource path="res://Camera.gd" type="Script" id=1] [ext_resource path="res://Map.gd" type="Script" id=2] [ext_resource path="res://Main.gd" type="Script" id=3] [ext_resource path="res://Los.gd" type="Script" id=4] +[ext_resource path="res://assets/Anke.otf" type="DynamicFontData" id=5] [ext_resource path="res://assets/target.png" type="Texture" id=6] [ext_resource path="res://assets/tank.png" type="Texture" id=7] +[sub_resource type="DynamicFont" id=1] +size = 35 +font_data = ExtResource( 5 ) + +[sub_resource type="Theme" id=2] +default_font = SubResource( 1 ) + [node name="Main" type="Node2D"] script = ExtResource( 3 ) @@ -22,53 +30,9 @@ __meta__ = { "_edit_use_anchors_": false } -[node name="UI" type="VBoxContainer" parent="CanvasLayer/HBOX"] -margin_right = 150.0 -margin_bottom = 600.0 -rect_min_size = Vector2( 150, 0 ) -__meta__ = { -"_edit_use_anchors_": false -} - -[node name="rotate" type="Button" parent="CanvasLayer/HBOX/UI"] -margin_right = 150.0 -margin_bottom = 20.0 -text = "Rotate" -__meta__ = { -"_edit_use_anchors_": false -} - -[node name="LOS" type="CheckBox" parent="CanvasLayer/HBOX/UI"] -margin_top = 24.0 -margin_right = 150.0 -margin_bottom = 48.0 -pressed = true -text = "LOS" -__meta__ = { -"_edit_use_anchors_": false -} - -[node name="Move" type="CheckBox" parent="CanvasLayer/HBOX/UI"] -margin_top = 52.0 -margin_right = 150.0 -margin_bottom = 76.0 -text = "Move" -__meta__ = { -"_edit_use_anchors_": false -} - -[node name="Info" type="Label" parent="CanvasLayer/HBOX/UI"] -margin_top = 80.0 -margin_right = 150.0 -margin_bottom = 94.0 -__meta__ = { -"_edit_use_anchors_": false -} - [node name="ViewportContainer" type="ViewportContainer" parent="CanvasLayer/HBOX"] -margin_left = 154.0 -margin_right = 1024.0 -margin_bottom = 600.0 +margin_right = 1666.0 +margin_bottom = 1080.0 rect_min_size = Vector2( 100, 100 ) mouse_filter = 2 size_flags_horizontal = 3 @@ -79,7 +43,7 @@ __meta__ = { } [node name="Viewport" type="Viewport" parent="CanvasLayer/HBOX/ViewportContainer"] -size = Vector2( 870, 600 ) +size = Vector2( 1666, 1080 ) handle_input_locally = false render_target_update_mode = 3 @@ -102,3 +66,73 @@ script = ExtResource( 4 ) [node name="Camera" type="Camera2D" parent="CanvasLayer/HBOX/ViewportContainer/Viewport"] current = true script = ExtResource( 1 ) + +[node name="UI" type="VBoxContainer" parent="CanvasLayer/HBOX"] +margin_left = 1670.0 +margin_right = 1920.0 +margin_bottom = 1080.0 +rect_min_size = Vector2( 250, 0 ) +theme = SubResource( 2 ) +custom_constants/separation = 30 +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="rotate" type="Button" parent="CanvasLayer/HBOX/UI"] +margin_right = 250.0 +margin_bottom = 100.0 +rect_min_size = Vector2( 0, 100 ) +size_flags_horizontal = 3 +text = "Rotate" +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="zin" type="Button" parent="CanvasLayer/HBOX/UI"] +margin_top = 130.0 +margin_right = 250.0 +margin_bottom = 230.0 +rect_min_size = Vector2( 0, 100 ) +size_flags_horizontal = 3 +text = "Z IN" +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="zout" type="Button" parent="CanvasLayer/HBOX/UI"] +margin_top = 260.0 +margin_right = 250.0 +margin_bottom = 360.0 +rect_min_size = Vector2( 0, 100 ) +size_flags_horizontal = 3 +text = "Z OUT" +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="LOS" type="CheckBox" parent="CanvasLayer/HBOX/UI"] +margin_top = 390.0 +margin_right = 250.0 +margin_bottom = 434.0 +pressed = true +text = "LOS" +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="Move" type="CheckBox" parent="CanvasLayer/HBOX/UI"] +margin_top = 464.0 +margin_right = 250.0 +margin_bottom = 508.0 +text = "Move" +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="Info" type="Label" parent="CanvasLayer/HBOX/UI"] +margin_top = 538.0 +margin_right = 250.0 +margin_bottom = 574.0 +__meta__ = { +"_edit_use_anchors_": false +} |