ref: a34d4621eed4212f81540510829b960e87a638be
parent: 61d3b8a6b460e9f8cea9a6cc91fef43aedcff59e
author: Bryan Bishop <[email protected]>
date: Sun May 20 10:23:13 EDT 2012
better signpost labeling
--- a/extras/crystal.py
+++ b/extras/crystal.py
@@ -4458,6 +4458,7 @@
param = ScriptPointerLabelParam(address=self.address+3, map_group=self.map_group, map_id=self.map_id, debug=self.debug, force=False)
self.params.append(param)
+ param.label = Label(address=param.address, object=param, name="Map"+map_names[self.map_group][self.map_id]["label"]+"Signpost"+str(self.id)+"Script")
#self.script_address = script_address
#self.script = script
@@ -4482,8 +4483,16 @@
debug=self.debug)
self.remotes.append(r1)
+ # give a better label to the SignpostRemoteScriptChunk
+ r1.label = Label(address=r1.address, object=r1, name="Map"+map_names[self.map_group][self.map_id]["label"]+"SignpostPtr"+str(self.id))
+
mb = PointerLabelParam(address=self.address+3, map_group=self.map_group, map_id=self.map_id, debug=self.debug)
self.params.append(mb)
+
+ # update the remote script address
+ param = script_parse_table[script_address]
+ param.label = Label(address=param.address, object=param, name="Map"+map_names[self.map_group][self.map_id]["label"]+"Signpost"+str(self.id)+"Script")
+
elif func == 7:
#signpost's script pointer points to [Bit-Nr. (2byte)][Item no.]
ptr_byte1 = int(bytes[3], 16)
@@ -4499,6 +4508,7 @@
bank=self.bank, map_group=self.map_group, map_id=self.map_id, \
debug=self.debug)
self.remotes.append(r1)
+ r1.label = Label(address=r1.address, object=r1, name="Map"+map_names[self.map_group][self.map_id]["label"]+"SignpostItem"+str(self.id))
mb = PointerLabelParam(address=self.address+3, map_group=self.map_group, map_id=self.map_id, debug=self.debug)
self.params.append(mb)