Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sejong25
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Tear of Sejong
sejong25
Commits
87fcc532
Commit
87fcc532
authored
Aug 12, 2019
by
18손재민
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
메뉴 정렬 구현함
parent
04cc9c45
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
58 additions
and
42 deletions
+58
-42
Client.js
js/Client.js
+1
-1
FirebaseClient.js
js/FirebaseClient.js
+1
-1
Input.js
js/Input.js
+0
-1
ScenesData.js
js/ScenesData.js
+40
-37
UIObject.js
js/UIObject.js
+16
-2
No files found.
js/Client.js
View file @
87fcc532
...
...
@@ -29,7 +29,7 @@ socket.on('setId', function(msg) // {str, num playerNum}
// init game
socket
.
on
(
'
enterRoom
'
,
function
()
{
fbClient
.
updateUserData
(
'
recentHopae
'
,
PlayerData
.
nicknam
e
);
fbClient
.
updateUserData
(
'
recentHopae
'
,
PlayerData
.
currentHopa
e
);
Audio
.
killSound
(
ScenesData
.
menuScene
,
'
login
'
);
ScenesData
.
changeScene
(
'
roomScene
'
);
});
...
...
js/FirebaseClient.js
View file @
87fcc532
...
...
@@ -251,7 +251,7 @@ class UserData
[
{
name
:
prompt
(
"
첫번째 호패의 닉네임을 입력해주세요.
\n
(반드시 한글만 사용해주세요 띄어쓰기도 금지)
"
),
type
:
'
wood
'
}
];
this
.
recentHopae
=
''
;
this
.
recentHopae
=
null
;
this
.
title
=
[];
this
.
money
=
0
;
this
.
item
=
[];
...
...
js/Input.js
View file @
87fcc532
...
...
@@ -35,7 +35,6 @@ Input.menuSceneEnterReaction = function()
if
(
Input
.
finalInput
.
length
>
1
)
{
PlayerData
.
nickname
=
Input
.
finalInput
;
ScenesData
.
menuScene
.
currentHopae
.
setText
(
'
현재 호패 :
'
+
PlayerData
.
nickname
);
Input
.
reset
();
}
else
...
...
js/ScenesData.js
View file @
87fcc532
This diff is collapsed.
Click to expand it.
js/UIObject.js
View file @
87fcc532
var
UIObject
=
UIObject
||
{};
UIObject
.
createLabel
=
function
(
scene
,
x
,
y
,
depth
,
image
,
size
,
text
=
''
,
textSize
=
24
,
textColor
=
'
#000000
'
,
textOriginX
=
0.5
,
textOriginY
=
0.5
)
{
return
scene
.
rexUI
.
add
.
label
({
UIObject
.
createLabel
=
function
(
scene
,
x
,
y
,
depth
,
image
,
size
,
align
,
text
=
''
,
textSize
=
24
,
textColor
=
'
#000000
'
,
textOriginX
=
0.5
,
textOriginY
=
0.5
)
{
var
temp
=
scene
.
rexUI
.
add
.
label
({
/*width: width,
height: height,*/
x
:
x
,
...
...
@@ -20,6 +20,20 @@ UIObject.createLabel = function (scene, x, y, depth, image, size, text = '', tex
bottom
:
10
}
});
switch
(
align
)
{
case
'
left
'
:
temp
.
x
+=
temp
.
getElement
(
'
background
'
).
width
/
2
;
break
;
case
'
right
'
:
temp
.
x
-=
temp
.
getElement
(
'
background
'
).
width
/
2
;
break
;
case
'
center
'
:
break
;
default
:
break
;
}
return
temp
;
}
UIObject
.
createButton
=
function
(
scene
,
buttonGameObject
,
overFrame
,
outFrame
,
downFrame
,
clickCallback
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment