MCPcopy Create free account
hub / github.com/diasurgical/DevilutionX / DiabloHotkeyMsg

Function DiabloHotkeyMsg

Source/control.cpp:1615–1635  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1613}
1614
1615void DiabloHotkeyMsg(uint32_t dwMsg)
1616{
1617 if (!IsChatAvailable()) {
1618 return;
1619 }
1620
1621 assert(dwMsg < QUICK_MESSAGE_OPTIONS);
1622
1623 for (auto &msg : sgOptions.Chat.szHotKeyMsgs[dwMsg]) {
1624
1625#ifdef _DEBUG
1626 if (CheckDebugTextCommand(msg))
1627 continue;
1628#endif
1629 if (CheckTextCommand(msg))
1630 continue;
1631 char charMsg[MAX_SEND_STR_LEN];
1632 CopyUtf8(charMsg, msg, sizeof(charMsg));
1633 NetSendCmdString(0xFFFFFF, charMsg);
1634 }
1635}
1636
1637void OpenGoldDrop(int8_t invIndex, int max)
1638{

Callers 1

InitKeymapActionsFunction · 0.85

Calls 5

IsChatAvailableFunction · 0.85
CheckDebugTextCommandFunction · 0.85
CheckTextCommandFunction · 0.85
CopyUtf8Function · 0.85
NetSendCmdStringFunction · 0.85

Tested by

no test coverage detected