예제 #1
0
 public StartDrinkButton(TwoClient twoClient, TimedDrinkDialog dialog, int xOffSet, int yOffSet, SpriteFont sf,Texture2D butTexture)
     : base(twoClient.WindowWidth/2 - xOffSet,twoClient.WindowHeight/2 + yOffSet,100,1f,"Start Drinking!",twoClient,sf,butTexture)
 {
     IsActive = true;
     _dialog = dialog;
     _twoClient = twoClient;
 }
예제 #2
0
 public CloseDrinkButton(TwoClient twoClient, TimedDrinkDialog dialog, int xOffSet, int yOffSet, SpriteFont sf,Texture2D butTexture)
     : base(twoClient.WindowWidth/2 - xOffSet,twoClient.WindowHeight/2 + yOffSet,100,1f,"Close Window",twoClient,sf,butTexture)
 {
     _dialog = dialog;
     _twoClient = twoClient;
 }