add console panel, still have scroll problem
This commit is contained in:
46
scenes/stages/ConsolePanel.tscn
Normal file
46
scenes/stages/ConsolePanel.tscn
Normal file
@ -0,0 +1,46 @@
|
||||
[gd_scene load_steps=4 format=2]
|
||||
|
||||
[ext_resource path="res://scenes/user_interface/LineEditBorderless.tscn" type="PackedScene" id=1]
|
||||
[ext_resource path="res://scripts/stages/ConsolePanel.cs" type="Script" id=2]
|
||||
[ext_resource path="res://resources/user_interface/default_theme.tres" type="Theme" id=3]
|
||||
|
||||
[node name="ConsolePanel" type="Control"]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
theme = ExtResource( 3 )
|
||||
script = ExtResource( 2 )
|
||||
|
||||
[node name="CommandInput" parent="." instance=ExtResource( 1 )]
|
||||
anchor_top = 1.0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
margin_top = -44.0
|
||||
margin_right = 0.0
|
||||
margin_bottom = 0.0
|
||||
size_flags_vertical = 3
|
||||
placeholder_text = "Input your command here..."
|
||||
placeholder_alpha = 0.3
|
||||
caret_blink = true
|
||||
|
||||
[node name="ScrollSet" type="Control" parent="."]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
margin_top = 24.0
|
||||
margin_right = -48.0
|
||||
margin_bottom = -64.0
|
||||
|
||||
[node name="ScrollBackground" type="ColorRect" parent="ScrollSet"]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
color = Color( 0, 0, 0, 0.498039 )
|
||||
|
||||
[node name="Scrollbar" type="ScrollContainer" parent="ScrollSet"]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
scroll_horizontal_enabled = false
|
||||
|
||||
[node name="MessageContainer" type="VBoxContainer" parent="ScrollSet/Scrollbar"]
|
||||
margin_right = 976.0
|
||||
margin_bottom = 680.0
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
@ -3,7 +3,7 @@
|
||||
[ext_resource path="res://resources/textures/Ball_Paper.bmp" type="Texture" id=1]
|
||||
[ext_resource path="res://resources/textures/Ball_Stone.bmp" type="Texture" id=2]
|
||||
[ext_resource path="res://resources/textures/Ball_Wood.bmp" type="Texture" id=3]
|
||||
[ext_resource path="res://scripts/stages/PlayerBall.cs" type="Script" id=4]
|
||||
[ext_resource path="res://scripts/stages/ShadowBall.cs" type="Script" id=4]
|
||||
[ext_resource path="res://scenes/user_interface/LabelNormal.tscn" type="PackedScene" id=5]
|
||||
[ext_resource path="res://resources/user_interface/player_pointer.png" type="Texture" id=6]
|
||||
|
||||
@ -112,16 +112,21 @@ margin_bottom = 16.0
|
||||
rect_pivot_offset = Vector2( 16, 16 )
|
||||
texture = ExtResource( 6 )
|
||||
|
||||
[node name="Ball_Paper" type="MeshInstance" parent="."]
|
||||
[node name="ModelArchor" type="Spatial" parent="."]
|
||||
|
||||
[node name="Ball_Paper" type="MeshInstance" parent="ModelArchor"]
|
||||
visible = false
|
||||
mesh = SubResource( 4 )
|
||||
skeleton = NodePath("../..")
|
||||
material/0 = null
|
||||
|
||||
[node name="Ball_Stone" type="MeshInstance" parent="."]
|
||||
[node name="Ball_Stone" type="MeshInstance" parent="ModelArchor"]
|
||||
visible = false
|
||||
mesh = SubResource( 5 )
|
||||
skeleton = NodePath("../..")
|
||||
material/0 = null
|
||||
|
||||
[node name="Ball_Wood" type="MeshInstance" parent="."]
|
||||
[node name="Ball_Wood" type="MeshInstance" parent="ModelArchor"]
|
||||
mesh = SubResource( 6 )
|
||||
skeleton = NodePath("../..")
|
||||
material/0 = null
|
@ -8,7 +8,10 @@ script = ExtResource( 1 )
|
||||
[node name="FreeCamOrigin" type="Spatial" parent="."]
|
||||
|
||||
[node name="FreeCam" type="Camera" parent="."]
|
||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 )
|
||||
fov = 58.0
|
||||
near = 3.0
|
||||
far = 1200.0
|
||||
|
||||
[node name="StaticCamOrigin" type="Spatial" parent="."]
|
||||
|
||||
[node name="StaticCamTracking" type="Spatial" parent="StaticCamOrigin"]
|
||||
|
@ -1,8 +1,9 @@
|
||||
[gd_scene load_steps=4 format=2]
|
||||
[gd_scene load_steps=5 format=2]
|
||||
|
||||
[ext_resource path="res://scenes/levels/test.escn" type="PackedScene" id=1]
|
||||
[ext_resource path="res://scripts/stages/StalkerCore.cs" type="Script" id=2]
|
||||
[ext_resource path="res://scenes/stages/StalkerCamera.tscn" type="PackedScene" id=3]
|
||||
[ext_resource path="res://scenes/stages/ShadowBallManager.tscn" type="PackedScene" id=4]
|
||||
|
||||
[node name="StalkerCore" type="Spatial"]
|
||||
script = ExtResource( 2 )
|
||||
@ -12,4 +13,6 @@ transform = Transform( 0.920545, 0.275714, -0.276729, 0.0231072, 0.668731, 0.743
|
||||
|
||||
[node name="StalkerCamera" parent="." instance=ExtResource( 3 )]
|
||||
|
||||
[node name="ShadowBallManager" parent="." instance=ExtResource( 4 )]
|
||||
|
||||
[node name="test" parent="." instance=ExtResource( 1 )]
|
||||
|
Reference in New Issue
Block a user