Beispiel #1
0
        public static void clientCmdSetDamageDirection(string direction)
        {
            GuiControl DamageHUD = "DamageHUD";

            if (!DamageHUD.isObject())
            {
                return;
            }
            GuiBitmapCtrl ctrl = DamageHUD.findObjectByInternalName("damage_" + direction, true);

            if (!ctrl.isObject())
            {
                return;
            }

            omni.Util.cancelAll(ctrl);
            ctrl.setVisible(true);
            ctrl.schedule("500", "setVisible", "false");
        }
Beispiel #2
0
        public static void clientCmdBottomPrint(string message, string time, string size)
        {
            GuiBitmapCtrl bottomPrintDlg = "bottomPrintDlg";

            if (omni.bGlobal["$bottomPrintActive"])
            {
                if (bottomPrintDlg["removePrint"] != "")
                {
                    omni.Util.cancel(bottomPrintDlg["removePrint"].AsInt());
                }
            }
            else
            {
                bottomPrintDlg.setVisible(true);
                omni.iGlobal["$bottomPrintActive"] = 1;
            }
            ((GuiMLTextCtrl)"bottomPrintText").setText("<just:center>" + message);
            bottomPrintDlg.extent.y = omni.iGlobal["$CenterPrintSizes[" + size + "]"];
            if (time.AsInt() > 0)
            {
                bottomPrintDlg["removePrint"] = omni.Util._schedule((time.AsInt() * 1000).AsString(), "0", "clientCmdClearbottomPrint").AsString();
            }
        }