by Spike » Fri Jun 07, 2013 6:54 pm
try 'game' instead of 'gamedir'?
I guess fte is a bit more permissive
regarding text entry, you'll have to draw it yourself. my version has that code in mitem_edittext.qc in that zip I already linked.
for menuqc specifically, m_keydown takes two arguments. the first is the 'scancode', the second is the 'charcode'. if its a proper text char (a-z, A-Z, 0-9, punctuation, etc) then the charcode value will contain a non-zero value.
you can then:
curval = strcat(curval, chr2str(charcode));
to append the printable char.
however you'll first want to check the scancode to see if its backspace or delete and use substring accordingly instead, of course (specify -1 for the length if you want the entire rest of the string by the way).
but yeah, you guessed it. draw it yourself, and do your own keyboard input.
once you do have text entry working, you can just sethostcachemaskstring() and then redo your sethostcachemaskstring calls with the new settings. the list should update accordingly.
.