Eevee (Lexy Munroe)
a64657988a
Fix most Python 3 compat issues with futurize --stage1
2016-08-24 15:43:15 -07:00
yenatch
c9d9a16fd6
map_editor: Fix automatic graphics decompression.
2014-10-02 23:47:00 -04:00
yenatch
5cce990140
Fix the map editor.
...
The map editor can now be invoked in ipython:
import extras.pokemontools.map_editor as ed
app = ed.init()
Then <app> can be modified on the fly to make up for lacking functionality.
Also see app.map.crop().
Now works with all maps in both Red and Crystal.
The version defaults to Crystal. To use with pokered, invoke from the command line:
python extras/pokemontools/map_editor.py red
Or in ipython:
import extras.pokemontools.map_editor as ed
app = ed.init(version='red')
Also displays connections, but they're unaligned.
2014-10-02 23:22:03 -04:00
yenatch
b18976e8ed
Merge branch 'kanzure/master' into merge-old-commits
...
Conflicts:
pokemontools/map_editor.py
2014-02-06 19:58:21 -05:00
yenatch
51d6f1edca
map_editor: allow saving new maps + save file dialog
...
saves to newmap.asm by default
2013-12-29 03:59:35 -05:00
yenatch
d996bcf18e
map_editor: read rgb macros instead of binary data for palettes
...
also fix tileset graphics handling
2013-12-23 03:32:50 -05:00
yenatch
10d8edbc3b
map_editor: to_png got renamed
2013-11-30 19:11:20 -05:00
Bryan Bishop
0cdd66e1b5
return constants after parsing
2013-11-19 22:27:50 -06:00
Bryan Bishop
d3f19c0158
remove two unused methods from map_editor.py
2013-11-17 20:39:53 -06:00
Bryan Bishop
fabc78f5db
call it button_new instead of new
...
"new" is sometimes a reserved keyword and it would be nice to not use
that name.
2013-11-17 20:35:44 -06:00
Bryan Bishop
185a29698e
clean up more imports in map_editor.py
2013-11-17 19:51:04 -06:00
Bryan Bishop
444d1ecfc7
also import TclError into map_editor.py
2013-11-17 19:41:37 -06:00
Bryan Bishop
49072b9917
replace print with python logging
2013-11-17 19:41:21 -06:00
Bryan Bishop
712f4ce53b
use explicit import of Tkinter components
2013-11-17 19:15:33 -06:00
Bryan Bishop
98d335438a
fix up map_editor.py extra newlines
2013-11-17 19:11:54 -06:00
Bryan Bishop
f414cf38f6
only set global constants for eval
...
Although I am not sure that using eval is a good idea in the first
place... it should go away.
2013-11-17 19:05:09 -06:00
Bryan Bishop
6920881598
factor out global configs in map_editor.py
2013-11-17 18:56:31 -06:00
Bryan Bishop
2d59e4d3e0
move import statements to top of map_editor.py
2013-11-17 17:39:02 -06:00
Bryan Bishop
9e3105e5c0
tabs to spaces in map_editor.py
...
This is to maintain consistency in python source code formatting in the
project.
2013-11-17 17:36:59 -06:00
Bryan Bishop
2ca1c4b59c
fix configuration import line in map_editor.py
2013-11-17 15:01:26 -06:00
Bryan Bishop
c02c65fe74
Merge branch 'yenatch/map-editor' into master
...
Conflicts:
pokemontools/crystal.py
Fixes #40 .
2013-09-26 10:46:04 -05:00
yenatch
001b6bc850
map_editor: create any pngs that don't exist yet
2013-09-26 02:52:45 -04:00
yenatch
92eeee28dd
map_editor: skip any nonexistent tiles in map rendering
2013-09-26 02:49:37 -04:00
yenatch
96574a08ee
map_editor: more flexible macro handling
...
makes less assumptions about the structure of a header
2013-09-26 02:27:01 -04:00
Bryan Bishop
cff5ce9bc8
Revert "tabs to spaces (pep8)"
...
This reverts commit 9bea14db79 .
Conflicts:
pokemontools/map_editor.py
2013-09-26 01:24:13 -05:00
Bryan Bishop
9d1a68cce5
refactor a global constant to be set in __init__
2013-09-26 01:09:50 -05:00
Bryan Bishop
3f28232f0d
put the tk loop into __main__
2013-09-26 01:06:19 -05:00
Bryan Bishop
e4b2d2e4d2
minor formatting fix
2013-09-26 01:05:23 -05:00
Bryan Bishop
9bea14db79
tabs to spaces (pep8)
2013-09-26 01:04:51 -05:00
yenatch
5f0bd7a2fe
use config instead of configuration
...
this was kind of overzealous
2013-09-26 01:57:29 -04:00
yenatch
33c8e4147c
map_editor: red: read tileset gfx filenames from source
2013-09-15 15:46:26 -04:00
yenatch
bd3b608188
barely-working map editor
...
works with both pokecrystal and pokered
version is crystal by default
2013-09-14 17:10:59 -04:00