Merge branch 'MoonModules:mdev' into DMX-Input-esp_dmx
This commit is contained in:
@@ -316,7 +316,7 @@
|
||||
#define FX_MODE_WAVESINS 184
|
||||
#define FX_MODE_ROCKTAVES 185
|
||||
#define FX_MODE_2DAKEMI 186
|
||||
#define FX_MODE_CUSTOMEFFECT 187 //WLEDMM Custom Effects
|
||||
#define FX_MODE_ARTIFX 187 //WLEDMM ARTIFX
|
||||
|
||||
#define MODE_COUNT 188
|
||||
|
||||
|
||||
@@ -133,7 +133,7 @@
|
||||
#define USERMOD_ID_SHT 39 //Usermod "usermod_sht.h
|
||||
#define USERMOD_ID_KLIPPER 40 // Usermod Klipper percentage
|
||||
//WLEDMM
|
||||
#define USERMOD_ID_CUSTOMEFFECTS 90 //Usermod "usermod_v2_customeffects.h"
|
||||
#define USERMOD_ID_ARTIFX 90 //Usermod "usermod_v2_artifx.h"
|
||||
#define USERMOD_ID_WEATHER 91 //Usermod "usermod_v2_weather.h"
|
||||
#define USERMOD_ID_GAMES 92 //Usermod "usermod_v2_games.h"
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
setTimeout(()=>{h.appendChild(l)},100);
|
||||
</script>
|
||||
<link rel="stylesheet" href="index.css">
|
||||
<link rel="stylesheet" href="../../usermods/customeffects/customeffects.css"> <!--WLEDMM Custom Effects -->
|
||||
<link rel="stylesheet" href="../../usermods/artifx/artifx.css"> <!--WLEDMM ARTIFX -->
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@@ -66,7 +66,7 @@
|
||||
<button id="buttonPower" onclick="togglePower()" class="tgl"><i class="icons"></i><p class="tab-label">Power</p></button>
|
||||
<button id="buttonNl" onclick="toggleNl()"><i class="icons"></i><p class="tab-label">Timer</p></button>
|
||||
<button id="buttonSync" onclick="toggleSync()"><i class="icons"></i><p class="tab-label">Sync</p></button>
|
||||
<button id="buttonSr" onclick="toggleLiveview()"><i class="icons"></i><p class="tab-label">GFX ☾</p></button>
|
||||
<button id="buttonSr" onclick="toggleLiveview()"><i class="icons"></i><p class="tab-label">GFX</p></button>
|
||||
<button id="buttonI" onclick="toggleInfo()"><i class="icons"></i><p class="tab-label">Info</p></button>
|
||||
<button id="buttonNodes" onclick="toggleNodes()"><i class="icons"></i><p class="tab-label">Nodes</p></button>
|
||||
<button onclick="window.location.href='/settings';"><i class="icons"></i><p class="tab-label">Config</p></button>
|
||||
@@ -210,7 +210,7 @@
|
||||
<div id="effectGFX"> <!--WLEDMM-->
|
||||
<!-- <p class="labels hd">Peek ☾ <button class="btn infobtn btn-xs" onclick="eandp(this,gId('canvasPeek'));">v</button></p> -->
|
||||
<br>
|
||||
<canvas id="canvasPeek"></canvas><br>
|
||||
<canvas id="canvasPeek" onclick="bigPeek(true)"></canvas><br>
|
||||
<br>
|
||||
</div>
|
||||
<div id="fx">
|
||||
@@ -393,7 +393,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- WLEDMM Custom Effects -->
|
||||
<!-- WLEDMM ARTIFX -->
|
||||
<div id="ceEditor" class="modal">
|
||||
<div id="kceEditor">Loading...</div><br>
|
||||
</div>
|
||||
@@ -413,6 +413,6 @@
|
||||
</div>
|
||||
<i id="roverstar" class="icons huge" onclick="setLor(0)"></i><br>
|
||||
<script src="index.js"></script>
|
||||
<script src="../../usermods/customeffects/customeffects.js"></script> <!--WLEDMM Custom Effects-->
|
||||
<script src="../../usermods/artifx/artifx.js"></script> <!--WLEDMM ARTIFX-->
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -771,9 +771,9 @@ function populateSegments(s)
|
||||
<option value="3" ${inst.si==3?' selected':''}>U14_3</option>
|
||||
</select></div>
|
||||
</div>`;
|
||||
//WLEDMM Custom Effects
|
||||
//WLEDMM ARTIFX
|
||||
let fxName = eJson.find((o)=>{return o.id==selectedFx}).name;
|
||||
let cusEff = `<button class="btn" onclick="toggleCEEditor('${inst.n?inst.n:"default"}', ${i})">Custom Effect Editor ☾</button><br>`;
|
||||
let cusEff = `<button class="btn" onclick="toggleCEEditor('${inst.n?inst.n:"default"}', ${i})">ARTI-FX Editor ☾</button><br>`;
|
||||
cn += `<div class="seg lstI ${i==s.mainseg ? 'selected' : ''} ${exp ? "expanded":""}" id="seg${i}">
|
||||
<label class="check schkl">
|
||||
<input type="checkbox" id="seg${i}sel" onchange="selSeg(${i})" ${inst.sel ? "checked":""}>
|
||||
@@ -821,7 +821,7 @@ function populateSegments(s)
|
||||
${!(isM&&staX<mw*mh)?rvXck:''}
|
||||
${isM&&staX<mw*mh&&stoY-staY>1&&stoX-staX>1?map2D:''}
|
||||
${s.AudioReactive && s.AudioReactive.on ? "" : sndSim}
|
||||
${s.CustomEffects && s.CustomEffects.on && fxName.includes("Custom Effect") ? cusEff : ""}
|
||||
${s.ARTIFX && s.ARTIFX.on && fxName.includes("ARTI-FX") ? cusEff : ""}
|
||||
<label class="check revchkl" id="seg${i}lbtm">
|
||||
${isM&&staX<mw*mh?'Transpose':'Mirror effect'}${isM&&staX<mw*mh?
|
||||
'<input type="checkbox" id="seg'+i+'tp" onchange="setTp('+i+')" '+(inst.tp?"checked":"")+'>':
|
||||
@@ -1963,6 +1963,22 @@ function toggleLiveview()
|
||||
if (ws && ws.readyState === WebSocket.OPEN) ws.send(`{"lv":${isLv}}`);
|
||||
}
|
||||
|
||||
//WLEDMM create and delete iFrame for peek (isLv is true if create)
|
||||
function bigPeek(doCreate)
|
||||
{
|
||||
let lvID = "liveview2D"
|
||||
if (doCreate) {
|
||||
var cn = '<iframe id="liveview2D" src="about:blank" onload="this.contentWindow.document.body.onclick=function(){bigPeek(false);}"></iframe>';
|
||||
gId('kliveview2D').innerHTML = cn;
|
||||
}
|
||||
|
||||
gId('mliveview2D').style.transform = (doCreate) ? "translateY(0px)":"translateY(100%)";
|
||||
|
||||
gId(lvID).style.display = (doCreate) ? "block":"none";
|
||||
var url = (loc?`http://${locip}`:'') + "/" + lvID;
|
||||
gId(lvID).src = (doCreate) ? url:"about:blank";
|
||||
}
|
||||
|
||||
function toggleInfo()
|
||||
{
|
||||
if (isNodes) toggleNodes();
|
||||
|
||||
3256
wled00/html_ui.h
3256
wled00/html_ui.h
File diff suppressed because it is too large
Load Diff
@@ -182,7 +182,7 @@ bool deserializeSegment(JsonObject elem, byte it, byte presetId)
|
||||
if (elem["on"].is<const char*>() && elem["on"].as<const char*>()[0] == 't') on = !on;
|
||||
seg.setOption(SEG_OPTION_ON, on); // use transition
|
||||
|
||||
//WLEDMM Custom Effects (but general usable)
|
||||
//WLEDMM ARTIFX (but general usable)
|
||||
bool reset = elem["reset"];
|
||||
if (reset)
|
||||
seg.markForReset();
|
||||
|
||||
@@ -58,7 +58,7 @@
|
||||
#endif
|
||||
|
||||
#ifdef USERMOD_FOUR_LINE_DISPLAY
|
||||
#ifdef USE_ALT_DISPLAY
|
||||
#if defined(USE_ALT_DISPLAY) || defined(USE_ALT_DISPlAY)
|
||||
#include "../usermods/usermod_v2_four_line_display_ALT/usermod_v2_four_line_display_ALT.h"
|
||||
#else
|
||||
#include "../usermods/usermod_v2_four_line_display/usermod_v2_four_line_display.h"
|
||||
@@ -66,7 +66,7 @@
|
||||
#endif
|
||||
|
||||
#ifdef USERMOD_ROTARY_ENCODER_UI
|
||||
#ifdef USE_ALT_DISPLAY
|
||||
#if defined(USE_ALT_DISPLAY) || defined(USE_ALT_DISPlAY)
|
||||
#include "../usermods/usermod_v2_rotary_encoder_ui_ALT/usermod_v2_rotary_encoder_ui_ALT.h"
|
||||
#else
|
||||
#include "../usermods/usermod_v2_rotary_encoder_ui/usermod_v2_rotary_encoder_ui.h"
|
||||
@@ -190,9 +190,9 @@
|
||||
#endif
|
||||
|
||||
|
||||
//WLEDMM Custom Effects
|
||||
#ifdef USERMOD_CUSTOMEFFECTS
|
||||
#include "../usermods/customeffects/usermod_v2_customeffects.h"
|
||||
//WLEDMM ARTIFX
|
||||
#ifdef USERMOD_ARTIFX
|
||||
#include "../usermods/artifx/usermod_v2_artifx.h"
|
||||
#endif
|
||||
|
||||
#ifdef USERMOD_WEATHER
|
||||
@@ -374,9 +374,9 @@ void registerUsermods()
|
||||
usermods.add(new ShtUsermod());
|
||||
#endif
|
||||
|
||||
//WLEDMM Custom Effects
|
||||
#ifdef USERMOD_CUSTOMEFFECTS
|
||||
usermods.add(new CustomEffectsUserMod());
|
||||
//WLEDMM ARTIFX
|
||||
#ifdef USERMOD_ARTIFX
|
||||
usermods.add(new ARTIFXUserMod());
|
||||
#endif
|
||||
|
||||
#ifdef USERMOD_WEATHER
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
*/
|
||||
|
||||
// version code in format yymmddb (b = daily build)
|
||||
#define VERSION 2303280
|
||||
#define VERSION 2303300
|
||||
|
||||
//uncomment this if you have a "my_config.h" file you'd like to use
|
||||
//#define WLED_USE_MY_CONFIG
|
||||
|
||||
Reference in New Issue
Block a user