remove: some levels on flyout

This commit is contained in:
uenome 2021-01-17 12:15:52 +09:00
parent 5e9a646ddd
commit be2235cc8e
2 changed files with 27 additions and 13 deletions

View File

@ -503,7 +503,6 @@
</block>
</category> -->
<category name="ループ" css-icon="customIcon fas fa-redo-alt" categorystyle="loop_category">
<label text="Loops" web-icon="&#xf01e;" web-class="blocklyFlyoutHeading"></label>
<block type="controls_repeat_ext">
<value name="TIMES">
<shadow type="math_number">
@ -541,7 +540,6 @@
</block>
</category>
<category name="数・計算" css-icon="customIcon fas fa-calculator" categorystyle="math_category">
<label text="Math" web-icon="&#xf1ec;" web-class="blocklyFlyoutHeading"></label>
<block type="math_number">
<field name="NUM">0</field>
</block>
@ -601,7 +599,6 @@
<block type="math_random_float"></block>
</category>
<category name="文字列" css-icon="customIcon fas fa-font" categorystyle="text_category">
<label text="Text" web-icon="&#xf031;" web-class="blocklyFlyoutHeading"></label>
<block type="text">
<field name="TEXT"></field>
</block>
@ -650,7 +647,6 @@
</block>
</category>
<category name="リスト" css-icon="customIcon fas fa-list-ol" categorystyle="list_category">
<label text="List" web-icon="&#xf0cb;" web-class="blocklyFlyoutHeading"></label>
<block type="lists_create_with">
<mutation items="0"></mutation>
</block>
@ -707,8 +703,7 @@
</category>
<sep></sep>
<category name="GPIO" colour="%{BKY_UGJ_GPIO_HUE}" css-icon="customIcon fab fa-raspberry-pi">
<label text="GPIO" web-icon="&#xf2db;" web-class="blocklyFlyoutHeading"></label>
<label text="基本" web-line="4.0" web-line-width="200"></label>
<label text="基本"></label>
<block type="ugj_gpio_start"></block>
<block type="ugj_gpio_stop"></block>
<block type="ugj_gpio_setoutput">
@ -852,10 +847,9 @@
<block type="ugj_gpio_sleep">
<field name="sec">1</field>
</block>
<label text="" web-line="4.0" web-line-width="200"></label>
<label text="_" web-line="4.0" web-line-width="200"></label>
</category>
<category name="マルチメディア" colour="%{BKY_UGJ_MULTIMEDIA_HUE}" css-icon="customIcon fas fa-calculator">
<label text="Multimedia" web-icon="&#xf11b;" web-class="blocklyFlyoutHeading"></label>
<label text="キャンバス" web-line="4.0" web-line-width="200"></label>
<block type="ugj_canvas_init"></block>
<block type="ugj_canvas_clearrect">
@ -1009,11 +1003,10 @@
<block type="ugj_tfpredict_predict">
<field name="result" id="!=~_{T-;nZXP-rWM|beL" variabletype="">結果</field>
</block>
<label text="" web-line="4.0" web-line-width="200"></label>
<label text="_" web-line="4.0" web-line-width="200"></label>
</category>
<category name="ネットワーク" colour="%{BKY_UGJ_NETWORK_HUE}" css-icon="customIcon fas fa-wifi">
<label text="Network" web-icon="&#xf1eb;" web-class="blocklyFlyoutHeading"></label>
<label text="基本" web-line="4.0" web-line-width="200"></label>
<block type="ugj_network_axios_geturl">
<value name="url">
@ -1083,10 +1076,9 @@
<block type="ugj_skyway_eventsend">
<field name="data" id="vN/_]nnKA$wVHSxh2_9f" variabletype="">内容</field>
</block>
<label text="" web-line="4.0" web-line-width="200"></label>
<label text="_" web-line="4.0" web-line-width="200"></label>
</category>
<category name="特殊" colour="%{BKY_UGJ_SPECIAL_HUE}" css-icon="customIcon fas fa-plug">
<label text="Special" web-icon="&#xf1e6;" web-class="blocklyFlyoutHeading"></label>
<label text="出入力" web-line="4.0" web-line-width="200"></label>
<block type="ugj_canvas_say">
<value name="say">
@ -1310,7 +1302,7 @@
<block type="ugj_child_debug">
<value name="cmd">
</block>
<label text="" web-line="4.0" web-line-width="200"></label>
<label text="_" web-line="4.0" web-line-width="200"></label>
</category>
</xml>

View File

@ -16,6 +16,7 @@ function createWindow() {
height: 600,
webPreferences: {
nodeIntegration: true,
contextIsolation: false,
enableRemoteModule: true
}
})
@ -77,6 +78,27 @@ app.on('ready', () => {
win.reload();
},
accelerator: "F5"
},
{
label: 'About',
click: () => {
var os = require('os');
var detail = 'Version: ' + process.env.npm_package_version + '\n'
+ 'Node.js: ' + process.versions.node + '\n'
+ 'Chrome: ' + process.versions.chrome + '\n'
+ 'Electron: ' + process.versions.electron + '\n'
+ 'V8: ' + process.versions.v8 + '\n'
+ 'OS: ' + os.type + ' ' + os.arch + ' ' + os.version + ' ' + os.release;
var options = {
type: 'info',
buttons: ['OK'],
title: 'OCoGe',
message: 'OCoGe - Oiwa Code Generator',
detail: detail
};
require('electron').dialog.showMessageBox(win, options);
},
accelerator: "CommandOrControl+I"
}
]
}