Guangcong Luo
d9faf3e7e6
Update crossdomain.php to support main server
...
This is a job currently done by crossprotocol.html, but this is in
case we add an update for which a static file isn't enough.
2015-12-15 05:49:44 -05:00
Guangcong Luo
cecc1b641e
Center custom backgrounds
...
Default backgrounds are still left-aligned, mainly for Horizon and
Waterfall which are designed for their left side to be visible, but
custom backgrounds are now centered on the assumption that that's
what most users want.
2015-12-15 05:49:44 -05:00
Guangcong Luo
525f422d11
Fix sound settings not appearing in replays
...
Sound Manager really doesn't make it easy to do something when it
loads, so this is a kind-of-complicated workaround.
2015-12-15 05:49:44 -05:00
Marty-D
c401d8303a
Fix Struggle's display with -ate Abilities
2015-12-14 10:23:10 -05:00
Guangcong Luo
59f0eb7395
Merge pull request #578 from bumbadadabum/images
...
Run optipng on fx/
2015-12-14 08:44:44 +00:00
Bär Halberkamp
6612e7037f
Run optipng on fx/
2015-12-14 07:20:04 +01:00
Guangcong Luo
10fe888d59
Merge pull request #577 from bumbadadabum/images
...
Add a missing image for the gallows and run optipng
2015-12-14 06:07:03 +00:00
Bär Halberkamp
622866dbe3
Run optipng on crobat's sprites
2015-12-14 06:58:46 +01:00
Bär Halberkamp
be37e69dab
Add the gallows for hangman
2015-12-14 06:46:32 +01:00
Guangcong Luo
b9c92bae92
Wrap localStorage calls in try blocks
2015-12-13 13:29:00 -05:00
Guangcong Luo
db416b7d52
Make the random background button bigger
...
(Some people didn't notice the previous one.)
2015-12-13 13:28:46 -05:00
Guangcong Luo
c33cfdfece
Rewrite protocol-relative images to http: if necessary
...
This makes protocol-relative images in sanitized HTML work in
testclient, by manually setting the protocol to http:
2015-12-13 13:27:04 -05:00
Guangcong Luo
1bcc75e750
Use relative URIs in CSS where possible
...
This replaces the previous protocol-relative URIs, which should allow
testclient to work much better.
2015-12-13 13:25:41 -05:00
Guangcong Luo
ec05062525
Make sure disabled buttons stay light gray
2015-12-12 23:09:43 -05:00
Guangcong Luo
6924cf98d6
Make the main menu footer easier to see
...
It was kind of hard to make out on certain backgrounds.
2015-12-12 23:09:15 -05:00
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