Compare commits
8 Commits
ed334a7cf9
...
main
Author | SHA1 | Date | |
---|---|---|---|
|
83f2e08bb5 | ||
|
4c07938a0d | ||
|
df80ce37ed | ||
|
50c6c9a1de | ||
|
0b3822b8da | ||
a63133a7a5 | |||
600a08dd51 | |||
|
9d33f9a223 |
@@ -33,9 +33,11 @@ namespace FakeDeck.ButtonType
|
||||
|
||||
//Offensive: Orbital Strikes
|
||||
{ "orbital-precision-strike", new uint[] { 0x65, Key_Right, Key_Right, Key_Up}},
|
||||
{ "orbital-380-barrage", new uint[] { 0x65, Key_Right, Key_Down, Key_Up, Key_Up, Key_Left, Key_Down, Key_Down}},
|
||||
|
||||
|
||||
//Defensive
|
||||
{ "mortar-sentry", new uint[] { 0x65, Key_Down, Key_Up, Key_Right, Key_Down}},
|
||||
{ "mortar-sentry", new uint[] { 0x65, Key_Down, Key_Up, Key_Right, Key_Right, Key_Down }},
|
||||
{ "gatling-sentry", new uint[] { 0x65, Key_Down, Key_Up, Key_Right, Key_Left}},
|
||||
|
||||
|
||||
@@ -61,6 +63,7 @@ namespace FakeDeck.ButtonType
|
||||
{ "autocannon", "https://static.wikia.nocookie.net/helldivers_gamepedia/images/c/c6/AC-8_Autocannon_Icon.png"},
|
||||
{ "grenade-launcher","https://static.wikia.nocookie.net/helldivers_gamepedia/images/6/66/GL-21_Grenade_Launcher_Icon.png"},
|
||||
{ "orbital-precision-strike", "https://static.wikia.nocookie.net/helldivers_gamepedia/images/4/47/Orbital_Precision_Strike_Icon.png"},
|
||||
{ "orbital-380-barrage", "https://static.wikia.nocookie.net/helldivers_gamepedia/images/f/f4/Orbital_380MM_HE_Barrage_Icon.png"},
|
||||
{ "mortar-sentry", "https://static.wikia.nocookie.net/helldivers_gamepedia/images/1/1d/A_M-12_Mortar_Sentry_Icon.png"},
|
||||
{ "gatling-sentry","https://static.wikia.nocookie.net/helldivers_gamepedia/images/4/48/A_G-16_Gatling_Sentry_Icon.png"},
|
||||
|
||||
|
@@ -1,6 +1,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Text;
|
||||
@@ -31,10 +32,16 @@ namespace FakeDeck.ButtonType
|
||||
|
||||
public static bool invokeAction(string process, string arguments = "")
|
||||
{
|
||||
if (!System.IO.File.ReadAllText("./configuration.yaml").Contains(process))
|
||||
if (!File.ReadAllText("./configuration.yaml").Contains(process))
|
||||
{
|
||||
Debug.WriteLine("not known process");
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!File.ReadAllText("./configuration.yaml").Contains(arguments))
|
||||
{
|
||||
Debug.WriteLine("not known arguments");
|
||||
return false;
|
||||
}
|
||||
|
||||
Process notePad = new Process();
|
||||
|
@@ -24,6 +24,7 @@ namespace FakeDeck.Class
|
||||
" <link href=\"https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css\" rel=\"stylesheet\">" +
|
||||
" <link href=\"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css\" rel=\"stylesheet\">" +
|
||||
" <link href=\"StaticFiles/style.css\" rel=\"stylesheet\">" +
|
||||
" <link rel=\"manifest\" href=\"StaticFiles/manifest.json\" />" +
|
||||
" </head>" +
|
||||
" <body>" +
|
||||
" <div id=\"main\" class=\"d-flex flex-wrap\" style=\"transform-origin: left top;\">";
|
||||
|
@@ -56,6 +56,7 @@ namespace FakeDeck.Class
|
||||
{".img", "application/octet-stream"},
|
||||
{".iso", "application/octet-stream"},
|
||||
{".jar", "application/java-archive"},
|
||||
{".json", "application/json"},
|
||||
{".jardiff", "application/x-java-archive-diff"},
|
||||
{".jng", "image/x-jng"},
|
||||
{".jnlp", "application/x-java-jnlp-file"},
|
||||
|
@@ -19,6 +19,9 @@
|
||||
<None Update="StaticFiles\app.js">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Update="StaticFiles\manifest.json">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Update="StaticFiles\style.css">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
|
@@ -13,6 +13,10 @@ function urlencodeFormData(fd){
|
||||
function resizeGrid(){
|
||||
var width = document.body.clientWidth;
|
||||
var height = document.body.clientHeight;
|
||||
width = window.screen.availWidth;
|
||||
height = window.screen.availHeight;
|
||||
|
||||
|
||||
var biggerSizeW = (width / 7);
|
||||
var biggerSizeH = (height / 5);
|
||||
|
||||
@@ -64,6 +68,8 @@ function formToAjax(){
|
||||
const target = event.currentTarget;
|
||||
target.style.opacity = "0.5"
|
||||
|
||||
navigator.vibrate(200);
|
||||
|
||||
console.log(target.method, target.action);
|
||||
console.log(form.method, form.action);
|
||||
console.log(form === target);
|
||||
|
10
FakeDeckUI/FakeDeck/StaticFiles/manifest.json
Normal file
10
FakeDeckUI/FakeDeck/StaticFiles/manifest.json
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"name": "FakeDeck",
|
||||
"short_name": "FakeDeck",
|
||||
"theme_color": "#fff",
|
||||
"background_color": "#fff",
|
||||
"display": "fullscreen",
|
||||
"orientation": "landscape",
|
||||
"scope": "/",
|
||||
"start_url": "/"
|
||||
}
|
@@ -10,6 +10,50 @@ pages:
|
||||
parameters:
|
||||
- name: Key
|
||||
value: "reinforce"
|
||||
|
||||
- button: flamethrower
|
||||
function: HelldiversTwoMacro
|
||||
parameters:
|
||||
- name: Key
|
||||
value: "flamethrower"
|
||||
|
||||
- button: anti-material
|
||||
function: HelldiversTwoMacro
|
||||
parameters:
|
||||
- name: Key
|
||||
value: "anti-material"
|
||||
|
||||
- button: spacer
|
||||
function: FakeDeckMacro
|
||||
parameters:
|
||||
- name: Key
|
||||
value: "spacer"
|
||||
- name: Color
|
||||
value: red
|
||||
|
||||
- button: spacer
|
||||
function: FakeDeckMacro
|
||||
parameters:
|
||||
- name: Key
|
||||
value: "spacer"
|
||||
- name: Color
|
||||
value: red
|
||||
|
||||
- button: spacer
|
||||
function: FakeDeckMacro
|
||||
parameters:
|
||||
- name: Key
|
||||
value: "spacer"
|
||||
- name: Color
|
||||
value: red
|
||||
|
||||
- button: spacer
|
||||
function: FakeDeckMacro
|
||||
parameters:
|
||||
- name: Key
|
||||
value: "spacer"
|
||||
- name: Color
|
||||
value: red
|
||||
|
||||
- button: strafing-run
|
||||
function: HelldiversTwoMacro
|
||||
@@ -52,20 +96,23 @@ pages:
|
||||
parameters:
|
||||
- name: Key
|
||||
value: bomb
|
||||
- button: spacer
|
||||
function: FakeDeckMacro
|
||||
parameters:
|
||||
- name: Key
|
||||
value: "spacer"
|
||||
- name: Color
|
||||
value: orange
|
||||
- button: spacer
|
||||
|
||||
- button: full-screen
|
||||
function: FakeDeckMacro
|
||||
parameters:
|
||||
- name: Key
|
||||
value: "full-screen"
|
||||
- name: Color
|
||||
value: orange
|
||||
|
||||
- button: spacer
|
||||
function: FakeDeckMacro
|
||||
parameters:
|
||||
- name: Key
|
||||
value: "spacer"
|
||||
- name: Color
|
||||
value: orange
|
||||
|
||||
- button: spacer
|
||||
function: FakeDeckMacro
|
||||
parameters:
|
||||
@@ -73,6 +120,7 @@ pages:
|
||||
value: "spacer"
|
||||
- name: Color
|
||||
value: red
|
||||
|
||||
- button: spacer
|
||||
function: FakeDeckMacro
|
||||
parameters:
|
||||
@@ -80,6 +128,7 @@ pages:
|
||||
value: "spacer"
|
||||
- name: Color
|
||||
value: red
|
||||
|
||||
- button: spacer
|
||||
function: FakeDeckMacro
|
||||
parameters:
|
||||
@@ -87,13 +136,12 @@ pages:
|
||||
value: "spacer"
|
||||
- name: Color
|
||||
value: red
|
||||
- button: spacer
|
||||
function: FakeDeckMacro
|
||||
|
||||
- button: orbital-380-barrage
|
||||
function: HelldiversTwoMacro
|
||||
parameters:
|
||||
- name: Key
|
||||
value: "spacer"
|
||||
- name: Color
|
||||
value: red
|
||||
value: orbital-380-barrage
|
||||
|
||||
- button: page
|
||||
function: FakeDeckMacro
|
||||
@@ -121,6 +169,8 @@ pages:
|
||||
parameters:
|
||||
- name: process
|
||||
value: "cmd.exe"
|
||||
- name: arguments
|
||||
value: "/C ping google.com -t"
|
||||
- name: image
|
||||
value: "https://winaero.com/blog/wp-content/uploads/2019/06/WIndows-Terminal-icon.png"
|
||||
|
||||
|
Reference in New Issue
Block a user