void AddMyPrompter(string line) { lastPrompter = new SHGUIprompter(1, currentline, 'w'); lastPrompter.SetInput(line); lastPrompter.y = currentline; lastPrompter.maxLineLength = 30; lastPrompter.maxSmartBreakOffset = 1; lastPrompter.SwitchToManualInputMode(); AddSubView(lastPrompter); }
public void AddInteractivePrompterToQueue(string Text, string prefix = "") { SHGUItext TextView = new SHGUItext(Text, frameOffset, 0, 'w'); TextView.BreakCut(SHGUI.current.resolutionX - 2, 100); SHGUIprompter promp = new SHGUIprompter(frameOffset, 0, 'w'); promp.SetInput(Text); promp.SwitchToManualInputMode(); promp.maxLineLength = SHGUI.current.resolutionX - 2 - frameOffset; promp.maxSmartBreakOffset = 0; promp.AddPrefix(prefix); queue.Add(new scrollmessage(promp, TextView.CountLines(), 0)); }
public SHGUIguruchatwindow SetInteractive() { textElement.drawCarriage = true; textElement.SwitchToManualInputMode(); return(this); }