@@ -21,12 +21,12 @@ public class CloseChoicePopup extends Screen {
2121
2222 public CloseChoicePopup (String title , String question , Button .IPressable yesCallback , Button .IPressable noCallback ) {
2323 super (title );
24- yes = new HorizontalButton (1100 ,900 ,200 ,100 ,
24+ yes = new HorizontalButton (1100 ,800 ,200 ,120 ,
2525 ResourcePack .getTextureByName ("yes" ).getID (), yesCallback );
26- no = new HorizontalButton (450 , 900 ,200 ,100 ,
26+ no = new HorizontalButton (460 , 800 ,200 ,120 ,
2727 ResourcePack .getTextureByName ("no" ).getID (), noCallback );
28- background = new GuiTexture (ResourcePack .getTextureByName ("closeChoice " ).getID (),
29- new Vector2f (400 , 300 ),new Vector2f (1000 , 750 ));
28+ background = new GuiTexture (ResourcePack .getTextureByName ("closeChoiceBG " ).getID (),
29+ new Vector2f (540 , 250 ),new Vector2f (700 , 550 ));
3030 this .question = new GUIText (question , 1 , Game .gameFont , new Vector2f (700 , 500 ),
3131 600 , false );
3232 }
@@ -36,6 +36,10 @@ public void init() {
3636 super .init ();
3737 MasterGui .addGui (background );
3838 MasterFont .add (question );
39+ }
40+
41+ @ Override
42+ public void open () {
3943 this .addComponent (yes );
4044 this .addComponent (no );
4145 }
0 commit comments