Commit Graph

1974 Commits

Author SHA1 Message Date
Kevin Lau
4d3714cf70 Add Headbutt Animation 2015-03-15 15:44:25 -07:00
Marty-D
b8d783f69a Update existing messages to the Gen 6 format 2015-03-07 19:32:44 -05:00
Guangcong Luo
f38d009b40 Merge pull request #342 from Morfent/buttonselect
Team/format button style fixes
2015-03-07 14:35:26 -06:00
Morfent
74cb8bea77 Team/format button style fixes
The button's text is no longer offset vertically by the arrow added by
::after, and the background gradients now display properly on Firefox.
2015-03-07 10:57:00 -04:00
Guangcong Luo
5bbbf3f8ad Merge pull request #340 from Morfent/acceptchallenge
/accept with no userid accepts sole challenges
2015-03-07 04:34:55 -06:00
Morfent
20944c9db1 /accept and /reject sole challenges with no userid 2015-03-07 00:54:07 -04:00
Guangcong Luo
0b3db96383 statuses.js should not be in client data 2015-02-28 00:40:05 -05:00
Guangcong Luo
09671fd440 Merge pull request #338 from ascriptmaster/move-anim
Graphics Animation Updates
2015-02-23 14:54:42 -06:00
Kevin Lau
c233ea216b Graphics Animation Updates
Mostly just changed up Tailwind's animation and reverted Superpower's
animation until I can figure out a better one to use. Also changed up
Discharge to be different from Volt Switch.
2015-02-23 01:03:03 -08:00
Guangcong Luo
b16d753ef5 Merge pull request #337 from Morfent/highlights
SyntaxError handling when adding regex highlights
2015-02-21 14:11:42 -06:00
Morfent
d3ff9a4da8 SyntaxError handling when adding regex highlights
If the user attempts to add any regular expressions that throw a syntax
error on RegExp object construction, they can see the first pattern that
throws an error along with its error message without breaking their
entire highlight list.
2015-02-21 15:51:35 -04:00
Guangcong Luo
1a6f027fa0 Sync data 2015-02-19 02:44:24 -05:00
Guangcong Luo
00ce10de35 Force / not to cache
The main page should not be cached since it's small and caching
it makes it really annoying to update PS.
2015-02-19 02:44:13 -05:00
Ivo Julca
fb7e90c55d Fix trying to switch a trapped pokemon with animations disabled 2015-02-19 02:14:06 -05:00
Guangcong Luo
6322e413d2 Merge pull request #167 from Slayer95/master
Fix button usage of Conversion 2 in Singles
2015-02-17 14:17:05 -06:00
Guangcong Luo
35d0eb9b17 Merge pull request #336 from ascriptmaster/move-anim
Graphics Animation Update Round 6
2015-02-17 03:50:59 -06:00
Kevin Lau
8c02455b07 Various Graphics Animation Updates 2015-02-17 00:56:36 -08:00
Guangcong Luo
f67ecdcfc7 Merge pull request #330 from xfix/autolink-improved
Rewrite URL parsing.
2015-02-17 00:22:02 -06:00
Ivo Julca
bd7e314e57 Battle UI: add move type fallback
For some slow connections, movedex data will sometimes fail to load fully. This makes it so that moves not loaded will display their move type as "Unknown" rather than "undefined"
2015-02-15 22:52:07 -05:00
Marty-D
8cfda2d8b9 Add missing semicolons to -formechange 2015-02-14 21:30:08 -05:00
Marty-D
fe0fe55d10 Add Aegislash forme change messages 2015-02-14 21:26:45 -05:00
Konrad Borowski
9c19532d30 Rewrite URL parsing.
Regular expression is now written using new RegExp constructor to
make a more readable regular expression (even if I admit it's not
that great because of `+` everywhere, but this is JavaScript, so no
neat `/x` flag for regular expressions).

This heavily changes behaviour of auto-linking, in particular.

-   URLs can be in parenthesis, see 6b8b68d for more details and
    justification of a change.

-   More top level domains are allowed in URLs without http:// prefix.
    Anything that is two letter is allowed, as long followed by slash
    or colon.

-   Allow auto-linking URLs starting with `www.`, even with unrecognized
    TLD. Chances are if a domain has this particular subdomain, it's a
    website address.

-   Removed qmark.tk special case, this site is dead anyway.

-   Added support for `.co` TLD. This domain gets a lot of popularity,
    and it doesn't look like it could harm anything.

-   Added support for `.info` TLD. This is because the special case
    of handling two letter TLD doesn't handle `.info`.
