Display items in inventory
This commit is contained in:
@@ -64,8 +64,10 @@ namespace DialogueManagerRuntime
|
||||
}
|
||||
}
|
||||
|
||||
if (!isWaitingForInput) return;
|
||||
if (dialogueLine.Responses.Count > 0) return;
|
||||
if (!isWaitingForInput)
|
||||
return;
|
||||
if (dialogueLine.Responses.Count > 0)
|
||||
return;
|
||||
|
||||
GetViewport().SetInputAsHandled();
|
||||
|
||||
@@ -104,22 +106,6 @@ namespace DialogueManagerRuntime
|
||||
GetViewport().SetInputAsHandled();
|
||||
}
|
||||
|
||||
|
||||
public override async void _Notification(int what)
|
||||
{
|
||||
// Detect a change of locale and update the current dialogue line to show the new language
|
||||
if (what == NotificationTranslationChanged)
|
||||
{
|
||||
float visibleRatio = dialogueLabel.VisibleRatio;
|
||||
DialogueLine = await DialogueManager.GetNextDialogueLine(resource, DialogueLine.Id, temporaryGameStates);
|
||||
if (visibleRatio < 1.0f)
|
||||
{
|
||||
dialogueLabel.Call("skip_typing");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public async void Start(Resource dialogueResource, string title, Array<Variant> extraGameStates = null)
|
||||
{
|
||||
temporaryGameStates = extraGameStates ?? new Array<Variant>();
|
||||
|
||||
8
src/ui/label_settings/InventoryMainTextBold.tres
Normal file
8
src/ui/label_settings/InventoryMainTextBold.tres
Normal file
@@ -0,0 +1,8 @@
|
||||
[gd_resource type="LabelSettings" load_steps=2 format=3 uid="uid://ca1q6yu8blwxf"]
|
||||
|
||||
[ext_resource type="FontFile" uid="uid://cb41qqmxqurj8" path="res://src/ui/fonts/FT88-Bold.ttf" id="1_v70mx"]
|
||||
|
||||
[resource]
|
||||
font = ExtResource("1_v70mx")
|
||||
font_size = 32
|
||||
font_color = Color(0.737255, 0.705882, 0.690196, 1)
|
||||
BIN
src/ui/textures/INVENTORY-BACKGROUND.png
Normal file
BIN
src/ui/textures/INVENTORY-BACKGROUND.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.6 MiB |
34
src/ui/textures/INVENTORY-BACKGROUND.png.import
Normal file
34
src/ui/textures/INVENTORY-BACKGROUND.png.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://c8tnq16qgjurc"
|
||||
path="res://.godot/imported/INVENTORY-BACKGROUND.png-52bbab9ed91a19d32c4c01f282658810.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://src/ui/textures/INVENTORY-BACKGROUND.png"
|
||||
dest_files=["res://.godot/imported/INVENTORY-BACKGROUND.png-52bbab9ed91a19d32c4c01f282658810.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
|
||||
Reference in New Issue
Block a user