MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / update

Method update

source/frontend/StarChat.cpp:111–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109}
110
111void Chat::update(float dt) {
112 Pane::update(dt);
113
114 if (m_scripted)
115 return;
116
117 auto team = m_client->teamClient()->currentTeam();
118 for (auto button : fetchChild<ButtonGroup>("filterGroup")->buttons()) {
119 auto mode = ChatSendModeNames.getLeft(button->data().getString("sendMode", "Broadcast"));
120 if (!team.isValid() && m_sendMode == ChatSendMode::Party && mode == ChatSendMode::Broadcast)
121 button->check();
122 if (mode == ChatSendMode::Party)
123 button->setEnabled(team.isValid());
124 }
125}
126
127void Chat::startChat() {
128 if (m_scripted)

Callers 2

tickMethod · 0.45
showQuestsMethod · 0.45

Calls 8

currentTeamMethod · 0.80
teamClientMethod · 0.80
buttonsMethod · 0.80
getStringMethod · 0.80
isValidMethod · 0.80
dataMethod · 0.45
checkMethod · 0.45
setEnabledMethod · 0.45

Tested by

no test coverage detected