Commit Graph

2186 Commits

Author SHA1 Message Date
Guangcong Luo
336d89ae53 Merge pull request #411 from Irraquated/patch-2
Change /buttonkick to /buttonwarn
2015-07-05 11:56:26 -05:00
Irraquated
f6cc7fa412 Change /buttonkick to /buttonwarn
(Also keeping /buttonkick as an alias) Makes the command much more understandable.
2015-07-05 10:31:54 +00:00
Guangcong Luo
527eaaceb6 Fix Join room button 2015-07-05 03:13:07 -04:00
Guangcong Luo
c4860e02bd Fix pokemon classified as Illegal in teambuilder
I'm not sure exactly what conditions cause it (and specifically why it
sometimes works and sometimes doesn't) but this should at least fix
it.
2015-07-04 22:50:48 -05:00
Guangcong Luo
30f2d5649f Animate teams settling into place after dragging
This is supported on Chrome and Safari (and probably Opera), but
not Firefox because Firefox is too buggy.

(Honestly, every browser's HTML5 drag-and-drop implementation is
super buggy, but Firefox happens to be buggy in a way that makes
this feature semi-impossible.)
2015-07-04 22:35:00 -05:00
Guangcong Luo
47e540f401 Minor refactor to global click handler 2015-07-04 16:10:54 -05:00
Guangcong Luo
627aa2a66c Add Firefox team-drag support
Team drag-rearranging is now supported on Firefox.
2015-07-04 16:10:54 -05:00
Slayer95
9ea17550eb Merge pull request #408 from xfix/patch-2
Don't use toId for room names while joining a room using popup
2015-07-04 13:44:31 -05:00
Konrad Borowski
5fd2427291 Use toRoomId instead of toId when joining a room
This lets an user join a battle room.
2015-07-04 18:28:43 +02:00
Guangcong Luo
64c22a9be0 Drag-rearrange-able teams
This is pretty experimental, but all the bugs I found are worked
out.

While researching how to best implement this, I came across the
famous PPK rant on why HTML5 drag-and-drop sucks:
http://quirksmode.org/blog/archives/2009/09/the_html5_drag.html

A lot of his complaints aren't really a big deal to me, but boy
was he right about browser bugs. Apparently mobile will never
support HTML5 drag-and-drop, either, and there are a lot of
other limitations. Oh well, this is all worth it for an
upcoming planned features: dragging and dropping team files to
and from your desktop.
2015-07-04 02:33:57 -05:00
Guangcong Luo
e1864520d9 Redesign teambuilder
- Nicer looking buttons
- Nicer layout
- Ctrl+F-able pokemon species names
2015-07-03 20:37:48 -04:00
Guangcong Luo
1ee0edc000 Fix crash in teambuilder 2015-07-03 20:36:31 -04:00
Guangcong Luo
1f4c78ee81 Shorten Google Docs URLs
Currently a special case; we might add a generalized URL shortener
later.
2015-07-03 20:36:18 -04:00
Guangcong Luo
da2434c1b8 More reliable team importing 2015-07-03 01:16:25 -04:00
Guangcong Luo
089c7eaae4 Add default for -status 2015-07-03 01:15:48 -04:00
Guangcong Luo
b995772597 Fix old-style move names 2015-07-03 01:15:29 -04:00
Ivo Julca
262be0c995 Fix silent type changes 2015-07-02 20:00:32 -05:00
Guangcong Luo
41f994890d Sync data 2015-07-02 13:21:20 -04:00
Guangcong Luo
a61ecb88e3 .gitignore node_modules 2015-07-02 13:21:10 -04:00
Guangcong Luo
7a340a101c Make githooks/update more terse 2015-07-02 13:20:25 -04:00
Guangcong Luo
279893d2ee Delete old jQuery file 2015-07-02 12:48:36 -04:00
Guangcong Luo
5abc202006 Don't cache old tournament JS files 2015-07-02 12:47:51 -04:00
Ivo Julca
744a2d80a6 Fix teams not being sent for tournament battles 2015-07-02 07:08:43 -05:00
Guangcong Luo
4aabfaf07f Fix crashes related to empty teams 2015-07-02 04:20:00 -04:00
Guangcong Luo
5a5f8e0c9a Merge branch 'MasterFloat-patch-1' 2015-06-30 15:55:15 -05:00
MasterFloat
1603a1a7a5 Fix popmenu button padding in Mozilla
This adds 1px top and bottom padding to popupmenu's button to match its
hover offset. Necessary because of a bug in Mozilla involving box-sizing
of buttons.
2015-06-30 15:25:42 -05:00
Guangcong Luo
6c15f75c61 Update 'icons' for empty team 2015-06-30 04:18:42 -05:00
Guangcong Luo
35ea08391d An empty string is not a corrupt team 2015-06-30 04:17:26 -05:00
Ivo Julca
464129ce8c Safe return type ([]) for team unpacker functions 2015-06-30 04:05:36 -05:00
Ivo Julca
b3276d0290 Fix Desktop client teambuilder crash
Attempting to go to Team List after deletion of all Pokémon in a team triggered a TypeError
2015-06-30 03:59:26 -05:00
Guangcong Luo
d674dfca8d Support packed teams in desktop client 2015-06-30 03:20:29 -05:00
Ivo Julca
4106dd379d Fix crash in Storage.packTeam for some corrupted teams 2015-06-30 02:45:34 -05:00
Guangcong Luo
86820e79a0 Minor grammatical fix to a comment 2015-06-30 02:25:01 -05:00
Guangcong Luo
84be1cd2f2 Teambuilder: more reliable team saving 2015-06-30 02:24:50 -05:00
Guangcong Luo
37af6ced67 Remove extraneous saveTeams function 2015-06-30 02:24:17 -05:00
Guangcong Luo
bbc2188a40 Refactor teambuilder to use packed teams
This is a major refactor that changes the teambuilder to store
teams in packed format whenever possible, for approximately 50%
less memory usage for team storage.

