Commit 68002778 authored by Kegan's avatar Kegan

Revert broken shit

parent 3d74227f
......@@ -74,9 +74,9 @@ class BrChatMenu extends ChatInputMenu
override void Update(float timeslice)
{
GetGame().GetInput().DisableKey(KeyCode.KC_RETURN);
if(GetGame().GetInput().GetActionUp(UAZeroingUp,false))
if(GetGame().GetInput().GetAction(UAZeroingUp,false) > 0)
{
switch(BrChatMenu.m_current_channel)
{
......@@ -89,7 +89,7 @@ class BrChatMenu extends ChatInputMenu
}
UpdateChannel();
}
if(GetGame().GetInput().GetActionUp(UAZeroingDown,false))
if(GetGame().GetInput().GetAction(UAZeroingDown,false) > 0)
{
switch(BrChatMenu.m_current_channel)
{
......@@ -102,13 +102,15 @@ class BrChatMenu extends ChatInputMenu
}
UpdateChannel();
}
GetGame().GetInput().DisableKey(KeyCode.KC_RETURN);
}
override void UpdateChannel()
{
if(new_m_mission)
{
new_m_mission.m_ChatChannelText.SetText(GetChannelNameInt(BrChatMenu.m_current_channel));
new_m_mission.m_ChatChannelText.SetText(BrChatMenu.GetChannelNameInt(BrChatMenu.m_current_channel));
new_m_mission.m_ChatChannelFadeTimer.FadeIn(new_m_mission.m_ChatChannelArea, 0.5, true);
new_m_mission.m_ChatChannelHideTimer.Run(2, new_m_mission.m_ChatChannelFadeTimer, "FadeOut", new Param3<Widget, float, bool>(new_m_mission.m_ChatChannelArea, 0.5, true));
}
......
......@@ -119,22 +119,6 @@ modded class MissionGameplay
}
}
override void OnEvent(EventType eventTypeId, Param params)
{
if(eventTypeId == ChatMessageEventTypeID)
{
ChatMessageEventParams chat_params = ChatMessageEventParams.Cast( params );
BRLOG("New chat: " + chat_params.param1.ToString() + " | " + chat_params.param2 + " | " + chat_params.param3 + " | " + chat_params.param4);
m_Chat.Add(chat_params);
}
else
{
super.OnEvent(eventTypeId,params);
}
}
//Unlock gesture menu
override void OnKeyPress(int key)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment