MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / ChatButton

Function ChatButton

Assets/Script/Tools/BlocklyCoder.ts:312–324  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

310const inputBuffer = Buffer(5000);
311
312const ChatButton = () => {
313 ImGui.PushItemWidth(-80, () => {
314 if (ImGui.InputText(zh ? "描述需求" : "Desc", inputBuffer, [InputTextFlag.EnterReturnsTrue])) {
315 const command = inputBuffer.text;
316 if (command !== '') {
317 logs = [];
318 logs.push(`User: ${command}`);
319 root.emit('Input', command);
320 }
321 inputBuffer.text = "";
322 }
323 });
324};
325
326const windowsFlags = [
327 WindowFlag.NoMove,

Callers 1

BlocklyCoder.tsFile · 0.85

Calls 4

pushMethod · 0.65
PushItemWidthMethod · 0.45
InputTextMethod · 0.45
emitMethod · 0.45

Tested by

no test coverage detected