mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-05-22 14:17:30 +08:00
About window
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { css } from "lit"
|
||||
|
||||
export default class Configuration {
|
||||
static VERSION = "2.0.0"
|
||||
static nodeColors = {
|
||||
black: css`20, 20, 20`,
|
||||
blue: css`84, 122, 156`,
|
||||
|
||||
@@ -140,6 +140,11 @@ export default class BlueprintTemplate extends ITemplate {
|
||||
render() {
|
||||
return html`
|
||||
<div class="ueb-viewport-header">
|
||||
<div class="ueb-viewport-about">
|
||||
<a @click="${e => e.target.closest("ueb-blueprint").querySelector(".ueb-info-dialog").showModal()}">
|
||||
ⓘ
|
||||
</a>
|
||||
</div>
|
||||
<div class="ueb-viewport-zoom">
|
||||
Zoom ${this.blueprint.zoom == 0 ? "1:1" : (this.blueprint.zoom > 0 ? "+" : "") + this.blueprint.zoom}
|
||||
</div>
|
||||
@@ -155,6 +160,18 @@ export default class BlueprintTemplate extends ITemplate {
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<dialog class="ueb-info-dialog" @click="${e => e.target.closest(".ueb-info-dialog").close()}">
|
||||
<h2>UEBlueprint</h2>
|
||||
<p>A stand alone editor implementation of the UE's Blueprint visual language.</p>
|
||||
<p>
|
||||
Version: ${Configuration.VERSION}<br />
|
||||
Author: barsdeveloper<br />
|
||||
License: MIT<br />
|
||||
<a target="_blank" href="https://github.com/barsdeveloper/ueblueprint">
|
||||
https://github.com/barsdeveloper/ueblueprint
|
||||
</a>
|
||||
</p>
|
||||
</dialog>
|
||||
`
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user