123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747 |
- <!-- TODO(quachtina96): move the CSS out to a separate file -->
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="target-densitydpi=device-dpi, height=660, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
- <title>Blockly Demo: Blockly Developer Tools</title>
- <script src="../../blockly_compressed.js"></script>
- <script src="../../javascript_compressed.js"></script>
- <script src="../../msg/js/en.js"></script>
- <script src="../../blocks_compressed.js"></script>
- <script src="../../../closure-library/closure/goog/base.js"></script>
- <script src="factory_utils.js"></script>
- <script src="workspacefactory/wfactory_model.js"></script>
- <script src="standard_categories.js"></script>
- <script src="workspacefactory/wfactory_controller.js"></script>
- <script src="workspacefactory/wfactory_view.js"></script>
- <script src="workspacefactory/wfactory_generator.js"></script>
- <script src="workspacefactory/wfactory_init.js"></script>
- <script src="block_option.js"></script>
- <script src="factory.js"></script>
- <script src="block_library_view.js"></script>
- <script src="block_library_storage.js"></script>
- <script src="block_library_controller.js"></script>
- <script src="block_exporter_tools.js"></script>
- <script src="block_exporter_view.js"></script>
- <script src="block_exporter_controller.js"></script>
- <script src="blocks.js"></script>
- <script src="app_controller.js"></script>
- <script src="/storage.js"></script>
- <link rel="stylesheet" href="factory.css">
- <link rel="stylesheet" href="../prettify.css">
- <script src="../prettify.js"></script>
- <script>
- var blocklyFactory;
- var init = function() {
- blocklyFactory = new AppController();
- blocklyFactory.init();
- };
- window.addEventListener('load', init);
- </script>
- </head>
- <body onbeforeunload="return blocklyFactory.confirmLeavePage()">
- <h1><a href="https://developers.google.com/blockly/">Blockly</a> >
- <a href="../index.html">Demos</a> > Blockly Developer Tools
- <button id="helpButton" title="View documentation in new window.">
- <span>Help</span>
- </button>
- </h1>
- <div id="tabContainer">
- <div id="blockFactory_tab" class="tab tabon">Block Factory</div>
- <div id="blocklibraryExporter_tab" class="tab taboff">Block Exporter</div>
- <div id="workspaceFactory_tab" class="tab taboff">Workspace Factory</div>
- </div>
- <!-- Exporter tab -->
- <div id="blockLibraryExporter">
- <br>
- <p>
- First, select blocks from your block library by clicking on them. Then, use the Export Settings form to download starter code for selected blocks.
- </p>
- <div id="exportSelector">
- <br>
- <h3>Block Selector</h3>
- <div class="dropdown">
- <button id="button_setBlocks">Select</button>
- <div id="dropdownDiv_setBlocks" class="dropdown-content">
- <a id="dropdown_addAllFromLib" title="Select all block library blocks.">All Stored in Block Library</a>
- <a id="dropdown_addAllUsed" title="Select all block library blocks used in workspace factory.">All Used in Workspace Factory</a>
- </div>
- <button id="clearSelectedButton" title="Clear selected blocks.">Clear Selected</a>
- </div>
- <div id="blockSelector"></div>
- </div>
- <!-- Users may customize export settings through this form -->
- <div id="exportSettings">
- <br>
- <h3> Export Settings </h3>
- <form id="exportSettingsForm">
- <div id="selectedBlocksTextContainer">
- <p>Currently Selected:</p>
- <p id="selectedBlocksText"></p>
- </div>
- <label><input type="checkbox" id="blockDefCheck">Block Definition(s)</label><br>
- <div id="blockDefSettings" class="subsettings">
- <label>Format:
- <select id="exportFormat">
- <option value="JSON">JSON</option>
- <option value="JavaScript">JavaScript</option>
- </select></label>
- <br>
- <label>File Name:<br>
- <input type="text" id="blockDef_filename"></label>
- </div>
- <br>
- <label><input type="checkbox" id="genStubCheck">Generator Stub(s)</label><br>
- <div id="genStubSettings" class="subsettings">
- <label>Language:
- <select id="exportLanguage">
- <option value="JavaScript">JavaScript</option>
- <option value="Python">Python</option>
- <option value="PHP">PHP</option>
- <option value="Lua">Lua</option>
- <option value="Dart">Dart</option>
- </select></label>
- <br>
- <label>File Name:<br>
- <input type="text" id="generatorStub_filename"></label><br>
- </div>
- <br>
- </form>
- <button id="exporterSubmitButton" title="Download block starter code as specified in export settings.">Export</button>
- </div>
- <div id="exportPreview">
- <br>
- <h3>Export Preview</h3>
- <div id="blockDefs" class="exportPreviewTextArea">
- <p id="blockDefs_label">Block Definitions:</p>
- <pre id="blockDefs_textArea"></pre>
- </div>
- <div id="genStubs" class="exportPreviewTextArea">
- <p id="genStubs_label">Generator Stubs:</p>
- <pre id="genStubs_textArea"></pre>
- </div>
- </div>
- </div>
- <!-- Workspace Factory tab -->
- <div id="workspaceFactoryContent">
- <div id="factoryHeader">
- <p>
- <div class="dropdown">
- <button id="button_importBlocks">Import Custom Blocks</button>
- <div id="dropdownDiv_importBlocks" class="dropdown-content">
- <input type="file" id="input_importBlocksJson" accept=".js, .json, .txt" class="inputfile"</input>
- <label for="input_importBlocksJson">From JSON</label>
- <input type="file" id="input_importBlocksJs" accept=".js, .txt" class="inputfile"</input>
- <label for="input_importBlocksJs">From Javascript</label>
- </div>
- </div>
- <div class="dropdown">
- <button id="button_load">Load to Edit</button>
- <div id="dropdownDiv_load" class="dropdown-content">
- <input type="file" id="input_loadToolbox" accept=".xml" class="inputfile"></input>
- <label for="input_loadToolbox">Toolbox</label>
- <input type="file" id="input_loadPreload" accept=".xml" class="inputfile"</input>
- <label for="input_loadPreload">Workspace Blocks</label>
- </div>
- </div>
- <div class="dropdown">
- <button id="button_export">Export</button>
- <div id="dropdownDiv_export" class="dropdown-content">
- <a id="dropdown_exportOptions">Starter Code</a>
- <a id="dropdown_exportToolbox">Toolbox</a>
- <a id="dropdown_exportPreload">Workspace Blocks</a>
- <a id="dropdown_exportAll">All</a>
- </div>
- </div>
- <button id="button_clear">Clear</button>
- </p>
- </div>
- <section id="createDiv">
- <div id="createHeader">
- <h3>Edit</h3>
- <p id="editHelpText">Drag blocks into the workspace to configure the toolbox in your custom workspace.</p>
- </div>
- <table id="workspaceTabs" style="width:auto; height:auto">
- <tr>
- <td id="tab_toolbox" class="tabon">Toolbox</td>
- <td id="tab_preload" class="taboff">Workspace</td>
- </tr>
- </table>
- <section id="toolbox_section">
- <div id="toolbox_blocks"></div>
- </section>
- <aside id="toolbox_div">
- <p id="categoryHeader">You currently have no categories.</p>
- <table id="categoryTable" style="width:auto; height:auto">
- </table>
- <p> </p>
- <div class="dropdown">
- <button id="button_add" class="large">+</button>
- <div id="dropdownDiv_add" class="dropdown-content">
- <a id="dropdown_newCategory">New Category</a>
- <a id="dropdown_loadCategory">Standard Category</a>
- <a id="dropdown_separator">Separator</a>
- <a id="dropdown_loadStandardToolbox">Standard Toolbox</a>
- </div>
- </div>
- <button id="button_remove" class="large">-</button>
- <button id="button_up" class="large">↑</button>
- <button id="button_down" class="large">↓</button>
- <br>
- <div class="dropdown">
- <button id="button_editCategory">Edit Category</button>
- <div id="dropdownDiv_editCategory" class="dropdown-content">
- <a id='dropdown_name'>Name</a>
- <a id='dropdown_color'>Colour</a>
- </div>
- </div>
- </aside>
- <button id="button_addShadow" style="display: none">Make Shadow</button>
- <button id="button_removeShadow" style="display: none">Remove Shadow</button>
- <aside id="preload_div" style="display:none">
- <div id="preloadHelp">
- <p>Configure the options for your Blockly inject call.</p>
- <button id="button_optionsHelp">Help</button>
- <button class="small" id="button_standardOptions">Reset to Default</button>
- </div>
- <div id="workspace_options">
- <label><input type="checkbox" id="option_readOnly_checkbox">Read Only</label><br>
- <label><input type="checkbox" id="option_grid_checkbox">Use Grid</label><br>
- <div id="grid_options" style="display: none">
- <label>Spacing <input type="number" id="gridOption_spacing_number" style="width: 3em"></label><br>
- <label>Length <input type="number" id="gridOption_length_number" style="width: 3em"></label><br>
- <label>Colour <input type="text" id="gridOption_colour_text" style="width: 8em"></label><br>
- <div id="readonly1">
- <label><input type="checkbox" id="gridOption_snap_checkbox">Snap</label><br>
- </div>
- </div>
- <label>Path to Blockly Media <input type="text" id="option_media_text" style="width: 90%"></label><br>
- <label><input type="checkbox" id="option_rtl_checkbox">Layout with RTL</label><br>
- <label><input type="checkbox" id="option_scrollbars_checkbox">Scrollbars</label><br>
- <label><input type="checkbox" id="option_zoom_checkbox">Zoom</label><br>
- <div id="zoom_options" style="display: none">
- <label><input type="checkbox" id="zoomOption_controls_checkbox">Zoom Controls</label><br>
- <label><input type="checkbox" id="zoomOption_wheel_checkbox">Zoom Wheel</label><br>
- <label>Start Scale <input type="number" id="zoomOption_startScale_number" style="width: 4em"></label><br>
- <label>Max Scale <input type="number" id="zoomOption_maxScale_number" style="width: 4em"></label><br>
- <label>Min Scale <input type="number" id="zoomOption_minScale_number" style="width: 4em"></label><br>
- <label>Scale Speed <input type="number" id="zoomOption_scaleSpeed_number" style="width: 4em"></label><br>
- </div>
- <label><input type="checkbox" id="option_css_checkbox">Use Blockly CSS</label><br>
- <div id="readonly2">
- <label><input type="checkbox" id="option_collapse_checkbox">Collapsible Blocks</label><br>
- <label><input type="checkbox" id="option_comments_checkbox">Comments for Blocks</label><br>
- <label><input type="checkbox" id="option_disable_checkbox">Disabled Blocks</label><br>
- <label><input type="checkbox" id="option_infiniteBlocks_checkbox">Infinite Blocks</label><br>
- <div id="maxBlockNumber_option" style="display: none">
- <label>Max Blocks <input type="number" id="option_maxBlocks_number" style="width: 5em"></label><br>
- </div>
- <label><input type="checkbox" id="option_horizontalLayout_checkbox">Horizontal Toolbox</label><br>
- <label><input type="checkbox" id="option_toolboxPosition_checkbox">Toolbox End</label><br>
- <label><input type="checkbox" id="option_oneBasedIndex_checkbox">One-based index</label><br>
- <label><input type="checkbox" id="option_sounds_checkbox">Sounds<br>
- <label><input type="checkbox" id="option_trashcan_checkbox">Trashcan</label><br>
- </div>
- </div>
- </aside>
- </section>
- <aside id="previewDiv">
- <div id="previewBorder">
- <div id="previewHelp">
- <h3>Preview</h3>
- <p>This is what your custom workspace will look like.</p>
- </div>
- <div id="preview_blocks" class="content"></div>
- </div>
- </aside>
- </div>
- <!-- Blockly Factory Tab -->
- <table id="blockFactoryContent">
- <tr width="100%" height="10%">
- <td width="50%" height="5%">
- <table>
- <tr id="blockLibrary">
- <td id="blockLibraryContainer">
- <span>
- <div class="dropdown">
- <button id="button_blockLib">Block Library</button>
- <div id="dropdownDiv_blockLib" class="dropdown-content">
- <a id="createNewBlockButton">Create New Block</a>
- </div>
- </div>
- <select id="blockLibraryDropdown" style="display:none">
- </select>
- </span>
- </td>
- <td id="blockLibraryControls">
- <button id="saveToBlockLibraryButton" title="Save block to Block Library.">
- Save "block_type"
- </button>
- <button id="removeBlockFromLibraryButton" title="Remove block from Block Library.">
- Delete "block_type"
- </button>
- </td>
- </tr>
- </table>
- </td>
- <td height="5%">
- <table id="blockFactoryPreview">
- <tr>
- <td id="previewContainer">
- <h3>Preview:
- <select id="direction">
- <option value="ltr">LTR</option>
- <option value="rtl">RTL</option>
- </select>
- </h3>
- </td>
- <td id="buttonContainer">
- <button id="linkButton" title="Save and link to blocks.">
- <img src="link.png" height="21" width="21">
- </button>
- <button id="clearBlockLibraryButton" title="Clear Block Library.">
- <span>Clear Library</span>
- </button>
- <label for="files" class="buttonStyle">
- <span class=>Import Block Library</span>
- </label>
- <input id="files" type="file" name="files"
- accept="application/xml">
- <button id="localSaveButton" title="Save block library XML to a local file.">
- <span>Download Block Library</span>
- </button>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- <tr height="80%">
- <td id="blocklyWorkspaceContainer">
- <div id="blockly"></div>
- <div id="blocklyMask"></div>
- </td>
- <td width="50%">
- <table id="blocklyPreviewContainer">
- <tr>
- <td height="30%">
- <div id="preview"></div>
- </td>
- </tr>
- <tr>
- <td height="5%">
- <h3>Block Definition:
- <select id="format">
- <option value="JSON">JSON</option>
- <option value="JavaScript">JavaScript</option>
- <option value="Manual">Manual edit…</option>
- </select>
- </h3>
- </td>
- </tr>
- <tr>
- <td height="30%">
- <pre id="languagePre"></pre>
- <textarea id="languageTA"></textarea>
- </td>
- </tr>
- <tr>
- <td height="5%">
- <h3>Generator stub:
- <select id="language">
- <option value="JavaScript">JavaScript</option>
- <option value="Python">Python</option>
- <option value="PHP">PHP</option>
- <option value="Lua">Lua</option>
- <option value="Dart">Dart</option>
- </select>
- </h3>
- </td>
- </tr>
- <tr>
- <td height="30%">
- <pre id="generatorPre"></pre>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- <div id="modalShadow"></div>
- <xml id="blockfactory_toolbox" class="toolbox">
- <category name="Input">
- <block type="input_value">
- <value name="TYPE">
- <shadow type="type_null"></shadow>
- </value>
- </block>
- <block type="input_statement">
- <value name="TYPE">
- <shadow type="type_null"></shadow>
- </value>
- </block>
- <block type="input_dummy"></block>
- </category>
- <category name="Field">
- <block type="field_static"></block>
- <block type="field_input"></block>
- <block type="field_number"></block>
- <block type="field_angle"></block>
- <block type="field_dropdown"></block>
- <block type="field_checkbox"></block>
- <block type="field_colour"></block>
- <!--
- Date picker commented out since it increases footprint by 60%.
- Add it only if you need it. See also goog.require in blockly.js.
- <block type="field_date"></block>
- -->
- <block type="field_variable"></block>
- <block type="field_image"></block>
- </category>
- <category name="Type">
- <block type="type_group"></block>
- <block type="type_null"></block>
- <block type="type_boolean"></block>
- <block type="type_number"></block>
- <block type="type_string"></block>
- <block type="type_list"></block>
- <block type="type_other"></block>
- </category>
- <category name="Colour" id="colourCategory">
- <block type="colour_hue"><mutation colour="20"></mutation><field name="HUE">20</field></block>
- <block type="colour_hue"><mutation colour="65"></mutation><field name="HUE">65</field></block>
- <block type="colour_hue"><mutation colour="120"></mutation><field name="HUE">120</field></block>
- <block type="colour_hue"><mutation colour="160"></mutation><field name="HUE">160</field></block>
- <block type="colour_hue"><mutation colour="210"></mutation><field name="HUE">210</field></block>
- <block type="colour_hue"><mutation colour="230"></mutation><field name="HUE">230</field></block>
- <block type="colour_hue"><mutation colour="260"></mutation><field name="HUE">260</field></block>
- <block type="colour_hue"><mutation colour="290"></mutation><field name="HUE">290</field></block>
- <block type="colour_hue"><mutation colour="330"></mutation><field name="HUE">330</field></block>
- </category>
- </xml>
- <xml id="workspacefactory_toolbox" class="toolbox">
- <category name="Logic" colour="210">
- <block type="controls_if"></block>
- <block type="logic_compare"></block>
- <block type="logic_operation"></block>
- <block type="logic_negate"></block>
- <block type="logic_boolean"></block>
- <block type="logic_null"></block>
- <block type="logic_ternary"></block>
- </category>
- <category name="Loops" colour="120">
- <block type="controls_repeat_ext">
- <value name="TIMES">
- <shadow type="math_number">
- <field name="NUM">10</field>
- </shadow>
- </value>
- </block>
- <block type="controls_whileUntil"></block>
- <block type="controls_for">
- <value name="FROM">
- <shadow type="math_number">
- <field name="NUM">1</field>
- </shadow>
- </value>
- <value name="TO">
- <shadow type="math_number">
- <field name="NUM">10</field>
- </shadow>
- </value>
- <value name="BY">
- <shadow type="math_number">
- <field name="NUM">1</field>
- </shadow>
- </value>
- </block>
- <block type="controls_forEach"></block>
- <block type="controls_flow_statements"></block>
- </category>
- <category name="Math" colour="230">
- <block type="math_number"></block>
- <block type="math_arithmetic">
- <value name="A">
- <shadow type="math_number">
- <field name="NUM">1</field>
- </shadow>
- </value>
- <value name="B">
- <shadow type="math_number">
- <field name="NUM">1</field>
- </shadow>
- </value>
- </block>
- <block type="math_single">
- <value name="NUM">
- <shadow type="math_number">
- <field name="NUM">9</field>
- </shadow>
- </value>
- </block>
- <block type="math_trig">
- <value name="NUM">
- <shadow type="math_number">
- <field name="NUM">45</field>
- </shadow>
- </value>
- </block>
- <block type="math_constant"></block>
- <block type="math_number_property">
- <value name="NUMBER_TO_CHECK">
- <shadow type="math_number">
- <field name="NUM">0</field>
- </shadow>
- </value>
- </block>
- <block type="math_round">
- <value name="NUM">
- <shadow type="math_number">
- <field name="NUM">3.1</field>
- </shadow>
- </value>
- </block>
- <block type="math_on_list"></block>
- <block type="math_modulo">
- <value name="DIVIDEND">
- <shadow type="math_number">
- <field name="NUM">64</field>
- </shadow>
- </value>
- <value name="DIVISOR">
- <shadow type="math_number">
- <field name="NUM">10</field>
- </shadow>
- </value>
- </block>
- <block type="math_constrain">
- <value name="VALUE">
- <shadow type="math_number">
- <field name="NUM">50</field>
- </shadow>
- </value>
- <value name="LOW">
- <shadow type="math_number">
- <field name="NUM">1</field>
- </shadow>
- </value>
- <value name="HIGH">
- <shadow type="math_number">
- <field name="NUM">100</field>
- </shadow>
- </value>
- </block>
- <block type="math_random_int">
- <value name="FROM">
- <shadow type="math_number">
- <field name="NUM">1</field>
- </shadow>
- </value>
- <value name="TO">
- <shadow type="math_number">
- <field name="NUM">100</field>
- </shadow>
- </value>
- </block>
- <block type="math_random_float"></block>
- </category>
- <category name="Text" colour="160">
- <block type="text"></block>
- <block type="text_join"></block>
- <block type="text_append">
- <value name="TEXT">
- <shadow type="text"></shadow>
- </value>
- </block>
- <block type="text_length">
- <value name="VALUE">
- <shadow type="text">
- <field name="TEXT">abc</field>
- </shadow>
- </value>
- </block>
- <block type="text_isEmpty">
- <value name="VALUE">
- <shadow type="text">
- <field name="TEXT"></field>
- </shadow>
- </value>
- </block>
- <block type="text_indexOf">
- <value name="VALUE">
- <block type="variables_get">
- <field name="VAR">text</field>
- </block>
- </value>
- <value name="FIND">
- <shadow type="text">
- <field name="TEXT">abc</field>
- </shadow>
- </value>
- </block>
- <block type="text_charAt">
- <value name="VALUE">
- <block type="variables_get">
- <field name="VAR">text</field>
- </block>
- </value>
- </block>
- <block type="text_getSubstring">
- <value name="STRING">
- <block type="variables_get">
- <field name="VAR">text</field>
- </block>
- </value>
- </block>
- <block type="text_changeCase">
- <value name="TEXT">
- <shadow type="text">
- <field name="TEXT">abc</field>
- </shadow>
- </value>
- </block>
- <block type="text_trim">
- <value name="TEXT">
- <shadow type="text">
- <field name="TEXT">abc</field>
- </shadow>
- </value>
- </block>
- <block type="text_print">
- <value name="TEXT">
- <shadow type="text">
- <field name="TEXT">abc</field>
- </shadow>
- </value>
- </block>
- <block type="text_prompt_ext">
- <value name="TEXT">
- <shadow type="text">
- <field name="TEXT">abc</field>
- </shadow>
- </value>
- </block>
- </category>
- <category name="Lists" colour="260">
- <block type="lists_create_with">
- <mutation items="0"></mutation>
- </block>
- <block type="lists_create_with"></block>
- <block type="lists_repeat">
- <value name="NUM">
- <shadow type="math_number">
- <field name="NUM">5</field>
- </shadow>
- </value>
- </block>
- <block type="lists_length"></block>
- <block type="lists_isEmpty"></block>
- <block type="lists_indexOf">
- <value name="VALUE">
- <block type="variables_get">
- <field name="VAR">list</field>
- </block>
- </value>
- </block>
- <block type="lists_getIndex">
- <value name="VALUE">
- <block type="variables_get">
- <field name="VAR">list</field>
- </block>
- </value>
- </block>
- <block type="lists_setIndex">
- <value name="LIST">
- <block type="variables_get">
- <field name="VAR">list</field>
- </block>
- </value>
- </block>
- <block type="lists_getSublist">
- <value name="LIST">
- <block type="variables_get">
- <field name="VAR">list</field>
- </block>
- </value>
- </block>
- <block type="lists_split">
- <value name="DELIM">
- <shadow type="text">
- <field name="TEXT">,</field>
- </shadow>
- </value>
- </block>
- <block type="lists_sort"></block>
- </category>
- <category name="Colour" colour="20">
- <block type="colour_picker"></block>
- <block type="colour_random"></block>
- <block type="colour_rgb">
- <value name="RED">
- <shadow type="math_number">
- <field name="NUM">100</field>
- </shadow>
- </value>
- <value name="GREEN">
- <shadow type="math_number">
- <field name="NUM">50</field>
- </shadow>
- </value>
- <value name="BLUE">
- <shadow type="math_number">
- <field name="NUM">0</field>
- </shadow>
- </value>
- </block>
- <block type="colour_blend">
- <value name="COLOUR1">
- <shadow type="colour_picker">
- <field name="COLOUR">#ff0000</field>
- </shadow>
- </value>
- <value name="COLOUR2">
- <shadow type="colour_picker">
- <field name="COLOUR">#3333ff</field>
- </shadow>
- </value>
- <value name="RATIO">
- <shadow type="math_number">
- <field name="NUM">0.5</field>
- </shadow>
- </value>
- </block>
- </category>
- <sep></sep>
- <category name="Variables" colour="330" custom="VARIABLE"></category>
- <category name="Functions" colour="290" custom="PROCEDURE"></category>
- <sep></sep>
- <category name="Block Library" colour="260" id="blockLibCategory"></category>
- </xml>
- </body>
- </html>
|