Compare commits
5 Commits
a63133a7a5
...
main
Author | SHA1 | Date | |
---|---|---|---|
|
83f2e08bb5 | ||
|
4c07938a0d | ||
|
df80ce37ed | ||
|
50c6c9a1de | ||
|
0b3822b8da |
@@ -33,9 +33,11 @@ namespace FakeDeck.ButtonType
|
|||||||
|
|
||||||
//Offensive: Orbital Strikes
|
//Offensive: Orbital Strikes
|
||||||
{ "orbital-precision-strike", new uint[] { 0x65, Key_Right, Key_Right, Key_Up}},
|
{ "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
|
//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}},
|
{ "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"},
|
{ "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"},
|
{ "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-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"},
|
{ "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"},
|
{ "gatling-sentry","https://static.wikia.nocookie.net/helldivers_gamepedia/images/4/48/A_G-16_Gatling_Sentry_Icon.png"},
|
||||||
|
|
||||||
|
@@ -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://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=\"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 href=\"StaticFiles/style.css\" rel=\"stylesheet\">" +
|
||||||
|
" <link rel=\"manifest\" href=\"StaticFiles/manifest.json\" />" +
|
||||||
" </head>" +
|
" </head>" +
|
||||||
" <body>" +
|
" <body>" +
|
||||||
" <div id=\"main\" class=\"d-flex flex-wrap\" style=\"transform-origin: left top;\">";
|
" <div id=\"main\" class=\"d-flex flex-wrap\" style=\"transform-origin: left top;\">";
|
||||||
|
@@ -56,6 +56,7 @@ namespace FakeDeck.Class
|
|||||||
{".img", "application/octet-stream"},
|
{".img", "application/octet-stream"},
|
||||||
{".iso", "application/octet-stream"},
|
{".iso", "application/octet-stream"},
|
||||||
{".jar", "application/java-archive"},
|
{".jar", "application/java-archive"},
|
||||||
|
{".json", "application/json"},
|
||||||
{".jardiff", "application/x-java-archive-diff"},
|
{".jardiff", "application/x-java-archive-diff"},
|
||||||
{".jng", "image/x-jng"},
|
{".jng", "image/x-jng"},
|
||||||
{".jnlp", "application/x-java-jnlp-file"},
|
{".jnlp", "application/x-java-jnlp-file"},
|
||||||
|
@@ -19,6 +19,9 @@
|
|||||||
<None Update="StaticFiles\app.js">
|
<None Update="StaticFiles\app.js">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</None>
|
</None>
|
||||||
|
<None Update="StaticFiles\manifest.json">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
</None>
|
||||||
<None Update="StaticFiles\style.css">
|
<None Update="StaticFiles\style.css">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</None>
|
</None>
|
||||||
|
@@ -13,6 +13,10 @@ function urlencodeFormData(fd){
|
|||||||
function resizeGrid(){
|
function resizeGrid(){
|
||||||
var width = document.body.clientWidth;
|
var width = document.body.clientWidth;
|
||||||
var height = document.body.clientHeight;
|
var height = document.body.clientHeight;
|
||||||
|
width = window.screen.availWidth;
|
||||||
|
height = window.screen.availHeight;
|
||||||
|
|
||||||
|
|
||||||
var biggerSizeW = (width / 7);
|
var biggerSizeW = (width / 7);
|
||||||
var biggerSizeH = (height / 5);
|
var biggerSizeH = (height / 5);
|
||||||
|
|
||||||
@@ -64,6 +68,8 @@ function formToAjax(){
|
|||||||
const target = event.currentTarget;
|
const target = event.currentTarget;
|
||||||
target.style.opacity = "0.5"
|
target.style.opacity = "0.5"
|
||||||
|
|
||||||
|
navigator.vibrate(200);
|
||||||
|
|
||||||
console.log(target.method, target.action);
|
console.log(target.method, target.action);
|
||||||
console.log(form.method, form.action);
|
console.log(form.method, form.action);
|
||||||
console.log(form === target);
|
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": "/"
|
||||||
|
}
|
@@ -11,6 +11,50 @@ pages:
|
|||||||
- name: Key
|
- name: Key
|
||||||
value: "reinforce"
|
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
|
- button: strafing-run
|
||||||
function: HelldiversTwoMacro
|
function: HelldiversTwoMacro
|
||||||
parameters:
|
parameters:
|
||||||
@@ -52,20 +96,23 @@ pages:
|
|||||||
parameters:
|
parameters:
|
||||||
- name: Key
|
- name: Key
|
||||||
value: bomb
|
value: bomb
|
||||||
- button: spacer
|
|
||||||
function: FakeDeckMacro
|
- button: full-screen
|
||||||
parameters:
|
|
||||||
- name: Key
|
|
||||||
value: "spacer"
|
|
||||||
- name: Color
|
|
||||||
value: orange
|
|
||||||
- button: spacer
|
|
||||||
function: FakeDeckMacro
|
function: FakeDeckMacro
|
||||||
parameters:
|
parameters:
|
||||||
- name: Key
|
- name: Key
|
||||||
value: "full-screen"
|
value: "full-screen"
|
||||||
- name: Color
|
- name: Color
|
||||||
value: orange
|
value: orange
|
||||||
|
|
||||||
|
- button: spacer
|
||||||
|
function: FakeDeckMacro
|
||||||
|
parameters:
|
||||||
|
- name: Key
|
||||||
|
value: "spacer"
|
||||||
|
- name: Color
|
||||||
|
value: orange
|
||||||
|
|
||||||
- button: spacer
|
- button: spacer
|
||||||
function: FakeDeckMacro
|
function: FakeDeckMacro
|
||||||
parameters:
|
parameters:
|
||||||
@@ -73,6 +120,7 @@ pages:
|
|||||||
value: "spacer"
|
value: "spacer"
|
||||||
- name: Color
|
- name: Color
|
||||||
value: red
|
value: red
|
||||||
|
|
||||||
- button: spacer
|
- button: spacer
|
||||||
function: FakeDeckMacro
|
function: FakeDeckMacro
|
||||||
parameters:
|
parameters:
|
||||||
@@ -80,6 +128,7 @@ pages:
|
|||||||
value: "spacer"
|
value: "spacer"
|
||||||
- name: Color
|
- name: Color
|
||||||
value: red
|
value: red
|
||||||
|
|
||||||
- button: spacer
|
- button: spacer
|
||||||
function: FakeDeckMacro
|
function: FakeDeckMacro
|
||||||
parameters:
|
parameters:
|
||||||
@@ -87,13 +136,12 @@ pages:
|
|||||||
value: "spacer"
|
value: "spacer"
|
||||||
- name: Color
|
- name: Color
|
||||||
value: red
|
value: red
|
||||||
- button: spacer
|
|
||||||
function: FakeDeckMacro
|
- button: orbital-380-barrage
|
||||||
|
function: HelldiversTwoMacro
|
||||||
parameters:
|
parameters:
|
||||||
- name: Key
|
- name: Key
|
||||||
value: "spacer"
|
value: orbital-380-barrage
|
||||||
- name: Color
|
|
||||||
value: red
|
|
||||||
|
|
||||||
- button: page
|
- button: page
|
||||||
function: FakeDeckMacro
|
function: FakeDeckMacro
|
||||||
|
Reference in New Issue
Block a user