Commit Graph

3416 Commits

Author SHA1 Message Date
Guangcong Luo
ab8f82f3ce Merge pull request #563 from Layell/patch-2
Add gen 6 substitute graphic.
2015-12-01 05:33:38 +00:00
Layell
8126277513 Add gen 6 substitute graphic.
https://i.imgur.com/IoFY3Sz.png
2015-11-30 21:51:08 -05:00
Guangcong Luo
e33c3b2686 Rename battle.done to battle.ended 2015-11-30 18:11:05 -05:00
Guangcong Luo
c8a72d262c Improve tab completion
Usernames with spaces can now be completed.

Special characters in front of the username will now be preserved.
This requires usernames to start with an alphanumeric character,
which fortunately we already enforce.
2015-11-30 18:05:32 -05:00
Guangcong Luo
b718a335a2 News tracking 2015-11-30 02:11:27 -05:00
Guangcong Luo
c24d06da20 Add icons to Change name and Log out 2015-11-29 20:16:26 -05:00
Guangcong Luo
470ddbe726 Make Log out button disconnect from server
This makes the Log out button unmerge accounts. The Change name button
serves the old purpose of using it to change names.
2015-11-29 20:16:26 -05:00
Guangcong Luo
274e840cb3 Fix Log Out buttonbar appearing on wrong users 2015-11-29 20:16:26 -05:00
Guangcong Luo
c218046b77 Better support for 'working offline'
PS's UI is now updated to make it clearer whether or not you're
connected to a server, and which features are and aren't
available while disconnected.

The Reconnect? popup's "close" button has been renamed "Work offline",
to make it clearer that it's for people who want to continue using
the teambuilder or whatever while disconnected.

The button is a slight misnomer since some features, like the
Ladder, don't work without an internet connection.
2015-11-29 20:16:26 -05:00
Guangcong Luo
143a218bdd Reserve some characters in names
Accented letters are now converted to unaccented form, in preparation
for a change to the username/userid conversion system.
2015-11-29 20:16:26 -05:00
The Immortal
62b675fb06 Fix forfeit popup being shown for expired battles 2015-11-30 00:11:28 +04:00
Marty-D
2eeabbb733 Correct 'no target' message 2015-11-29 11:29:01 -05:00
Marty-D
3057ef9d61 Correct standard boost/unboost messages 2015-11-29 11:27:40 -05:00
Guangcong Luo
41326c5232 Support multiline buttons in Formats menu 2015-11-29 04:39:30 -05:00
Guangcong Luo
699e481a05 Slightly redesign Options menu
Add Change Name button next to Log Out, and move Change Password to
the top.
2015-11-29 04:39:07 -05:00
Guangcong Luo
9491ada114 Add Change Name / Log Out buttons to user popup 2015-11-29 04:38:03 -05:00
Guangcong Luo
69e0b5fdc3 Nicer looking horizontal rules
They now look Web 2.0 instead of Web 1.0! ...namely, they're just
horizontal gray lines instead of weird attempts to look embossed.
2015-11-29 04:37:12 -05:00
Guangcong Luo
05ded511e5 Fix loading when third-party cookies are blocked 2015-11-29 03:07:04 -05:00
Guangcong Luo
7fb8108393 Fix typo in team saving 2015-11-28 05:31:44 -05:00
Guangcong Luo
cf8bb24e71 Refactor data storage
Data (teams and prefs) are now always stored in localStorage in the
`https://play.pokemonshowdown.com` origin. Data storage at a low
level has been mostly rewritten for this, and moved to storage.js.

