Commit Graph

4582 Commits

Author SHA1 Message Date
Guangcong Luo
bb6fe7ec3e Improve teambuilder stub
This should give an idea of the direction I want to take the
teambuilder in: a text editor, but with special features.

This neatly sidesteps a lot of UI questions, especially all the export
and input buttons, because the regular editing mode can be used to
import and export without anything fancy.

This also makes way for a better way to implement team/set comments:
comments are just invalid Pokémon in a team.
2019-05-16 01:27:19 +04:00
Guangcong Luo
9d3122cf92 Distinguish "connecting" and "disconnected" states
Individual PS rooms actually consider themselves connected while
connecting, so maybe we should do that instead? Until then, this is
the approach we're going with.
2019-05-16 01:27:19 +04:00
Kirk Scheibelhut
57dfaad5e9 Make <<replay>> link to the replay.pokemonshowdown.com (#1282) 2019-05-15 03:59:28 +10:00
Kirk Scheibelhut
575bad1cf9 toId -> toID
Zarel/Pokemon-Showdown#5479
2019-05-14 09:54:18 -07:00
AlfaStorm
04598c2d87 Support Digimon Showdown cries (#1273) 2019-05-13 13:57:27 +09:30
Guangcong Luo
ef530006d1 Correctly calculate Gen 1 Special stat boosts
Fixes #1277

Not having an example replay, I'm not sure if this displays properly,
but it at least fixes the calculation aspect.
2019-05-12 22:49:24 +09:30
Kirk Scheibelhut
928f21b0bc (AFK) Escape user status (#1279) 2019-05-12 13:36:49 +09:30
Kirk Scheibelhut
a208645936 Add support for a /nonotify message type (#1280) 2019-05-12 13:33:34 +09:30
asgdf
ae52ee2414 Refactor ability display in tooltips (#1268) 2019-05-09 12:49:32 +09:30
asgdf
407e0b3863 Fix typing for move buttons in older gens (#1275) 2019-05-09 12:18:34 +09:30
Guangcong Luo
6e0ab4f11b Support not passing node.children in tournaments
This is a minor optimization to tournament bandwidth usage, by
supporting not sending `"children":[],` in leaf nodes.
2019-05-08 20:14:09 +09:30
Kirk Scheibelhut
883cd91fc8 Handle AFK '@-in-names' protocol (take 2) (#1270) 2019-05-05 22:43:54 +09:30
The Immortal
2b879e4561
Teambuilder: Add support for Trademarked OM 2019-05-01 18:44:44 +04:00
JetOU
1948e07da6 Fix guests not showing in options (#1269) 2019-04-23 02:55:03 +09:30
Guangcong Luo
5348d1312e Revert "Handle AFK '@-in-names' protocol (#1265)"
There were several major crashes arising from it.

This reverts commit ba1e6d31bf.
2019-04-22 09:38:06 +09:30
Kirk Scheibelhut
ba1e6d31bf Handle AFK '@-in-names' protocol (#1265) 2019-04-22 06:41:46 +09:30
Guangcong Luo
61ff5ae093 Turn off autocomplete in teambuilder
The teambuilder already has a built-in autocomplete function which
competes with it, and most users seem to prefer the built-in one.
2019-04-21 20:50:52 +09:30
asgdf
91e84d49da Teambuilder: Fix changed hidden abilities in older gens (#1266) 2019-04-20 15:08:51 +09:30
Konrad Borowski
4d2f86be7d Allow aria-label and aria-hidden HTML attributes 2019-04-16 22:08:58 +02:00
Kirk Scheibelhut
87a5510000 Add a persistent /blockchallenges & /blockpms toggle (#1263) 2019-04-12 00:53:38 +09:30
Guangcong Luo
62c01a0216 Fix support for new |updateuser| 2019-04-09 00:54:20 +08:00
Guangcong Luo
7d52fd8c30 Implement TeamDropdown
Currently it's in the Main Menu where the old team dropdown was, but
the plan is for "Battle!" to eventually open a separate Search window.
2019-04-05 17:34:20 +08:00
asgdf
2354abb853 Tooltips: Fix Plus/Minus/Victory Star (#1258) 2019-04-03 15:11:01 +08:00
arandompieceofcheese
2361a00769 Fix Toxic damage tooltip (#1256) 2019-04-03 11:54:33 +08:00
Dan Huang
2e2852f35c Add server build step to client build (#1262) 2019-04-03 11:40:45 +08:00
asgdf
6ca21b0a88 Fix battle playback state after using /afd (#1261) 2019-04-03 11:40:24 +08:00
Guangcong Luo
e659be101a April Fool's 2019 2019-04-02 15:20:14 -04:00
Kris Johnson
d6f6b524bd Fix teambuilder for LC formats (#1260) 2019-04-02 20:27:52 +04:00
Guangcong Luo
e6e65dde4f Update AFD 2019 implementation
AFD messages are now disabled by `/afd off`
2019-04-01 19:18:28 +08:00
Guangcong Luo
27061397e0 Update item viability 2019-04-01 00:53:38 +08:00
Slayer95
5aa356c650
Fix freedomDegrees documentation 2019-03-30 23:28:24 -05:00
Ivo Julca
5e52773bee Battle UI: Refactor building of tooltip arguments string 2019-03-26 15:09:13 -05:00
Guangcong Luo
9c3dcd6233 Improve readmore box appearance 2019-03-22 18:51:44 +09:00
Guangcong Luo
18cad2f6d6 Fix Notification crash in Edge 2019-03-22 18:51:44 +09:00
Guangcong Luo
c70a54f4e6 Support room search in rooms panel 2019-03-22 18:51:44 +09:00
Guangcong Luo
087c030c2b Support "Chat" button on usercards
Also grey out unsupported buttons.
2019-03-22 00:22:17 +09:00
Guangcong Luo
23a1c86823 Update /me styling
In /me, usernames are now bold, italic, and username-colored. The
username should now be more obviously a username, and also more
obviously a part of the /me-sentence.

I got unanimously positive reactions, so I'm pushing this through. I'm
sure plenty of people will hate change, but whatever.
2019-03-22 00:10:24 +09:00
Guangcong Luo
f802aa8b40 Improve support for username colors
Includes a minor refactor of battle-log.ts
2019-03-22 00:10:24 +09:00
Guangcong Luo
fbaceafac1 Implement Rooms room 2019-03-21 20:16:01 +09:00
Guangcong Luo
3bef3920a8 Defer JS loading
I don't know exactly how HTTP2 works, but in theory this should be a
noticeable perf improvement.
2019-03-21 17:00:52 +09:00
asgdf
689c741526 Don't display illegal HMs as legal in Teambuilder (#1253) 2019-03-19 10:45:14 +09:00
Kris Johnson
0cb0056dae Fix teambuilder headers (#1254) 2019-03-18 22:29:47 +04:00
Guangcong Luo
a45578f731 Fix closing PM windows 2019-03-17 20:22:58 +09:00
Guangcong Luo
3e59d4e430 Add stub support for PMing 2019-03-17 20:18:26 +09:00
Guangcong Luo
eb38544200 Support serving the Preact client
If you want to access it, I'm sure you can figure out how from this
code. ;)
2019-03-17 06:21:49 -04:00
Guangcong Luo
7479cf6658 Lower line length limit to 120 2019-03-17 19:02:53 +09:00
Guangcong Luo
c02370f8b2 Stub teambuilder implementation 2019-03-17 19:02:53 +09:00
Guangcong Luo
25d2422a58 Add support for chat userlists and usercards
This involves a relatively substantial refactor to how panels work, but
it should be somewhat finalized now. Popups are now fully supported.
2019-03-17 19:02:53 +09:00
Guangcong Luo
6622e50234 Improve support for panel switching
Using arrow keys to switch rooms is now in! Unlike in the old client,
the new system supports switching to all rooms, and supports arrow keys
in all situations, rather than only being able to switch between chat
rooms, and only with textareas focused.

Also, focusing chat rooms now focuses the input box. This was
surprisingly hard to implement with React, which has an annoying
all-or-nothing approach to state it doesn't control.
2019-03-17 19:02:53 +09:00
Guangcong Luo
7174223d87 Support sending messages to rooms 2019-03-17 19:02:53 +09:00