git init
init
This commit is contained in:
commit
f86feb424a
16 changed files with 335 additions and 0 deletions
6
.gitignore
vendored
Normal file
6
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
# Godot 4+ specific ignores
|
||||
.godot/
|
||||
/android/
|
||||
|
||||
.gitignore
|
||||
|
||||
0
README.me
Normal file
0
README.me
Normal file
1
icon.svg
Normal file
1
icon.svg
Normal file
|
|
@ -0,0 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128"><rect width="124" height="124" x="2" y="2" fill="#363d52" stroke="#212532" stroke-width="4" rx="14"/><g fill="#fff" transform="translate(12.322 12.322)scale(.101)"><path d="M105 673v33q407 354 814 0v-33z"/><path fill="#478cbf" d="m105 673 152 14q12 1 15 14l4 67 132 10 8-61q2-11 15-15h162q13 4 15 15l8 61 132-10 4-67q3-13 15-14l152-14V427q30-39 56-81-35-59-83-108-43 20-82 47-40-37-88-64 7-51 8-102-59-28-123-42-26 43-46 89-49-7-98 0-20-46-46-89-64 14-123 42 1 51 8 102-48 27-88 64-39-27-82-47-48 49-83 108 26 42 56 81zm0 33v39c0 276 813 276 814 0v-39l-134 12-5 69q-2 10-14 13l-162 11q-12 0-16-11l-10-65H446l-10 65q-4 11-16 11l-162-11q-12-3-14-13l-5-69z"/><path d="M483 600c0 34 58 34 58 0v-86c0-34-58-34-58 0z"/><circle cx="725" cy="526" r="90"/><circle cx="299" cy="526" r="90"/></g><g fill="#414042" transform="translate(12.322 12.322)scale(.101)"><circle cx="307" cy="532" r="60"/><circle cx="717" cy="532" r="60"/></g></svg>
|
||||
|
After Width: | Height: | Size: 994 B |
37
icon.svg.import
Normal file
37
icon.svg.import
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://d3nlo4wuu1nlr"
|
||||
path="res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://icon.svg"
|
||||
dest_files=["res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
svg/scale=1.0
|
||||
editor/scale_with_editor_scale=false
|
||||
editor/convert_colors_with_editor_theme=false
|
||||
BIN
media/fonts/modeseven.ttf
Normal file
BIN
media/fonts/modeseven.ttf
Normal file
Binary file not shown.
35
media/fonts/modeseven.ttf.import
Normal file
35
media/fonts/modeseven.ttf.import
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
[remap]
|
||||
|
||||
importer="font_data_dynamic"
|
||||
type="FontFile"
|
||||
uid="uid://573f7g4euxil"
|
||||
path="res://.godot/imported/modeseven.ttf-f8241be19d9180e3fcb52fd661d5ac96.fontdata"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://media/fonts/modeseven.ttf"
|
||||
dest_files=["res://.godot/imported/modeseven.ttf-f8241be19d9180e3fcb52fd661d5ac96.fontdata"]
|
||||
|
||||
[params]
|
||||
|
||||
Rendering=null
|
||||
antialiasing=1
|
||||
generate_mipmaps=false
|
||||
disable_embedded_bitmaps=true
|
||||
multichannel_signed_distance_field=false
|
||||
msdf_pixel_range=8
|
||||
msdf_size=48
|
||||
allow_system_fallback=true
|
||||
force_autohinter=false
|
||||
hinting=1
|
||||
subpixel_positioning=4
|
||||
keep_rounding_remainders=true
|
||||
oversampling=0.0
|
||||
Fallbacks=null
|
||||
fallbacks=[]
|
||||
Compress=null
|
||||
compress=true
|
||||
preload=[]
|
||||
language_support={}
|
||||
script_support={}
|
||||
opentype_features={}
|
||||
BIN
media/img/anc.gif
Normal file
BIN
media/img/anc.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.6 KiB |
BIN
media/img/test.png
Normal file
BIN
media/img/test.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 10 KiB |
34
media/img/test.png.import
Normal file
34
media/img/test.png.import
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://btfjdoaxfbtrt"
|
||||
path="res://.godot/imported/test.png-97137e2e9f6b27ee7d2db1160cdee163.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://media/img/test.png"
|
||||
dest_files=["res://.godot/imported/test.png-97137e2e9f6b27ee7d2db1160cdee163.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
BIN
media/img/test.png.kra
Normal file
BIN
media/img/test.png.kra
Normal file
Binary file not shown.
21
project.godot
Normal file
21
project.godot
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
; Engine configuration file.
|
||||
; It's best edited using the editor UI and not directly,
|
||||
; since the parameters that go here are not all obvious.
|
||||
;
|
||||
; Format:
|
||||
; [section] ; section goes between []
|
||||
; param=value ; assign values to parameters
|
||||
|
||||
config_version=5
|
||||
|
||||
[application]
|
||||
|
||||
config/name="Adventure in Warszawa"
|
||||
run/main_scene="uid://bo2bqd5a3i36n"
|
||||
config/features=PackedStringArray("4.4", "Forward Plus")
|
||||
config/icon="res://icon.svg"
|
||||
|
||||
[display]
|
||||
|
||||
window/size/viewport_width=640
|
||||
window/size/viewport_height=480
|
||||
80
scenes/menu.gd
Normal file
80
scenes/menu.gd
Normal file
|
|
@ -0,0 +1,80 @@
|
|||
extends Control
|
||||
|
||||
|
||||
@onready var MONITOR_CENTER = $BG/MarginContainer/ROWS/MONITOR/CENTER/TextureRect
|
||||
@onready var MENU = $BG/MarginContainer/ROWS/HBoxContainer/MENU_LIST
|
||||
|
||||
var B_MOVE: Button = Button.new()
|
||||
var B_LOOK: Button = Button.new()
|
||||
var B_ASK: Button = Button.new()
|
||||
var B_TALK: Button = Button.new()
|
||||
var B_INVESTIGATE: Button = Button.new()
|
||||
|
||||
var SBF_Normal: StyleBoxFlat = StyleBoxFlat.new()
|
||||
var SBF_Focus: StyleBoxFlat = StyleBoxFlat.new()
|
||||
|
||||
var f_modeseven = load("res://media/fonts/modeseven.ttf")
|
||||
|
||||
const C_NORMAL: Color = Color(0.0, 0.0, 0.0)
|
||||
const C_FOCUS: Color = Color(0.12, 0.191, 0.201)
|
||||
|
||||
var menu_list: Array[Button] = [B_MOVE, B_LOOK, B_ASK, B_TALK, B_INVESTIGATE]
|
||||
|
||||
func _ready() -> void:
|
||||
button_init()
|
||||
B_MOVE.grab_focus()
|
||||
|
||||
func _on_move_pressed() -> void:
|
||||
var imported_test = load("res://media/img/test.png")
|
||||
MONITOR_CENTER.texture = imported_test
|
||||
|
||||
|
||||
func button_init() -> void:
|
||||
# BUTTON COLORS
|
||||
# # NORMAL
|
||||
SBF_Normal.set_content_margin_all(2)
|
||||
SBF_Normal.bg_color = C_NORMAL
|
||||
|
||||
# # FOCUS
|
||||
SBF_Focus.set_content_margin_all(2)
|
||||
SBF_Focus.bg_color = C_FOCUS
|
||||
|
||||
# Button properties
|
||||
# # B_MOVE
|
||||
B_MOVE.text = "MOVE"
|
||||
B_MOVE.alignment = HORIZONTAL_ALIGNMENT_LEFT
|
||||
B_MOVE.add_theme_font_override("font", f_modeseven)
|
||||
B_MOVE.add_theme_stylebox_override("normal", SBF_Normal)
|
||||
B_MOVE.add_theme_stylebox_override("focus", SBF_Focus)
|
||||
|
||||
# # B_LOOK
|
||||
B_LOOK.text = "LOOK"
|
||||
B_LOOK.alignment = HORIZONTAL_ALIGNMENT_LEFT
|
||||
B_LOOK.add_theme_font_override("font", f_modeseven)
|
||||
B_LOOK.add_theme_stylebox_override("normal", SBF_Normal)
|
||||
B_LOOK.add_theme_stylebox_override("focus", SBF_Focus)
|
||||
|
||||
# # B_ASK
|
||||
B_ASK.text = "ASK"
|
||||
B_ASK.alignment = HORIZONTAL_ALIGNMENT_LEFT
|
||||
B_ASK.add_theme_font_override("font", f_modeseven)
|
||||
B_ASK.add_theme_stylebox_override("normal", SBF_Normal)
|
||||
B_ASK.add_theme_stylebox_override("focus", SBF_Focus)
|
||||
|
||||
# # B_TALK
|
||||
B_TALK.text = "TALK"
|
||||
B_TALK.alignment = HORIZONTAL_ALIGNMENT_LEFT
|
||||
B_TALK.add_theme_font_override("font", f_modeseven)
|
||||
B_TALK.add_theme_stylebox_override("normal", SBF_Normal)
|
||||
B_TALK.add_theme_stylebox_override("focus", SBF_Focus)
|
||||
|
||||
|
||||
# # B_INVESTIGATE
|
||||
B_INVESTIGATE.text = "INVESTIGATE"
|
||||
B_INVESTIGATE.alignment = HORIZONTAL_ALIGNMENT_LEFT
|
||||
B_INVESTIGATE.add_theme_font_override("font", f_modeseven)
|
||||
B_INVESTIGATE.add_theme_stylebox_override("normal", SBF_Normal)
|
||||
B_INVESTIGATE.add_theme_stylebox_override("focus", SBF_Focus)
|
||||
|
||||
for entry in menu_list:
|
||||
MENU.add_child(entry)
|
||||
1
scenes/menu.gd.uid
Normal file
1
scenes/menu.gd.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://dlcxx5bic1jfs
|
||||
48
scenes/menu.tscn
Normal file
48
scenes/menu.tscn
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
[gd_scene load_steps=2 format=3 uid="uid://bo2bqd5a3i36n"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dlcxx5bic1jfs" path="res://scenes/menu.gd" id="1_vjb58"]
|
||||
|
||||
[node name="Control" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 0
|
||||
offset_right = 640.0
|
||||
offset_bottom = 480.0
|
||||
script = ExtResource("1_vjb58")
|
||||
|
||||
[node name="BG" type="PanelContainer" parent="."]
|
||||
layout_mode = 0
|
||||
offset_right = 640.0
|
||||
offset_bottom = 480.0
|
||||
|
||||
[node name="ColorRect" type="ColorRect" parent="BG"]
|
||||
custom_minimum_size = Vector2(640, 0)
|
||||
layout_mode = 2
|
||||
color = Color(0, 0, 0, 1)
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="BG"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/margin_left = 10
|
||||
theme_override_constants/margin_top = 10
|
||||
theme_override_constants/margin_right = 10
|
||||
theme_override_constants/margin_bottom = 10
|
||||
|
||||
[node name="ROWS" type="VBoxContainer" parent="BG/MarginContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="MONITOR" type="HBoxContainer" parent="BG/MarginContainer/ROWS"]
|
||||
custom_minimum_size = Vector2(0, 300)
|
||||
layout_mode = 2
|
||||
|
||||
[node name="CENTER" type="MarginContainer" parent="BG/MarginContainer/ROWS/MONITOR"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="BG/MarginContainer/ROWS/MONITOR/CENTER"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="BG/MarginContainer/ROWS"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="MENU_LIST" type="VBoxContainer" parent="BG/MarginContainer/ROWS/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
71
scenes/menu_list.gd
Normal file
71
scenes/menu_list.gd
Normal file
|
|
@ -0,0 +1,71 @@
|
|||
extends VBoxContainer
|
||||
|
||||
# CONTAINER BUTTONS
|
||||
|
||||
var B_MOVE: Button = Button.new()
|
||||
var B_LOOK: Button = Button.new()
|
||||
var B_ASK: Button = Button.new()
|
||||
var B_TALK: Button = Button.new()
|
||||
var B_INVESTIGATE: Button = Button.new()
|
||||
|
||||
var SB_NORMAL: StyleBoxFlat = StyleBoxFlat.new()
|
||||
var SB_FOCUSED: StyleBoxFlat = StyleBoxFlat.new()
|
||||
|
||||
const C_FOCUSED: Color = Color(0.0, 0.163, 0.240)
|
||||
const C_NORMAL: Color = Color(0.0, 0.0, 0.0)
|
||||
|
||||
var menu_list: Array[Button] = [B_MOVE, B_LOOK, B_ASK, B_TALK, B_INVESTIGATE]
|
||||
|
||||
func _ready() -> void:
|
||||
init()
|
||||
button_init()
|
||||
|
||||
func init() -> void:
|
||||
B_MOVE.grab_focus()
|
||||
|
||||
func button_init() -> void:
|
||||
# BUTTON COLORS
|
||||
# # NORMAL
|
||||
SB_NORMAL = $".".get_theme_stylebox("normal").duplicate()
|
||||
SB_NORMAL.bg_color = C_NORMAL
|
||||
SB_NORMAL.set_content_margin_all(2)
|
||||
|
||||
# # FOCUSED
|
||||
SB_FOCUSED = $".".get_theme_stylebox("focused").duplicate()
|
||||
SB_FOCUSED.bg_color = C_FOCUSED
|
||||
SB_FOCUSED.set_content_margin_all(2)
|
||||
|
||||
# Button properties
|
||||
# # B_MOVE
|
||||
B_MOVE.text = "MOVE"
|
||||
B_MOVE.alignment = HORIZONTAL_ALIGNMENT_LEFT
|
||||
B_MOVE.add_theme_stylebox_override("normal", SB_NORMAL)
|
||||
B_MOVE.add_theme_stylebox_override("focused", SB_FOCUSED)
|
||||
|
||||
# # B_LOOK
|
||||
B_LOOK.text = "LOOK"
|
||||
B_LOOK.alignment = HORIZONTAL_ALIGNMENT_LEFT
|
||||
B_LOOK.add_theme_stylebox_override("normal", SB_NORMAL)
|
||||
B_LOOK.add_theme_stylebox_override("focused", SB_FOCUSED)
|
||||
|
||||
# # B_ASK
|
||||
B_ASK.text = "ASK"
|
||||
B_ASK.alignment = HORIZONTAL_ALIGNMENT_LEFT
|
||||
B_ASK.add_theme_stylebox_override("normal", SB_NORMAL)
|
||||
B_ASK.add_theme_stylebox_override("focused", SB_FOCUSED)
|
||||
|
||||
# # B_TALK
|
||||
B_TALK.text = "TALK"
|
||||
B_TALK.alignment = HORIZONTAL_ALIGNMENT_LEFT
|
||||
B_TALK.add_theme_stylebox_override("normal", SB_NORMAL)
|
||||
B_TALK.add_theme_stylebox_override("focused", SB_FOCUSED)
|
||||
|
||||
# # B_INVESTIGATE
|
||||
B_INVESTIGATE.text = "MOVE"
|
||||
B_INVESTIGATE.alignment = HORIZONTAL_ALIGNMENT_LEFT
|
||||
B_INVESTIGATE.add_theme_stylebox_override("normal", SB_NORMAL)
|
||||
B_INVESTIGATE.add_theme_stylebox_override("focused", SB_FOCUSED)
|
||||
|
||||
for entry in menu_list:
|
||||
add_child(entry)
|
||||
|
||||
1
scenes/menu_list.gd.uid
Normal file
1
scenes/menu_list.gd.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://xpwg64j1auie
|
||||
Loading…
Add table
Add a link
Reference in a new issue