mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-10-01 23:32:02 -05:00
Smaller EV suggester button
This commit is contained in:
@@ -541,19 +541,19 @@
|
||||
var guessedEVs = {};
|
||||
var guessedPlus = '';
|
||||
var guessedMinus = '';
|
||||
buf += '<p><small>Suggested spread:';
|
||||
buf += '<p class="suggested"><small>Suggested spread:';
|
||||
if (role === '?') {
|
||||
buf += '<br />(Please choose 4 moves to get a suggested spread)</small></p>';
|
||||
buf += ' (Please choose 4 moves to get a suggested spread)</small></p>';
|
||||
} else {
|
||||
guessedEVs = this.guessEVs(role);
|
||||
guessedPlus = guessedEVs.plusStat; delete guessedEVs.plusStat;
|
||||
guessedMinus = guessedEVs.minusStat; delete guessedEVs.minusStat;
|
||||
buf += ' <br /></small><button name="setStatFormGuesses">';
|
||||
buf += ' </small><button name="setStatFormGuesses">'+role+': ';
|
||||
for (var i in guessedEVs) {
|
||||
buf += ''+guessedEVs[i]+' '+BattleStatNames[i]+' / ';
|
||||
}
|
||||
buf += ' (+'+BattleStatNames[guessedPlus]+', -'+BattleStatNames[guessedMinus]+')</button>';
|
||||
buf += ' <small><br />('+role+' | bulk: phys '+Math.round(this.moveCount.physicalBulk/1000)+' + spec '+Math.round(this.moveCount.specialBulk/1000)+' = '+Math.round(this.moveCount.bulk/1000)+')</small></p>';
|
||||
buf += ' (+'+BattleStatNames[guessedPlus]+', -'+BattleStatNames[guessedMinus]+')</button></p>';
|
||||
//buf += ' <small>('+role+' | bulk: phys '+Math.round(this.moveCount.physicalBulk/1000)+' + spec '+Math.round(this.moveCount.specialBulk/1000)+' = '+Math.round(this.moveCount.bulk/1000)+')</small>';
|
||||
}
|
||||
|
||||
if (setGuessed) {
|
||||
|
||||
@@ -1727,9 +1727,12 @@ a.ilink:hover {
|
||||
}
|
||||
|
||||
.statform {
|
||||
padding: 10px 13px;
|
||||
padding: 3px 13px 10px 13px;
|
||||
font-size: 10pt;
|
||||
}
|
||||
.statform p.suggested {
|
||||
margin: 5px 0;
|
||||
}
|
||||
.statform .col > div {
|
||||
padding-top: 1px;
|
||||
height: 28px;
|
||||
|
||||
Reference in New Issue
Block a user