mirror of
https://github.com/DragonMinded/bemaniutils.git
synced 2026-04-27 10:36:49 -05:00
Apply tweaks to reflec frontend.
This commit is contained in:
parent
0af53a5163
commit
21fb210439
|
|
@ -38,17 +38,17 @@ class ReflecBeatFrontend(FrontendBase):
|
|||
formatted_score['achievement_rate'] = score.data.get_int('achievement_rate', -1)
|
||||
formatted_score['miss_count'] = score.data.get_int('miss_count', -1)
|
||||
formatted_score['clear_type'] = {
|
||||
ReflecBeatBase.CLEAR_TYPE_NO_PLAY: 'No Play',
|
||||
ReflecBeatBase.CLEAR_TYPE_FAILED: 'Failed',
|
||||
ReflecBeatBase.CLEAR_TYPE_CLEARED: 'Cleared',
|
||||
ReflecBeatBase.CLEAR_TYPE_HARD_CLEARED: 'Hard Cleared',
|
||||
ReflecBeatBase.CLEAR_TYPE_S_HARD_CLEARED: 'S-Hard Cleared',
|
||||
}.get(score.data.get_int('clear_type'), 'Failed')
|
||||
ReflecBeatBase.CLEAR_TYPE_NO_PLAY: 'NO PLAY',
|
||||
ReflecBeatBase.CLEAR_TYPE_FAILED: 'FAILED',
|
||||
ReflecBeatBase.CLEAR_TYPE_CLEARED: 'CLEARED',
|
||||
ReflecBeatBase.CLEAR_TYPE_HARD_CLEARED: 'HARD CLEARED',
|
||||
ReflecBeatBase.CLEAR_TYPE_S_HARD_CLEARED: 'S-HARD CLEARED',
|
||||
}.get(score.data.get_int('clear_type'), 'FAILED')
|
||||
formatted_score['combo_type'] = {
|
||||
ReflecBeatBase.COMBO_TYPE_NONE: '',
|
||||
ReflecBeatBase.COMBO_TYPE_ALMOST_COMBO: 'Almost Full Combo',
|
||||
ReflecBeatBase.COMBO_TYPE_FULL_COMBO: 'Full Combo',
|
||||
ReflecBeatBase.COMBO_TYPE_FULL_COMBO_ALL_JUST: 'Full Combo + All Just',
|
||||
ReflecBeatBase.COMBO_TYPE_ALMOST_COMBO: 'ALMOST FULL COMBO',
|
||||
ReflecBeatBase.COMBO_TYPE_FULL_COMBO: 'FULL COMBO',
|
||||
ReflecBeatBase.COMBO_TYPE_FULL_COMBO_ALL_JUST: 'FULL COMBO + ALL JUST',
|
||||
}.get(score.data.get_int('combo_type'), '')
|
||||
formatted_score['medal'] = score.data.get_int('combo_type') * 1000 + score.data.get_int('clear_type')
|
||||
return formatted_score
|
||||
|
|
@ -59,17 +59,17 @@ class ReflecBeatFrontend(FrontendBase):
|
|||
formatted_attempt['achievement_rate'] = attempt.data.get_int('achievement_rate', -1)
|
||||
formatted_attempt['miss_count'] = attempt.data.get_int('miss_count', -1)
|
||||
formatted_attempt['clear_type'] = {
|
||||
ReflecBeatBase.CLEAR_TYPE_NO_PLAY: 'No Play',
|
||||
ReflecBeatBase.CLEAR_TYPE_FAILED: 'Failed',
|
||||
ReflecBeatBase.CLEAR_TYPE_CLEARED: 'Cleared',
|
||||
ReflecBeatBase.CLEAR_TYPE_HARD_CLEARED: 'Hard Cleared',
|
||||
ReflecBeatBase.CLEAR_TYPE_S_HARD_CLEARED: 'S-Hard Cleared',
|
||||
}.get(attempt.data.get_int('clear_type'), 'Failed')
|
||||
ReflecBeatBase.CLEAR_TYPE_NO_PLAY: 'NO PLAY',
|
||||
ReflecBeatBase.CLEAR_TYPE_FAILED: 'FAILED',
|
||||
ReflecBeatBase.CLEAR_TYPE_CLEARED: 'CLEARED',
|
||||
ReflecBeatBase.CLEAR_TYPE_HARD_CLEARED: 'HARD CLEARED',
|
||||
ReflecBeatBase.CLEAR_TYPE_S_HARD_CLEARED: 'S-HARD CLEARED',
|
||||
}.get(attempt.data.get_int('clear_type'), 'FAILED')
|
||||
formatted_attempt['combo_type'] = {
|
||||
ReflecBeatBase.COMBO_TYPE_NONE: '',
|
||||
ReflecBeatBase.COMBO_TYPE_ALMOST_COMBO: 'Almost Full Combo',
|
||||
ReflecBeatBase.COMBO_TYPE_FULL_COMBO: 'Full Combo',
|
||||
ReflecBeatBase.COMBO_TYPE_FULL_COMBO_ALL_JUST: 'Full Combo + All Just',
|
||||
ReflecBeatBase.COMBO_TYPE_ALMOST_COMBO: 'ALMOST FULL COMBO',
|
||||
ReflecBeatBase.COMBO_TYPE_FULL_COMBO: 'FULL COMBO',
|
||||
ReflecBeatBase.COMBO_TYPE_FULL_COMBO_ALL_JUST: 'FULL COMBO + ALL JUST',
|
||||
}.get(attempt.data.get_int('combo_type'), '')
|
||||
formatted_attempt['medal'] = attempt.data.get_int('combo_type') * 1000 + attempt.data.get_int('clear_type')
|
||||
return formatted_attempt
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ var all_players = React.createClass({
|
|||
}.bind(this),
|
||||
},
|
||||
{
|
||||
name: 'Play Count',
|
||||
name: 'Total Rounds',
|
||||
render: function(userid) {
|
||||
var player = this.state.players[userid];
|
||||
return player.plays;
|
||||
|
|
|
|||
|
|
@ -59,13 +59,13 @@ var profile_view = React.createClass({
|
|||
</div>
|
||||
<div className="section">
|
||||
<LabelledSection label="User ID">{player.extid}</LabelledSection>
|
||||
<LabelledSection label="Register Time">
|
||||
<LabelledSection label="Profile Created">
|
||||
<Timestamp timestamp={player.first_play_time}/>
|
||||
</LabelledSection>
|
||||
<LabelledSection label="Last Play Time">
|
||||
<LabelledSection label="Last Played">
|
||||
<Timestamp timestamp={player.last_play_time}/>
|
||||
</LabelledSection>
|
||||
<LabelledSection label="Total Plays">
|
||||
<LabelledSection label="Total Rounds">
|
||||
{player.plays}回
|
||||
</LabelledSection>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -57,10 +57,10 @@ var HighScore = React.createClass({
|
|||
<span className="score">{this.props.score.points}</span>
|
||||
<span className="label">M</span>
|
||||
<span className="score">{this.props.score.miss_count < 0 ? '-' : this.props.score.miss_count}</span>
|
||||
</div>
|
||||
<div>
|
||||
{this.props.score.combo > 0 ? <span>
|
||||
<span className="label">Combo</span>
|
||||
<span className="score">{this.props.score.combo < 0 ? '-' : this.props.score.combo}</span>
|
||||
</span> : null}
|
||||
</div>
|
||||
<div>
|
||||
<span className="status">{this.props.score.combo_type}</span>
|
||||
|
|
@ -231,8 +231,10 @@ var network_records = React.createClass({
|
|||
if (paginate && curpage != this.state.subtab) { return null; }
|
||||
|
||||
return (
|
||||
<tr key={((-songid) - 1).toString()}>
|
||||
<td className="subheader">{ this.state.versions[(-songid) - 1] }</td>
|
||||
<tr key={((-songid) - 1).toString()} className="header">
|
||||
<td className="subheader">{
|
||||
!paginate ? this.state.versions[(-songid) - 1] : "Song / Artist / Difficulties"
|
||||
}</td>
|
||||
<td className="subheader">Basic</td>
|
||||
<td className="subheader">Medium</td>
|
||||
<td className="subheader">Hard</td>
|
||||
|
|
@ -501,10 +503,11 @@ var network_records = React.createClass({
|
|||
|
||||
renderBySongIDList: function(songids, showplays) {
|
||||
return (
|
||||
<div className="section">
|
||||
<table className="list records">
|
||||
<thead>
|
||||
<tr>
|
||||
<th className="subheader">Song</th>
|
||||
<th className="subheader">Song / Artist / Difficulties</th>
|
||||
<th className="subheader">Basic</th>
|
||||
<th className="subheader">Medium</th>
|
||||
<th className="subheader">Hard</th>
|
||||
|
|
@ -602,6 +605,7 @@ var network_records = React.createClass({
|
|||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
);
|
||||
},
|
||||
|
||||
|
|
|
|||
|
|
@ -76,10 +76,10 @@ var network_scores = React.createClass({
|
|||
<span className="score">{score.points}</span>
|
||||
<span className="label">M</span>
|
||||
<span className="score">{score.miss_count < 0 ? '-' : score.miss_count}</span>
|
||||
</div>
|
||||
<div>
|
||||
{score.combo > 0 ? <span>
|
||||
<span className="label">Combo</span>
|
||||
<span className="score">{score.combo < 0 ? '-' : score.combo}</span>
|
||||
</span> : null}
|
||||
</div>
|
||||
<div>
|
||||
<span className="status">{score.combo_type}</span>
|
||||
|
|
@ -98,8 +98,8 @@ var network_scores = React.createClass({
|
|||
<tr>
|
||||
{ window.shownames ? <th>Name</th> : null }
|
||||
<th>Timestamp</th>
|
||||
<th>Song</th>
|
||||
<th>Chart</th>
|
||||
<th>Song / Artist</th>
|
||||
<th>Difficulty</th>
|
||||
<th>Score</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
|
|
|||
|
|
@ -151,11 +151,18 @@ var top_scores = React.createClass({
|
|||
},
|
||||
{
|
||||
name: 'Combo',
|
||||
render: function(topscore) { return topscore.combo > 0 ? topscore.combo : '-'; },
|
||||
render: function(topscore) { return topscore.combo > 0 ? topscore.combo : ''; },
|
||||
sort: function(a, b) {
|
||||
return a.combo - b.combo;
|
||||
},
|
||||
reverse: true,
|
||||
},
|
||||
{
|
||||
name: 'Miss Count',
|
||||
render: function(topscore) { return topscore.miss_count > 0 ? topscore.miss_count : '-'; },
|
||||
render: function(topscore) { return topscore.miss_count; },
|
||||
sort: function(a, b) {
|
||||
return a.miss_count - b.miss_count;
|
||||
},
|
||||
},
|
||||
]}
|
||||
defaultsort='Score'
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user