diff options
| author | tpart <tpart120@proton.me> | 2024-08-29 15:33:50 +0200 | 
|---|---|---|
| committer | tpart <tpart120@proton.me> | 2024-08-29 15:33:50 +0200 | 
| commit | 295a5b6658b8202399a4940c207bd56f51bbcec9 (patch) | |
| tree | 010f4640c6ceab7d91bdedeb9d429c03064451b5 /client | |
| parent | cd18aa57fa0c11bf455132d0c764d1340455eed1 (diff) | |
| download | hurrycurry-295a5b6658b8202399a4940c207bd56f51bbcec9.tar hurrycurry-295a5b6658b8202399a4940c207bd56f51bbcec9.tar.bz2 hurrycurry-295a5b6658b8202399a4940c207bd56f51bbcec9.tar.zst | |
Fix chat preview overlapping with chat open
Diffstat (limited to 'client')
| -rw-r--r-- | client/menu/chat/chat_preview.gd | 1 | ||||
| -rw-r--r-- | client/menu/game.gd | 5 | 
2 files changed, 5 insertions, 1 deletions
| diff --git a/client/menu/chat/chat_preview.gd b/client/menu/chat/chat_preview.gd index 189ca89b..934af0b2 100644 --- a/client/menu/chat/chat_preview.gd +++ b/client/menu/chat/chat_preview.gd @@ -14,6 +14,7 @@  # along with this program.  If not, see <https://www.gnu.org/licenses/>.  #  extends Control +class_name ChatPreview  const CHAT_MESSAGE_SCENE = preload("res://menu/chat/chat_message.tscn") diff --git a/client/menu/game.gd b/client/menu/game.gd index 1d961d3c..f50a43a6 100644 --- a/client/menu/game.gd +++ b/client/menu/game.gd @@ -21,6 +21,7 @@ class_name GameMenu  @onready var debug_label: RichTextLabel = $Debug  @onready var overlay: Overlay = $Overlay  @onready var popup_message: PopupMessage = $PopupMessage +@onready var chat_preview: ChatPreview = $ChatPreview  func _ready():  	get_tree().get_root().connect("go_back_requested", open_ingame_menu) @@ -33,7 +34,9 @@ func _input(_event):  	if Input.is_action_just_pressed("chat"):  		Sound.play_click() -		submenu("res://menu/chat/chat_open.tscn") +		chat_preview.visible = false +		await submenu("res://menu/chat/chat_open.tscn") +		chat_preview.visible = true  func _menu_cover(state):  	game.camera.disable_input_menu = state | 