The only visible change here is that pokemon nicknames have been
replaced with pokemon icons in the teambuilder team list, to
match the team selector in the main menu, which simplifies
extracting information from packed teams.
2015-06-30 02:16:55 -05:00
Guangcong Luo
df1ec9ff3c Make sure popups are on-screen 2015-06-30 02:06:24 -05:00
Guangcong Luo
d41b7329b3 Show popup error for corrupt teams 2015-06-30 02:06:24 -05:00
Guangcong Luo
cc7af41bd5 Refactor Storage not to use _Storage class 2015-06-30 02:06:24 -05:00
Guangcong Luo
2a6a2667a7 Move team import/export functions to storage.js
This refactor moves:

TeambuilderRoom.parseText -> Storage.importTeam
TeambuileerRoom.toText -> Storage.exportTeam
TeambuilderRoom.teamsToText -> Storage.exportAllTeams
2015-06-29 17:17:51 -05:00
Guangcong Luo
4d21b8fc61 Support |popup||html|
This displays a popup containing (sanitized) HTML.
2015-06-29 17:21:32 -04:00
Guangcong Luo
2019b60cf1 Support |c|~|text
This displays "text" as a line in chat that can highlight, but otherwise
looks like a `||text` line.
2015-06-29 17:21:32 -04:00
Guangcong Luo
c1330dc050 Support <<roomid>> links in chat 2015-06-29 17:21:32 -04:00
Guangcong Luo
2723b1df3d Fix testclient.html support
(It was broken by the protocol change)
2015-06-29 02:26:16 -05:00
Guangcong Luo
1eea2b3f45 Prevent 'Find a user' from finding Zarel
It has been deemed to cause too much spam for Zarel :(
2015-06-28 00:50:17 -04:00
Guangcong Luo
434be97f8a Support |popup| options
Specifically, |wide| makes a wide popup, suitable for modlog results.
And |modal| makes a modal popup, currently only used for locks and
bans, to make sure they're not accidentally dismissed.
2015-06-28 00:50:17 -04:00
Guangcong Luo
50c8273d03 Support /error in PMs
It's like /text, except the text is red.
2015-06-28 00:50:17 -04:00
Guangcong Luo
2a6993f31e Forfeit menu also closes window by default
A lot of people think the case of someone wanting to forfeit but
not leave the room is obscure, but for now, I think it's still
worth supporting. It's currently implemented as a checkbox, so
it's pretty unobtrusive.
2015-06-28 00:50:17 -04:00
Guangcong Luo
7c802fc4e0 Rainbow main menu!
In honor of Obergefell v. Hodges
2015-06-28 00:50:17 -04:00
Guangcong Luo
3f8ffa684f Support new challstr protocol
See Zarel/Pokemon-Showdown@d5c622b493

New system is backwards-compatible with old one. This also slightly
refactors some other stuff, for an overall simpler system.
2015-06-28 00:50:17 -04:00