[Script] WME Chat Resizer and Auto Scroll

Discussion for the unofficial, community-developed addons, extensions and scripts built for the Waze Map Editor.

The official index of these tools is the Community Plugins, Extensions and Tools wiki page.

Moderators: Unholy, bextein

Forum rules
Discussion for the unofficial, community-developed addons, extensions and scripts built for the Waze Map Editor.

DO NOT START a new thread unless it is about a new idea. Keep discussion of existing tools within the main thread for that tool.

The official index of these tools is the Community Plugins, Extensions and Tools wiki page.

[Script] WME Chat Resizer and Auto Scroll

Postby rickzabel » Sat Nov 15, 2014 6:52 am

WME Chat Resizer and Auto Scroll

https://greasyfork.org/en/scripts/6225-wme-chat-resizer-and-auto-scroll

New version
0.2.3 - I moved around the resizer header so that it is inside the existing header. also added mouse code to copy the Waze header. I shrunk the room title and jumper icons and text down a little bit, I also made the hidden user chats 35px wider. altogether this should look less goofy.

Currently for some and in the near future for the rest, the chat header had gotten to crowded. I think the best solution for everyone was to move the chat resize and auto scroll buttons into their own area. the message window height might be a bit off, but people are not talking at 1am to fill the chat so i will tweak it when I can.

This script has a handful of chat related features
1.) Removes the space on the right of the chat window.
2.) Has buttons to hide or show the user list.
3.) Has buttons to make the list taller or the normal height
4.) Per request there is now a button for a mini chat.
5.) Auto Scrolling of the chat. This can be found on the left of the chat’s text entry box there is a “v” for auto scroll and “-“ for disabled. When enabled it will force the chat to the bottom every 5 seconds.
6.) Auto Scroll’s on/off Status is saved and reapplied next time the map editor is loaded.


Some things you might notice!
To fit in the title bar I had to tweak some things
1.) I had to shrink down the chat room name, and the visible / invisible dropdown.
2.) For those who use chat jumper I also shrunk down “Jump” and the “X”.
3.) For those who use “Chat addon” I chose to put my buttons on the left of the chat addon’s settings icon. Users without chat addon will have an empty space where the settings icon would normally be.
4.) The mini chat buttons are only shown when the user list is shown.

Feedback and suggestions are welcome
Thanks
Rick Zabel
Last edited by rickzabel on Thu Nov 27, 2014 6:28 am, edited 3 times in total.
rickzabel
Map Editor - level 3
Map Editor - level 3
 
Posts: 213
Joined: Sat Sep 20, 2014 1:05 am
Location: Aurora / Downers Grove Illinois
Has thanked: 0 time
Been thanked: 257 times

Re: [Script] WME Chat Resizer and Auto Scroll

Postby ct13 » Sat Nov 15, 2014 5:21 pm

Awesome job with this script! Thanks for putting in the hard work to maximize the usable space in WME.
ct13
US Waze Champs
US Waze Champs
 
Posts: 408
Joined: Sun Mar 25, 2012 9:59 pm
Location: Virginia
Has thanked: 147 times
Been thanked: 257 times

Re: [Script] WME Chat Resizer and Auto Scroll

Postby rickzabel » Sat Nov 15, 2014 11:31 pm

Thanks!
rickzabel
Map Editor - level 3
Map Editor - level 3
 
Posts: 213
Joined: Sat Sep 20, 2014 1:05 am
Location: Aurora / Downers Grove Illinois
Has thanked: 0 time
Been thanked: 257 times

Re: [Script] WME Chat Resizer and Auto Scroll

Postby ct13 » Sun Nov 16, 2014 2:29 am

The auto-scroll button disappears when in invisible mode. Is there someplace else you can move it?
ct13
US Waze Champs
US Waze Champs
 
Posts: 408
Joined: Sun Mar 25, 2012 9:59 pm
Location: Virginia
Has thanked: 147 times
Been thanked: 257 times

Re: [Script] WME Chat Resizer and Auto Scroll

Postby rickzabel » Sun Nov 16, 2014 4:59 am

I moved the auto scroll buttons into their own div so they show up when the editor has chat in invisible mode.
rickzabel
Map Editor - level 3
Map Editor - level 3
 
