This commit is contained in:
Lucia Ceionia 2024-11-07 14:27:55 -06:00
parent cb418f547d
commit 0460ca99d6
4 changed files with 18 additions and 9 deletions

View File

@ -32,3 +32,9 @@ initial release
- intrusive bbcode now client toggle - intrusive bbcode now client toggle
- lots of stuff removed due to 1.09 having it already! - lots of stuff removed due to 1.09 having it already!
- panel stays closed if closed, open if open - panel stays closed if closed, open if open
0.5.1
----
- Lure 4.1.0 compatibility
- log fixes
- spawn fixes

View File

@ -47,12 +47,13 @@ func _ready():
visible = MANAGER.lucys_menu_visible visible = MANAGER.lucys_menu_visible
get_node("%lucy_bbcode").disabled = MANAGER.host_required and not Network.GAME_MASTER var can_spawn = (Network.GAME_MASTER or Network.PLAYING_OFFLINE) and MANAGER.ingame
get_node("%lucy_raincloud").disabled = not Network.GAME_MASTER or not MANAGER.ingame
get_node("%lucy_meteor").disabled = not Network.GAME_MASTER or not MANAGER.ingame get_node("%lucy_raincloud").disabled = not can_spawn
get_node("%lucy_freezerain").disabled = not Network.GAME_MASTER or not MANAGER.ingame get_node("%lucy_meteor").disabled = not can_spawn
get_node("%lucy_clearrain").disabled = not Network.GAME_MASTER or not MANAGER.ingame get_node("%lucy_freezerain").disabled = not can_spawn
get_node("%lucy_clearmeteor").disabled = not Network.GAME_MASTER or not MANAGER.ingame get_node("%lucy_clearrain").disabled = not can_spawn
get_node("%lucy_clearmeteor").disabled = not can_spawn
func _input(event): func _input(event):
if event is InputEventKey and event.scancode == KEY_F5 && event.pressed: if event is InputEventKey and event.scancode == KEY_F5 && event.pressed:

View File

@ -97,7 +97,7 @@ func safe_message(user_id, color, boring_msg, local, lucy_user, lucy_msg):
var final_message = filter_message.replace("%u", "[color=#" + str(color) + "]" + username + "[/color]") var final_message = filter_message.replace("%u", "[color=#" + str(color) + "]" + username + "[/color]")
var thing = {"username":username, "color":color, "filter_message":filter_message, var thing = {"username":username, "color":color, "filter_message":filter_message,
"final_message":final_message,"lucy_user":lucy_user,"lucy_msg":lucy_msg} "final_message":final_message,"lucy_user":lucy_user,"lucy_msg":lucy_msg}
print("FUCK2 ", thing) #print("FUCK2 ", thing)
Network._update_chat(final_message, local) Network._update_chat(final_message, local)
# this is stinky # this is stinky
@ -109,7 +109,7 @@ func process_message(lit_text, final, prefix, suffix, endcap, spoken_text, local
"custom_name_enabled": custom_name_enabled, "allow_bbcode": allow_bbcode, "custom_name_enabled": custom_name_enabled, "allow_bbcode": allow_bbcode,
"allowed_tags": allowed_tags "allowed_tags": allowed_tags
} }
print("FUCK ", thing) #print("FUCK ", thing)
if Network.GAME_MASTER and lit_text.begins_with("%"): if Network.GAME_MASTER and lit_text.begins_with("%"):
var bb_dat = bbcode_process(lit_text) var bb_dat = bbcode_process(lit_text)
lucy_send_message(lit_text.trim_prefix('%'), bb_dat.stripped, false) lucy_send_message(lit_text.trim_prefix('%'), bb_dat.stripped, false)
@ -125,7 +125,7 @@ func process_message(lit_text, final, prefix, suffix, endcap, spoken_text, local
msg = prefix + "%u" + endcap + p.fin + suffix msg = prefix + "%u" + endcap + p.fin + suffix
boring_msg = prefix + "%u" + endcap + p.stripped + suffix boring_msg = prefix + "%u" + endcap + p.stripped + suffix
speak = p.stripped speak = p.stripped
print("FUCK3 ", {"msg":msg,"boring_msg":boring_msg,"p":p}) #print("FUCK3 ", {"msg":msg,"boring_msg":boring_msg,"p":p})
if msg != "": lucy_send_message(msg, boring_msg, local) if msg != "": lucy_send_message(msg, boring_msg, local)
if spoken_text != "" and colon: playerhud.emit_signal("_message_sent", speak) if spoken_text != "" and colon: playerhud.emit_signal("_message_sent", speak)

View File

@ -47,6 +47,8 @@ public class LucyServerBrowserChanges: IScriptMod
code_to_add = new Token[] { code_to_add = new Token[] {
new Token(TokenType.Comma), new Token(TokenType.Comma),
new IdentifierToken("lucy_display"), new IdentifierToken("lucy_display"),
new Token(TokenType.OpAssign),
new ConstantToken(new StringVariant("")),
} }
}, },
new CodeChange { new CodeChange {