[Script] WazeWrap

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, Glodenox, JustinS83

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.

Re: [Script] WazeWrap

Postby turbomkt » Thu Mar 30, 2017 1:20 am

Probably this one.
turbomkt
Country Manager
Country Manager
 
Posts: 1074
Joined: Thu Jan 22, 2015 1:05 am
Location: San Diego, Ca
Has thanked: 446 times
Been thanked: 294 times

Re: [Script] WazeWrap

Postby jm6087 » Thu Mar 30, 2017 1:37 am

jm6087
US Waze Champs
US Waze Champs
 
Posts: 3460
Joined: Wed Jun 17, 2015 10:05 pm
Location: Texas
Has thanked: 585 times
Been thanked: 1412 times

Re: [Script] WazeWrap

Postby JustinS83 » Thu Mar 30, 2017 2:40 am

Nothing WazeWrap can do about that - the header is loaded before any required scripts. Scripter's have to use the regex that turbomkt linked, or simply call out each one individually and use a * in place of the language.
Script Writing Community Coordinator
[ img ][ img ][ img ][ img ][ img ]
JustinS83
Waze Global Champs
Waze Global Champs
 
Posts: 1321
Joined: Wed Dec 03, 2014 4:33 am
Location: Franklin, OH
Has thanked: 336 times
Been thanked: 2341 times

Re: [Script] WazeWrap

Postby jm6087 » Thu Mar 30, 2017 10:13 am

JustinS83 wrote:Nothing WazeWrap can do about that - the header is loaded before any required scripts. Scripter's have to use the regex that turbomkt linked, or simply call out each one individually and use a * in place of the language.


Thanks for the explanation, I was just hoping but wasn't sure it could be done.

Never the less, awesome script to keep other scripts working correctly
jm6087
US Waze Champs
US Waze Champs
 
Posts: 3460
Joined: Wed Jun 17, 2015 10:05 pm
Location: Texas
Has thanked: 585 times
Been thanked: 1412 times

Re: [Script] WazeWrap

Postby JustinS83 » Fri Nov 10, 2017 6:16 pm

Update released - 2017.11.10.01

It's been a while since we have made any changes to this library!

The Interface.Tab class (allows easy addition of a tab in the side bar for your script) will not automatically recreate the tab when the user switches in/out of Event Mode (the side bar is not shown in Event Mode...) or if they switch between imperial & metric units. Huzzah!

Devs:
The Tab class will automatically recreate the tab based upon the html originally given and will then re-call the callback method (which should, of course, enable any setting checkboxes based upon your current settings object...you're not checking directly against the checkboxes for different features, right? Right???).
Script Writing Community Coordinator
[ img ][ img ][ img ][ img ][ img ]
JustinS83
Waze Global Champs
Waze Global Champs
 
Posts: 1321
Joined: Wed Dec 03, 2014 4:33 am
Location: Franklin, OH
Has thanked: 336 times
Been thanked: 2341 times

Re: [Script] WazeWrap

Postby JustinS83 » Sat Feb 02, 2019 5:35 am

Update released - 2019.02.01.01

A Script Updates interface is finally here! Holy moly I put that off for over a year...but now we have a way for scripts to publish update information in a consistent manner, and most importantly - no ridiculous alert() boxes interrupting the page loading and forcing focus to the tab.

Special thanks to falco_sparverius for the elegant design work - if it was left up to me it would have been an eyesore. Nice work :D

This update window will allow multiple scripts to display update information at once - so we do not have 2, 3, 4+ scripts popping up windows to announce their update. Each script that has an update to announce will get its own tab on the left side of the dialog. The right side will contain the update information with the new version at the top, followed by the update description and links to the Greasyfork and forum thread (optional).

[ img ]

For devs:

Code: Select all
WazeWrap.Interface.ShowScriptUpdate("Script Name", ScriptVersion, "Update description", "Greasyfork Link", "Forum Link");


I would recommend using
Code: Select all
GM_info.script.version
for the script version so it is automatically pulled from the script and does not have to be updated. The Greasyfork link and forum link are not required - you can pass empty strings for these if you do not wish for the links to be displayed.

The Script Update function will track the script name and version so you can call it with the same name and version but it will only display the update the first time - the version must be different on subsequent runs for the update to display again.
Last edited by JustinS83 on Sat Feb 02, 2019 2:19 pm, edited 1 time in total.
Script Writing Community Coordinator
[ img ][ img ][ img ][ img ][ img ]
JustinS83
Waze Global Champs
Waze Global Champs
 
Posts: 1321
Joined: Wed Dec 03, 2014 4:33 am
Location: Franklin, OH
Has thanked: 336 times
Been thanked: 2341 times

Re: [Script] WazeWrap

Postby jm6087 » Sat Feb 02, 2019 12:10 pm

WOW, super nice and so clean looking.
jm6087
US Waze Champs
US Waze Champs
 
Posts: 3460
Joined: Wed Jun 17, 2015 10:05 pm
Location: Texas
Has thanked: 585 times
Been thanked: 1412 times

Re: [Script] WazeWrap

Postby JustinS83 » Sat Feb 02, 2019 2:17 pm

jm6087 wrote:WOW, super nice and so clean looking.

I can take no credit for the aesthestics - all credit goes to falco_sparverius. She took my initial turd of a design and cleaned it up.
Script Writing Community Coordinator
[ img ][ img ][ img ][ img ][ img ]
JustinS83
Waze Global Champs
Waze Global Champs
 
Posts: 1321
Joined: Wed Dec 03, 2014 4:33 am
Location: Franklin, OH
Has thanked: 336 times
Been thanked: 2341 times

Re: [Script] WazeWrap

Postby dBsooner » Sat Feb 02, 2019 8:38 pm

Thank you, Justin! Good stuff! Is the update content capable of being HTML encode?
[ img ][ img ][ img ][ img ][ img ]
• AM: Eastern Oklahoma, DFW, Southern Florida
• Wiki: WME | Editing Manual | Best Practices | FAQ | Places
• AT&T | iPhone XS Max | iOS 12 | Waze Latest Beta
dBsooner
Map Editor - Level 5
Map Editor - Level 5
 
Posts: 592
Joined: Thu Oct 31, 2013 10:53 pm
Location: Tulsa / Broken Arrow, Oklahoma, US
Has thanked: 359 times
Been thanked: 313 times

Re: [Script] WazeWrap

Postby JustinS83 » Sat Feb 02, 2019 8:43 pm

dBsooner wrote:Thank you, Justin! Good stuff! Is the update content capable of being HTML encode?

Yes, you can pass html for the content. Just don't do anything to crazy and change the look of the window or I'll have to start sanitizing the css and that's no fun :)
Script Writing Community Coordinator
[ img ][ img ][ img ][ img ][ img ]
JustinS83
Waze Global Champs
Waze Global Champs
 
Posts: 1321
Joined: Wed Dec 03, 2014 4:33 am
Location: Franklin, OH
Has thanked: 336 times
Been thanked: 2341 times

PreviousNext

Return to Addons, Extensions, and Scripts

Who is online

Users browsing this forum: No registered users