Posts: 213
Joined: Sat Sep 20, 2014 1:05 am
Location: Aurora / Downers Grove Illinois
Has thanked: 0 time
Been thanked: 257 times

Re: [Script] WME Chat Resizer and Auto Scroll

Postby vince1612 » Sun Nov 16, 2014 5:43 pm

Nice thanks ;)

rickzabel wrote:2.) For those who use chat jumper I also shrunk down “Jump” and the “X”.


In my case when WME Chat Resizer and Auto Scroll is ON, then Chat jumper doesn't work anymore. In normal size, bigger, smaller... I do not see any "Jump" or "X" anywhere

EDIT : When I clicked the link next to a username in the list of all people connected it didn't show "jump". But when someone posted a permalink in the chat then it worked fine.
vince1612
Waze Global Champs
Waze Global Champs
 
Posts: 5982
Joined: Sun Mar 17, 2013 2:30 pm
Location: DACH Group (Germany, Austria, Switzerland)
Has thanked: 2955 times
Been thanked: 3129 times

Re: [Script] WME Chat Resizer and Auto Scroll

Postby rickzabel » Mon Nov 17, 2014 1:55 am

vince1612

After a few hours of testing I do not think that my script is causing the problem. I believe this problem is being caused between the Chat Jumper and Chat Addon scripts. Since each of those scripts adds a jump icon to each user in the userlist who ever loads first seems to win.

To test I disabled all scripts except Chat Addon and Chat Jumper then I added code to each script so I could alternately delay the startup of chat Addon or Chat Jumper by 10 seconds.

I swapped the delay back and forth several times and reloaded the editor several times each way and the results are constant.

If Chat Addon loads first; when clicking in the user list the Chat Jumper buttons don’t show up.

If Chat Jumper loads first; when clicking in the user list the Chat Jumper buttons show up.

Try disabling Chat Addon and see if Jumper is still having issues

Thanks
rick zabel
rickzabel
Map Editor - level 3
Map Editor - level 3
 
Posts: 213
Joined: Sat Sep 20, 2014 1:05 am
Location: Aurora / Downers Grove Illinois
Has thanked: 0 time
Been thanked: 257 times

Re: [Script] WME Chat Resizer and Auto Scroll

Postby sketch » Mon Nov 17, 2014 9:44 pm

Rick, great script, as you know I've been using it a while.

Suggestion: Update the version number and changelog in the OP of this thread if you can.
sketch
Waze Global Champs
Waze Global Champs
 
Posts: 6132
Joined: Sat Aug 08, 2009 6:13 pm
Location: New Orleans, LA
Has thanked: 1581 times
Been thanked: 2131 times

Re: [Script] WME Chat Resizer and Auto Scroll

Postby rickzabel » Mon Nov 17, 2014 10:26 pm

sketch wrote:Suggestion: Update the version number and changelog in the OP of this thread if you can.


Thanks
This is the first script i posted anywhere, usually the code i write ends up behind the scene. Do you want the full change log posted or just the last change or the last few changes with the oldest dropping off?
rickzabel
Map Editor - level 3
Map Editor - level 3
 
Posts: 213
Joined: Sat Sep 20, 2014 1:05 am
Location: Aurora / Downers Grove Illinois
Has thanked: 0 time
Been thanked: 257 times

Re: [Script] WME Chat Resizer and Auto Scroll

Postby sketch » Tue Nov 18, 2014 2:39 am

Generally, I think the trend is like this:

Initial post: description of script; link.

New version release: new post with changes and link; update OP with latest version changes and link. Keep the general description in the OP too.

That way, users who follow the thread will be notified of new versions with relevant information and a download link, and users who come upon the thread anew will see the current version with relevant information. Prior version history can be found within the thread if necessary (because it was posted as a new post with the new version).
sketch
Waze Global Champs
Waze Global Champs
 
Posts: 6132
Joined: Sat Aug 08, 2009 6:13 pm
Location: New Orleans, LA
Has thanked: 1581 times
Been thanked: 2131 times

Next

Return to Addons, Extensions, and Scripts

Who is online

Users browsing this forum: No registered users