Many misc bugfixes

This commit is contained in:
Anuken
2022-04-28 19:46:52 -04:00
parent 60c74ee65d
commit 9f501a33a3
8 changed files with 44 additions and 9 deletions

View File

@@ -1,5 +1,6 @@
package mindustry.logic;
import arc.*;
import arc.graphics.*;
import arc.math.*;
import arc.math.geom.*;
@@ -1449,6 +1450,13 @@ public class LExecutor{
}
String text = exec.textBuffer.toString();
if(text.startsWith("@")){
String substr = text.substring(1);
if(Core.bundle.has(substr)){
text = Core.bundle.get(substr);
}
}
switch(type){
case notify -> ui.hudfrag.showToast(Icon.info, text);
case announce -> ui.announce(text, exec.numf(duration));