Forum Discussion

o0netquik0o's avatar
o0netquik0o
New Rookie
5 years ago

Movable Mail Message Window - New Script for Testing

HI all.
People told me that an old script that use to tweak the gui to make the Mail Message Composing Window movable doesn't work anymore.

I looked at the code and the problem is that

webfrontend.gui.mail.MailMessageWindow() was removed as a constructor

i'm not a qooxdoo expert so i didn't find a way to fix the script.

the actual tweak code was this:


qx.Class.define('Tweaks.Feature.MovableMessageComposingWindow', {
extend: qx.core.Object,
implement: ,
defer: function(statics, members) {
Tweaks.getInstance().registerFeature(members.constructor, {
category: Tweaks.Category.Useful,
name: 'Movable message composing window',
description: 'Replaces the message composing overlay with its window equivalent. Also enables shrinking if that option is activated.',
configKey: 'MovableMessageComposingWindow'
});
},
construct: function() {
var source = webfrontend.gui.mail.MailOverlay.prototype.onNewMessage.toString();
this.mailOverlayMessageMemberName = source.match(/this\.(+)\.open/);
},
members: {
mailOverlayMessageMemberName: null,

onRender: function(checkbox, label, config) {},
onReset: function(config) {},
onSaveConfig: function(config) {},

/** @inheritDoc */
activate: function(wasActive) {
if (wasActive) {
return;
}

var mailMessageWindow = new webfrontend.gui.mail.MailMessageWindow();

mailMessageWindow.open = function(returnWidget, writeType) {
webfrontend.gui.mail.MailMessageWindow.prototype.open.call(this, null, writeType);
};

// Use methods from MailMessageOverlay to fix reply and forward
mailMessageWindow.setSubject = webfrontend.gui.mail.MailMessageOverlay.prototype.setSubject;
mailMessageWindow.setHistoryEntries = webfrontend.gui.mail.MailMessageOverlay.prototype.setHistoryEntries;

webfrontend.gui.mail.MailOverlay.getInstance() = mailMessageWindow;
},

/** @inheritDoc */
deactivate: function(wasActive) {
if (!wasActive) {
return;
}

webfrontend.gui.mail.MailOverlay.getInstance() = new webfrontend.gui.mail.MailMessageOverlay();
}
}
});


anyone can help fix it?
thanks
  • Hi all!
    as no one helping i made my script!
    need heavy testing.. but seems a good start
    https://github.com/netquik/CnCTA-SoO-SCRIPT-PACK/blob/Testing/TA_MovableMailMessage.user.js

    bye all!
  • Hi @jbl3ck and thanks for reply
    Well actually i'm dismissing this script for this new version:
    https://github.com/netquik/CnCTA-SoO-SCRIPT-PACK/blob/Testing/TA_MovableMenuOverlay.user.js

    this will make movable all menu overlay...
    Have yet to implement an easy way to enable disable it..

    Please test this and let me know if there are problems.
    Also check for newer version
    I will update this post.
  • hi.
    great work, thanks :)

    found a "bug" : was trying to join an alliance with a subed account (don't know if relevant) and i couldn't access the "Alliance" menu with this script enabled (just a quick flickering menu).

About Tiberium Alliances Technical Issues

Having problems running the game or a script? Get help with Command and Conquer: Tiberium Alliances with the community!1,399 PostsLatest Activity: 6 hours ago