mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-05-14 07:47:29 +08:00
Update README.md
This commit is contained in:
15
README.md
15
README.md
@@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
A stand alone editor implementation of the UE's Blueprint visual language.
|
A stand alone editor implementation of the UE's Blueprint visual language.
|
||||||
|
|
||||||
|
https://www.npmjs.com/package/ueblueprint
|
||||||
|
|
||||||
## Features:
|
## Features:
|
||||||
|
|
||||||
- Intercommunicates with UE (can copy nodes both ways).
|
- Intercommunicates with UE (can copy nodes both ways).
|
||||||
@@ -12,10 +14,10 @@ A stand alone editor implementation of the UE's Blueprint visual language.
|
|||||||
- All the information shown in he graph is just the one embedded in the serialized text.
|
- All the information shown in he graph is just the one embedded in the serialized text.
|
||||||
|
|
||||||
## Demo:
|
## Demo:
|
||||||
|
|
||||||
[Try it!](https://barsdeveloper.github.io/ueblueprint/)
|
[Try it!](https://barsdeveloper.github.io/ueblueprint/)
|
||||||
|
|
||||||

|
[](https://barsdeveloper.github.io/ueblueprint/)
|
||||||
|
|
||||||
|
|
||||||
## Getting started:
|
## Getting started:
|
||||||
|
|
||||||
@@ -32,8 +34,9 @@ npx http-server
|
|||||||
### Use in a web page
|
### Use in a web page
|
||||||
|
|
||||||
You can check `index.html` for a working example, the main steps are the following:
|
You can check `index.html` for a working example, the main steps are the following:
|
||||||
1. Include `dist/css/ueb-style.css` stylesheet in your page.
|
1. Make the `dist` directory available in your website by copying it or installing through npm `npm i ueblueprint`.
|
||||||
2. Define eventual CSS variables.
|
2. Include `dist/css/ueb-style.css` stylesheet in your page.
|
||||||
|
3. Define eventual CSS variables.
|
||||||
```HTML
|
```HTML
|
||||||
<style>
|
<style>
|
||||||
ueb-blueprint {
|
ueb-blueprint {
|
||||||
@@ -41,13 +44,13 @@ You can check `index.html` for a working example, the main steps are the followi
|
|||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
```
|
```
|
||||||
3. Import the class Blueprint in JavaScript (this library uses modules).
|
4. Import the class Blueprint in JavaScript (this library uses modules).
|
||||||
```HTML
|
```HTML
|
||||||
<script type="module">
|
<script type="module">
|
||||||
import { Blueprint } from "./dist/ueblueprint.js"
|
import { Blueprint } from "./dist/ueblueprint.js"
|
||||||
</script>
|
</script>
|
||||||
```
|
```
|
||||||
4. Define your blueprint by just writing the code inside a `ueb-blueprint`, inside a `template` element.
|
5. Define your blueprint by just writing the code inside a `ueb-blueprint`, inside a `template` element.
|
||||||
```HTML
|
```HTML
|
||||||
<ueb-blueprint>
|
<ueb-blueprint>
|
||||||
<template>
|
<template>
|
||||||
|
|||||||
Reference in New Issue
Block a user