Skip to content

Commit

Permalink
General: Updated select game executable message and small tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
themitosan committed May 19, 2023
1 parent 283d56a commit 32a6822
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 7 deletions.
3 changes: 3 additions & 0 deletions App/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ body {
font-family: monospace;
background-color: #200;
}
input[type="file"] {
display: none !important;
}
input[type="button"] {
margin: 2px;
border: none;
Expand Down
6 changes: 5 additions & 1 deletion App/index.htm
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="en-us">

<head>
<meta charset="utf-8">
Expand All @@ -15,6 +15,7 @@
<!-- Main Canvas -->
<div class="APP_CANVAS" id="APP_CANVAS">

<!-- Top menu -->
<div class="APP_MENU MENU_TOP" id="MENU_TOP">
<div id="RE3_CAPTURE_ICON" class="RE3_CAPTURE_ICON"></div>
<input type="button" disabled="disabled" id="BTN_START" value="Hook game process" onclick="APP.gameHook.seekGame();">
Expand All @@ -23,6 +24,7 @@
<label id="LABEL_mapDragStatus"> - Canvas drag is INACTIVE</label>
</div>

<!-- Right menu -->
<div class="APP_MENU MENU_RIGHT" id="MENU_RIGHT">

Zoom: <label id="LABEL_mapCanvasZoom">1</label><br>
Expand Down Expand Up @@ -65,6 +67,7 @@
<!-- TMS.js -->
<script type="text/javascript" src="js/TMS.js"></script>

<!-- App modules -->
<script type="text/javascript" src="js/tools.js"></script>
<script type="text/javascript" src="js/filemanager.js"></script>
<script type="text/javascript" src="js/options.js"></script>
Expand All @@ -78,4 +81,5 @@
</div>

</body>

</html>
6 changes: 3 additions & 3 deletions App/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ const APP = {
// Start keypress
window.onkeyup = function(evt){

// console.info(evt);

switch (evt.key){

case 'F1':
Expand Down Expand Up @@ -95,7 +93,7 @@ const APP = {
// About screen
about: function(){
window.alert('R3 Auto Map Gen. - Version: ' + APP.version + '\nCreated by TemmieHeartz\nTwitter: @TemmieHeartz\n\nBuild Hash: ' + this.hash +
'\n\nExternal plugins present on this project:\nmemoryjs by Rob--\nhttps://github.com/rob--/memoryjs');
'\n\nExternal plugins present on this project:\n\nmemoryjs by Rob--\nhttps://github.com/rob--/memoryjs');
},

// Init
Expand All @@ -111,6 +109,7 @@ const APP = {
// Get app title string
const appTitle = 'R3 Auto Map Gen. - Version: ' + APP.version + ' [' + APP.hash + ']';

// Update log and app title
console.info(appTitle);
document.title = appTitle;

Expand Down Expand Up @@ -153,4 +152,5 @@ delete temp_GRAPHICS;
delete temp_DATABASE;
delete temp_FILEMANAGER;

// Init
window.onload = APP.init;
4 changes: 2 additions & 2 deletions App/js/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,8 @@ temp_OPTIONS = {
APP.options.settingsData.gamePath = pData.dir;

// Set ram pos.
APP.options.settingsData.memoryData.stage = window.prompt('Please insert ram pos. for "Stage":\n[Example: 0x00A673C6]');
APP.options.settingsData.memoryData.room = window.prompt('Please insert ram pos. for "Room":\n[Example: 0x00A673C8]');
APP.options.settingsData.memoryData.stage = window.prompt('Please insert ram pos. for "Stage":\n[Example: "0x00A673C6" (without quotes) for Classic REbirth 1.1.0 SourceNext patch]');
APP.options.settingsData.memoryData.room = window.prompt('Please insert ram pos. for "Room":\n[Example: "0x00A673C8" (without quotes) for Classic REbirth 1.1.0 SourceNext patch]');

// Check input
var s = APP.options.settingsData.memoryData.stage,
Expand Down
2 changes: 1 addition & 1 deletion compile.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ module.exports = {
packageJson.window.icon = 'img/icon.png';

// Update package.json and remove inc file
this.fs.writeFileSync('./App/package.json', JSON.stringify(packageJson, null, '\t'), 'utf8');
this.fs.writeFileSync('./App/package.json', JSON.stringify(packageJson), 'utf8');
this.fs.unlinkSync('hash.inc');

// Log data before builder setup
Expand Down

0 comments on commit 32a6822

Please sign in to comment.