{"size": 826, "ext": "js", "max_stars_repo_path": "client/js/ui/popups/ingamemensaje.js", "max_stars_repo_name": "Lettro/dakara-client", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "client/js/ui/popups/ingamemensaje.js", "max_issues_repo_name": "Lettro/dakara-client", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "client/js/ui/popups/ingamemensaje.js", "max_forks_repo_name": "Lettro/dakara-client", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 24.2941176471, "max_line_length": 103, "alphanum_fraction": 0.4624697337}
/**
 * Created by horacio on 4/19/16.
 */

define(["text!../../../menus/inGameMensaje.html!strip", 'ui/popups/popup'], function (DOMdata, PopUp) {

    class InGameMensaje extends PopUp {
        constructor() {
            var options = {
                width: 300,
                height: 280,
                minWidth: 200,
                minHeight: 150
            };
            super(DOMdata, options);
            this.initCallbacks();
        }

        show(mensaje) {
            super.show();
            $("#inGameMensajeContenido").text(mensaje);
            $("#inGameMensajeBotonOk").focus();
        }

        initCallbacks() {
            var self = this;
            $("#inGameMensajeBotonOk").click(function () {
                self.hide();
            });
        }
    }

    return InGameMensaje;
});