Exemple #1
0
void DisplayFlag(int x, int y, const char *s, int on, int hilite)
{
	TextGoto(x, y);
	if (hilite) {
		TextStringWithTable(s, tableFlamed);
		TextCharWithTable(':', tableFlamed);
	} else {
		TextString(s);
		TextChar(':');
	}
	if (on)
		TextStringWithTable("On", tablePurple);
	else
		TextString("Off");
}
Exemple #2
0
void DisplayText(int x, int y, const char *text, int hilite, int editable)
{
	TextGoto(x, y);
	if (editable) {
		if (hilite)
			TextCharWithTable('\020', tableFlamed);
		else
			TextChar('\020');
	}

	if (hilite && !editable)
		TextStringWithTable(text, tableFlamed);
	else
		TextString(text);

	if (editable) {
		if (hilite)
			TextCharWithTable('\021', tableFlamed);
		else
			TextChar('\021');
	}
}
Exemple #3
0
void TextStringWithTableAt(int x, int y, const char *s,
                           TranslationTable * table)
{
    TextGoto(x, y);
    TextStringWithTable(s, table);
}