This repository has been archived by the owner on Mar 26, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add single selection input window, with object editor unit fields ope…
…ning some of the new enums See #24
- Loading branch information
1 parent
03438b8
commit 081a3ad
Showing
12 changed files
with
179 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
module.exports = { | ||
None: '_', | ||
Factory: 'factory', | ||
General: 'buffer', | ||
Hall: 'townhall', | ||
Resource: 'resource' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// NOTE: oddly, the raw values here are still capitalized | ||
module.exports = { | ||
Ethereal: 'Ethereal', | ||
Flesh: 'Flesh', | ||
Metal: 'Metal', | ||
Stone: 'Stone', | ||
Wood: 'Wood' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
module.exports = { | ||
None: 'unknown', | ||
Normal: 'normal', | ||
Pierce: 'pierce', | ||
Siege: 'siege', | ||
Spells: 'spells', | ||
Chaos: 'chaos', | ||
Magic: 'magic', | ||
Hero: 'hero', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module.exports = { | ||
Strength: 'STR', | ||
Agility: 'AGI', | ||
Intelligence: 'INT' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
module.exports = { | ||
Normal: 'normal', | ||
Small: 'small', | ||
Medium: 'medium', | ||
Large: 'large', | ||
Fortified: 'fort', | ||
Hero: 'hero', | ||
Divine: 'divine', | ||
Unarmored: 'none' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
module.exports = { | ||
None: '', | ||
Foot: 'foot', | ||
Horse: 'horse', | ||
Fly: 'fly', | ||
Hover: 'hover', | ||
Float: 'float', | ||
Amphibious: 'amph' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
module.exports = { | ||
OwningPlayer: -1, | ||
Player1: 0, | ||
Player2: 1, | ||
Player3: 2, | ||
Player4: 3, | ||
Player5: 4, | ||
Player6: 5, | ||
Player7: 6, | ||
Player8: 7, | ||
Player9: 8, | ||
Player10: 9, | ||
Player11: 10, | ||
Player12: 11, | ||
NeutralHostile: 12 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
module.exports = { | ||
None: 'unknown', | ||
Commoner: 'commoner', | ||
Creep: 'creeps', | ||
Critter: 'critters', | ||
Demon: 'demon', | ||
Human: 'human', | ||
Naga: 'naga', | ||
NightElf: 'nightelf', | ||
Orc: 'orc', | ||
Other: 'other', | ||
Undead: 'undead' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
module.exports = { | ||
None: '', | ||
Normal: 'normal', | ||
Instant: 'instant', | ||
Artillery: 'artillery', | ||
ArtilleryLine: 'aline', | ||
Missile: 'missile', | ||
MissileSplash: 'msplash', | ||
MissileBounce: 'mbounce', | ||
MissileLine: 'mline' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Ice Sickle - {{type}}</title> | ||
|
||
<link rel="stylesheet" href="../../assets/css/font-awesome.min.css"> | ||
<link rel="stylesheet" href="../../assets/css/mini-default.min.css"> | ||
<link rel="stylesheet" href="../../assets/css/user-input-page.css"> | ||
|
||
<script> | ||
function submitUserDataForm() { | ||
var {ipcRenderer} = require('electron'); | ||
|
||
ipcRenderer.send('response-user-input', { | ||
id: '{{id}}', | ||
entryId: '{{entryId}}', | ||
type: 'singleChoice', | ||
value: document.getElementById('choice').selectedOptions[0].value | ||
}); | ||
|
||
window.close(); | ||
} | ||
</script> | ||
</head> | ||
<body> | ||
<form> | ||
<fieldset> | ||
<legend>Edit Value{{#if fieldName}} - {{fieldName}}{{/if}}</legend> | ||
|
||
<label> | ||
Value: | ||
<select id='choice'> | ||
{{#each choices}} | ||
<option value='{{value}}' {{#if selected}}selected{{/if}}>{{key}}</option> | ||
{{/each}} | ||
</select> | ||
</label> | ||
|
||
<div class='buttons-right'> | ||
<a class='button' onclick='window.close()'>Cancel</a> | ||
<a class='button primary' onclick='submitUserDataForm()'>OK</a> | ||
</div> | ||
|
||
{{#if tooltip}} | ||
<p class='comment'>{{tooltip}}</p> | ||
{{/if}} | ||
</fieldset> | ||
</form> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters