Commit Graph

287 Commits

Author SHA1 Message Date
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
6491a7dba6 Redesign 'Look for a battle' button 2015-12-11 23:34:04 -05: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
999cf4b3a6 Center main menu on small layouts 2015-12-01 12:47:23 -06:00
Guangcong Luo
b718a335a2 News tracking 2015-11-30 02:11:27 -05:00
Guangcong Luo
c218046b77 Better support for 'working offline'
PS's UI is now updated to make it clearer whether or not you're
connected to a server, and which features are and aren't
available while disconnected.

The Reconnect? popup's "close" button has been renamed "Work offline",
to make it clearer that it's for people who want to continue using
the teambuilder or whatever while disconnected.

The button is a slight misnomer since some features, like the
Ladder, don't work without an internet connection.
2015-11-29 20:16:26 -05:00
Guangcong Luo
41326c5232 Support multiline buttons in Formats menu 2015-11-29 04:39:30 -05:00
Guangcong Luo
69e0b5fdc3 Nicer looking horizontal rules
They now look Web 2.0 instead of Web 1.0! ...namely, they're just
horizontal gray lines instead of weird attempts to look embossed.
2015-11-29 04:37:12 -05:00
Guangcong Luo
8264fea7d2 Add Meloetta icons to roomlist
2.7ish years ago, when I redesigned PS, PS's mascot was Meloetta,
and in the old design, there was a Meloetta-P icon on "Look for a
battle" and a Meloetta-A in the backgroud of the chat room.

The new design was built around custom backgrounds, and there
wasn't really room to fit Meloetta back in.

Well, now, I've finally fit Meloetta back in next to the user count
and battle count, and it actually looks pretty good there. Now more
people can be aware that PS has a mascot!
2015-11-28 04:36:41 -05:00
Guangcong Luo
f8ec5b9142 Redesign Mega Evolution checkbox 2015-11-19 06:55:22 -05:00
MasterFloat
a6291fe315 menugroup button - disabled state color change
When you looks for a battle you get this grey color which doesn't really suite the red button: http://prntscr.com/8z9e9g
So I changed it to the border's color (a bit darker): http://prntscr.com/8z9hx4
2015-11-05 12:00:41 +01:00
urkerab
fc5f5a0c9e Tooltips should be ignored by the mouse 2015-11-01 21:48:36 +00:00
Guangcong Luo
3533bc9ac2 Merge pull request #515 from urkerab/tour-elimination-highlight-user
Highlight the current user in elimination tournaments
2015-10-28 19:38:49 -05:00
Pedro Cardoso da Silva
685ddab60e Fix Team Import/Export barely visible > 640px width
Yeah, you could still drag the resizer down, but this make it less worse.
2015-10-28 10:04:18 -02:00
urkerab
6717c5f11f Highlight the current user in elimination tournaments 2015-10-20 11:25:21 +01:00
Ivo Julca
4bcc23dd50 User popups: visually indicate if the user is in the room/battle 2015-10-16 01:46:52 -05:00
urkerab
88f86589c6 Don't let room names overflow the tablist popup 2015-10-05 00:38:22 +01:00
Guangcong Luo
bdcbded0bb Update Font Awesome to 4.4.0
Font Awesome 3 -> 4 was a backwards-incompatible change, so this
update is pretty invasive. I tested everything we use it for and it
still works, though. Including supporting both Font Awesome versions
in battle.js.
2015-09-25 02:46:34 -05:00
Guangcong Luo
bb6b73b2dc Merge pull request #483 from urkerab/userlist-button-firefox
Firefox has magic button overflow
2015-09-24 14:56:42 -05:00
urkerab
42642f39b4 Firefox has magic button overflow 2015-09-24 09:52:34 +01:00
Guangcong Luo
447d11bd8a Improve visual appearance of PM header
Specifically, provide visual feedback that clicking it expands
and collapses PMs.
2015-09-23 20:23:01 -04:00
The Immortal
511cae6cf2 Merge pull request #475 from sobolews/teambuilder-validate
Add a validate button to the teambuilder
2015-09-19 21:12:28 +04:00
Carl Sobolewski
6855770aa6 Add a validate button to the teambuilder
The validate button sends the current team and a validation request to the
server. The server will respond with a positive acknowledgement for valid teams,
or else a list of problems (the same list as when seeking a battle).
2015-09-19 01:19:13 -06:00
urkerab
d54911cfe2 Preview your username colour as you type 2015-09-18 21:41:28 +01:00
urkerab
034b31ea52 Make teambuilder most resistant to zoom changes 2015-08-28 12:16:14 +01:00
urkerab
bd8dd3bf45 Make teambuilder more resistant to zoom changes 2015-08-26 14:37:31 +01:00
Guangcong Luo
099e5bcf68 Only show revealed Pokemon in main area
PS now tracks a lot more information about what information your
opponent does and doesn't know about you, for ease for keeping
track of things.
2015-07-26 03:43:53 -04:00
Guangcong Luo
d4ccabebef Redesign room join page
User and battle count are now buttons! Also, tables for layout,
but to be fair, the data is sort of tabular, and this is
basically the best option for this layout. Flexbox supposedly
fixes this, but we support plenty of browsers that don't
support flexbox, and I'm pragmatic enough to use tables here.
2015-07-24 03:18:32 -04:00
Guangcong Luo
7e4aa56313 Improve tournament UI
Some wording/layout is changed to look less ugly. This does come
with one major change, though: The team dropdown is now visible
at all times after clicking 'Join', and your selected team will
stay selected throughout the entire tournament.
2015-07-20 05:45:53 -04:00
Guangcong Luo
faf9ec33ce Support in-battle chat in low res 2015-07-17 14:41:30 -04:00
Guangcong Luo
99ae3f700d Zoom out teambuilder in mobile
The teambuilder honestly isn't great in mobile, but since it's
impossible to zoom out in mobile, it's better to start zoomed out
and let the user zoom in, than start zoomed in and not give the
user a choice.
2015-07-17 14:40:03 -04:00
Guangcong Luo
ba0a7e72ff Improve tab overflow button
With the tab overflow menu being perfect, I might as well fix the
button that opens it. It used to use default browser styles, which
was mostly fine in OS X but ugly on other systems, and nearly
unusable in iOS. The new one looks lovely on all OSes.
2015-07-17 14:40:03 -04:00
Guangcong Luo
ebd0bfef58 Fix disappearing Close button on tab overflow menu 2015-07-17 14:40:03 -04:00
Guangcong Luo
451a63348f Low-res topbar
We now support a new topbar optimized for low resolutions.
2015-07-17 03:10:57 -04:00
Guangcong Luo
59e01485a7 Nicer-looking tab overflow menu
.button styling has been consolidated in CSS, and the tab overflow
menu has been adjusted to use button styling, which is the "more
improvements in the future" mentioned by 69524e935b.

