Add short description for setting model preference

This commit is contained in:
printempw 2018-06-19 17:33:55 +08:00
parent c9f9a8ddb2
commit e7f95fe956
4 changed files with 10 additions and 5 deletions

View File

@ -37,8 +37,8 @@ const playersTableColumnDefs = [
render: data => {
return `
<select class="form-control" onchange="changePreference.call(this)">
<option ${(data === 'default') ? 'selected=selected' : ''} value="default">Default</option>
<option ${(data === 'slim') ? 'selected=selected' : ''} value="slim">Slim</option>
<option ${(data === 'default') ? 'selected=selected' : ''} value="default">Default (Steve)</option>
<option ${(data === 'slim') ? 'selected=selected' : ''} value="slim">Slim (Alex)</option>
</select>`;
}
},

View File

@ -107,6 +107,7 @@ player:
preference:
title: Preference
description: Default stands for the Steve model with 4-pixel width arms, and Slim for the Alex model with 3-pixel width arms.
success: The preference of player :name was updated to :preference
profile:

View File

@ -111,6 +111,7 @@ player:
preference:
title: 优先模型
description: Default 即为默认的 Steve 模型(手臂 4 个像素宽Slim 即为手臂宽 3 个像素的 Alex 模型。
success: 角色 :name 的优先模型已更改至 :preference
profile:

View File

@ -24,7 +24,10 @@
<tr>
<th>PID</th>
<th>{{ trans('user.player.player-name') }}</th>
<th>{{ trans('user.player.preference.title') }}</th>
<th>
{{ trans('user.player.preference.title') }}
<i class="fa fa-question-circle" title="{{ trans('user.player.preference.description') }}" data-toggle="tooltip" data-placement="right"></i>
</th>
<th>{{ trans('user.player.edit') }}</th>
<th>{{ trans('user.player.operation') }}</th>
</tr>
@ -37,8 +40,8 @@
<td class="player-name">{{ $player['player_name'] }}</td>
<td>
<select class="form-control" id="preference" pid="{{ $player['pid'] }}">
<option {{ ($player['preference'] == "default") ? 'selected="selected"' : '' }} value="default">Default</option>
<option {{ ($player['preference'] == "slim") ? 'selected="selected"' : '' }} value="slim">Slim</option>
<option {{ ($player['preference'] == "default") ? 'selected="selected"' : '' }} value="default">Default (Steve)</option>
<option {{ ($player['preference'] == "slim") ? 'selected="selected"' : '' }} value="slim">Slim (Alex)</option>
</select>
</td>
<td>