| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025 |
- <!doctype html>
- <html lang="en">
- <head>
- <meta charset="UTF-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>nEngine Editor</title>
- <style>
- html,
- body {
- margin: 0;
- height: 100%;
- background: #171b20;
- color: #e6e9ec;
- font-family: system-ui, sans-serif;
- font-size: 14px;
- }
- #app {
- display: flex;
- flex-direction: column;
- height: 100%;
- }
- .screen {
- flex: 1;
- display: flex;
- flex-direction: column;
- padding: 24px;
- gap: 12px;
- overflow: auto;
- }
- .hidden {
- display: none;
- }
- h1 {
- margin: 0;
- font-size: 28px;
- color: #a5d6a7;
- }
- h2 {
- margin: 24px 0 8px;
- font-size: 15px;
- color: #90a4ae;
- text-transform: uppercase;
- letter-spacing: 0.08em;
- }
- h3 {
- margin: 0 0 8px;
- font-size: 13px;
- color: #90a4ae;
- text-transform: uppercase;
- letter-spacing: 0.08em;
- }
- button {
- font: inherit;
- padding: 7px 16px;
- border: 1px solid #4a5560;
- border-radius: 5px;
- background: #262c34;
- color: #e6e9ec;
- cursor: pointer;
- }
- button:hover {
- background: #313a45;
- }
- button.primary {
- background: #2e7d32;
- border-color: #66bb6a;
- }
- button.primary:hover {
- background: #388e3c;
- }
- #home-actions {
- display: flex;
- gap: 10px;
- }
- #recent-list {
- list-style: none;
- margin: 0;
- padding: 0;
- display: flex;
- flex-direction: column;
- gap: 6px;
- max-width: 560px;
- }
- #recent-list button {
- width: 100%;
- text-align: left;
- display: flex;
- justify-content: space-between;
- gap: 12px;
- }
- #recent-list .recent-path {
- color: #7f8c99;
- font-size: 12px;
- }
- .muted {
- color: #7f8c99;
- }
- #home-error {
- color: #ef5350;
- min-height: 18px;
- }
- #topbar {
- display: flex;
- align-items: center;
- gap: 14px;
- padding: 10px 16px;
- background: #1f242b;
- border-bottom: 1px solid #2d343d;
- }
- #project-name {
- font-weight: 600;
- color: #a5d6a7;
- }
- #project-path {
- color: #7f8c99;
- font-size: 12px;
- flex: 1;
- min-width: 0;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- #mcp-url {
- color: #7f8c99;
- font-size: 12px;
- font-family: ui-monospace, monospace;
- max-width: 280px;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- #mcp-url.running {
- color: #a5d6a7;
- }
- #workspace {
- flex: 1;
- display: flex;
- min-height: 0;
- }
- #content-browser {
- width: 240px;
- border-right: 1px solid #2d343d;
- padding: 14px;
- overflow: auto;
- background: #1c2127;
- }
- #content-list {
- list-style: none;
- margin: 0;
- padding: 0;
- display: flex;
- flex-direction: column;
- gap: 3px;
- }
- #content-list li {
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 4px 8px;
- border-radius: 4px;
- font-size: 13px;
- }
- #content-list li:hover {
- background: #262c34;
- }
- #content-list li.clickable {
- cursor: pointer;
- }
- .kind-name {
- color: #cfd8dc;
- }
- .kind-count {
- color: #7f8c99;
- font-variant-numeric: tabular-nums;
- }
- .kind-files {
- list-style: none;
- margin: 2px 0 0 10px;
- padding: 0;
- display: flex;
- flex-direction: column;
- gap: 2px;
- }
- .kind-file {
- font-size: 12px;
- padding: 3px 8px;
- text-align: left;
- width: 100%;
- background: #1f242b;
- }
- .kind-file:hover {
- background: #313a45;
- }
- .kind-new {
- padding: 2px 9px;
- font-size: 13px;
- line-height: 1.2;
- flex: none;
- }
- #editor-panel {
- flex: 1;
- padding: 16px;
- display: flex;
- flex-direction: column;
- gap: 8px;
- min-width: 0;
- }
- #editor-panel .placeholder {
- color: #7f8c99;
- border: 1px dashed #2d343d;
- border-radius: 6px;
- padding: 32px;
- text-align: center;
- }
- .form-panel {
- display: flex;
- flex-direction: column;
- gap: 10px;
- flex: 1;
- min-height: 0;
- }
- .form-header {
- display: flex;
- align-items: center;
- gap: 10px;
- flex-wrap: wrap;
- }
- .form-header h3 {
- margin: 0;
- }
- .form-path {
- color: #7f8c99;
- font-size: 12px;
- flex: 1;
- min-width: 0;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .form-errors {
- color: #ef5350;
- font-size: 12px;
- max-height: 140px;
- overflow: auto;
- }
- .form-errors ul {
- margin: 0;
- padding-left: 18px;
- }
- .form-body {
- flex: 1;
- min-height: 0;
- overflow: auto;
- display: flex;
- flex-direction: column;
- gap: 10px;
- padding: 10px;
- background: #1c2127;
- border: 1px solid #2d343d;
- border-radius: 6px;
- }
- .form-field {
- display: flex;
- flex-direction: column;
- gap: 4px;
- max-width: 560px;
- }
- .form-field > label {
- font-size: 12px;
- color: #90a4ae;
- }
- .form-field input[type="text"],
- .form-field input[type="number"],
- .form-field select {
- font: inherit;
- padding: 5px 8px;
- border: 1px solid #4a5560;
- border-radius: 4px;
- background: #262c34;
- color: #e6e9ec;
- }
- .form-field input[type="text"].readonly,
- .form-field select.readonly {
- opacity: 0.7;
- }
- .form-boolean {
- display: flex;
- align-items: center;
- gap: 8px;
- font-size: 13px;
- cursor: pointer;
- }
- .form-section {
- border: 1px solid #2d343d;
- border-radius: 6px;
- padding: 8px 10px;
- display: flex;
- flex-direction: column;
- gap: 8px;
- margin: 0;
- background: #171b20;
- }
- .form-section legend {
- font-size: 12px;
- color: #90a4ae;
- text-transform: uppercase;
- letter-spacing: 0.06em;
- padding: 0 6px;
- }
- .form-section-body {
- display: flex;
- flex-direction: column;
- gap: 8px;
- }
- .form-array,
- .form-record {
- display: flex;
- flex-direction: column;
- gap: 6px;
- border: 1px solid #2d343d;
- border-radius: 6px;
- padding: 8px 10px;
- background: #171b20;
- }
- .form-array-header,
- .form-record-header,
- .form-union-header {
- display: flex;
- align-items: center;
- gap: 8px;
- }
- .form-array-label,
- .form-record-label,
- .form-union-label {
- font-size: 12px;
- color: #90a4ae;
- text-transform: uppercase;
- letter-spacing: 0.06em;
- flex: 1;
- }
- .form-array-list,
- .form-record-rows {
- display: flex;
- flex-direction: column;
- gap: 6px;
- }
- .form-array-item {
- display: flex;
- align-items: flex-start;
- gap: 8px;
- padding: 6px;
- border: 1px solid #2d343d;
- border-radius: 4px;
- background: #1c2127;
- }
- .form-array-item > input,
- .form-array-item > select {
- flex: 1;
- min-width: 0;
- }
- .form-array-item-body {
- flex: 1;
- min-width: 0;
- }
- .form-array-controls {
- display: flex;
- gap: 4px;
- flex: none;
- }
- .form-array-controls button {
- padding: 4px 8px;
- font-size: 12px;
- }
- .form-union {
- display: flex;
- flex-direction: column;
- gap: 6px;
- border: 1px solid #2d343d;
- border-radius: 6px;
- padding: 8px 10px;
- background: #171b20;
- }
- .form-union-body {
- display: flex;
- flex-direction: column;
- gap: 8px;
- }
- .form-branch-select {
- font: inherit;
- padding: 5px 8px;
- border: 1px solid #4a5560;
- border-radius: 4px;
- background: #262c34;
- color: #e6e9ec;
- }
- .form-record-row {
- display: flex;
- align-items: flex-start;
- gap: 8px;
- }
- .form-record-row > input {
- flex: 1;
- min-width: 0;
- font: inherit;
- padding: 5px 8px;
- border: 1px solid #4a5560;
- border-radius: 4px;
- background: #262c34;
- color: #e6e9ec;
- }
- .form-record-row > .form-record-value {
- flex: 2;
- min-width: 0;
- }
- #statusbar {
- padding: 6px 16px;
- background: #1f242b;
- border-top: 1px solid #2d343d;
- color: #7f8c99;
- font-size: 12px;
- }
- .status-error {
- color: #ef5350;
- }
- button:disabled {
- opacity: 0.5;
- cursor: default;
- }
- .map-editor {
- display: flex;
- flex-direction: column;
- gap: 10px;
- flex: 1;
- min-height: 0;
- }
- .map-toolbar {
- display: flex;
- align-items: center;
- gap: 10px;
- flex-wrap: wrap;
- }
- .map-toolbar h3 {
- margin: 0;
- }
- .map-path {
- color: #7f8c99;
- font-size: 12px;
- flex: 1;
- min-width: 0;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .map-tools {
- display: flex;
- gap: 6px;
- }
- .map-tool-button {
- padding: 5px 12px;
- font-size: 12px;
- }
- .map-tool-button.selected {
- background: #2e7d32;
- border-color: #66bb6a;
- }
- .map-resize {
- display: flex;
- align-items: center;
- gap: 4px;
- }
- .map-resize input {
- width: 52px;
- padding: 4px 6px;
- font: inherit;
- font-size: 12px;
- background: #101418;
- color: #e6e9ec;
- border: 1px solid #2d343d;
- border-radius: 4px;
- }
- .map-body {
- display: flex;
- gap: 12px;
- flex: 1;
- min-height: 0;
- }
- .map-palette {
- width: 180px;
- flex: none;
- overflow: auto;
- display: flex;
- flex-direction: column;
- gap: 8px;
- padding: 10px;
- background: #1c2127;
- border: 1px solid #2d343d;
- border-radius: 6px;
- }
- .palette-list {
- display: flex;
- flex-direction: column;
- gap: 4px;
- }
- .palette-swatch {
- display: flex;
- align-items: center;
- gap: 8px;
- padding: 5px 8px;
- text-align: left;
- }
- .palette-swatch.selected {
- border-color: #66bb6a;
- background: #2e7d32;
- }
- .swatch-chip {
- width: 22px;
- height: 22px;
- border-radius: 3px;
- border: 1px solid rgba(0, 0, 0, 0.4);
- flex: none;
- overflow: hidden;
- }
- .swatch-chip img {
- width: 100%;
- height: 100%;
- display: block;
- object-fit: cover;
- image-rendering: pixelated;
- }
- .swatch-label {
- font-size: 12px;
- overflow: hidden;
- text-overflow: ellipsis;
- }
- .add-tile-form {
- display: flex;
- gap: 6px;
- }
- .add-tile-form input {
- flex: 1;
- min-width: 0;
- font: inherit;
- padding: 5px 8px;
- border: 1px solid #4a5560;
- border-radius: 4px;
- background: #262c34;
- color: #e6e9ec;
- }
- .map-canvas-wrap {
- flex: 1;
- min-width: 0;
- overflow: auto;
- background: #111417;
- border: 1px solid #2d343d;
- border-radius: 6px;
- padding: 8px;
- }
- #map-canvas,
- .map-canvas-wrap canvas {
- display: block;
- image-rendering: pixelated;
- cursor: crosshair;
- }
- .scene-editor {
- display: flex;
- flex-direction: column;
- gap: 10px;
- flex: 1;
- min-height: 0;
- }
- .scene-toolbar {
- display: flex;
- align-items: center;
- gap: 10px;
- flex-wrap: wrap;
- }
- .scene-toolbar h3 {
- margin: 0;
- }
- .scene-path {
- color: #7f8c99;
- font-size: 12px;
- flex: 1;
- min-width: 0;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .scene-mode-toggle {
- display: flex;
- gap: 6px;
- }
- .scene-mode-button {
- padding: 5px 12px;
- font-size: 12px;
- }
- .scene-mode-button.selected {
- background: #2e7d32;
- border-color: #66bb6a;
- }
- .scene-body {
- display: flex;
- gap: 12px;
- flex: 1;
- min-height: 0;
- }
- .scene-palette {
- width: 180px;
- flex: none;
- overflow: auto;
- display: flex;
- flex-direction: column;
- gap: 8px;
- padding: 10px;
- background: #1c2127;
- border: 1px solid #2d343d;
- border-radius: 6px;
- }
- .scene-palette-section {
- margin: 6px 0 0;
- font-size: 11px;
- color: #90a4ae;
- text-transform: uppercase;
- letter-spacing: 0.06em;
- }
- .scene-palette-list {
- display: flex;
- flex-direction: column;
- gap: 4px;
- }
- .scene-palette-item {
- display: flex;
- align-items: center;
- justify-content: space-between;
- gap: 8px;
- padding: 5px 8px;
- text-align: left;
- }
- .scene-palette-item.selected {
- border-color: #66bb6a;
- background: #2e7d32;
- }
- .scene-palette-badge {
- color: #90a4ae;
- font-size: 11px;
- font-variant-numeric: tabular-nums;
- flex: none;
- }
- .scene-npc-form {
- display: flex;
- flex-direction: column;
- gap: 6px;
- }
- .scene-npc-form input {
- font: inherit;
- padding: 5px 8px;
- border: 1px solid #4a5560;
- border-radius: 4px;
- background: #262c34;
- color: #e6e9ec;
- }
- .scene-main {
- flex: 1;
- min-width: 0;
- display: flex;
- flex-direction: column;
- gap: 8px;
- }
- .scene-entity-list {
- border: 1px solid #2d343d;
- border-radius: 6px;
- background: #1c2127;
- padding: 8px 10px;
- max-height: 180px;
- overflow: auto;
- display: flex;
- flex-direction: column;
- gap: 6px;
- }
- .scene-entity-list h4 {
- margin: 0;
- font-size: 11px;
- color: #90a4ae;
- text-transform: uppercase;
- letter-spacing: 0.06em;
- }
- .scene-entity-rows {
- display: flex;
- flex-direction: column;
- gap: 3px;
- }
- .scene-entity-row {
- display: flex;
- align-items: center;
- gap: 8px;
- padding: 4px 8px;
- border-radius: 4px;
- cursor: pointer;
- font-size: 12px;
- }
- .scene-entity-row:hover {
- background: #262c34;
- }
- .scene-entity-row.selected {
- background: #2e7d32;
- }
- .scene-entity-dot {
- width: 10px;
- height: 10px;
- border-radius: 50%;
- border: 1px solid rgba(0, 0, 0, 0.4);
- flex: none;
- }
- .scene-entity-coords {
- color: #7f8c99;
- font-variant-numeric: tabular-nums;
- margin-left: auto;
- }
- .scene-entity-delete {
- padding: 2px 7px;
- font-size: 12px;
- line-height: 1.1;
- flex: none;
- }
- .mods-body {
- flex: 1;
- min-height: 0;
- overflow: auto;
- }
- .mods-list {
- list-style: none;
- margin: 0;
- padding: 0;
- display: flex;
- flex-direction: column;
- gap: 6px;
- }
- .mod-row {
- display: flex;
- align-items: center;
- gap: 10px;
- padding: 8px 10px;
- border: 1px solid #2d343d;
- border-radius: 6px;
- background: #1c2127;
- }
- .mod-info {
- flex: 1;
- min-width: 0;
- display: flex;
- flex-direction: column;
- gap: 2px;
- }
- .mod-id {
- font-weight: 600;
- color: #cfd8dc;
- }
- .mod-meta {
- color: #7f8c99;
- font-size: 12px;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .mod-toggle {
- flex: none;
- font-size: 12px;
- padding: 5px 12px;
- }
- .assets-toolbar {
- display: flex;
- gap: 8px;
- }
- .assets-body {
- flex: 1;
- min-height: 0;
- overflow: auto;
- display: flex;
- flex-direction: column;
- gap: 10px;
- }
- .assets-grid {
- display: grid;
- grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
- gap: 8px;
- }
- .asset-tile {
- display: flex;
- flex-direction: column;
- align-items: center;
- gap: 4px;
- padding: 8px;
- border: 1px solid #2d343d;
- border-radius: 6px;
- background: #1c2127;
- }
- .asset-tile img {
- width: 64px;
- height: 64px;
- object-fit: contain;
- image-rendering: pixelated;
- }
- .asset-label {
- font-size: 11px;
- color: #cfd8dc;
- max-width: 100%;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .asset-delete {
- padding: 3px 10px;
- font-size: 11px;
- }
- .assets-audio {
- display: flex;
- flex-direction: column;
- gap: 6px;
- }
- .asset-row {
- display: flex;
- align-items: center;
- gap: 10px;
- padding: 8px 10px;
- border: 1px solid #2d343d;
- border-radius: 6px;
- background: #1c2127;
- }
- .asset-info {
- flex: 1;
- min-width: 0;
- display: flex;
- flex-direction: column;
- gap: 2px;
- }
- .asset-id {
- font-weight: 600;
- color: #cfd8dc;
- }
- .asset-meta {
- color: #7f8c99;
- font-size: 12px;
- }
- #playtest {
- flex: 1;
- display: flex;
- flex-direction: column;
- min-height: 0;
- background: #0d1013;
- }
- #playtest-topbar {
- display: flex;
- align-items: center;
- gap: 14px;
- padding: 8px 16px;
- background: #1f242b;
- border-bottom: 1px solid #2d343d;
- }
- #playtest-title {
- font-weight: 600;
- color: #a5d6a7;
- }
- #playtest-status {
- color: #7f8c99;
- font-size: 12px;
- flex: 1;
- }
- #playtest-game {
- flex: 1;
- min-height: 0;
- position: relative;
- }
- #playtest-hud {
- display: flex;
- align-items: center;
- gap: 16px;
- padding: 6px 16px;
- background: #1f242b;
- border-top: 1px solid #2d343d;
- color: #e6e9ec;
- font-size: 12px;
- }
- #playtest-time {
- color: #a5d6a7;
- font-variant-numeric: tabular-nums;
- }
- #playtest-stats {
- color: #e6e9ec;
- flex: 1;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- #playtest-feedback {
- color: #8bc34a;
- min-height: 14px;
- }
- .dialog-backdrop {
- position: fixed;
- inset: 0;
- background: rgba(0, 0, 0, 0.5);
- display: flex;
- align-items: center;
- justify-content: center;
- z-index: 40;
- }
- .dialog {
- width: 520px;
- max-width: 92vw;
- max-height: 82vh;
- overflow: auto;
- background: #1c2127;
- border: 1px solid #2d343d;
- border-radius: 8px;
- padding: 18px;
- display: flex;
- flex-direction: column;
- gap: 12px;
- }
- .dialog h3 {
- margin: 0;
- }
- .pack-checks {
- display: flex;
- flex-direction: column;
- gap: 6px;
- }
- .dialog-actions {
- display: flex;
- gap: 10px;
- }
- #pack-result {
- white-space: pre-wrap;
- font-family: ui-monospace, monospace;
- font-size: 12px;
- color: #8bc34a;
- max-height: 180px;
- overflow: auto;
- border: 1px solid #2d343d;
- border-radius: 4px;
- padding: 8px;
- background: #171b20;
- margin: 0;
- }
- #pack-result.status-error {
- color: #ef5350;
- }
- </style>
- </head>
- <body>
- <div id="app">
- <section id="home" class="screen">
- <h1>nEngine Editor</h1>
- <p class="muted">Create or open an nEngine project — a folder with <code>content/</code> (and optional <code>mods/</code>).</p>
- <div id="home-actions">
- <button id="btn-open" type="button" class="primary">Open project…</button>
- <button id="btn-new" type="button">New project…</button>
- </div>
- <h2>Recent projects</h2>
- <ul id="recent-list"></ul>
- <p id="home-error"></p>
- </section>
- <section id="editor" class="screen hidden">
- <header id="topbar">
- <span id="project-name"></span>
- <span id="project-path"></span>
- <span id="mcp-url" title="Embedded MCP endpoint — paste into your AI tool"></span>
- <button id="btn-mcp-copy" type="button" disabled>Copy MCP URL</button>
- <button id="btn-package" type="button">Package</button>
- <button id="btn-play" type="button" class="primary">Play</button>
- <button id="btn-close" type="button">Close project</button>
- </header>
- <div id="workspace">
- <aside id="content-browser">
- <h3>Content</h3>
- <ul id="content-list"></ul>
- </aside>
- <main id="editor-panel">
- <h3>Editor</h3>
- <p class="placeholder">Select a content kind from the sidebar. Maps open the visual tile editor.</p>
- </main>
- </div>
- <div id="statusbar">
- <span id="status"></span>
- </div>
- </section>
- <section id="playtest" class="screen hidden">
- <header id="playtest-topbar">
- <span id="playtest-title">Playtest</span>
- <span id="playtest-status"></span>
- <button id="btn-playtest-exit" type="button">Exit</button>
- </header>
- <div id="playtest-game"></div>
- <div id="playtest-hud">
- <span id="playtest-time"></span>
- <span id="playtest-stats"></span>
- <span id="playtest-feedback"></span>
- </div>
- </section>
- <section id="pack-dialog" class="hidden">
- <div class="dialog-backdrop">
- <div class="dialog">
- <h3>Package</h3>
- <p class="muted">Run the nengine-pack pipeline on this project: content → bundle.json + static site, plus optional desktop app and installer config. Fields pre-fill from project.yaml and are saved back on run.</p>
- <label class="form-field">Product name<input id="pack-name" type="text"></label>
- <label class="form-field">Icon path<input id="pack-icon" type="text" placeholder="icon.png (stored for future use — v1 ships the default Electron icon)"></label>
- <div class="pack-checks">
- <label class="form-boolean"><input id="pack-desktop" type="checkbox">Desktop app (Electron shell)</label>
- <label class="form-boolean"><input id="pack-installer" type="checkbox">Installer config (electron-builder)</label>
- <label class="form-boolean"><input id="pack-mods" type="checkbox">Include Mods (<code>mods/</code>)</label>
- <label class="form-boolean"><input id="pack-split" type="checkbox">Split assets into <code>nengine-assets/</code></label>
- </div>
- <label class="form-field">Output directory<input id="pack-outdir" type="text"></label>
- <pre id="pack-result"></pre>
- <div class="dialog-actions">
- <button id="btn-pack-run" type="button" class="primary">Run package</button>
- <button id="btn-pack-close" type="button">Close</button>
- </div>
- </div>
- </div>
- </section>
- </div>
- <script type="module" src="/src/renderer/main.ts"></script>
- </body>
- </html>
|