raus mit dem müll, kommt später
This commit is contained in:
@@ -1,34 +0,0 @@
|
|||||||
import * as NativeUI from '../libs/NativeUI';
|
|
||||||
|
|
||||||
const Menu = NativeUI.Menu;
|
|
||||||
const UIMenuItem = NativeUI.UIMenuItem;
|
|
||||||
const UIMenuListItem = NativeUI.UIMenuListItem;
|
|
||||||
const UIMenuCheckboxItem = NativeUI.UIMenuCheckboxItem;
|
|
||||||
const BadgeStyle = NativeUI.BadgeStyle;
|
|
||||||
const Point = NativeUI.Point;
|
|
||||||
const ItemsCollection = NativeUI.ItemsCollection;
|
|
||||||
const Color = NativeUI.Color;
|
|
||||||
|
|
||||||
let ggbItem = new UIMenuItem("Gut gegen Boese", "");
|
|
||||||
ggbItem.BackColor = new Color(42, 46, 49);
|
|
||||||
|
|
||||||
export default function createEvent(globalData: IGlobalData) {
|
|
||||||
|
|
||||||
var eventMenu: NativeUI.Menu;
|
|
||||||
let screenRes = mp.game.graphics.getScreenResolution(0, 0);
|
|
||||||
|
|
||||||
mp.events.add('showEventMenu', () => {
|
|
||||||
|
|
||||||
if (!globalData.InMenu) {
|
|
||||||
globalData.InMenu = true;
|
|
||||||
|
|
||||||
eventMenu = new Menu("Event starten", "", new Point(0, screenRes.y / 3), null, null);
|
|
||||||
eventMenu.AddItem(ggbItem);
|
|
||||||
eventMenu.Visible = true;
|
|
||||||
|
|
||||||
eventMenu.MenuClose.on(() => {
|
|
||||||
globalData.InMenu = false;
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
@@ -545,18 +545,6 @@ namespace ReallifeGamemode.Server.Commands
|
|||||||
|
|
||||||
#region Admin
|
#region Admin
|
||||||
|
|
||||||
[Command("event", "~m~Benutzung: ~s~/event")]
|
|
||||||
public void CmdAdminEvent(Player player)
|
|
||||||
{
|
|
||||||
if (!player.GetUser()?.IsAdmin(AdminLevel.ADMIN) ?? true)
|
|
||||||
{
|
|
||||||
ChatService.NotAuthorized(player);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
player.TriggerEvent("showEventMenu");
|
|
||||||
}
|
|
||||||
|
|
||||||
[Command("countdown", "~m~Benutzung: ~s~/countdown [Zeit] [Text]", GreedyArg = true)]
|
[Command("countdown", "~m~Benutzung: ~s~/countdown [Zeit] [Text]", GreedyArg = true)]
|
||||||
public void CmdAdminCountdown(Player player, string timer_string, string text)
|
public void CmdAdminCountdown(Player player, string timer_string, string text)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user