You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
390 B
22 lines
390 B
package mightypork.rogue.screens;
|
|
|
|
import mightypork.gamecore.eventbus.BusEvent;
|
|
|
|
|
|
public class LoaderRequest extends BusEvent<LoadingOverlay> {
|
|
|
|
private final String msg;
|
|
private Runnable task;
|
|
|
|
|
|
public LoaderRequest(String msg, Runnable task) {
|
|
this.task = task;
|
|
this.msg = msg;
|
|
}
|
|
@Override
|
|
protected void handleBy(LoadingOverlay handler)
|
|
{
|
|
handler.show(msg, task);
|
|
}
|
|
|
|
}
|
|
|