overhaul bot
This commit is contained in:
+31
-1
@@ -452,7 +452,37 @@ func _update_player_slots() -> void:
|
||||
ready_label.add_theme_color_override("font_color",
|
||||
Color(0.4, 0.8, 0.4) if is_ready else Color(0.6, 0.6, 0.6))
|
||||
else:
|
||||
slot.visible = false
|
||||
# Empty slot - show as bot placeholder
|
||||
slot.visible = true
|
||||
|
||||
# Update name to show as bot
|
||||
var name_label = slot.get_node_or_null("PlayerName%d" % slot_num)
|
||||
if name_label:
|
||||
name_label.text = "🤖 Bot %d" % slot_num
|
||||
|
||||
# Use a character for bot preview
|
||||
var char_preview = slot.get_node_or_null("CharacterPreview%d" % slot_num)
|
||||
var bot_characters = ["Bob", "Gatot", "Masbro", "Oldpop"]
|
||||
var bot_char = bot_characters[(i) % bot_characters.size()]
|
||||
if char_preview and character_textures.has(bot_char):
|
||||
char_preview.texture = character_textures[bot_char]
|
||||
|
||||
# Hide character navigation for bots
|
||||
var char_nav = slot.get_node_or_null("CharacterNav%d" % slot_num)
|
||||
if char_nav:
|
||||
char_nav.visible = false
|
||||
|
||||
# Update character name label
|
||||
var char_name_label = slot.get_node_or_null("CharacterNameLabel%d" % slot_num)
|
||||
if char_name_label:
|
||||
char_name_label.text = bot_char
|
||||
char_name_label.visible = true
|
||||
|
||||
# Show ready status as waiting
|
||||
var ready_label = slot.get_node_or_null("ReadyStatus%d" % slot_num)
|
||||
if ready_label:
|
||||
ready_label.text = "WAITING..."
|
||||
ready_label.add_theme_color_override("font_color", Color(0.5, 0.5, 0.7))
|
||||
|
||||
func _update_status() -> void:
|
||||
var players = LobbyManager.get_players()
|
||||
|
||||
Reference in New Issue
Block a user