Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions editor/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,14 @@
<div class="titleWidgetContainer"></div>
</div>

<div id="titleFlexItem" class="bitsy-playmode-disable">
<div style="width: 400px;" id="instanceFlexItem">
<div class="instanceNameContainer"></div>
</div>
<button style="height: 25px;" id="instanceNameCopy">
<label title="copy instance URL" for="instanceNameCopy" id="instanceNameCopyLabel" class="bitsy-menu-label">
<span class="bitsy_icon">open_tool</span>
</label>
</button>

<!-- show tools -->
<input type="checkbox" value="toolsPanel" id="toolsCheck" autocomplete="off" />
Expand Down Expand Up @@ -125,7 +130,7 @@
</div>
</div>

<div id="editorWindow" > <!-- FIXME: onmousewheel="blockScrollBackpage(event);" -->
<div id="editorWindow" >
<div id="editorContent">

<div id="aboutPanel" class="bitsy-card bitsy-card-m bitsy-workbench-item">
Expand Down Expand Up @@ -833,6 +838,7 @@
</div> <!-- Editor Content -->
</div> <!-- Editor Window -->

<canvas id="pointerOverlay" class="overlay"></canvas>
</div>

</body>
Expand Down
10 changes: 7 additions & 3 deletions editor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ import {start,
openFindToolWithCurrentPaintCategory, togglePaintGrid, on_paint_frame1, on_paint_frame2, prevPalette, nextPalette, newPalette,
duplicatePalette, deletePalette, changeColorPickerIndex, prevDialog, nextDialog, addNewDialog, duplicateDialog, deleteDialog, openFindTool,
toggleAlwaysShowDrawingDialog, showInventoryItem, showInventoryVariable, startRecordingGif, stopRecordingGif, takeSnapshotGif, toggleSnapshotMode,
toggleExitOptions, grabCard, onDialogNameChange, onChangeExitTransitionEffect,
on_drawing_name_change, on_toggle_wall, on_toggle_animated, on_palette_name_change
toggleExitOptions, grabCard, onDialogNameChange, onChangeExitTransitionEffect, blockScrollBackpage, copyInstanceURL,
on_drawing_name_change, on_toggle_wall, on_toggle_animated, on_palette_name_change
} from "./script/editor.js"
import {aboutOpenTab} from "./script/tools/about.js"
import {showPanel, hidePanel} from "./script/editor_state.js"
import {showPanel, hidePanel, loadIcons} from "./script/editor_state.js"

loadIcons()
start()

export function testShim (gameTool) {
Expand All @@ -23,6 +24,7 @@ export function bindToolDialogs () {
// I get called during editor initialization by start()

document.querySelectorAll(".bitsy-card-title").forEach(u => u.addEventListener("onmousedown", grabCard))
document.querySelector("#editorWindow").addEventListener("onmousewheel", blockScrollBackpage)

document.querySelector("#dialogShowCodeCheck").addEventListener("click", toggleDialogCode)
document.querySelector("#toolsCheck").addEventListener("click", toggleToolBar)
Expand Down Expand Up @@ -118,4 +120,6 @@ export function bindToolDialogs () {
document.querySelector("#wallCheckbox").addEventListener("change", on_toggle_wall)
document.querySelector("#animatedCheckbox").addEventListener("change", on_toggle_animated)
document.querySelector("#paletteName").addEventListener("change", on_palette_name_change)

document.querySelector("#instanceNameCopy").addEventListener("click", copyInstanceURL)
}
4 changes: 3 additions & 1 deletion editor/script/dialog_editor.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { rgbToHex } from "./util.js"
import { scriptInterpreter, scriptUtils, titleDialogId } from "./engine/world.js"
import { getTitle, getPal, curDefaultPal, sprite, tile, room, item, dialog, palette, setTitle } from "./engine/bitsy.js"
import { getTitle, getPal, curDefaultPal, sprite, tile, room, item, dialog, palette, blip, tune,
setTitle } from "./engine/bitsy.js"
import { tilesize } from "./system/system.js"

import { ThumbnailRenderer } from "./thumbnail.js"
import { iconUtils, events } from "./editor_state.js"
Expand Down
Loading
Loading