blocked out a prose module
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
extends RichTextLabel
|
||||
|
||||
var storyteller
|
||||
|
||||
func update_dialog(dict):
|
||||
set_text(tr(dict['line']))
|
||||
|
||||
func _ready():
|
||||
add_to_group("dialog_box")
|
||||
@@ -0,0 +1,12 @@
|
||||
extends PanelContainer
|
||||
|
||||
onready var action = $HBox/Content/Game/VBox/HBox2/VBox/Action
|
||||
onready var messages = $HBox/Content/Game/VBox/Messages
|
||||
onready var partner = $HBox/Content/Game/VBox/HBox2/Partner
|
||||
onready var PDA = $HBox/Content/Game/VBox/HBox/PDA
|
||||
onready var shoutbox = $HBox/Shoutbox
|
||||
onready var whatnow = $HBox/Content/Game/VBox/HBox2/VBox/WhatNow
|
||||
onready var view = $HBox/Content/Game/VBox/HBox/View
|
||||
|
||||
func send_chat_message(id, msg):
|
||||
get_parent().send_chat_message(id, msg)
|
||||
+132
@@ -0,0 +1,132 @@
|
||||
[gd_scene load_steps=8 format=2]
|
||||
|
||||
[ext_resource path="res://UI/DialogBox.gd" type="Script" id=1]
|
||||
[ext_resource path="res://UI/Shoutbox/Shoutbox.tscn" type="PackedScene" id=2]
|
||||
[ext_resource path="res://UI/UI.gd" type="Script" id=3]
|
||||
[ext_resource path="res://UI/Action.gd" type="Script" id=4]
|
||||
[ext_resource path="res://icon.png" type="Texture" id=5]
|
||||
|
||||
[sub_resource type="Theme" id=1]
|
||||
|
||||
[sub_resource type="StyleBoxTexture" id=2]
|
||||
texture = ExtResource( 5 )
|
||||
region_rect = Rect2( 0, 0, 64, 64 )
|
||||
|
||||
[node name="UI" type="PanelContainer"]
|
||||
margin_right = 800.0
|
||||
margin_bottom = 600.0
|
||||
rect_min_size = Vector2( 800, 600 )
|
||||
rect_clip_content = true
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
script = ExtResource( 3 )
|
||||
|
||||
[node name="HBox" type="HBoxContainer" parent="."]
|
||||
margin_left = 7.0
|
||||
margin_top = 7.0
|
||||
margin_right = 793.0
|
||||
margin_bottom = 593.0
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
|
||||
[node name="Content" type="PanelContainer" parent="HBox"]
|
||||
margin_right = 612.0
|
||||
margin_bottom = 586.0
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
|
||||
[node name="Game" type="PanelContainer" parent="HBox/Content"]
|
||||
margin_left = 7.0
|
||||
margin_top = 7.0
|
||||
margin_right = 605.0
|
||||
margin_bottom = 579.0
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
|
||||
[node name="VBox" type="VBoxContainer" parent="HBox/Content/Game"]
|
||||
margin_left = 7.0
|
||||
margin_top = 7.0
|
||||
margin_right = 591.0
|
||||
margin_bottom = 565.0
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
|
||||
[node name="HBox" type="HBoxContainer" parent="HBox/Content/Game/VBox"]
|
||||
margin_right = 584.0
|
||||
margin_bottom = 335.0
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
|
||||
[node name="View" type="TextureRect" parent="HBox/Content/Game/VBox/HBox"]
|
||||
margin_right = 375.0
|
||||
margin_bottom = 335.0
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
texture = ExtResource( 5 )
|
||||
expand = true
|
||||
|
||||
[node name="PDA" type="PanelContainer" parent="HBox/Content/Game/VBox/HBox"]
|
||||
margin_left = 379.0
|
||||
margin_right = 584.0
|
||||
margin_bottom = 335.0
|
||||
rect_min_size = Vector2( 205, 335 )
|
||||
size_flags_horizontal = 0
|
||||
size_flags_vertical = 0
|
||||
theme = SubResource( 1 )
|
||||
custom_styles/panel = SubResource( 2 )
|
||||
|
||||
[node name="Messages" type="RichTextLabel" parent="HBox/Content/Game/VBox"]
|
||||
margin_top = 339.0
|
||||
margin_right = 584.0
|
||||
margin_bottom = 404.0
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
text = "You are in the Customs Office.
|
||||
WARNING: You have no light source.
|
||||
Dan is hungry. You should feed him soon."
|
||||
script = ExtResource( 1 )
|
||||
|
||||
[node name="HBox2" type="HBoxContainer" parent="HBox/Content/Game/VBox"]
|
||||
margin_top = 408.0
|
||||
margin_right = 584.0
|
||||
margin_bottom = 558.0
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
|
||||
[node name="VBox" type="VBoxContainer" parent="HBox/Content/Game/VBox/HBox2"]
|
||||
margin_right = 430.0
|
||||
margin_bottom = 150.0
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
|
||||
[node name="WhatNow" type="Label" parent="HBox/Content/Game/VBox/HBox2/VBox"]
|
||||
margin_right = 430.0
|
||||
margin_bottom = 73.0
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
text = "What will you do now...?"
|
||||
valign = 2
|
||||
|
||||
[node name="Action" type="GridContainer" parent="HBox/Content/Game/VBox/HBox2/VBox"]
|
||||
margin_top = 77.0
|
||||
margin_right = 430.0
|
||||
margin_bottom = 150.0
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
columns = 2
|
||||
script = ExtResource( 4 )
|
||||
|
||||
[node name="Partner" type="TextureRect" parent="HBox/Content/Game/VBox/HBox2"]
|
||||
margin_left = 434.0
|
||||
margin_right = 584.0
|
||||
margin_bottom = 150.0
|
||||
rect_min_size = Vector2( 150, 150 )
|
||||
size_flags_horizontal = 0
|
||||
size_flags_vertical = 0
|
||||
texture = ExtResource( 5 )
|
||||
expand = true
|
||||
|
||||
[node name="Shoutbox" parent="HBox" instance=ExtResource( 2 )]
|
||||
margin_left = 616.0
|
||||
rect_min_size = Vector2( 170, 0 )
|
||||
size_flags_horizontal = 0
|
||||
Reference in New Issue
Block a user