Example #1
0
 public TextBoxExitButton(int xLoc, int yLoc, string gra1, string gra2, TextBoxScreen tbs)
 {
     graphic = Textures.textures[gra1];
     graphicHover = Textures.textures[gra2];
     x = xLoc;
     y = yLoc;
     imageBoundingRectangle = new Rectangle(0, 0, graphic.Width, graphic.Height);
     clickBox = new Rectangle(x, y, graphic.Width, graphic.Height);
     myScreen = tbs;
 }
Example #2
0
 public TextBoxRightButton(int xLoc, int yLoc, string gra1, string gra2, TextBoxScreen tbs)
 {
     graphic                = Textures.textures[gra1];
     graphicHover           = Textures.textures[gra2];
     x                      = xLoc;
     y                      = yLoc;
     imageBoundingRectangle = new Rectangle(0, 0, graphic.Width, graphic.Height);
     clickBox               = new Rectangle(x, y, graphic.Width, graphic.Height);
     myScreen               = tbs;
 }