File tree 2 files changed +26
-3
lines changed
2 files changed +26
-3
lines changed Original file line number Diff line number Diff line change 2926
2926
buf += '</div></div>' ;
2927
2927
}
2928
2928
2929
+ console . log ( set . movePPUps ) ;
2930
+ for ( var i = 0 ; i <= 3 ; i ++ ) {
2931
+ buf += '<div class="formrow"><label class="formlabel" title="Move ' + ( i + 1 ) + ' PP Ups">Move ' + ( i + 1 ) + ' PP Ups:</label><div>' ;
2932
+ var defaultPPUps = toID ( set . moves [ i ] ) === 'trumpcard' ? 0 : 3 ;
2933
+ var movePPUps = defaultPPUps ;
2934
+ if ( set . movePPUps && ! isNaN ( set . movePPUps [ i ] ) ) movePPUps = set . movePPUps [ i ] ;
2935
+ console . log ( movePPUps ) ;
2936
+ buf += '<select name="move' + i + 'ppups" class="button">' ;
2937
+ for ( var j = 0 ; j <= 3 ; j ++ ) {
2938
+ if ( movePPUps === j ) console . log ( "match" ) ;
2939
+ buf += '<option value="' + j + '" ' + ( movePPUps === j ? 'selected' : '' ) + '>' + j + '</option>'
2940
+ }
2941
+ buf += '</select>' ;
2942
+ buf += '</div></div>' ;
2943
+ }
2944
+
2929
2945
buf += '</form>' ;
2930
2946
if ( species . cosmeticFormes ) {
2931
2947
buf += '<button class="altform button">Change sprite</button>' ;
3008
3024
delete set . teraType ;
3009
3025
}
3010
3026
3027
+ // PP Ups
3028
+ for ( var i = 0 ; i <= 3 ; i ++ ) {
3029
+ if ( ! set . movePPUps ) set . movePPUps = [ ] ;
3030
+ var PPUps = this . $chart . find ( 'select[name=move' + i + 'ppups]' ) . val ( ) ;
3031
+ set . movePPUps [ i ] = parseInt ( PPUps ) ;
3032
+ }
3033
+
3011
3034
// update details cell
3012
3035
var buf = '' ;
3013
3036
var GenderChart = {
Original file line number Diff line number Diff line change @@ -2859,12 +2859,12 @@ a.ilink.yours {
2859
2859
}
2860
2860
2861
2861
.detailsform .formrow {
2862
- padding-left : 100 px ;
2862
+ padding-left : 150 px ;
2863
2863
}
2864
2864
.detailsform .formrow .formlabel {
2865
2865
float : left;
2866
- margin-left : -100 px ;
2867
- width : 110 px ;
2866
+ margin-left : -150 px ;
2867
+ width : 165 px ;
2868
2868
text-align : right;
2869
2869
}
2870
2870
.changeform i {
You can’t perform that action at this time.
0 commit comments