diff options
author | yenatch <yenatch@gmail.com> | 2013-12-20 00:43:30 -0500 |
---|---|---|
committer | yenatch <yenatch@gmail.com> | 2013-12-21 00:37:35 -0500 |
commit | efe0b717ef21acde2d30fc7de580547738ca67d6 (patch) | |
tree | 524c63520cc852d4244a899ec08d5e39b517cec8 /pokemontools/map_editor.py | |
parent | 973a78167b104479bb6c8c4c528ae914106b1b53 (diff) | |
parent | f0aaf3cd568c485af40690ce0f18a6cd456ed02e (diff) |
Merge remote-tracking branch 'kanzure/master' into battle-animations
Conflicts:
pokemontools/wram.py
Diffstat (limited to 'pokemontools/map_editor.py')
-rw-r--r-- | pokemontools/map_editor.py | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/pokemontools/map_editor.py b/pokemontools/map_editor.py index c30fcd8..43042cb 100644 --- a/pokemontools/map_editor.py +++ b/pokemontools/map_editor.py @@ -128,6 +128,7 @@ def get_constants(config=config): name, value = [s.strip() for s in line.split(' EQU ')] constants[name] = eval(value.split(';')[0].replace('$','0x').replace('%','0b')) config.constants = constants + return constants class Application(Frame): def __init__(self, master=None, config=config): @@ -149,10 +150,10 @@ class Application(Frame): self.picker_frame = Frame(self) self.picker_frame.grid(row=1, column=1) - self.new = Button(self.button_frame) - self.new["text"] = "New" - self.new["command"] = self.new_map - self.new.grid(row=0, column=0, padx=2) + self.button_new = Button(self.button_frame) + self.button_new["text"] = "New" + self.button_new["command"] = self.new_map + self.button_new.grid(row=0, column=0, padx=2) self.open = Button(self.button_frame) self.open["text"] = "Open" @@ -683,14 +684,6 @@ def macro_values(line, macro): values = values[1:] return values -def db_value(line): - macro = 'db' - return macro_values(line, macro) - -def db_values(line): - macro = 'db' - return macro_values(line, macro) - def asm_at_label(asm, label): label_def = label + ':' lines = asm.split('\n') |