about summary refs log tree commit diff stats
path: root/.gitignore
blob: 32a9fd69b931d768014ba2be24963d3185d698e1 (plain) (blame)
1
Archipelago/gamedata.gd
#008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
extends Button


func _ready():
	pass


func _connect_pressed():
	self.disabled = true

	var apclient = global.get_node("Archipelago")
	apclient.ap_server = self.get_parent().get_node("server_box").text
	apclient.ap_user = self.get_parent().get_node("player_box").text
	apclient.ap_pass = self.get_parent().get_node("password_box").text
	apclient.confusify_world = self.get_parent().get_node("confusing_box").pressed
	apclient.saveSettings()

	apclient.connectToServer()


func _back_pressed():
	var apclient = global.get_node("Archipelago")
	apclient.disconnect_from_ap()

	fader._fade_start("main_menu")