about summary refs log tree commit diff stats
path: root/Archipelago/painting_scenery.gd
blob: 1186e2f9e83612a971c776c62fc17b9469561078 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
extends "res://scripts/painting_scenery.gd"


func _answer_correct():
	var apclient = global.get_node("Archipelago")
	if not apclient._door_shuffle or apclient.paintingIsVanilla(self.name):
		._answer_correct()


func movePainting():
	._answer_correct()


func _looked_at(var body, var painting):
	._looked_at(body, painting)

	if body.is_in_group("player") && (painting.get_name() == self.get_name()):
		var apclient = global.get_node("Archipelago")
		if !apclient._pilgrimage_allows_paintings:
			global.sunwarp = 1
			body.get_node("pivot/camera/sunwarp_background").visible = false
lass="p">(wxALIGN_CENTER_VERTICAL | wxALIGN_RIGHT)); form_sizer->Add(server_box_, wxSizerFlags().Expand()); form_sizer->Add( new wxStaticText(this, -1, "Player:"), wxSizerFlags().Align(wxALIGN_CENTER_VERTICAL | wxALIGN_RIGHT)); form_sizer->Add(player_box_, wxSizerFlags().Expand()); form_sizer->Add( new wxStaticText(this, -1, "Password:"), wxSizerFlags().Align(wxALIGN_CENTER_VERTICAL | wxALIGN_RIGHT)); form_sizer->Add(password_box_, wxSizerFlags().Expand()); wxBoxSizer* top_sizer = new wxBoxSizer(wxVERTICAL); top_sizer->Add(new wxStaticText( this, -1, "Enter the details to connect to Archipelago."), wxSizerFlags().Align(wxALIGN_LEFT).DoubleBorder()); top_sizer->Add(form_sizer, wxSizerFlags().DoubleBorder().Expand()); top_sizer->Add(CreateButtonSizer(wxOK | wxCANCEL), wxSizerFlags().Center()); SetSizerAndFit(top_sizer); Center(); }