1
1
Fork 0
mirror of https://github.com/boxgaming/qbjs.git synced 2025-01-15 12:21:17 +00:00

Added toolbar button for new methods dialog (F2)

This commit is contained in:
boxgaming 2024-10-12 07:42:12 -05:00
parent 4be3b35f40
commit 491fed335f
4 changed files with 96 additions and 1 deletions

46
img/methods-hover.svg Normal file
View file

@ -0,0 +1,46 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
viewBox="0 0 512 512"
version="1.1"
id="svg65"
sodipodi:docname="methods-hover.svg"
inkscape:version="1.1.2 (0a00cf5339, 2022-02-04)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs69" />
<sodipodi:namedview
id="namedview67"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
showgrid="false"
inkscape:zoom="1.5561622"
inkscape:cx="176.71679"
inkscape:cy="359.21704"
inkscape:window-width="1920"
inkscape:window-height="1008"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="svg65" />
<title
id="title56" />
<path
d="m 441.13,160.52 h -372 a 15,15 0 1 1 0,-30 h 372 a 15,15 0 0 1 0,30 z"
id="path58"
style="fill:#ffffff;fill-opacity:1" />
<path
d="m 441.13,279.72 h -372 a 15,15 0 1 1 0,-30 h 372 a 15,15 0 0 1 0,30 z"
id="path60"
style="fill:#ffffff;fill-opacity:1" />
<path
d="m 441.13,402.92 h -372 a 15,15 0 1 1 0,-30 h 372 a 15,15 0 0 1 0,30 z"
id="path62"
style="fill:#ffffff;fill-opacity:1" />
</svg>

After

Width:  |  Height:  |  Size: 1.4 KiB

46
img/methods.svg Normal file
View file

@ -0,0 +1,46 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
viewBox="0 0 512 512"
version="1.1"
id="svg65"
sodipodi:docname="methods.svg"
inkscape:version="1.1.2 (0a00cf5339, 2022-02-04)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs69" />
<sodipodi:namedview
id="namedview67"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
showgrid="false"
inkscape:zoom="0.77808113"
inkscape:cx="132.37694"
inkscape:cy="472.95839"
inkscape:window-width="1920"
inkscape:window-height="1008"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="svg65" />
<title
id="title56" />
<path
d="m 441.13,158.52 h -372 a 15,15 0 1 1 0,-30 h 372 a 15,15 0 0 1 0,30 z"
id="path58"
style="fill:#cccccc;fill-opacity:1" />
<path
d="m 441.13,279.72 h -372 a 15,15 0 1 1 0,-30 h 372 a 15,15 0 0 1 0,30 z"
id="path60"
style="fill:#cccccc;fill-opacity:1" />
<path
d="m 441.13,402.92 h -372 a 15,15 0 1 1 0,-30 h 372 a 15,15 0 0 1 0,30 z"
id="path62"
style="fill:#cccccc;fill-opacity:1" />
</svg>

After

Width:  |  Height:  |  Size: 1.4 KiB

View file

@ -37,6 +37,7 @@
<a href="javascript:IDE.stopProgram()" class="toolbar-button" id="toolbar-button-stop" title="Stop"></a>
<a href="javascript:IDE.shareProgram()" class="toolbar-button" id="toolbar-button-share" title="Share / Export"></a>
<div class="spacer"></div>
<a href="javascript:IDE.showMethodDialog()" class="toolbar-button" id="toolbar-button-methods" title="Show Methods"></a>
<a href="javascript:IDE.showOptionDialog()" class="toolbar-button" id="toolbar-button-settings" title="Settings"></a>
<a href="javascript:IDE.showDialog('about-dialog')" class="toolbar-button" id="toolbar-button-about" title="About QBJS"></a>

View file

@ -14,7 +14,7 @@
// Names of the two caches used in this version of the service worker.
// Change to v2, etc. when you update any of the local resources, which will
// in turn trigger the install event again.
const PRECACHE = 'precache-v12';
const PRECACHE = 'precache-v13';
const RUNTIME = 'runtime';
const PREFIX = (self.location.origin.indexOf("github.io") == -1) ? "/" : "/qbjs/";
@ -56,6 +56,8 @@ const PRECACHE_URLS = [
PREFIX + 'img/file.svg',
PREFIX + 'img/folder.svg',
PREFIX + 'img/fullscreen.png',
PREFIX + 'img/methods-hover.svg',
PREFIX + 'img/methods.svg',
PREFIX + 'img/new-folder-hover.svg',
PREFIX + 'img/new-folder.svg',
PREFIX + 'img/open-hover.svg',