This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "robot-config.h" | |
void make_button(int x, int y, int tx, int ty, char *title, vex::color c, int w = 80, int h = 40) { | |
Brain.Screen.drawRectangle(x,y,w,h,c); | |
Brain.Screen.setFillColor(c); | |
Brain.Screen.printAt(x+tx,y+ty,title); | |
} | |
bool is_clicked(int bx, int by, int w = 80, int h = 40) { | |
int x = Brain.Screen.xPosition(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Copyright (c) 2018 by CMASS Robotics team. All Rights Reserved. | |
// | |
#include "main.h" | |
#include <string> | |
#include <cstdarg> | |
#include <memory> | |
short _auto_selected_id = 1; |
NewerOlder