Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
735152826c | |||
c7b8ad390c | |||
f61049daf7 | |||
aea3ecdb39 | |||
a7d40d8d00 |
@@ -55,3 +55,11 @@ initial release
|
||||
- bbcode stuff only to lucystools users, color bug was patched
|
||||
- LucysLib 0.1.0 dependency
|
||||
- custom lobby code
|
||||
|
||||
0.7.1
|
||||
----
|
||||
- slash command "hotfix"
|
||||
|
||||
0.7.2
|
||||
----
|
||||
- blank message fix
|
||||
|
@@ -71,6 +71,7 @@ func get_user_color() -> Color:
|
||||
# we just take over - replicate as
|
||||
# much as i can be bothered to
|
||||
func process_message(text: String, local: bool, player, playerhud):
|
||||
if text.replace(" ","") == "": return
|
||||
if DEBUG:
|
||||
var thing = {"text":text,"local":local,"player":player,"playerhud":playerhud,"custom_name":custom_name}
|
||||
print("[LUCYSTOOLS process_message] ", thing)
|
||||
@@ -81,17 +82,22 @@ func process_message(text: String, local: bool, player, playerhud):
|
||||
LucysLib.send_message(msg, Color.aqua, false, null, "peers")
|
||||
return
|
||||
|
||||
var colon: bool = true
|
||||
# i don't know why the wag stuff toggles multiple times
|
||||
# and applies anywhere in string
|
||||
# i'm doing it once.
|
||||
if "/wag" in text:
|
||||
PlayerData.emit_signal("_wag_toggle")
|
||||
text.replace("/wag","")
|
||||
text = text.replace("/wag","")
|
||||
# /me has to be at beginning because i say so
|
||||
var colon: bool = true
|
||||
if text.begins_with("/me "):
|
||||
elif text.begins_with("/me "):
|
||||
colon = false
|
||||
text = text.trim_prefix("/me ")
|
||||
# return other slash command control to the original function
|
||||
# for other mods to play with
|
||||
elif text.begins_with("/"):
|
||||
playerhud._lucy_original_send_message(text)
|
||||
return
|
||||
|
||||
# process message into bbcode nodes
|
||||
var msg := LucysLib.BBCode.parse_bbcode_text(text)
|
||||
|
@@ -215,20 +215,20 @@ public class LucysChatChanges : IScriptMod
|
||||
CodeChange[] changes = {
|
||||
new CodeChange {
|
||||
name = "chat process intercept",
|
||||
// color.to_html()
|
||||
//
|
||||
// func _send_message(text):
|
||||
// END
|
||||
multitoken_prefix = new Func<Token, bool>[] {
|
||||
t => t is IdentifierToken {Name: "color"},
|
||||
t => t.Type == TokenType.Period,
|
||||
t => t is IdentifierToken {Name: "to_html"},
|
||||
t => t.Type == TokenType.PrFunction,
|
||||
t => t is IdentifierToken {Name: "_send_message"},
|
||||
t => t.Type == TokenType.ParenthesisOpen,
|
||||
t => t is IdentifierToken {Name: "text"},
|
||||
t => t.Type == TokenType.ParenthesisClose,
|
||||
t => t.Type == TokenType.Newline,
|
||||
t => t.Type == TokenType.Colon,
|
||||
t => t.Type == TokenType.Newline,
|
||||
},
|
||||
// $"/root/LucyLucysTools".process_message(text, chat_local, player, self)
|
||||
// return
|
||||
// func _lucy_original_send_message(text):
|
||||
code_to_add = new Token[] {
|
||||
new Token(TokenType.Dollar),
|
||||
new ConstantToken(new StringVariant("/root/LucyLucysTools")),
|
||||
@@ -246,6 +246,14 @@ public class LucysChatChanges : IScriptMod
|
||||
new Token(TokenType.Newline, 1),
|
||||
|
||||
new Token(TokenType.CfReturn),
|
||||
new Token(TokenType.Newline, 0),
|
||||
|
||||
new Token(TokenType.PrFunction),
|
||||
new IdentifierToken("_lucy_original_send_message"),
|
||||
new Token(TokenType.ParenthesisOpen),
|
||||
new IdentifierToken("text"),
|
||||
new Token(TokenType.ParenthesisClose),
|
||||
new Token(TokenType.Colon),
|
||||
new Token(TokenType.Newline, 1),
|
||||
}
|
||||
},
|
||||
|
@@ -2,5 +2,12 @@
|
||||
"Id": "Lucy.LucysTools",
|
||||
"AssemblyPath": "LucysTools.dll",
|
||||
"PackPath": "LucysTools.pck",
|
||||
"Dependencies": [ "LucysLib" ]
|
||||
"Dependencies": [ "LucysLib" ],
|
||||
"Metadata": {
|
||||
"Name": "LucysTools",
|
||||
"Author": "team_sea_slug",
|
||||
"Version": "0.7.2",
|
||||
"Description": "Fixes & Tools for WEBFISHING",
|
||||
"Homepage": "https://git.ceionia.com/lucia/LucysTools"
|
||||
}
|
||||
}
|
||||
|
@@ -26,7 +26,7 @@ More coming soon!
|
||||
Probably certainly full of bugs.
|
||||
|
||||
Compatibility:
|
||||
- Works *only* with WEBFISHING 1.10
|
||||
- Works with WEBFISHING 1.10, some features work on WEBFISHING 1.12
|
||||
- I haven't tested any other mods with this, but I'm happy to try to make things compatible, submit a bug report with the incompatible mod! (Only mods that have source available)
|
||||
|
||||
Bugs:
|
||||
|
Reference in New Issue
Block a user