ATTRIB(XonoticCharmap, rows, float, 10)
ATTRIB(XonoticCharmap, columns, float, 14)
- METHOD(XonoticCharmap, cellSelect, void(entity))
+ METHOD(XonoticCharmap, cellSelect, void(entity, vector))
METHOD(XonoticCharmap, cellIsValid, bool(entity, vector))
- METHOD(XonoticCharmap, cellDraw, void(entity, vector, vector, float))
+ METHOD(XonoticCharmap, cellDraw, void(entity, vector, vector))
METHOD(XonoticCharmap, charOffset, vector)
ENDCLASS(XonoticCharmap)
entity makeXonoticCharmap(entity controlledInputBox);
return me.inputBox.keyDown(me.inputBox, key, ascii, shift);
}
-void XonoticCharmap_cellSelect(entity me)
+void XonoticCharmap_cellSelect(entity me, vector cell)
{
- string character = charmap_cellToChar(me, me.focusedCell);
+ string character = charmap_cellToChar(me, cell);
if(character != "")
me.inputBox.enterText(me.inputBox, character);
}
return true;
}
-void XonoticCharmap_cellDraw(entity me, vector cell, vector cellPos, float highlightedTime)
+void XonoticCharmap_cellDraw(entity me, vector cell, vector cellPos)
{
draw_CenterText(cellPos + me.charOffset, charmap_cellToChar(me, cell), me.realFontSize, SKINCOLOR_CHARMAP_CHAR, SKINALPHA_CHARMAP_CHAR, 0);
}