Commit Graph

3384 Commits

Author SHA1 Message Date
Guangcong Luo
c1f0a23c85 Improve roomtab drag-and-drop
This fixes the flickering when dragging a small tab over a large tab.
2016-01-19 20:26:10 -05:00
Guangcong Luo
81e045d237 Move replay file creation to battledata.js
This mainly allows a Download button to be available to the replay
player.
2016-01-19 20:25:48 -05:00
Guangcong Luo
effa959600 Teambuilder: Show HP moves as useless if outclassed 2016-01-18 20:00:40 -05:00
Guangcong Luo
b347a15ef2 Merge pull request #614 from sirDonovan/tournament-notify
Don't notify for old tournament creation messages
2016-01-18 16:51:26 -08:00
Guangcong Luo
742da99528 Implement drag-and-drop roomtab rearranging
This uses the HTML5 drag-and-drop API to rearrange rooms.

Harder to code and less pretty than doing it manually, but on the
upside, browsers still consider them links, allowing them to be
dragged to bookmarks, textboxes, etc.

Closes #203
2016-01-18 16:47:44 -08:00
Guangcong Luo
5fcb16b163 Detect that dragged files are teams
Previously, due to the HTML5 drag-and-drop API's security model, we
couldn't tell if a dragged file was a team or not. This new code makes
the check slightly more reliable.
2016-01-18 16:47:42 -08:00
Guangcong Luo
8be8204c61 Remove no-longer-necessary Chart placeholder 2016-01-18 01:42:31 -08:00
Guangcong Luo
bf68cdc1c4 Slightly improve comments 2016-01-18 01:42:31 -08:00
Guangcong Luo
78334b7a15 Split off client-topbar.js from client.js
client.js is still kind of huge, but oh well. Progress!
2016-01-18 01:42:30 -08:00
Guangcong Luo
9370f0fbf0 Merge pull request #617 from urkerab/battle-exception-stack
Improve stacks for exceptions in battles
2016-01-17 12:13:27 -08:00
Guangcong Luo
3fb0c4d868 Merge pull request #618 from urkerab/potential-slot-fixes
Fix some potential issues with pokemon.slot
2016-01-17 12:10:55 -08:00
urkerab
0c0d4677fb Fix some potential issues with pokemon.slot 2016-01-17 18:49:13 +00:00
urkerab
cc2aac7bb9 Improve stacks for exceptions in battles 2016-01-17 11:45:38 +00:00
Guangcong Luo
6698d649f6 Teambuilder: Fix names when importing/exporting
Import/export used to have trouble with the new storage format for
pokemon without nicknames; this has been fixed.
2016-01-17 05:57:56 -05:00
Guangcong Luo
388494196e Hide tooltips when switching rooms
Tooltips wouldn't disappear in certain obscure situations. This should
mitigate those obscure situations.

(Specifically, opponent forfeits while you're hovering over a move or
pokemon.)
2016-01-17 05:57:56 -05:00
Guangcong Luo
be5cb1c676 Teambuilder: Add PU as a filterable tier 2016-01-17 05:57:56 -05:00
Guangcong Luo
5fc82af152 Teambuilder: Fix Tab/Enter behavior
- Enter now moves onto the next field if the selected field is valid
- Tab/Enter on the last move now focuses EVs/IVs button, so it's much
  easier to refocus the last move
