Commit Graph

287 Commits

Author SHA1 Message Date
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
627aa2a66c Add Firefox team-drag support
Team drag-rearranging is now supported on Firefox.
2015-07-04 16:10:54 -05: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
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
7c802fc4e0 Rainbow main menu!
In honor of Obergefell v. Hodges
2015-06-28 00:50:17 -04:00
Guangcong Luo
ea348e8a19 Remove outdated -webkit and -moz CSS
linear-gradient has been supported in most major browsers for long
enough that we can drop gradient support for really old browsers.
2015-06-28 00:50:16 -04:00
Guangcong Luo
9b57f521a5 Teambuilder: Fix import/export textbox size 2015-06-12 20:34:42 -04:00
Guangcong Luo
ec94d28cf4 Suppress horizontal scrollbar in userlist 2015-06-12 18:14:16 -04:00
SolarisFox
22de1647fd handle long team name overflow 2015-05-10 18:50:19 -07:00
Guangcong Luo
e646c23bc2 Add subtle notifications for room activity
Chat room titles now turn orange and their icon changes when someone
talks in them. This is subtler than the highlight notification, and
should make it easier to keep up with rooms.

This change involves a refactor of the notification system, which
also happens to improve room-switching performance by only running
updateTopbar once instead of 3-5 times like it would before.
2015-05-04 16:42:35 -04:00
Guangcong Luo
28e197b347 Move chat styles to battle.css
Some CSS that affects chat are in client.css. Since we want them
to affect battle logs, and thus replays, I've moved them to
battle.css
2015-04-02 23:13:44 -04:00
Morfent
74cb8bea77 Team/format button style fixes
The button's text is no longer offset vertically by the arrow added by
::after, and the background gradients now display properly on Firefox.
2015-03-07 10:57:00 -04:00
sirDonovan
8311dc889d Several improvements to |unlink|hide|
- Prevent messages from being hidden in replays
- Improve wording on the reveal button
- Highlight revealed messages
2015-02-09 17:14:19 -06:00
sirDonovan
49d5130180 Show tooltip for fainted pokemon
Allow tooltips to be displayed by styling buttons as disabled instead of actually disabling them
2015-01-20 20:41:23 -06:00
Yana
2f65b6aab9 /rank format targeting 2015-01-09 19:13:06 +01:00
Guangcong Luo
e7fad47f54 Larger chat font sizes
For now, battle chat is still at 8pt, but chatroom and PM font
size has been increased to 9pt. Join/leave messages, timestamps,
and user symbols in chat stay at 8pt, and timestamps are now
gray.
2014-09-26 23:37:50 -05:00
Guangcong Luo
75efa5a2d3 Fix PS on dark themes
This fixes button readability when browser defaults change the
button text color from black.
2014-09-26 23:35:37 -05:00
Robin Vandenbrande
154c50d1be Import/export on a per Pokemon basis 2014-08-29 13:24:26 +02:00
sphericalice
515b410f75 Add classes for /weakness command's labels
This adds in style for the new labels for the /weakness command, so that "Weaknesses:" is coloured red (the same as the red for .message-learn-cannotlearn for consistency reasons), "Resistances" is coloured blue, and "Immunities" is coloured grey. This reflects the changes to the command made in this pull request: https://github.com/Zarel/Pokemon-Showdown/pull/1116
2014-08-01 01:36:07 +01:00
Guangcong Luo
8280dab64e Speed up tournament panel opening/closing 2014-07-18 17:08:45 -05:00
Slayer95
6b064b7a0e Allow empty slots as targets for moves
Also, buttons that would target invalid positions will now be not only disabled but also hidden.
2014-07-17 17:48:35 -05:00
Slayer95
2579228752 Battle debug messages are now hidden by default
To display them: /showdebug
2014-07-09 22:18:33 -05:00
Slayer95
5316b051d6 Implement Triples UI 2014-06-10 16:47:03 -05:00
Quinella
4be517e098 Make tabs prettier in IE 2014-06-07 00:54:19 +02:00
Quinella
54cb37a37b Copy/paste (clipboard) feature for teambuilder 2014-06-05 00:46:34 +02:00
Guangcong Luo
0e927e3271 Merge pull request #162 from kotarou3/tournaments
Tournaments update
2014-03-22 12:41:25 -05:00
小太
63bb1ecc40 Implement the tournaments info packet handler 2014-03-22 20:04:47 +11:00
Guangcong Luo
2402c0c914 New background: Charizards, by seiryuuden 2014-03-18 22:50:56 -05:00
Guangcong Luo
2bfa50fab8 More readable footer 2014-03-15 23:44:55 -05:00
Quinella
c7efee17d6 PM minimizing: change color of PM header for new messages
Also fixed some CSS rules to be consistent with the other rules
2014-01-10 10:43:07 +01:00
Quinella
a7375021ce Make PM windows minimizable 2014-01-10 10:06:07 +01:00
小太
a20a59f94a Change client-tournament.js -> client-chat-tournament.js reference in client.css 2013-12-26 23:17:31 +11:00
小太
e2c9ede115 Add support for popping out the tournament bracket 2013-12-26 22:49:45 +11:00
小太
6ab557c86f Add a tournament status indicator 2013-12-22 17:24:13 +11:00
小太
4b056b7416 Add toggle button to tournaments 2013-12-22 08:36:49 +11:00
小太
0812a41172 Merge remote-tracking branch 'upstream/master' into tournaments 2013-12-02 16:55:01 +11:00
Guangcong Luo
ea2fc9f625 Fix horizontal scrollbar in Windows main menu 2013-11-30 00:54:42 -06:00
小太
54042f637c Merge remote-tracking branch 'upstream/master' into tournaments
Conflicts:
	testclient.html
