grobe daytime visuals graphics oder so

This commit is contained in:
Ententerminator 2020-01-25 19:21:28 +01:00
parent 5f8bf9013d
commit f21e5855b9
6 changed files with 59 additions and 9 deletions

View File

@ -176,7 +176,7 @@ transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0461721, 1.84617, 0 )
script = ExtResource( 2 )
[node name="LookingAt" type="RayCast" parent="Body/PillCameras"]
transform = Transform( -1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 0, 0 )
transform = Transform( -1, 0, -8.74228e-008, 0, 1, 0, 8.74228e-008, 0, -1, 0, 0, 0 )
enabled = true
cast_to = Vector3( 0, 0, 2 )
@ -261,14 +261,13 @@ unit_db = -25.0
pitch_scale = 1.5
[node name="HUD" parent="." instance=ExtResource( 10 )]
editor/display_folded = true
[node name="PillTaker" type="Spatial" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0 )
script = ExtResource( 11 )
[node name="Pills" parent="PillTaker" instance=ExtResource( 12 )]
transform = Transform( 0.1, 0, 0, 0, -4.37114e-09, 0.1, 0, -0.1, -4.37114e-09, 0, 0.7, 0 )
transform = Transform( 0.1, 0, 0, 0, -4.37114e-009, 0.1, 0, -0.1, -4.37114e-009, 0, 0.7, 0 )
visible = false
[node name="InteractArea" type="Area" parent="."]

View File

@ -5,6 +5,7 @@ var _labelPillLevel: Label
var _pillLevel: TextureProgress
var _labelDayTime: Label
var _dayTime: ProgressBar
var _dayTimeVisual: TextureRect
onready var _keyTexture = load("res://Resources/Models/key/key.png")
onready var _cardTexture = load("res://Resources/Models/keycard/keycard.png")
@ -16,6 +17,7 @@ func _ready():
_pillLevel = get_node("PillProgress")
_labelDayTime = get_node("DayTime")
_dayTime = get_node("DayTimeProgress")
_dayTimeVisual = get_node("DayTimeVisual")
# TODO: may use global values in Inspector?
_pillLevel.max_value = Pills.get_max()
@ -43,3 +45,5 @@ func _process(_delta):
var val = int(Daytime.get_time())
_labelDayTime.text = "dayTime: " + String(val) + " - %02d:%02d" % [val/60%24, val%60]
_dayTime.value = Daytime.get_time()
_dayTimeVisual.rect_rotation = (val/_dayTime.max_value) * 360 #pivot offset x=67, y = 7

View File

@ -1,9 +1,10 @@
[gd_scene load_steps=5 format=2]
[gd_scene load_steps=6 format=2]
[ext_resource path="res://Characters/Player/UI/UI.gd" type="Script" id=1]
[ext_resource path="res://Resources/Fonts/MainFont.tres" type="DynamicFont" id=2]
[ext_resource path="res://Resources/Textures/pillLevel_fill.png" type="Texture" id=3]
[ext_resource path="res://Resources/Textures/crosshair.png" type="Texture" id=4]
[ext_resource path="res://Resources/Textures/daytimeUI.png" type="Texture" id=4]
[ext_resource path="res://Resources/Textures/crosshair.png" type="Texture" id=5]
[node name="HUD" type="Control"]
anchor_right = 1.0
@ -60,6 +61,17 @@ margin_left = 850.901
margin_top = 30.7722
margin_right = 988.901
margin_bottom = 44.7722
rect_pivot_offset = Vector2( 67.8153, 7.2278 )
[node name="DayTimeVisual" type="TextureRect" parent="."]
margin_left = 466.0
margin_top = -82.0
margin_right = 646.0
margin_bottom = 98.0
rect_pivot_offset = Vector2( 90, 90 )
texture = ExtResource( 4 )
expand = true
stretch_mode = 1
[node name="CrossHair" type="Control" parent="."]
anchor_left = 0.5
@ -80,6 +92,6 @@ margin_left = -20.0
margin_top = -20.0
margin_right = 20.0
margin_bottom = 20.0
texture = ExtResource( 4 )
texture = ExtResource( 5 )
expand = true
stretch_mode = 4

View File

@ -45,6 +45,7 @@ _data = {
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 14, 0, 7 )
[node name="Collectibles" type="Spatial" parent="."]
editor/display_folded = true
transform = Transform( -4.37114e-008, 0, 1, 0, 1, 0, -1, 0, -4.37114e-008, 15.0831, 1.63203, 13.0809 )
[node name="Keycard" parent="Collectibles" groups=[
@ -84,6 +85,7 @@ navmesh = SubResource( 2 )
transform = Transform( -4.37114e-008, 0, 1, 0, 1, 0, -1, 0, -4.37114e-008, 13, 0, 14 )
[node name="BuildingBlocks" type="Spatial" parent="NavigationMeshInstance"]
editor/display_folded = true
[node name="BuildingBlock" parent="NavigationMeshInstance/BuildingBlocks" instance=ExtResource( 7 )]
transform = Transform( -4.37114e-008, 0, 1, 0, 1, 0, -1, 0, -4.37114e-008, -13, 0, -13 )
@ -257,13 +259,12 @@ collision_mask = 7
shape = SubResource( 4 )
[node name="Environment" type="Spatial" parent="."]
editor/display_folded = true
[node name="WorldEnvironment" type="WorldEnvironment" parent="Environment"]
environment = SubResource( 6 )
[node name="DirectionalLight" type="DirectionalLight" parent="Environment"]
transform = Transform( 0.642788, -0.262003, -0.719846, 0, -0.939693, 0.34202, -0.766044, -0.219846, -0.604023, 0, 7, 0 )
transform = Transform( 0.642788, -0.262003, -0.719846, -8.21505e-008, -0.939693, 0.34202, -0.766044, -0.219847, -0.604023, 0, 7, 0 )
layers = 3
shadow_enabled = true

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/daytimeUI.png-a89afbe1a4ac4d3196050a6f27e3eb5a.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Resources/Textures/daytimeUI.png"
dest_files=[ "res://.import/daytimeUI.png-a89afbe1a4ac4d3196050a6f27e3eb5a.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0