game supports changing views and dialogue portraits
This commit is contained in:
@@ -4,9 +4,12 @@ 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
|
||||
onready var view = $HBox/Content/Game/VBox/HBox/Scene/View
|
||||
onready var portrait = $HBox/Content/Game/VBox/HBox/Scene/Portrait
|
||||
|
||||
func send_chat_message(id, msg):
|
||||
get_parent().send_chat_message(id, msg)
|
||||
func change_view(packet):
|
||||
view.texture = load("res://Res/Img/Scene/" + packet["loc"] + ".png")
|
||||
|
||||
func change_portrait(packet):
|
||||
portrait.texture = load("res://Res/Img/Portrait/" + packet["npc"] + ".png")
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
/Img/Portrait/" + packet["npc"] + ".png")
|
||||
Reference in New Issue
Block a user