Skip to content

Commit 257dffb

Browse files
authored
Merge pull request #18 from FoolHen/master
Cleanup
2 parents bd5eb5e + 3eb785f commit 257dffb

File tree

8 files changed

+153
-13973
lines changed

8 files changed

+153
-13973
lines changed

WebUI/package-lock.json

Lines changed: 0 additions & 13793 deletions
This file was deleted.

WebUI/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111
"dependencies": {
1212
"vue": "2.6.12",
1313
"vue-vext-plugin": "0.1.2",
14-
"vuex": "3.5.1"
14+
"vuex": "3.6.0"
1515
},
1616
"devDependencies": {
17-
"@vue/cli-plugin-babel": "4.5.6",
18-
"@vue/cli-plugin-eslint": "4.5.6",
19-
"@vue/cli-service": "4.5.6",
17+
"@vue/cli-plugin-babel": "4.5.9",
18+
"@vue/cli-plugin-eslint": "4.5.9",
19+
"@vue/cli-service": "4.5.9",
2020
"@vue/devtools": "^5.1.4",
2121
"@vue/eslint-config-standard": "^6.0.0",
2222
"babel-eslint": "^10.1.0",
@@ -26,9 +26,9 @@
2626
"eslint-plugin-promise": "4.2.1",
2727
"eslint-plugin-standard": "5.0.0",
2828
"eslint-plugin-vue": "7.3.0",
29-
"node-sass": "4.14.1",
30-
"raw-loader": "4.0.1",
31-
"sass-loader": "10.0.2",
29+
"node-sass": "5.0.0",
30+
"raw-loader": "4.0.2",
31+
"sass-loader": "10.1.0",
3232
"vextpack": "0.1.5",
3333
"vue-template-compiler": "2.6.12"
3434
},

WebUI/src/components/ChatMessage.vue

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,20 @@ export default {
2020
text-shadow: 0 0 6px #1551a0;
2121
2222
.author {
23-
font-family: 'Blinker';
23+
font-family: 'Blinker', serif;
2424
font-size: 14px;
2525
margin-right: 8px;
2626
}
2727
2828
.content {
29-
font-family: 'Blinker';
29+
font-family: 'Blinker', serif;
3030
font-size: 13px;
3131
}
32-
3332
&.all {
3433
.author {
3534
text-shadow: 0 0 6px #002A61;
3635
}
3736
}
38-
3937
&.team {
4038
.author {
4139
color: #74edff;

WebUI/src/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ global.StoreCommit = (type, payload) => {
1616

1717
global.debug = window.location.href.indexOf('webui') === -1;
1818

19-
if (debug) {
19+
if (global.debug) {
2020
console.log('Running UI on debug mode');
2121
setTimeout(() => {
2222
StoreCommit('AddMessage', { author: 'FoolHen', content: 'Talking in global chat', target: 'all' });

WebUI/yarn.lock

Lines changed: 139 additions & 150 deletions
Large diffs are not rendered by default.

ext/Client/__init__.lua

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@ function AdvancedChat:OnSendChatMessage(p_Contents)
4343
return
4444
end
4545

46-
print("message: "..s_Message..", target: "..s_Target)
47-
4846
-- Dispatch message based on the specified target.
4947
if s_Target == 'all' then
5048
ChatManager:SendMessage(s_Message)
@@ -64,4 +62,4 @@ function AdvancedChat:OnSendChatMessage(p_Contents)
6462
return
6563
end
6664

67-
g_AdvancedChat = AdvancedChat()
65+
g_AdvancedChat = AdvancedChat()

ext/Client/hooks.lua

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ end
1717
function AdvancedChatHooks:OnInputConceptEvent(p_Hook, p_EventType, p_Action)
1818
-- If this is a chat-related input concept event then filter it
1919
-- to prevent the game from showing the default chat dialog.
20-
print("OnInputConceptEvent")
21-
2220
if p_Action == UIInputAction.UIInputAction_SayAllChat and p_EventType == UIInputActionEventType.UIInputActionEventType_Pressed then
2321
m_StoreManager:Dispatch("EnableTyping", "all")
2422
p_Hook:Pass(UIInputAction.UIInputAction_None, p_EventType)
@@ -50,7 +48,6 @@ function AdvancedChatHooks:OnEnableCursorMode(p_Hook, p_Enable, p_Cursor)
5048
-- Here we store the current cursor mode as requested by the
5149
-- engine in order to restore it later on.
5250

53-
print("OnEnableCursorMode, enable: "..tostring(p_Enable))
5451
self.m_CursorMode = p_Enable
5552
end
5653

@@ -59,7 +56,6 @@ function AdvancedChatHooks:OnDisableMouse()
5956
-- If mouse input was previously enabled by the engine
6057
-- we will ignore this request.
6158

62-
print("OnDisableMouse")
6359
if self.m_CursorMode then
6460
return
6561
end
@@ -73,16 +69,12 @@ function AdvancedChatHooks:OnEnableMouse()
7369
-- If mouse input is already enabled we will ignore
7470
-- this request.
7571

76-
print("OnEnableMouse")
7772
if self.m_CursorMode then
78-
print("mouse already enabled, ignoring")
7973
return
8074
end
8175

82-
print("mouse disabled, enabling")
83-
8476
-- Otherwise, we will proceed to enabling it.
8577
WebUI:EnableMouse()
8678
end
8779

88-
return AdvancedChatHooks
80+
return AdvancedChatHooks

ext/Client/messages.lua

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ function AdvancedChatMessages:OnCreateChatMessage(p_Hook, p_Message, p_Channel,
1212
return
1313
end
1414

15-
print("OnCreateChatMessage")
16-
1715
-- Get the player sending the message, and our local player.
1816
local s_OtherPlayer = PlayerManager:GetPlayerById(p_PlayerId)
1917
local s_LocalPlayer = PlayerManager:GetLocalPlayer()
@@ -27,7 +25,6 @@ function AdvancedChatMessages:OnCreateChatMessage(p_Hook, p_Message, p_Channel,
2725
local s_String = p_Message:gsub("^Admin: ", '')
2826

2927
s_Table = {author = "Admin", content = s_String, target = "admin"}
30-
print('OnMessage, '.. json.encode(s_Table))
3128
m_StoreManager:Dispatch("OnMessage", s_Table)
3229

3330
goto continue
@@ -67,14 +64,13 @@ function AdvancedChatMessages:OnCreateChatMessage(p_Hook, p_Message, p_Channel,
6764
end
6865

6966
s_Table = {author = s_OtherPlayer.name, content = p_Message, target = s_Target}
70-
print('OnMessage, '.. json.encode(s_Table))
7167
m_StoreManager:Dispatch("OnMessage", s_Table)
7268

7369
::continue::
7470

75-
-- A new chat message is being created;
71+
-- A new chat message is being created;
7672
-- prevent the game from rendering it.
7773
p_Hook:Return()
7874
end
7975

80-
return AdvancedChatMessages
76+
return AdvancedChatMessages

0 commit comments

Comments
 (0)