return;
def draw(self, surf, agent, text, sec, ID, Xt=-10000, Yt=-10000):
-
+
if(not ID in self.IDS):
temp = []
- c = []
self.PSA += sec
temp.append(text)
temp.append(self.PSA)
- c.append(Xt)
- c.append(Yt)
- temp.append(c)
+ temp.append(agent)
+ temp.append(Xt == -10000 and Yt == -10000)
self.IDS.append(ID)
- self.dialogue_list.append(temp)
+ self.dialogue_list.append(temp)
try:
X, Y = 0, 0
try:
- if(self.dialogue_list[self.char][2][0] == -10000 and self.dialogue_list[self.char][2][1] == -10000):
- X = get_display_point(agent.position)[0] + agent.width / 2
- Y = get_display_point(agent.position)[1]
+ if(self.dialogue_list[self.char][3] == True):
+ X = get_display_point(self.dialogue_list[self.char][2].position)[0] + agent.width / 2
+ Y = get_display_point(self.dialogue_list[self.char][2].position)[1]
else:
X, Y = get_display_point((self.dialogue_list[self.char][2][0], self.dialogue_list[self.char][2][1]))
self.text = self.dialogue_list[self.char][0]
except:
pass;
+
self.checkTime()
self.createDialogue()