Fix: revise UI

This commit is contained in:
2018-12-12 00:57:35 +09:00
parent f3a0c469b6
commit c13d81158f
5 changed files with 18 additions and 13 deletions
+1 -1
View File
@@ -147,7 +147,7 @@ ChartRecord.getPosY = function(rowIndex) {
}
ChartRecord.getDefaultFontStyle = function() {
return { font: "28px Arial", fill: "#fff", align: "center" };
return { font: "26px Arial", fill: "#ffc", align: "center" };
}
ChartRecord.GAP_RECORD_Y = 40;
+7 -3
View File
@@ -262,9 +262,9 @@ InputScore.prototype.setVisibleSubjectPanel = function(flag, companyName) {
}
}
InputScore.prototype.onClickCompanySubjectButton = function(subjectName) {
this.setSubjectFullname(subjectName);
this.selectedSubjectData = this.licenseDataManager.getSubjectDataByName(subjectName);
InputScore.prototype.onClickCompanySubjectButton = function(subjectFullname) {
this.setSubjectFullname(subjectFullname);
this.selectedSubjectData = this.licenseDataManager.getSubjectDataByName(subjectFullname);
}
@@ -282,8 +282,12 @@ InputScore.prototype.makePanelSprite = function(x, y, width, height, color) {
InputScore.prototype.onClickSendToServerButton = function() {
console.log("send data to server");
console.log(this.subjectFullname);
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);
}
@@ -1,4 +1,4 @@
var licenseCompanySubjectList = [
var licenseDataList = [
{
companyName: "ITQ",
subjectData: [
@@ -21,13 +21,13 @@ function LicenseDataManager() {
this.companies = [];
this.subjects = [];
// console.log(licenseCompanySubjectList);
// console.log(licenseDataList);
this.maxSubjectCount = 0;
for(var i = 0; i < licenseCompanySubjectList.length; i++) {
this.companies[i] = licenseCompanySubjectList[i].companyName;
for(var i = 0; i < licenseDataList.length; i++) {
this.companies[i] = licenseDataList[i].companyName;
var subjectCount = 0;
var companyData = licenseCompanySubjectList[i];
var companyData = licenseDataList[i];
// console.log(companyData);
var subjectData = companyData.subjectData;
// console.log(subjectData);
+5 -4
View File
@@ -135,13 +135,13 @@ Timer.prototype.makeResetButton = function() {
Timer.prototype.makePlayButton = function() {
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.width = 120;
setting.height = 120;
setting.strokeWidthPx = 5;
setting.roundAmount = 90;
setting.fontStyle.fontSize = 80;
setting.fontStyle.fontSize = 60;
// blue tone
setting.setStrokeColor(
@@ -172,13 +172,14 @@ Timer.prototype.makePlayButton = function() {
Timer.prototype.makePauseButton = function() {
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.width = 120;
setting.height = 120;
setting.strokeWidthPx = 5;
setting.roundAmount = 90;
setting.fontStyle.fontSize = 50;
setting.fontStyle.fontSize = 40;
setting.fontStyle.fontWeight = "bold";
// gray tone
setting.setStrokeColor(