001package com.fs.starfarer.api.campaign;
002
003import com.fs.starfarer.api.ui.CustomPanelAPI;
004
005public interface CustomDialogDelegate {
006        
007        public interface CustomDialogCallback {
008                /**
009                 * 0 for confirm, 1 for cancel.
010                 */
011                void dismissCustomDialog(int option);
012        }
013        
014        void createCustomDialog(CustomPanelAPI panel, CustomDialogCallback callback);
015        
016        /**
017         * Note: customDialogCancel() will still be called if the Escape key is pressed
018         * @return
019         */
020        boolean hasCancelButton();
021        String getConfirmText();
022        String getCancelText();
023        void customDialogConfirm();
024        void customDialogCancel();
025        CustomUIPanelPlugin getCustomPanelPlugin();
026}