Great plugin! Thanks!
Is it possible to add something like event Drag & Drop function?
Is it possible to add something like event Drag & Drop function?
While it is possible, I think the mechanics involved would be so complex that it would be better to make a custom scene / window system for this instead. It'd be a bit too much like forcing a square peg down a round hole 🙂
It should activate the event without the player moving to it, although if the event moves or you misclick it, the character might still move. Are you using the latest version of the plugin and the correct notetags? 🙂
Showing text when hovering is not in the plugin at the moment, but it's something I've been considering adding as an addon to it.
Just want to say how much I agree with this. The real implications of this plugin for making things that go way beyond traditional RPGs in RPGM are staggering, and I hope that you do continue to expand its functionality of it along these lines (More options for hovering, RMB functions, etc.) as well.
Just tested out and it works great! Is there a way to make it so I can switch between item catagories without going back? like, between weapon, armor and items without pushing esc or right click first?
That is sadly a bit out of scope for this plugin as that functionality is down to the internals of how the default inventory scene and windows work. However this is something I might do as a separate plugin sometime, as I think that'd be a much more pleasant mouse and touch experience for players.
I'm looking into making an addon plugin for this effect. I don't have an ETA on it yet, as there's so much on my plate at the moment.
I'm looking into this. The custom cursors uses CSS to change the cursor into the images, to make it have as close to zero input lag as possible. Animated .gif images are not supported reliably, but there might be something I could do with multiple images / an image strip. I have it on my list, and I'll keep you updated.
// new method to pass event extra triggersGame_Map.prototype.check_events_trigger = function(x, y) { var Extra_Trigger = []; var passage_map = []; var event_list = []; $gameMap.events().forEach(function(ev){ Extra_Trigger = []; passage_map = $gameSystem._est_custom_passage_map[$gameMap._mapId][ev._eventId] if(ev.size_trigger() && passage_map != undefined && JSON.stringify(passage_map) != []) for(sz of passage_map) Extra_Trigger.push(JSON.parse(sz)); if(JSON.stringify(ev.getExtraFixTrigger()) != []) for(ft of ev.getExtraFixTrigger()) Extra_Trigger.push(ft); if(JSON.stringify(ev.getExtraDynamicTrigger()) != []) for(ft of ev.getExtraDynamicTrigger()) Extra_Trigger.push([ev.x+ft[0],ev.x+ft[1]]); for (var trg in Extra_Trigger) if (JSON.stringify(Extra_Trigger[trg]) == JSON.stringify([x,y])) event_list.push(ev); }); return event_list;};if (TDDP_MouseSystemEx){ TouchInput._activateClickEvents = function(x, y) { var found_click_event = false; if (SceneManager.isCurrentSceneStarted() && $gameMap !== null && $dataMap !== null && !$gameMessage.isBusy()) { var x = $gameMap.canvasToMapX(x); var y = $gameMap.canvasToMapY(y); var _events = $gameMap.eventsXy(x, y); var _xtrigger = $gameMap.check_events_trigger(x,y); _xtrigger.forEach(function(ev){ if (_events.indexOf(ev) < 0) _events.push(ev); }); // end _xtrigger foreach _events.forEach(function(game_event){ if (game_event.TDDP_MS.clickActivate) { found_click_event = true; game_event.start(); } if (game_event.TDDP_MS.clickSwitch) { var key = [$gameMap._mapId, game_event._eventId, game_event.TDDP_MS.clickSwitch.key] $gameSelfSwitches.setValue(key, game_event.TDDP_MS.clickSwitch.val === 'true'); found_click_event = true; }; }); // end _event foreach } return found_click_event; }; TouchInput._checkForEventUnderMouse = function(pageX, pageY) { this._curEventPageX = pageX; this._curEventPageY = pageY; if (TDDP_MouseSystemEx.conditionsValidForMouseHoverCheck()) { var x = $gameMap.canvasToMapX(Graphics.pageToCanvasX(pageX)); var y = $gameMap.canvasToMapY(Graphics.pageToCanvasY(pageY)); var _events = $gameMap.eventsXy(x, y); var _xtrigger = $gameMap.check_events_trigger(x,y); _xtrigger.forEach(function(ev){ if (_events.indexOf(ev) < 0) _events.push(ev); }); // end _xtrigger foreach for (var i = 0; i <= _events.length-1; i++) { var game_event = _events[i]; // changed to iterate all events if (game_event.TDDP_MS.hoverIcon) { TouchInput._updateCursorIcon(game_event.TDDP_MS.hoverIcon); if (TDDP_MouseSystemEx.hideCursor) TDDP_MouseSystemEx._hideMouseCursor(); } else { //changed hide cursor icon only executed at end of the loop if no prior event cursor icon if (!this.cursorIcon.iconIndex && (i == _events.length -1)) TouchInput._hideCursorIcon(); }; if (game_event.TDDP_MS.hoverActivate && !$gameMessage.isBusy()) { game_event.start(); }; if (game_event.TDDP_MS.hideCursor) { TDDP_MouseSystemEx._hideMouseCursor(); }; if (game_event.TDDP_MS.customOffsetX && game_event.TDDP_MS.customOffsetY) { TouchInput.cursorIcon.customOffsetX = game_event.TDDP_MS.customOffsetX; TouchInput.cursorIcon.customOffsetY = game_event.TDDP_MS.customOffsetY; }; if (TDDP_MouseSystemEx.useCustomCursor) { if (game_event.TDDP_MS.customCursor) { TDDP_MouseSystemEx._showCustomCursor(game_event.TDDP_MS.customCursor); } else { TDDP_MouseSystemEx._showCustomCursor(); } }; if (game_event.TDDP_MS.hoverSwitch) { var key = [$gameMap._mapId, game_event._eventId, game_event.TDDP_MS.hoverSwitch.key] $gameSelfSwitches.setValue(key, game_event.TDDP_MS.hoverSwitch.val === 'true') }; if (i == _events.length -1) return game_event; // returning the last event (topmost) } } TouchInput._hideCursorIcon(); TDDP_MouseSystemEx._showMouseCursor(); return false; };}// END COMPATIBILITY PATCH;
Original thread: https://forums.rpgmakerweb.com/threads/mouse-system-ex.46511/