Skip to content
This repository has been archived by the owner on Dec 19, 2018. It is now read-only.

Commit

Permalink
Update setting window layouts
Browse files Browse the repository at this point in the history
Astro36 committed Sep 25, 2016
1 parent 606aca6 commit 894e8fa
Showing 1 changed file with 74 additions and 135 deletions.
209 changes: 74 additions & 135 deletions AstroLibrary.js
Original file line number Diff line number Diff line change
@@ -107,7 +107,7 @@ let me = this.me || {};
DEVICE_HEIGHT = CONTEXT.getScreenHeight(),
DEVICE_MODEL = Build_.MODEL,
DEVICE_VERSION = Build_.VERSION.RELEASE,
TRANSLATION_TEXT = "Cannot connect to the server.\n- 서버 오류. 이 오류를 발견한다면 즉시 개발자에게 알려주세요.\n\nCan not find player.\n- 맵 안에서만 사용 가능한 기능입니다.\n\nCannot find the user.\n- 서버에 올바르지 않은 계정 아이디가 입력되었습니다.\n\nIncompatible version. (Library version ≥ {version})\n- 라이브러리의 버전이 호환되지 않습니다. 최신 버전으로 업데이트해주세요.\n\nInvalid format.\n- 유효하지 않은 형식입니다.\n ID & Password: 4~12자리의 영어, 숫자, 언더바(_)만 사용 가능합니다.\n Name: 1~20자리의 영어, 숫자, 언더바(_)만 사용 가능합니다.\n E-mail: 네이버 E-mail만 사용 가능합니다.\n\nInvalid number.\n- 유효하지 않은 숫자입니다. 정수를 입력해주세요.\n\nInvalid parameters.\n- 스크립트 오류. 해당 스크립트 개발자에게 문의하세요.\n\nInvalid version format.\n- 유효하지 않은 버전 형식입니다. 1.0과 같은 형식으로 입력해주세요.\n\nNo Internet.\n- 인터넷에 연결해주세요.\n\nTampered script.\n- 무단수정된 스크립트\n\nThe password is incorrect.\n- 비밀번호가 올바르지 않습니다.\n\nThis e-mail is already used.\n-이미 사용중인 E-mail입니다. 다른 E-mail를 입력하세요.\n\nThis ID is already used.\n- 이미 사용중인 아이디입니다. 다른 아이디를 입력하세요.\n\nThis ID is not accepted.\n- 아이디가 아직 승인되지 않았습니다. 개발자가 아이디를 사용 허가할 때까지 기다려주세요.\n\nThis ID is not signed up the server.\n- 서버에 가입하지 않은 아이디입니다. 서버에 가입해주세요.\n\n",
TRANSLATION_TEXT = "Cannot connect to the server.\n- 서버 오류. 이 오류를 발견한다면 즉시 개발자에게 알려주세요.\n\nCan not find player.\n- 맵 안에서만 사용 가능한 기능입니다.\n\nCannot find the user.\n- 서버에 올바르지 않은 계정 아이디가 입력되었습니다.\n\nIncompatible version. (Library version ≥ {version})\n- 라이브러리의 버전이 호환되지 않습니다. 최신 버전으로 업데이트해주세요.\n\nInvalid format.\n- 유효하지 않은 형식입니다.\n ID & Password: 4~12자리의 영어, 숫자, 언더바(_)만 사용 가능합니다.\n Name: 1~20자리의 영어, 숫자, 언더바(_)만 사용 가능합니다.\n E-mail: 네이버 E-mail만 사용 가능합니다.\n\nInvalid number.\n- 유효하지 않은 숫자입니다. 정수를 입력해주세요.\n\nInvalid parameters.\n- 스크립트 오류. 해당 스크립트 개발자에게 문의하세요.\n\nInvalid version format.\n- 유효하지 않은 버전 형식입니다. 1.0과 같은 형식으로 입력해주세요.\n\nNo Internet.\n- 인터넷에 연결해주세요.\n\nTampered script.\n- 무단수정된 스크립트\n\nThe password is incorrect.\n- 비밀번호가 올바르지 않습니다.\n\nThis e-mail is already used.\n-이미 사용중인 E-mail입니다. 다른 E-mail를 입력하세요.\n\nThis ID is already used.\n- 이미 사용중인 아이디입니다. 다른 아이디를 입력하세요.\n\nThis ID is not accepted.\n- 아이디가 아직 승인되지 않았습니다. 개발자가 아이디를 사용 허가할 때까지 기다려주세요.\n\nThis ID is not signed up the server.\n- 서버에 가입하지 않은 아이디입니다. 서버에 가입해주세요.",
SHARE_TEXT = "Hello world",
LICENSE_TEXT = "Copyright 2016 Astro\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n\n";

