Skip to content

Instantly share code, notes, and snippets.

@MarianoGnu
Created June 9, 2013 12:57
Show Gist options
  • Save MarianoGnu/5743418 to your computer and use it in GitHub Desktop.
Save MarianoGnu/5743418 to your computer and use it in GitHub Desktop.
void Window_VarList::DrawItemValue(int index){
if (show_switch){
contents->TextDraw(0, 16 * index + 2, Font::ColorDefault, Game_Switches[range*10+index] ? "[ON]" : "[OFF]");
}
else {
std::string ss = std::string("%d", Game_Variables[range*10+index]);
contents->TextDraw(0, 16 * index + 2, Font::ColorDefault, ss);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment