diff options
author | Bryan Bishop <kanzure@gmail.com> | 2013-11-27 12:45:05 -0800 |
---|---|---|
committer | Bryan Bishop <kanzure@gmail.com> | 2013-11-27 12:45:05 -0800 |
commit | 4294fdc140677f98df38affe7955a97223b778e9 (patch) | |
tree | 28166581000c70b6beb020fff84d4b68bbd8586c | |
parent | 46782bf6dc938ab8ad4f8c65c2df924fd7e1d6a7 (diff) | |
parent | 0efb540cd36d4f5876b38808d4e65c2d639d6402 (diff) |
Merge pull request #58 from kanzure/map-editor-stuff
Minor map editor changes
-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') |