WIP map notification instruction

This commit is contained in:
Anuken
2022-02-10 11:49:55 -05:00
parent a80e1d86a1
commit 414d07a843
8 changed files with 47 additions and 3 deletions

View File

@@ -1252,5 +1252,20 @@ public class LExecutor{
}
}
public static class FlushNotificationI implements LInstruction{
@Override
public void run(LExecutor exec){
//skip back to self until possible
if(ui.hudfrag.hasToast()){
exec.var(varCounter).numval --;
return;
}
ui.hudfrag.showToast(Icon.info, exec.textBuffer.toString());
exec.textBuffer.setLength(0);
}
}
//endregion
}