Fix: revise UI
This commit is contained in:
@@ -147,7 +147,7 @@ ChartRecord.getPosY = function(rowIndex) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ChartRecord.getDefaultFontStyle = function() {
|
ChartRecord.getDefaultFontStyle = function() {
|
||||||
return { font: "28px Arial", fill: "#fff", align: "center" };
|
return { font: "26px Arial", fill: "#ffc", align: "center" };
|
||||||
}
|
}
|
||||||
|
|
||||||
ChartRecord.GAP_RECORD_Y = 40;
|
ChartRecord.GAP_RECORD_Y = 40;
|
||||||
|
|||||||
@@ -262,9 +262,9 @@ InputScore.prototype.setVisibleSubjectPanel = function(flag, companyName) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
InputScore.prototype.onClickCompanySubjectButton = function(subjectName) {
|
InputScore.prototype.onClickCompanySubjectButton = function(subjectFullname) {
|
||||||
this.setSubjectFullname(subjectName);
|
this.setSubjectFullname(subjectFullname);
|
||||||
this.selectedSubjectData = this.licenseDataManager.getSubjectDataByName(subjectName);
|
this.selectedSubjectData = this.licenseDataManager.getSubjectDataByName(subjectFullname);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -282,8 +282,12 @@ InputScore.prototype.makePanelSprite = function(x, y, width, height, color) {
|
|||||||
|
|
||||||
InputScore.prototype.onClickSendToServerButton = function() {
|
InputScore.prototype.onClickSendToServerButton = function() {
|
||||||
console.log("send data to server");
|
console.log("send data to server");
|
||||||
|
|
||||||
console.log(this.subjectFullname);
|
console.log(this.subjectFullname);
|
||||||
console.log(this.scoreText.value);
|
console.log(this.scoreText.value);
|
||||||
|
var subjectData = this.licenseDataManager.getSubjectDataByName(this.subjectFullname);
|
||||||
|
if(subjectData != null)
|
||||||
|
console.log(subjectData.getGrade(this.scoreText.value))
|
||||||
console.log(this.passwordText.value);
|
console.log(this.passwordText.value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
var licenseCompanySubjectList = [
|
var licenseDataList = [
|
||||||
{
|
{
|
||||||
companyName: "ITQ",
|
companyName: "ITQ",
|
||||||
subjectData: [
|
subjectData: [
|
||||||
|
|||||||
@@ -21,13 +21,13 @@ function LicenseDataManager() {
|
|||||||
this.companies = [];
|
this.companies = [];
|
||||||
this.subjects = [];
|
this.subjects = [];
|
||||||
|
|
||||||
// console.log(licenseCompanySubjectList);
|
// console.log(licenseDataList);
|
||||||
this.maxSubjectCount = 0;
|
this.maxSubjectCount = 0;
|
||||||
for(var i = 0; i < licenseCompanySubjectList.length; i++) {
|
for(var i = 0; i < licenseDataList.length; i++) {
|
||||||
this.companies[i] = licenseCompanySubjectList[i].companyName;
|
this.companies[i] = licenseDataList[i].companyName;
|
||||||
|
|
||||||
var subjectCount = 0;
|
var subjectCount = 0;
|
||||||
var companyData = licenseCompanySubjectList[i];
|
var companyData = licenseDataList[i];
|
||||||
// console.log(companyData);
|
// console.log(companyData);
|
||||||
var subjectData = companyData.subjectData;
|
var subjectData = companyData.subjectData;
|
||||||
// console.log(subjectData);
|
// console.log(subjectData);
|
||||||
|
|||||||
@@ -135,13 +135,13 @@ Timer.prototype.makeResetButton = function() {
|
|||||||
|
|
||||||
Timer.prototype.makePlayButton = function() {
|
Timer.prototype.makePlayButton = function() {
|
||||||
var setting = new RoundRectButtonSetting(0, 0, 0, 0);
|
var setting = new RoundRectButtonSetting(0, 0, 0, 0);
|
||||||
setting.x = game.world.width - 100;
|
setting.x = game.world.width - 115;
|
||||||
setting.y = this.timerCenterY;
|
setting.y = this.timerCenterY;
|
||||||
setting.width = 120;
|
setting.width = 120;
|
||||||
setting.height = 120;
|
setting.height = 120;
|
||||||
setting.strokeWidthPx = 5;
|
setting.strokeWidthPx = 5;
|
||||||
setting.roundAmount = 90;
|
setting.roundAmount = 90;
|
||||||
setting.fontStyle.fontSize = 80;
|
setting.fontStyle.fontSize = 60;
|
||||||
|
|
||||||
// blue tone
|
// blue tone
|
||||||
setting.setStrokeColor(
|
setting.setStrokeColor(
|
||||||
@@ -172,13 +172,14 @@ Timer.prototype.makePlayButton = function() {
|
|||||||
|
|
||||||
Timer.prototype.makePauseButton = function() {
|
Timer.prototype.makePauseButton = function() {
|
||||||
var setting = new RoundRectButtonSetting(0, 0, 0, 0);
|
var setting = new RoundRectButtonSetting(0, 0, 0, 0);
|
||||||
setting.x = game.world.width - 100;
|
setting.x = game.world.width - 115;
|
||||||
setting.y = this.timerCenterY;
|
setting.y = this.timerCenterY;
|
||||||
setting.width = 120;
|
setting.width = 120;
|
||||||
setting.height = 120;
|
setting.height = 120;
|
||||||
setting.strokeWidthPx = 5;
|
setting.strokeWidthPx = 5;
|
||||||
setting.roundAmount = 90;
|
setting.roundAmount = 90;
|
||||||
setting.fontStyle.fontSize = 50;
|
setting.fontStyle.fontSize = 40;
|
||||||
|
setting.fontStyle.fontWeight = "bold";
|
||||||
|
|
||||||
// gray tone
|
// gray tone
|
||||||
setting.setStrokeColor(
|
setting.setStrokeColor(
|
||||||
|
|||||||
Reference in New Issue
Block a user