From 0fc6dd317fc5bc491620102e89817a04e1692e20 Mon Sep 17 00:00:00 2001 From: Imbris Date: Tue, 7 May 2019 00:04:45 -0400 Subject: [PATCH] open input box by clicking anywhere on chat Former-commit-id: f379c52d034b16c5390375899e551b01515cd11e --- voxygen/src/hud/chat.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/voxygen/src/hud/chat.rs b/voxygen/src/hud/chat.rs index 76dff03a52..feca23c97b 100644 --- a/voxygen/src/hud/chat.rs +++ b/voxygen/src/hud/chat.rs @@ -141,6 +141,7 @@ impl<'a> Widget for Chat<'a> { }) .set(state.ids.message_box_bg, ui); let (mut items, _) = List::flow_down(state.messages.len() + 1) + .graphics_for(state.ids.input) .top_left_of(state.ids.message_box_bg) .w_h(470.0, 174.0) .scroll_kids_vertically() @@ -149,6 +150,7 @@ impl<'a> Widget for Chat<'a> { // This would be easier if conrod used the v-metrics from rusttype let widget = if item.i < state.messages.len() { let text = Text::new(&state.messages[item.i]) + .graphics_for(state.ids.input) .font_size(15) .font_id(self.fonts.opensans) .w(470.0)