mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-04 07:17:19 +07:00
Allow for plugins to trigger the same alerts as sectors and guardians
This commit is contained in:

committed by
GitHub

parent
15ef32447c
commit
07893eee9c
@ -339,6 +339,13 @@ public class NetClient implements ApplicationListener{
|
|||||||
|
|
||||||
ui.showInfoToast(message, duration);
|
ui.showInfoToast(message, duration);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Remote(variants = Variant.both)
|
||||||
|
public static void warningToast(int unicode, String text){
|
||||||
|
if(text == null || mindustry.ui.Fonts.def.getData().getGlyph((char)unicode) == null) return;
|
||||||
|
|
||||||
|
ui.hudfrag.showToast(mindustry.ui.Fonts.getGlyph(mindustry.ui.Fonts.def, (char)unicode), text);
|
||||||
|
}
|
||||||
|
|
||||||
@Remote(variants = Variant.both)
|
@Remote(variants = Variant.both)
|
||||||
public static void setRules(Rules rules){
|
public static void setRules(Rules rules){
|
||||||
|
Reference in New Issue
Block a user