Merge branch 'develop' into 'feature/atm-system'
# Conflicts: # ReallifeGamemode.Server/Migrations/DatabaseContextModelSnapshot.cs
This commit is contained in:
10
ReallifeGamemode.Client/Interaction/worldinteraction.js
Normal file
10
ReallifeGamemode.Client/Interaction/worldinteraction.js
Normal file
@@ -0,0 +1,10 @@
|
||||
|
||||
|
||||
mp.events.add("SERVER:ShowAtmUi", (atmId, atmBalance) => {
|
||||
mp.gui.cursor.show(true, true);
|
||||
mp.gui.chat.show(false);
|
||||
mp.game.ui.displayHud(false);
|
||||
mp.game.ui.displayRadar(false);
|
||||
|
||||
atmBrowser = mp.browsers.new("package://assets/html/atm/index.html");
|
||||
});
|
||||
@@ -26,21 +26,21 @@ mp.keys.bind(0x25, false, function () {
|
||||
}
|
||||
});
|
||||
|
||||
//UP ARROW (Interaktion mit anderen Spielern)
|
||||
mp.keys.bind(0x26, false, function () {
|
||||
if (!globalData.InChat && !showInv && !globalData.Interaction) {
|
||||
mp.events.callRemote("keyPress:UP_ARROW");
|
||||
}
|
||||
});
|
||||
//UP ARROW (Interaktion mit Spielwelt)
|
||||
//mp.keys.bind(0x26, false, function () {
|
||||
// if (!globalData.InChat && !showInv && !globalData.Interaction) {
|
||||
// mp.events.callRemote("keyPress:UP_ARROW");
|
||||
// }
|
||||
//});
|
||||
|
||||
//RIGHT ARROW (Interaktion mit anderen Spielern)
|
||||
//RIGHT ARROW (Fraktionsinteraktion)
|
||||
mp.keys.bind(0x27, false, function () {
|
||||
if (!globalData.InChat && !showInv && !globalData.Interaction) {
|
||||
mp.events.callRemote("keyPress:RIGHT_ARROW");
|
||||
}
|
||||
});
|
||||
|
||||
//DOWN ARROW (Interaktion mit anderen Spielern)
|
||||
//DOWN ARROW (Eigeninteraktion)
|
||||
mp.keys.bind(0x28, false, function () {
|
||||
if (!globalData.InChat && !showInv && !globalData.Interaction) {
|
||||
mp.events.callRemote("keyPress:DOWN_ARROW");
|
||||
|
||||
@@ -13,6 +13,8 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="assets\css\atm\" />
|
||||
<Folder Include="assets\img\atm\" />
|
||||
<Folder Include="cs_packages\" />
|
||||
<Folder Include="Gui\vehiclemenu\web\css\" />
|
||||
<Folder Include="Gui\vehiclemenu\web\font\" />
|
||||
|
||||
12
ReallifeGamemode.Client/assets/html/atm/index.html
Normal file
12
ReallifeGamemode.Client/assets/html/atm/index.html
Normal file
@@ -0,0 +1,12 @@
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="package://assets/css/atm/style.css" />
|
||||
<link rel="stylesheet" href="package://assets/css/jquery-ui.min.css" />
|
||||
<meta charset="utf-8" />
|
||||
</head>
|
||||
<body>
|
||||
<script type="text/javascript" src="package://assets/js/jquery-3.3.1.min.js"></script>
|
||||
<script type="text/javascript" src="package://assets/js/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="package://assets/js/login/script.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user