2013-10-20 20:43:13 +11:00
Guangcong Luo
0caf105732 New background: Horizon 2013-09-23 13:16:18 -05:00
小太
4c13a800d2 Use a different library for rendering the tree and implement draggable brackets to support it 2013-09-17 20:14:17 +10:00
小太
ffcd67478e Add support for tree-type tournaments 2013-09-15 15:36:37 +10:00
小太
fdf4f04d1b Centre the tournament end bracket text 2013-08-21 00:00:45 +10:00
小太
3c0e3b1a1e Merge remote-tracking branch 'upstream/master' into tournaments 2013-08-20 22:49:31 +10:00
小太
dfc2f301c7 Display final bracket at tournament end 2013-08-20 21:59:26 +10:00
小太
5d010cc7a5 Bold all tournament messages 2013-08-20 20:32:29 +10:00
小太
60385ad705 Whitespace 2013-08-20 20:31:41 +10:00
小太
9582aa84ab Don't wrap normal cells in tournament table 2013-08-19 23:22:38 +10:00
小太
4503e271fb Fix code not using tabs for indenting 2013-08-18 22:54:42 +10:00
小太
cf699c0494 Obliterate trailing whitespace 2013-08-18 22:48:11 +10:00
小太
69ec4eca39 Make the hidability of the tournament box (slightly) more obvious 2013-08-18 18:01:28 +10:00
小太
e3ef08de55 Hide the tournament toolbox if the tournament has started and the user is not in the tournament 2013-08-18 18:00:45 +10:00
小太
a7e69c0810 Basic tournament support 2013-08-10 19:19:52 +10:00
Guangcong Luo
60ce7dc72f Support chat room lists
Currently hardcoded for the official server only.
2013-07-03 02:32:27 -05:00
Guangcong Luo
703de08105 Minor GUI tweaks 2013-06-02 21:52:41 -05:00
Guangcong Luo
d3cf074478 Implement timer as CSS class 2013-06-01 12:47:55 -05:00
Guangcong Luo
18092d3653 Implement highlight as CSS class 2013-05-31 22:01:16 -05:00
Cathy J. Fitzpatrick
6efa454ec7 Don't show a horizontal scrollbar on chat logs 2013-05-25 01:59:40 -05:00
Cathy J. Fitzpatrick
ddca39f096 Re-implement testclient.html to parity with old client 2013-05-24 19:10:28 -06:00
Cathy J. Fitzpatrick
d070c4c362 Always use CSS3 animations for <blink> 2013-05-22 02:45:03 -05:00
Cathy J. Fitzpatrick
6c7d4cc08f Fix whitespace in previous commit 2013-05-22 02:38:20 -05:00
Cathy J. Fitzpatrick
032517142a Support <blink> 2013-05-22 02:37:07 -05:00
Guangcong Luo
f5ddfa6bef Fix IE9 gradient issues 2013-05-20 17:25:48 -05:00
Guangcong Luo
5e7cab6155 Battles shouldn't have a persistent header 2013-05-19 02:53:12 -05:00
Guangcong Luo
a51cb3afd9 Fade the credits bullets 2013-05-19 01:46:51 -05:00
Guangcong Luo
cfdb746991 Yilx's new shinier background 2013-05-18 23:59:28 -05:00
Guangcong Luo
6197c1d0d9 More appearance tweaks 2013-05-15 00:25:35 -07:00
Guangcong Luo
25169f7be2 Appearance tweaks to popups 2013-05-15 00:10:17 -07:00
Guangcong Luo
c662e1f23d Appearance tweaks to credits page 2013-05-15 00:10:04 -07:00
Guangcong Luo
a794b1d9ad Credits page (sorted alphabetically) 2013-05-14 23:14:41 -07:00
Guangcong Luo
4ef925834d Fix close button alignment in IE 2013-05-14 20:32:41 -07:00
Guangcong Luo
730c2c6403 Overflow tabs 2013-05-14 20:27:39 -07:00
Guangcong Luo
f9443c5aa1 Support /warn 2013-05-12 23:58:51 -07:00
Guangcong Luo
a59925e230 Simpler popup API: remove superfluous id 2013-05-12 23:49:26 -07:00
Guangcong Luo
553010edfa Fix icon alignment in iPad 2013-05-11 23:08:00 -07:00
Guangcong Luo
c01f291bc7 Battle list 2013-05-09 19:14:13 -07:00
Guangcong Luo
bb0a730e69 Fix a bunch of crashes and errors 2013-05-09 17:56:25 -07:00
Guangcong Luo
c21ac077df Low-res battle support 2013-05-09 02:22:47 -07:00
Guangcong Luo
63bbbb4ab5 Implement notifications 2013-05-08 21:21:19 -07:00
Guangcong Luo
e404f520f6 Options menu, sound menu, and registration 2013-05-07 02:37:34 -07:00
Guangcong Luo
40d3b9901d Make the gap between rooms gray 2013-05-06 22:56:29 -07:00
Guangcong Luo
d463c4be3a Teambuilder and battle appearance tweaks 2013-05-06 15:33:48 -07:00
Guangcong Luo
d9b0e816eb Teambuilder delete set feature 2013-05-06 12:57:20 -07:00
Guangcong Luo
314559d4b8 Support pokemon/move/item/ability menus in teambuilder 2013-05-06 12:27:43 -07:00
Guangcong Luo
4ef76e1b2f Smaller EV suggester button 2013-05-06 01:18:59 -07:00
Guangcong Luo
c063485485 Teambuilder: working details and stats editors 2013-05-06 00:33:07 -07:00
Guangcong Luo
d87ae18eaf Minor visual tweaks 2013-05-05 19:49:01 -07:00
Guangcong Luo
26e37f4b0f Semimodal popup support 2013-05-05 17:15:13 -07:00
Guangcong Luo
4241d8b981 Minor style tweaks 2013-05-04 22:17:26 -07:00
Guangcong Luo
3bd477de93 Align room titles more nicely 2013-05-04 22:12:12 -07:00
Guangcong Luo
29f6436331 Right tabs no longer overlap with left tabs 2013-05-04 20:16:52 -07:00
Guangcong Luo
27165375b4 Minor appearance tweaks 2013-05-04 18:54:54 -07:00
Guangcong Luo
96d1ff32e3 Minor appearance improvements 2013-05-04 02:54:11 -07:00
Guangcong Luo
7fa93ff0f6 Nicer looking format/team select menus 2013-05-04 01:49:53 -07:00
Guangcong Luo
7d23df831c Fix 3 column team menu 2013-05-04 01:49:27 -07:00
Guangcong Luo
6995515e1b Minor appearance tweaks 2013-05-04 01:20:14 -07:00
Guangcong Luo
e7ea6b471b Stub formats/teams chooser 2013-05-04 00:43:41 -07:00
Guangcong Luo
a39f6f878e Battle tooltips 2013-05-03 17:40:33 -07:00
Guangcong Luo
cbbe5e1a76 Support playing in battles 2013-05-03 16:02:33 -07:00
Guangcong Luo
756bb61f27 Stub challenge UI 2013-05-03 01:27:01 -07:00
Guangcong Luo
e91b711553 Fit the teambuilder in 640px 2013-05-02 22:58:27 -07:00
Guangcong Luo
8fee1acbc0 Fix for blurry room icons 2013-05-02 22:24:35 -07:00
Guangcong Luo
4e2f4b63c7 Make sure footer links don't overlap with anything 2013-05-02 22:11:57 -07:00
Guangcong Luo
082af725b3 Add footer links 2013-05-02 20:16:52 -07:00
Guangcong Luo
0ab22ab162 Stub battle room
Watching (but not playing) battles is now supported
2013-05-02 00:17:09 -07:00
Guangcong Luo
0327ff1dd9 Nicer link styles 2013-05-01 22:42:38 -07:00
Guangcong Luo
df10f106f8 Upgrade Font-Awesome to 3.0.2 2013-05-01 22:42:16 -07:00
Guangcong Luo
5ae1211d9c Fix styling on battle links 2013-05-01 20:37:39 -07:00
Guangcong Luo
11b97ee0cd Userbar tweaks 2013-05-01 15:17:40 -07:00
Guangcong Luo
a88c04852e Fix up some PM markup 2013-05-01 04:22:44 -07:00
Guangcong Luo
54fbcfe696 Name in userbar now clickable 2013-05-01 04:20:43 -07:00
Guangcong Luo
005f748113 Show rooms in user popup 2013-05-01 04:12:42 -07:00
Guangcong Luo
7f6aaef666 Stub userbar 2013-04-30 18:49:31 -07:00
Guangcong Luo
f036e75882 Support old/new protocol for joining rooms 2013-04-30 18:49:06 -07:00
Guangcong Luo
1d09e68301 Support various lobby chat CSS 2013-04-30 18:47:22 -07:00
Guangcong Luo
db3b992319 Inconsequential hover states on PM windows 2013-04-30 13:49:06 -07:00
Guangcong Luo
e1040e6529 Highlight active PM 2013-04-30 13:37:57 -07:00
Guangcong Luo
0dce61aa38 Minor appearance tweaks 2013-04-30 11:36:18 -07:00
Guangcong Luo
c7a13d5e76 PM functionality! 2013-04-30 02:29:41 -07:00
Guangcong Luo
61f838cc7e Pop-up menus\!
They're currently only used for viewing users
2013-04-29 22:54:53 -07:00
Guangcong Luo
b436f44fb9 Support PMs and console messages (inline only) 2013-04-29 13:00:27 -07:00
Guangcong Luo
978dc5b5e0 Fill out teambuilder stub a bit
Now everything except pokemon editing is done.
2013-04-29 11:24:53 -07:00
Guangcong Luo
76f1726e9b Narrower main menu 2013-04-29 11:21:56 -07:00
Guangcong Luo
a2427f60e0 Minor visual tweaks to lobby chat 2013-04-28 14:26:46 -07:00
Guangcong Luo
902c2b18dc Design improvements to ladder room
The ladder room is now at parity with the old client's ladder page.
2013-04-27 19:50:03 -07:00
Guangcong Luo
79ff72b9db Design improvements to lobby chat 2013-04-27 19:48:09 -07:00
Guangcong Luo
a12e379c30 Show userlist if screen is wide enough 2013-04-27 19:48:04 -07:00
Guangcong Luo
0e53fe3e9f More chat styling fixes 2013-04-27 19:46:29 -07:00
Guangcong Luo
57ca71bf77 Fix some chat styling 2013-04-27 13:23:55 -07:00
Guangcong Luo
ff9c2d2bed Style chatrooms 2013-04-27 13:02:22 -07:00
Guangcong Luo
e4b7d6c296 Stub lobby chat implementation 2013-04-27 02:00:56 -07:00
Guangcong Luo
f38cbdb9e1 Yilx's in-progress background 2013-04-27 01:48:43 -07:00
Guangcong Luo
ed6f23cf6c Stub teambuilder 2013-04-26 17:58:54 -07:00
Guangcong Luo
0413a49f6c Less margin between tab groups 2013-04-26 16:29:21 -07:00
Guangcong Luo
d37cdfc91c Squarer tabs 2013-04-26 15:45:12 -07:00
Guangcong Luo
8a98a0d233 Implement side rooms 2013-04-26 14:52:07 -07:00
Guangcong Luo
68e574cc52 Stub new client 2013-04-26 01:23:22 -07:00