Browse Source

Added UI elements for exporting Nametables.

dev
Bryan Miller 5 years ago
parent
commit
a8aa094d05
3 changed files with 26 additions and 12 deletions
  1. +6
    -11
      views/header_menu.html
  2. +1
    -1
      views/modal.html
  3. +19
    -0
      views/modals/export_NT.html

+ 6
- 11
views/header_menu.html View File

@@ -26,25 +26,20 @@


<li class="pure-menu-item pure-menu-has-children pure-menu-allow-hover">
<a href="#" id="exportchr" class="pure-menu-link">Export Bank</a>
<a href="#" id="exportchr" class="pure-menu-link">Export</a>
<ul class="pure-menu-children">
<li class="pure-menu-item" emit="modal-open" emit-args='{"cls":".export-chr"}'>
<a href="#" class="pure-menu-link">To CHR</a>
<a href="#" class="pure-menu-link">Bank to CHR</a>
</li>
</ul>
</li>


<li class="pure-menu-item pure-menu-has-children pure-menu-allow-hover">
<a href="#" id="exportpal" class="pure-menu-link">Export Palette</a>
<ul class="pure-menu-children">
<li class="pure-menu-item" emit="export-pal-asm">
<a href="#" class="pure-menu-link">To Assembly</a>
<a href="#" class="pure-menu-link">Palette to ASM</a>
</li>
<li class="pure-menu-item" emit="modal-open" emit-args='{"cls":".export-nametable"}'>
<a href="#" class="pure-menu-link">Nametable to ASM</a>
</li>
</ul>
</li>


<li class="pure-menu-item" emit="about">
<a href="#" class="pure-menu-link">
<i class="fa fa-info-circle"></i>

+ 1
- 1
views/modal.html View File

@@ -17,4 +17,4 @@
</div>

<%- include("modals/export_CHR.html"); %>
<%- include("modals/export_NT.html"); %>

+ 19
- 0
views/modals/export_NT.html View File

@@ -0,0 +1,19 @@
<div class="modal export-nametable">
<div class="modal-content">
<form class="pure-form export-nametable-form">
<label for="expnt-op1" class="pure-radio">
<input id="expnt-op1" type="radio" name="exportnt-op" value="both" checked>
Name and Attribute Tables
</label>
<label for="expnt-op2" class="pure-radio">
<input id="expnt-op2" type="radio" name="exportnt-op" value="nametable">
Nametable Only
</label>
<label for="expnt-op3" class="pure-radio">
<input id="expnt-op3" type="radio" name="exportnt-op" value="attribtable">
Attribute Table Only
</label>
<button type="submit" class="pure-button export-nametable-btn" emit="export-nametable">Export Table(s)</button>
</form>
</div>
</div>

Loading…
Cancel
Save