1717function AdvancedChatHooks :OnInputConceptEvent (p_Hook , p_EventType , p_Action )
1818 -- If this is a chat-related input concept event then filter it
1919 -- to prevent the game from showing the default chat dialog.
20- print (" OnInputConceptEvent" )
21-
2220 if p_Action == UIInputAction .UIInputAction_SayAllChat and p_EventType == UIInputActionEventType .UIInputActionEventType_Pressed then
2321 m_StoreManager :Dispatch (" EnableTyping" , " all" )
2422 p_Hook :Pass (UIInputAction .UIInputAction_None , p_EventType )
@@ -50,7 +48,6 @@ function AdvancedChatHooks:OnEnableCursorMode(p_Hook, p_Enable, p_Cursor)
5048 -- Here we store the current cursor mode as requested by the
5149 -- engine in order to restore it later on.
5250
53- print (" OnEnableCursorMode, enable: " .. tostring (p_Enable ))
5451 self .m_CursorMode = p_Enable
5552end
5653
@@ -59,7 +56,6 @@ function AdvancedChatHooks:OnDisableMouse()
5956 -- If mouse input was previously enabled by the engine
6057 -- we will ignore this request.
6158
62- print (" OnDisableMouse" )
6359 if self .m_CursorMode then
6460 return
6561 end
@@ -73,16 +69,12 @@ function AdvancedChatHooks:OnEnableMouse()
7369 -- If mouse input is already enabled we will ignore
7470 -- this request.
7571
76- print (" OnEnableMouse" )
7772 if self .m_CursorMode then
78- print (" mouse already enabled, ignoring" )
7973 return
8074 end
8175
82- print (" mouse disabled, enabling" )
83-
8476 -- Otherwise, we will proceed to enabling it.
8577 WebUI :EnableMouse ()
8678end
8779
88- return AdvancedChatHooks
80+ return AdvancedChatHooks
0 commit comments