Skip to content

Commit

Permalink
Disable/Enable Chatbox input
Browse files Browse the repository at this point in the history
  • Loading branch information
nico-abram authored Dec 27, 2016
1 parent 8d12f9c commit 9360c18
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/PlayerState.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,16 @@ class LunaPlayerState: public Luna<PlayerState>
p->m_PlayerOptions.GetCurrent().PushSelf(L);
return 1;
}
static int EnableChatboxInput(T* p, lua_State *L)
{
p->onlineChatboxInput = true;
return 1;
}
static int DisableChatboxInput(T* p, lua_State *L)
{
p->onlineChatboxInput = false;
return 1;
}
DEFINE_METHOD( GetHealthState, m_HealthState );
DEFINE_METHOD( GetSuperMeterLevel, m_fSuperMeter );
static int SetTargetGoal(T* p, lua_State *L) {
Expand All @@ -288,6 +298,8 @@ class LunaPlayerState: public Luna<PlayerState>
ADD_METHOD( GetHealthState );
ADD_METHOD( GetSuperMeterLevel );
ADD_METHOD( SetTargetGoal );
ADD_METHOD(EnableChatboxInput);
ADD_METHOD(DisableChatboxInput);
}
};

Expand Down

0 comments on commit 9360c18

Please sign in to comment.