2016-01-17 05:57:56 -05:00
Marty-D
91fb82c4bc Add Spiky Shield message 2016-01-16 12:56:17 -05:00
Guangcong Luo
15e6d69fac Slightly more helpful error message in action.php 2016-01-16 04:14:13 -05:00
Guangcong Luo
72c02cadf5 Update main server URL
psim.us isn't blocked from some places smogon.com is blocked from, so
this should help.
2016-01-16 04:13:23 -05:00
Guangcong Luo
416522c383 Fix /data in replays 2016-01-16 04:13:00 -05:00
Guangcong Luo
ee3c3f2f70 Fix outdated credit link
The original credit wasn't even actually used in PS officially, it was
just used for part of the 0.9 beta.
2016-01-15 23:34:56 -05:00
Guangcong Luo
95f291730a Make show-locked-hidden-text button subtler 2016-01-15 23:34:35 -05:00
Guangcong Luo
1c457b4b5e Revert "Make user popups use the usernames color for names"
This reverts commit d84a4b199d.
2016-01-15 23:32:41 -05:00
sirDonovan
44d79f69a5 Remove redundant tournament creation notifications 2016-01-15 19:11:54 -06:00
Guangcong Luo
5f4ac7e1a3 Merge pull request #616 from Ridaz/patch-1
Fix animations
2016-01-15 14:51:51 -08:00
Ridaz
a7b3dff9f7 Fix animations 2016-01-15 22:50:48 +00:00
Guangcong Luo
5beca695c0 Fix style error 2016-01-15 16:54:43 -05:00
Marty-D
24894dfd3c Add Ghost Curse message 2016-01-15 16:35:51 -05:00
Guangcong Luo
24e1ffba95 Merge pull request #615 from Ridaz/patch-1
Move Animations Update #2
2016-01-15 12:41:40 -08:00
The Immortal
c0d346ae7a Add COIL to 1v1 ladder 2016-01-15 20:24:28 +04:00
Ridaz
29e79a1e7a Move Animations Update #2 2016-01-15 12:23:09 +00:00
Guangcong Luo
ba3d48644f Merge pull request #612 from urkerab/tooltip-triples-any-target
Display move target in Doubles and Triples battles
2016-01-14 18:25:12 -08:00
Guangcong Luo
e2ecab4884 Support allowRename in RoomGames
Now, if you're in a roomgame that doesn't allow renames, the client will
warn you about that.
2016-01-14 21:31:13 -05:00
Guangcong Luo
7fd31032a3 Tournaments: Only deselect teams when necessary 2016-01-14 21:30:21 -05:00
Guangcong Luo
1c0f52d6fb Teambuilder: Support filtering by tier 2016-01-14 21:30:21 -05:00
Guangcong Luo
19f5cf0d11 Merge pull request #613 from urkerab/pok-eacute-mon
Use Pokémon in messages instead of Pokemon.
2016-01-14 18:20:15 -08:00
urkerab
1f61f0012f Display move target in Doubles and Triples battles 2016-01-15 01:34:28 +00:00
urkerab
a7bc84e6f7 Use Pokémon in messages instead of Pokemon. 2016-01-15 01:14:52 +00:00
Guangcong Luo
6bacf20121 Merge pull request #543 from panpawn/patch-1
Make user popups use the usernames color for names
2016-01-13 22:55:12 -08:00
Guangcong Luo
efcfc78145 Merge pull request #611 from Ridaz/master
Updating various animations
2016-01-13 18:50:33 -08:00
panpawn
d84a4b199d Make user popups use the usernames color for names
This makes the user popups less generic and more unique imo
2016-01-14 01:57:02 +00:00
Ridaz
7bd94614e9 Update Animations
And revert Fairy Wind and Moonblast animations
2016-01-14 01:20:44 +00:00
Marty-D
e25afbb327 Add Lightning Rod/Storm Drain redirection message 2016-01-13 18:28:46 -05:00
Kevin Lau
a550854384 Merge pull request #610 from Ridaz/patch-1
Remove extra Overheat animations
2016-01-13 12:57:41 -08:00
Ridaz
18467a6bbe Remove extra Overheat animations 2016-01-13 20:09:11 +00:00
The Immortal
112f63470d Merge pull request #609 from Ridaz/patch-1
Fix Energy Ball
2016-01-13 20:43:16 +04:00
Ridaz
beb09a6d87 Fix Energy Ball 2016-01-13 16:07:42 +00:00
Guangcong Luo
4c17fa7084 Teambuilder: Fix crash when filtering egg groups 2016-01-13 04:07:17 -05:00
Guangcong Luo
bb3496073e Fix bug with | in pokemon nicknames 2016-01-13 04:07:17 -05:00