Commit Graph

3416 Commits

Author SHA1 Message Date
Guangcong Luo
43b77c069c Improve main menu colors for default backgrounds 2015-12-12 23:08:11 -05:00
Guangcong Luo
a038fc9631 Fix 'Default' background button for alt servers 2015-12-12 23:06:58 -05:00
Guangcong Luo
c4899e2673 Fix background image upload too big feedback
It used to be inconsistent about whether or not the custom background
setting succeeded.
2015-12-12 23:06:33 -05:00
Guangcong Luo
53d9a2853d Make the avatar's clickable area in Options clearer 2015-12-12 23:05:48 -05:00
Guangcong Luo
d0ffc16089 Prevent Opt+Cmd+I from italicizing text 2015-12-12 23:05:10 -05:00
Guangcong Luo
72ff236cef Hardcode logo img dimensions
Very minor optimization to layout performance, but I'll take it.
2015-12-12 23:04:29 -05:00
Guangcong Luo
2e467f2436 Merge pull request #576 from bumbadadabum/images
Add the images for hangman and mafia to the client
2015-12-13 03:55:27 +00:00
Bär Halberkamp
6265c623e7 Add the images for hangman and mafia 2015-12-13 04:40:19 +01:00
Guangcong Luo
62e0723724 Fix style 2015-12-12 12:22:20 -05:00
Guangcong Luo
0e55e7fab2 Add back Solid Blue background option 2015-12-12 05:23:59 -05:00
Guangcong Luo
159f71c7ac Remove old client background files 2015-12-12 04:05:03 -06:00
Guangcong Luo
d429ea3797 New background popup
This replaces the old background dropdown with a background popup
that does everything the old one does, but fancier.
2015-12-12 04:04:10 -06:00
Guangcong Luo
211da6e8b1 Major update to background storage and menu colors
When loading a background, we use Color Thief to get a six-color
palette from the image, for use on the main menu buttons.

Only hue and lightness are extracted.

https://github.com/lokesh/color-thief/

Backgrounds are now stored in localStorage in the current origin,
rather than the prefs origin. This allows faster loading, as well
as different backgrounds for different origins, which other
servers should like since it means their backgrounds get seen
at least once before possibly being replaced.

Special thanks to Joim for the base code.
2015-12-12 04:01:00 -06:00
Guangcong Luo
6491a7dba6 Redesign 'Look for a battle' button 2015-12-11 23:34:04 -05:00
Guangcong Luo
acdd253081 Fix style issue 2015-12-11 05:06:44 -05:00
Guangcong Luo
40e88616dc Add Storage.createReplayFileHref
This splits out createReplayFile to focus on the file contents,
which could then be output elsewhere, such as for instance the
desktop client.
2015-12-11 03:10:04 -05:00
Guangcong Luo
ea077721a8 Add back Upload Replay button 2015-12-11 03:10:04 -05:00
The Immortal
bae1b84fb0 Teambuilder: Update VGC 2015-12-10 03:56:29 +04:00
Guangcong Luo
c93847fdbe Merge pull request #572 from Ridaz/patch-2
New Close Combat animation
2015-12-09 21:19:52 +00:00
Ridaz
61245f6625 New Close Combat animation
It's used by Superpower too.
2015-12-09 11:46:09 +00:00
Guangcong Luo
9ca60829d9 Fix Sleep Talk message 2015-12-07 05:00:10 -05:00
Guangcong Luo
06a403d148 Merge pull request #546 from augmt/tighten-dnd
Tighten up drag and drop code
2015-12-07 08:34:33 +00:00
Guangcong Luo
3f7f4fbdfa Merge pull request #534 from urkerab/tooltip-ignore-mouse
Tooltips should be ignored by the mouse
2015-12-07 08:32:08 +00:00
Guangcong Luo
e24775bd7a Merge pull request #564 from urkerab/bold-italic-ignore-alt-key
Don't trigger bold or italic on Alt+B or Alt+I
2015-12-07 08:29:40 +00:00
Guangcong Luo
6dfc0bdabf Fix various bugs found by eslint 2015-12-07 03:20:30 -05:00
Guangcong Luo
cea3623dac Downloadable replays!
Replays can now be downloaded into .html files.

