Commit Graph

22 Commits

Author SHA1 Message Date
Guangcong Luo
90b55aaa33 Update search code for Dex improvements
- introduce overrideType, overrideMoveType teambuilder tables
- support displaying search filters outside of results
2016-11-13 23:09:16 -05:00
Guangcong Luo
3084bce157 Teambuilder: Redesign pokemon/move sorting 2016-11-04 05:39:27 -04:00
Guangcong Luo
256885354e Teambuilder: Support sorting moves 2016-10-04 06:34:28 -04:00
Guangcong Luo
385c284c96 Support sorting pokemon in teambuilder 2016-03-05 22:46:22 -06:00
Guangcong Luo
04e96af909 Dark mode (beta)
Exactly what it says on the tin.

Most things aren't particularly dark, but at the moment there aren't
any parts that look particularly ugly, so I consider this a mild
success.

More changes planned.
2016-01-21 02:34:26 -08:00
Guangcong Luo
5c3fd929d1 Teambuilder: Use new XY pokemon icons 2015-12-24 11:33:26 -05:00
Guangcong Luo
4981a223b0 Teambuilder: Improve past gen support
This is a large collection of changes that greatly improve past gen
support in the teambuilder.

- Tier lists are now compiled separately from each gen (build-indexes
  is really slow about this, which isn't particularly surprising),
  as well as for Doubles.

- Learnsets are now compiled separately from each gen. TODO: make an
  optimized learnsets.js with gen 1-2 support for client.

- Types in the pokemon list now account for old gens.

- Abilities no longer display in the pokemon list in gen 1-2

- SpA/SpD are replaced by Spc in the pokemon list in gen 1

Also included: A small optimization to the number of DOM nodes for the
teambuilder display, which should improve performance.
2015-12-24 11:33:25 -05:00
Guangcong Luo
7fa72c1d20 Convert teambuilder from utilichart.js to search.js
The teambuilder is now running on search.js! Not all new features I'd
like to be in are in, but we've now reached feature parity, and most
of the bugs I found during testing have been fixed.

New in search.js is on-demand DOM loading, which basically means
much faster performance because instead of trying to load every single
row of e.g. the pokemon list at once, we just load the part that's
visible, and load the rest only when you scroll it into view.

Also new in search.js is a dexsearch-like feature, replacing the old
details-search system. The new filter system is simpler and more powerful
and has the same API as /dexsearch, although not all the more advanced
dexsearch features are supported.

On-demand DOM loading makes teambuilder loading pretty much completely
instantaneous. There are other small differences in how selection of
pokemon/items/abilities/moves works, but it should overall make more
sense.
2015-12-22 00:06:27 -06:00
Guangcong Luo
bc43ed68b2 Support search filters in search.js
This is the main feature necessary to bring it up to parity with the
old teambuilder, and it's actually a bit beyond parity now, and is a
pretty nice feature right now.
2015-12-21 00:31:44 -05:00
Guangcong Luo
11e3863aa7 Improve utilichart/search code
The utilichart-relevant code has been overhauled for simplicity.

Utilichart results and headers are now both 33 pixels tall, total.

Headers are slightly larger, to make them fill the space better. The
larger font size makes them more header-like, anyway.

Results are two pixels taller than before, giving them enough room for
gen 6 pokemon icons (not enabled in this commit), and in general
aiding performance slightly (fewer result rows on the screen at a
time).

Making them both 33 pixels allows height to be computed precisely
as 33*rows, which is relevant for result rows to be inserted into
the DOM on-demand.

On-demand DOM insertion has previously been implemented in pokedex.js,
but the new on-demand DOM code in search.js works slightly differently.
It makes stronger assumptions (that the only bottleneck is DOM
insertion speed, and that ctrl+f without scrolling to the bottom
doesn't need to be supported, and that result rows and result
headers are always 33 pixels tall), which makes for much simpler
code, and is presumably slightly faster because of this.

The new on-demand DOM code is surfaced by an "All results" button
in the pokedex (pokemonshowdown.com/dex/), for basic testing, but
the long-term plan is for it to be used in the teambuilder for
pokemon/etc selection, to massively increase performance.

Nearly two years after I wrote search.js to be a better utilichart
API than utilichart.js, we'll soon finally start using it in place of
utilichart.js in the main sim teambuilder!
2015-12-20 04:28:15 -05:00
Guangcong Luo
cbd398cdeb Update CSS file standards
This commit updates battle.css, replay.css, and utilichart.css to
match the new standard set in client.css.

Specifically: { is now inline with the last line of the selector.
2015-11-06 06:20:45 -05:00
Konrad Borowski
4a2cb72ce4 Link to Showdown dex in /data 2015-07-11 21:22:51 +02:00
Guangcong Luo
4f0c7eb66f Utilichart layout tweaks 2013-06-04 12:52:54 -05:00
Guangcong Luo
801e932244 1px vertical padding for utilichart 2013-06-04 01:42:36 -05:00
Guangcong Luo
c865410550 PP column in teambuilder and /data 2013-05-14 12:30:13 -07:00
Guangcong Luo
b6eb7c05bf Fix word-wrap in !data 2013-04-23 18:45:58 -07:00
Guangcong Luo
544abfab40 Remove underlines from utilichart entries 2013-04-20 21:00:55 -07:00
Guangcong Luo
f5b751cf6e New search system: Support tagged search results 2013-04-19 23:18:53 -07:00
Guangcong Luo
6038b58088 Make all /data types the same width 2013-04-19 14:40:20 -07:00
Guangcong Luo
252f267d01 Better wrapping for /data 2013-04-19 14:03:08 -07:00
Guangcong Luo
bc1b6d4b5d Compress move data row a bit 2013-04-18 17:27:02 -07:00
Guangcong Luo
e5f3c72348 Split replayer.css
replayer.css was sort of a badly defined file: it started out as
being all the CSS used by the replay viewer, except for the CSS
for battles. It then gained utilichart CSS, despite being mostly
unrelated.

Now, main layout is in main.css in the main domain, and replay
layout is in replay.css, and utilichart CSS is in utilchart.css.

replayer.css remains a legacy file for the old replay player.
Once we transition to the new replay player that uses replay.css,
I can get rid of replayer.css completely.
2013-04-11 21:07:46 -07:00