2015-02-14 16:29:37 +01:00
Marty-D
ed9e23d070 Add missing Terrain messages 2015-02-13 12:19:15 -05:00
The Immortal
631a3477e6 Add NU suspect test COIL 2015-02-13 04:27:54 +04:00
Guangcong Luo
f1ed3a2deb Merge pull request #327 from kotarou3/virtualhost
Only check if an address is already registered by hostname, not by IP
2015-02-11 13:17:47 -06:00
Marty-D
2941c5a150 Add missing Crafty Shield messages 2015-02-10 12:20:13 -05:00
The Immortal
6db4b83269 Teambuilder: Display Uber Pokemon first if the format is Ubers
Used the same display for Anything Goes.
2015-02-10 16:27:38 +04:00
Guangcong Luo
a7c01c8ece Merge pull request #334 from sirDonovan/unlinkhide
Several improvements to |unlink|hide|
2015-02-09 18:48:07 -06:00
sirDonovan
8311dc889d Several improvements to |unlink|hide|
- Prevent messages from being hidden in replays
- Improve wording on the reveal button
- Highlight revealed messages
2015-02-09 17:14:19 -06:00
The Immortal
06c9a21e2f Add Safety Goggles -activate message 2015-02-08 16:23:21 +04:00
The Immortal
995a9f4963 Add UU suspect test COIL 2015-02-07 21:56:59 +04:00
Guangcong Luo
0e5487298a Merge pull request #331 from Morfent/jquery
Update jQuery to version 2.1.3
2015-02-06 13:30:09 -06:00
Morfent
d2bc6dd260 Update jQuery to version 2.1.3 2015-02-06 05:07:58 -04:00
Ivo Julca
9951b21c3f Make sure that all finalDecision flags are resetted
This fixes an issue where if a maybe-trapped Pokémon where KO-ed at the same time as their trapping source(s) the Cancel button would not show
2015-02-02 21:34:10 -05:00
小太
9a9d236093 Only check if an address is already registered by hostname, not by IP
When attempting to go on an unregistered server when there is already
another registered server sharing the same IP/Port pair (such as in
virtual hosting), you get redirected to the registered server, which
is undesirable
2015-02-02 23:53:26 +08:00
Guangcong Luo
e4f68d06cb Merge pull request #326 from sirDonovan/unlinkhide
Show the number of messages hidden in |unlink|hide|
2015-02-01 14:31:15 -06:00
sirDonovan
c550532713 Show the number of messages hidden in |unlink|hide| 2015-02-01 13:52:32 -06:00
Guangcong Luo
266e3dc776 Merge pull request #325 from sirDonovan/anim
Fix crash in Precipice Blades animation
2015-02-01 00:52:36 -06:00
sirDonovan
638d122f39 Fix crash in Precipice Blades animation 2015-01-31 22:59:56 -06:00
Guangcong Luo
414462e54a Revert "Auto-link URLs without closing parenthesis at end"
This reverts commit 6b8b68d4ef.
2015-01-31 22:41:40 -05:00
Guangcong Luo
69a27e1843 Desktop: Fix chat log timestapms 2015-01-31 22:41:40 -05:00
Guangcong Luo
1c29498bb6 Merge pull request #324 from Morfent/nounlinkhide
Toggle hiding unlinked users' chat messages
2015-01-31 16:54:18 -06:00
Morfent
331882b95a Toggle |unlink|hide| suppression, update /help doc
Users can now set whether or not these are hidden by default, or left
visible.

Missing documentation has been added to /help and inconsistencies in
their grammar have been fixed.
2015-01-31 17:14:28 -04:00
Guangcong Luo
01eab488d2 Fix 'lobby chat' phrasing
Lobby is no longer the only chat room, but some of the settings in
Options seem not to have gotten that hint.
2015-01-31 15:58:20 -05:00
Guangcong Luo
fc8c0a1558 Fix crash in notifications
This crash made it so clicking a notification did not focus the room
it came from.
2015-01-31 15:58:20 -05:00
Guangcong Luo
875eabf768 Desktop: Dock badge notifications
Notification count is now displayed on the Dock icon in the desktop
client (in Windows, the taskbar needs to be in Large Icons mode).

Since notifications aren't persistent, this is useful as a long-term
reminder that you have something in PS pending.

This uses a newer NW.js feature, so it requires updating to the
latest version of the PS desktop client (0.3.0).
2015-01-31 15:58:20 -05:00
Guangcong Luo
a46bf4e2de Open Rooms room when it fits
By default, the Join Room window is only auto-opened on startup if
it fits. This changes it so that if it doesn't fit on startup but
the window is later resized to fit, the Join Room window will
auto-open if it hasn't been opened yet.

In addition to behaving more expectedly, this deals with an issue
in NW.js in Windows where maximizing doesn't happen before PS
loads.
2015-01-31 15:58:20 -05:00
Guangcong Luo
aea0957df8 Desktop: Add right-click menu 2015-01-31 15:58:20 -05:00
Guangcong Luo
f82c73dd3b Fix links to PS rooms
Clicking links to PS rooms can be pretty unreliable in terms of whether
and where they open. This commit uses a global click handler, to make
sure that any and every link to PS rooms, including links in the News,
will open in the current PS window.

You can always right-click and Open in New Tab, of course.
2015-01-31 15:58:20 -05:00
Guangcong Luo
6a3b9e06e1 Teambuilder: Suppress crash in EV slider 2015-01-31 15:58:19 -05:00