I now declare the tab overflow menu officially out of beta. Now
for the rest of PS!

The Ladder now also uses the new button styling, but it's not out
of beta yet, I just wanted to see how it looked.
2015-07-17 03:10:57 -04:00
Guangcong Luo
f91a6478ee Darken tab mouseover effect 2015-07-16 05:14:33 -04:00
Guangcong Luo
5a7acd09a9 Slightly faster tournament open/close animation 2015-07-15 19:04:28 -04:00
Guangcong Luo
838d855c72 Tweak chat appearance
- Highlighted messages now span the entire width of the chat.
- Highlighted and personal messages are more vertically centered.
- Links and code are again properly hidden by spoilers
2015-07-15 18:01:40 -04:00
Guangcong Luo
31c035abcb Make highlight background semitransparent 2015-07-15 06:03:22 -04:00
Guangcong Luo
1fdc52cbe7 Fix battle layout on iOS and old Android 2015-07-15 00:53:00 -04:00
Guangcong Luo
c63c75651a Improve teambuilder in low-res
This isn't a great improvement, and it involves horizontal scrollbars,
but it's still better than how it worked before.
2015-07-15 00:39:58 -04:00
Guangcong Luo
b96077039f Fix low-res userlist
The userlist in low-res mode now scrolls to top before collapsing,
which fixes the issue where it might not display the user-count
and toggle button.
2015-07-15 00:32:48 -04:00
Guangcong Luo
cce2fa5019 Responsive battle UI
Instead of our previous minimum width of 640px, the new battle UI is
now responsive down to 320px.

Screenshot: http://d.pr/i/17UYD/1V6IYX2T
2015-07-14 19:00:58 -04:00
Guangcong Luo
69524e935b Improve tab overflow menu
It might need more improvements in the future, but for now it's
already pretty good for switching between rooms.
2015-07-14 19:00:58 -04:00
Guangcong Luo
ccf73e7be9 Make PM/News close button easier to hit 2015-07-14 19:00:58 -04:00
Guangcong Luo
7d144dd411 Resize teambuilder clipboard
Old one was awkwardly wide
2015-07-14 19:00:58 -04:00
Guangcong Luo
ad692c2b6f Fix footer-mainmenu overlap on low res 2015-07-14 15:08:51 -04:00
Guangcong Luo
924ccd19fc Nicer tab overflow menu 2015-07-14 15:08:05 -04:00
Guangcong Luo
ebd77434d6 Show minimized userlist in low resolutions
Previously, the userlist would be completely hidden in low
resolutions, but now a user count is displayed in the top left
corner. When clicked, the entire userlist appears.
2015-07-14 15:07:38 -04:00
Ivo Julca
d2ccb0530a Remove deprecated message styles from client.css 2015-07-10 06:50:59 -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
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