@@ -3672,73 +3672,6 @@ let me = this.me || {};
.setOrientation(0)
.show())
.show())
.addLayout(Bitmap.createBitmap(PATH + "ic_info_outline.png"), new Layout()
.addView(new TextView()
.setPadding(DP * 8, DP * 16, DP * 8, DP * 4)
.setText("Notice")
.setTextSize(24)
.show())
.addView(new TextView()
.setText(notice)
.setTextColor(Color.GREY_DARK)
.show())
.addView(new Button()
.setText("Close")
.setEffect(() => window.dismiss())
.show())
.show())
.addLayout(Bitmap.createBitmap(PATH + "ic_help_outline.png"), new Layout()
.addView(new TextView()
.setPadding(DP * 8, DP * 16, DP * 8, DP * 4)
.setText("Device Info")
.setTextSize(24)
.show())
.addView(new TextView()
.setText("Device model: " + DEVICE_MODEL + "\nDevice version: " + DEVICE_VERSION + "\n\n")
.setTextColor(Color.GREY_DARK)
.show())
.addView(new TextView()
.setPadding(DP * 8, DP * 16, DP * 8, DP * 4)
.setText("Library Info")
.setTextSize(24)
.show())
.addView(new TextView()
.setText(NAME + " " + VERSION + "\n\nName Code: " + NAME_CODE + "\nDeveleoper: " + DEVELOPER + "\n\n")
.setTextColor(Color.GREY_DARK)
.show())
.addView(new TextView()
.setPadding(DP * 8, DP * 16, DP * 8, DP * 4)
.setText("Error Message Translation (Korean)")
.setTextSize(24)
.show())
.addView(new TextView()
.setText(TRANSLATION_TEXT)
.setTextColor(Color.GREY_DARK)
.show())
.addView(new TextView()
.setPadding(DP * 8, DP * 16, DP * 8, DP * 4)
.setText("License")
.setTextSize(24)
.show())
.addView(new TextView()
.setText(LICENSE_TEXT)
.setTextColor(Color.GREY_DARK)
.show())
.addView(new TextView()
.setPadding(DP * 8, DP * 16, DP * 8, DP * 4)
.setText("Share with your friends")
.setTextSize(24)
.show())
.addView(new KakaoLink()
.setLinkButtonText("Github")
.setLinkButtonUrl("https://github.com/Astro36/AstroLibrary")
.setLinkText(SHARE_TEXT)
.show())
.addView(new Button()
.setText("Close")
.setEffect(() => window.dismiss())
.show())
.show())
.setFocusable(true)
.show();
}
@@ -4035,73 +3968,6 @@ let me = this.me || {};
.show();
}
})())
.addLayout(Bitmap.createBitmap(PATH + "ic_info_outline.png"), new Layout()
.addView(new TextView()
.setPadding(DP * 8, DP * 16, DP * 8, DP * 4)
.setText("Notice")
.setTextSize(24)
.show())
.addView(new TextView()
.setText(notice)
.setTextColor(Color.GREY_DARK)
.show())
.addView(new Button()
.setText("Close")
.setEffect(() => window.dismiss())
.show())
.show())
.addLayout(Bitmap.createBitmap(PATH + "ic_help_outline.png"), new Layout()
.addView(new TextView()
.setPadding(DP * 8, DP * 16, DP * 8, DP * 4)
.setText("Device Info")
.setTextSize(24)
.show())
.addView(new TextView()
.setText("Device model: " + DEVICE_MODEL + "\nDevice version: " + DEVICE_VERSION + "\n\n")
.setTextColor(Color.GREY_DARK)
.show())
.addView(new TextView()
.setPadding(DP * 8, DP * 16, DP * 8, DP * 4)
.setText("Library Info")
.setTextSize(24)
.show())
.addView(new TextView()
.setText(NAME + " " + VERSION + "\n\nName Code: " + NAME_CODE + "\nDeveleoper: " + DEVELOPER + "\n\n")
.setTextColor(Color.GREY_DARK)
.show())
.addView(new TextView()
.setPadding(DP * 8, DP * 16, DP * 8, DP * 4)
.setText("Error Message Translation (Korean)")
.setTextSize(24)
.show())
.addView(new TextView()
.setText(TRANSLATION_TEXT)
.setTextColor(Color.GREY_DARK)
.show())
.addView(new TextView()
.setPadding(DP * 8, DP * 16, DP * 8, DP * 4)
.setText("License")
.setTextSize(24)
.show())
.addView(new TextView()
.setText(LICENSE_TEXT)
.setTextColor(Color.GREY_DARK)
.show())
.addView(new TextView()
.setPadding(DP * 8, DP * 16, DP * 8, DP * 4)
.setText("Share with your friends")
.setTextSize(24)
.show())
.addView(new KakaoLink()
.setLinkButtonText("Github")
.setLinkButtonUrl("https://github.com/Astro36/AstroLibrary")
.setLinkText(SHARE_TEXT)
.show())
.addView(new Button()
.setText("Close")
.setEffect(() => window.dismiss())
.show())
.show())
.setFocusable(true)
.show();
} catch (e) {
@@ -4146,6 +4012,79 @@ let me = this.me || {};
.setEffect(() => window.dismiss())
.show())
.show())
.addLayout(Bitmap.createBitmap(PATH + "ic_announcement.png"), new Layout()
.addView(new TextView()
.setPadding(DP * 8, DP * 16, DP * 8, DP * 4)
.setText("Notice")
.setTextSize(24)
.show())
.addView(new TextView()
.setText(notice)
.setTextColor(Color.GREY_DARK)
.show())
.addView(new Button()
.setText("Close")
.setEffect(() => window.dismiss())
.show())
.show())
.addLayout(Bitmap.createBitmap(PATH + "ic_info_outline.png"), new Layout()
.addView(new TextView()
.setPadding(DP * 8, DP * 16, DP * 8, DP * 4)
.setText("Device Info")
.setTextSize(24)
.show())
.addView(new TextView()
.setText("Device model: " + DEVICE_MODEL + "\nDevice version: " + DEVICE_VERSION + "\n\n")
.setTextColor(Color.GREY_DARK)
.show())
.addView(new TextView()
.setPadding(DP * 8, DP * 16, DP * 8, DP * 4)
.setText("Library Info")
.setTextSize(24)
.show())
.addView(new TextView()
.setText(NAME + " " + VERSION + "\n\nName Code: " + NAME_CODE + "\nDeveleoper: " + DEVELOPER + "\n\n")
.setTextColor(Color.GREY_DARK)
.show())
.addView(new TextView()
.setPadding(DP * 8, DP * 16, DP * 8, DP * 4)
.setText("License")
.setTextSize(24)
.show())
.addView(new TextView()
.setText(LICENSE_TEXT)
.setTextColor(Color.GREY_DARK)
.show())
.addView(new TextView()
.setPadding(DP * 8, DP * 16, DP * 8, DP * 4)
.setText("Share with your friends")
.setTextSize(24)
.show())
.addView(new KakaoLink()
.setLinkButtonText("Github")
.setLinkButtonUrl("https://github.com/Astro36/AstroLibrary")
.setLinkText(SHARE_TEXT)
.show())
.addView(new Button()
.setText("Close")
.setEffect(() => window.dismiss())
.show())
.show())
.addLayout(Bitmap.createBitmap(PATH + "ic_help_outline.png"), new Layout()
.addView(new TextView()
.setPadding(DP * 8, DP * 16, DP * 8, DP * 4)
.setText("Error Message Translation (Korean)")
.setTextSize(24)
.show())
.addView(new TextView()
.setText(TRANSLATION_TEXT)
.setTextColor(Color.GREY_DARK)
.show())
.addView(new Button()
.setText("Close")
.setEffect(() => window.dismiss())
.show())
.show())
.setFocusable(true)
.show();
} catch (e) {

0 comments on commit 894e8fa

Please sign in to comment.