Added CharacterOption scene
parent
b6277954e5
commit
fe92968dcd
|
@ -0,0 +1,9 @@
|
|||
extends Control
|
||||
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
pass # Replace with function body.
|
||||
|
||||
func _process(delta):
|
||||
$Viewport.size = rect_size
|
|
@ -0,0 +1,36 @@
|
|||
[gd_scene load_steps=4 format=2]
|
||||
|
||||
[ext_resource path="res://Assets/Characters/HerMajestyTheQueen/HerMajestyTheQueen.tscn" type="PackedScene" id=1]
|
||||
[ext_resource path="res://GUI/CharacterOption.gd" type="Script" id=2]
|
||||
|
||||
[sub_resource type="ViewportTexture" id=1]
|
||||
viewport_path = NodePath("Viewport")
|
||||
|
||||
[node name="CharacterOption" type="Control"]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
script = ExtResource( 2 )
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="CharacterDisplay" type="TextureButton" parent="."]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
texture_normal = SubResource( 1 )
|
||||
expand = true
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="Viewport" type="Viewport" parent="."]
|
||||
size = Vector2( 500, 500 )
|
||||
transparent_bg = true
|
||||
msaa = 2
|
||||
render_target_v_flip = true
|
||||
|
||||
[node name="Camera" type="Camera" parent="Viewport"]
|
||||
transform = Transform( -1, 0, -3.25841e-07, 0, 1, 0, 3.25841e-07, 0, -1, 0, 1.38191, -6.32464 )
|
||||
fov = 39.6532
|
||||
|
||||
[node name="HerMajestyTheQueen" parent="Viewport" instance=ExtResource( 1 )]
|
|
@ -1,6 +1,6 @@
|
|||
[gd_scene load_steps=3 format=2]
|
||||
|
||||
[ext_resource path="res://CharacterSelect.gd" type="Script" id=1]
|
||||
[ext_resource path="res://GUI/CharacterSelect.gd" type="Script" id=1]
|
||||
[ext_resource path="res://GUI/theme.tres" type="Theme" id=2]
|
||||
|
||||
[node name="CharacterSelect" type="Control"]
|
|
@ -3,7 +3,7 @@
|
|||
[ext_resource path="res://GUI/theme.tres" type="Theme" id=1]
|
||||
[ext_resource path="res://Game.gd" type="Script" id=2]
|
||||
[ext_resource path="res://Level.tscn" type="PackedScene" id=3]
|
||||
[ext_resource path="res://CharacterSelect.tscn" type="PackedScene" id=4]
|
||||
[ext_resource path="res://GUI/CharacterSelect.tscn" type="PackedScene" id=4]
|
||||
|
||||
[sub_resource type="ProceduralSky" id=1]
|
||||
|
||||
|
|
Reference in New Issue