The .html files mainly contain replay log data; the actual replay
player is downloaded online. Also included is a textual log and
some minimal CSS to make it look pretty, for offline viewing.

This strategy helps keep the replay file reasonably small; of
the 30 KB or so for a 50-turn battle, around 10 KB is the log
data, and around 20 KB is the textual log.
2015-12-07 03:19:46 -05:00
Guangcong Luo
a3968af8e6 Fix bug with newer Sturdy activations 2015-12-07 02:52:46 -05:00
Marty-D
fe2aa5ede5 Mark moves used by Sleep Talk 2015-12-06 19:01:51 -05:00
Marty-D
a6b33b8eff Merge pull request #569 from QuiteQuiet/master
Add Electrify tag
2015-12-05 10:55:10 -05:00
Quite Quiet
bb28b0cac4 Add electrify tag 2015-12-05 15:16:01 +01:00
Guangcong Luo
d0f0949e63 Fix code style 2015-12-05 02:07:17 -05:00
Guangcong Luo
d66e7a43b1 Improve battle animations
- Ability activations are now handled consistently
- Ability activations now look different, the ability name appears
  under other result anims and doesn't move
- Replace animDelay with the same animationDelay system we use for
  everything else in the engine
- Group multiple stat boosts/drops
- Group damage when possible in spread moves in doubles/triples
2015-12-05 01:39:50 -05:00
Guangcong Luo
5d939b57b4 Sync data 2015-12-05 01:32:28 -05:00
Guangcong Luo
9ad1d92759 Merge pull request #565 from Slayer95/master
Implement basic linting with ESLint
2015-12-03 08:54:25 +00:00
Ivo Julca
d694099484 Implement basic linting 2015-12-03 03:36:01 -05:00
Ivo Julca
96b4d3a6b0 Fix trainer sprite parsing in battles 2015-12-03 02:39:26 -05:00
Guangcong Luo
89a736ecf8 Ignore |N| and |n| in battles
This brings battles more inline with chatrooms, in preparation for more
code-sharing server-side
2015-12-03 02:39:41 -05:00
Ivo Julca
8bb6f48223 Fix several global variable leaks 2015-12-03 02:26:29 -05:00
Ivo Julca
1d514bc6ec Miscellaneous style fixes for better alignment to server code style 2015-12-03 02:25:57 -05:00
Ivo Julca
adc57f5467 Move generation inference from utilichart to battledata 2015-12-03 01:01:27 -05:00
urkerab
c1f1224008 Don't trigger bold or italic on Alt+B or Alt+I 2015-12-02 12:32:42 +00:00
Guangcong Luo
26d4adcac2 Support new |disconnect| message 2015-12-01 15:25:21 -05:00
Guangcong Luo
3cac636298 Drop symbols from end of name when tab completing
Now that the symbols at the end aren't necessary for highlighting,
dropping them from tab completion should make talking to people with
emoticons at the end of their name less annoying.
2015-12-01 15:25:21 -05:00
Guangcong Luo
999cf4b3a6 Center main menu on small layouts 2015-12-01 12:47:23 -06:00
Guangcong Luo
f2b7747674 Make News start minimized on cell phones 2015-12-01 12:45:59 -06:00
Guangcong Luo
e2a3459376 Fix Ally Switch animation 2015-12-01 01:44:09 -05:00
Guangcong Luo
356a248bc2 Slightly darken spoilers 2015-12-01 01:44:09 -05:00
Guangcong Luo
ddd4e67450 Improve name highlight matching
- Special characters at the end of a name are ignored
- Non-ASCII characters in the middle of a name can be replaced with
  any other non-alphanumeric character

So, for instance, with a user named 'te•st••':
'test', 'te st', and 'te-st' would all highlight them
2015-12-01 01:44:09 -05:00
Ivo Julca
c821665d02 Improve handling of sprite data
- Don't try to use nonexistent resources for CAP or recent Pokémon in old-gen battles.
- Don't try to play invalid cries.
- Do use Substitute old-gen sprites according to the played gen.
This also removes Substitutes' being numbered as 0, and adds to its animation data a `exists` flag set to `false`.

Fixes #562
2015-12-01 01:03:31 -05:00
Ivo Julca
10659ae202 Add missing gen/forme-related data to Pokémon templates 2015-12-01 00:55:31 -05:00