arcade-machine/ui
2023-02-25 18:53:24 +01:00
..
3.0.6.2 :octocat: 2023-02-23 13:39:06 +02:00
Audio Added animated blur to image 2023-02-25 18:53:24 +01:00
get :octocat: 2023-02-23 13:39:06 +02:00
JPGS added img for SDVX 5 2023-02-24 15:37:01 +02:00
.gitignore https://www.youtube.com/watch?v=hlv672jqbtE 2023-02-23 21:26:31 +02:00
forge.config.js https://www.youtube.com/watch?v=hlv672jqbtE 2023-02-23 21:26:31 +02:00
index.html Added animated blur to image 2023-02-25 18:53:24 +01:00
main.js small fixes 2023-02-25 13:07:23 +01:00
package-lock.json installed electron-packager 2023-02-25 00:54:40 +01:00
package.json installed electron-packager 2023-02-25 00:54:40 +01:00
README.md Update README.md 2023-02-25 13:31:19 +01:00
style.css Added animated blur to image 2023-02-25 18:53:24 +01:00
Vars.js Configurable game icons 2023-02-25 13:23:26 +01:00

UI for launching games with Custom built controllers

  • UI made to be controlled with 4 keys
  • Has 6 configurable premade slots for games

How to Use with the 6 slots ?

  • Set Keys in key section of Vars.js
  • Set GamePath to whatever exe you want to run example: "C:\\Users\\kryvas\\Downloads\\asphyxia-core-win-x64\\asphyxia.exe" (Number behind GamePath corresponds to grid number so 1 will be for the first square, 6 for the last)
  • Set game titles (var Title)
  • set Game icons
  • Now youre all set

Closing the game with shortcut setup

  • Configure ExitKey1 and ExitKey2 in Vars.js
  • Set variable GameExe to whatever your game exe is (number after "GameExe" determines on which grid pos it will be)
  • if you added more game slots add case in switch statement and new GameExe variable in main.js

How to Add More Games/Slots ?

  • Add a new variale in Vars.js and set it to game exe path
  • Add new switch switch case in last portion of index.html
witch (vers) {
                case 1:
                    execFile(AsphyxiaPath);
                    exec("start /b " + GamePath1); //executes cmd with start and path
                    setTimeout(function () {
                        exec("taskkill /im " + browser)//kills browser
                    }, 1200)
                    //console.log(vers);
                    ipcRenderer.send("number", vers); //sends number to main which tells main what to kill on shortcut
                    break;
                case 2:
                    execFile(AsphyxiaPath);
                    exec("start /b " + GamePath2);
                    setTimeout(function () {
                        exec("taskkill /im " + browser)
                    }, 1200)
                    ipcRenderer.send("number", vers);
                    break;
                case 3:
                    execFile(AsphyxiaPath);
                    exec("start /b " + GamePath3);
                    setTimeout(function () {
                        exec("taskkill /im " + browser)
                    }, 1200)
                    ipcRenderer.send("number", vers);
                    break;
                case 4:
                    execFile(AsphyxiaPath);
                    exec("start /b " + GamePath4);
                    setTimeout(function () {
                        exec("taskkill /im " + browser)
                    }, 1200)
                    ipcRenderer.send("number", vers);
                    break;
                case 5:
                    execFile(GamePath5);
                    ipcRenderer.send("number", vers);
                    break;
                case 6:
                    execFile(GamePath6);
                    ipcRenderer.send("number", vers);
                default:
                    break;
            }

With execFile(your variable) and ipc.Renderer.send("number", vers); Like this:

        case 7:
            execFile(your variable)
            ipc.Renderer.send("number", vers);
  • Add <button class="move" type="button" id="sdvx3-button" onclick="vers=3;sdvx()"> To index.html

set the id to whatever you want and vers to corresponding number in switch case