Tools.prefs has been renamed Storage.prefs, although the API
Tools.prefs(prefName) is still available, and recommended for
battle.js (because storage.js isn't available in replays). All
other pref functionality, such as setting prefs and saving prefs,
should only be used in Storage.prefs.

If the browser blocks third-party cookies in a detectable way,
data is instead stored in the local origin.

As a final safety measure, prefs/teams are mirrored in the local origin
in case third-party cookies are blocked in an undetectable way.

This refactor also replaces the 'init:loadprefs' and 'init:loadteams'
events with a new load tracking system that's basically a simplified
implementation of Promises, documented in the comments for
Tools.makeLoadTracker().
2015-11-28 04:36:41 -05:00
Guangcong Luo
8264fea7d2 Add Meloetta icons to roomlist
2.7ish years ago, when I redesigned PS, PS's mascot was Meloetta,
and in the old design, there was a Meloetta-P icon on "Look for a
battle" and a Meloetta-A in the backgroud of the chat room.

The new design was built around custom backgrounds, and there
wasn't really room to fit Meloetta back in.

Well, now, I've finally fit Meloetta back in next to the user count
and battle count, and it actually looks pretty good there. Now more
people can be aware that PS has a mascot!
2015-11-28 04:36:41 -05:00
Guangcong Luo
789acecf54 Remove unused code 2015-11-28 04:08:45 -05:00
Guangcong Luo
7f4d455b84 Support various short links 2015-11-28 04:08:45 -05:00
Guangcong Luo
fe38cc3ead More consistent CORS support 2015-11-26 03:53:56 -05:00
Guangcong Luo
11024a27bf Fix click handling after closing teambuilder
Because of sliders being dumb, the teambuilder frequently has to
clear global handlers, which cleared the global click handler that
handled room link opening, as well as external links on the
desktop client.

Anyway, click handlers are now a lot more standardized and all that.
2015-11-25 23:26:20 -05:00
Guangcong Luo
bc8daf62e4 Ladder refactor 2015-11-25 17:36:28 -05:00
Ivo Julca
249fefa3d1 Remove stray console logging in Teambuilder 2015-11-24 16:55:02 -05:00
Ivo Julca
3303388486 Fix tournament info message 2015-11-24 01:38:29 -05:00
Ivo Julca
0773599516 Escape user names sent by the server 2015-11-24 00:09:46 -05:00
Ivo Julca
e1bf7a3c68 Fix double escaping of tournament data 2015-11-23 23:42:41 -05:00
Ivo Julca
abf9eccf79 Send a valid format in Validate team requests
Teambuilder-only base formats now map to their server-available variants
2015-11-22 22:39:56 -05:00
Marty-D
f5a8bba54c Fix default heal messages
And avoid repeating Ability names upon activation.
2015-11-21 22:27:48 -05:00
Marty-D
4692234af3 Ignore boosted weather duration prior to Gen 4
Weather Rocks don't exist, and are unusable even in Custom Games.
2015-11-21 12:53:43 -05:00
Guangcong Luo
6d057e637a Move Change Password button
It's now above Log Out instead of inline with it.

(In preparation for some changes to how Log Out works.)
2015-11-19 06:56:06 -05:00
Guangcong Luo
f8ec5b9142 Redesign Mega Evolution checkbox 2015-11-19 06:55:22 -05:00
Guangcong Luo
52a81e2a25 Merge pull request #556 from bumbadadabum/uri
Allow data URIs in <img> tags
2015-11-19 00:00:14 +00:00
Bär Halberkamp
6ef09c14a3 Allow data URIs in <img> tags 2015-11-19 00:54:06 +01:00
Ivo Julca
33dd5259bb Fix highlights in focused rooms
While they needn`t raise popups, they should still format the chat messages.
2015-11-17 10:51:11 -05:00
Marty-D
dec3e8305e Add Illusion end message 2015-11-15 20:34:54 -05:00
Hector Garcia
58f7322a09 Tighten up drag and drop code
* Break out of `defaultDragEnterTeam` immediately for non-file entities
2015-11-15 15:36:09 +00:00
Marty-D
37d767e2c1 Teambuilder: Default Gen 4 LC to level 5 2015-11-14 16:59:29 -05:00
The Immortal
cd454a2c40 Add PU suspect COIL 2015-11-15 00:52:37 +04:00
Guangcong Luo
bf15ac6876 Merge pull request #499 from Slayer95/notifications-tone-down
Tone down excessive notifications
2015-11-14 04:47:54 +00:00
Guangcong Luo
1b6c40fa4e Merge pull request #549 from urkerab/tooltip-pokemon-fainted
Fix HP display for fainted Pokemon
2015-11-13 21:50:36 +00:00
Guangcong Luo
fe33dcc514 Merge pull request #550 from urkerab/teambuilder-ignore-ev-limits-gen-1-2
Teambuilder should ignore EV limits prior to Generation 3
2015-11-13 21:50:07 +00:00
The Immortal
e6f5747838 Fix past gens teambuilder
It selects the correct input for past gens now.

Gen 1: When you choose a Pokemon it goes to moves
Gen 2: When you choose an item it goes to moves.
2015-11-13 22:48:23 +04:00
Guangcong Luo
3614714452 Merge pull request #552 from urkerab/teambuilder-drag-evs-lc
Automatically drag EVs appropriately for LC
2015-11-12 22:31:24 +00:00
urkerab
e440c276cf Guess EVs for Generations 1 and 2 2015-11-12 21:20:33 +00:00
urkerab
a52fa302df Teambuilder should ignore EV limits prior to Generation 3 2015-11-12 21:18:54 +00:00
Slayer95
9ff7a6a4b0 Merge pull request #551 from Layell/patch-1
Stratagem dimension fix
2015-11-12 11:41:04 -05:00