Custom image setting cleanup, update manual
|
@ -9,7 +9,7 @@ Selecting Collision Types
|
|||
|
||||
The Collision Type Selector is a tab next to the Metatile Selector. It features 32 total different collision types. The left column is for collision types that allow the player to walk through the tiles. These are denoted by white text. The right column is for collision types that are impassable by the player. These are denoted by red text.
|
||||
|
||||
The transparency slider above the collision types controls the transparency of the collision properties on the map view.
|
||||
The transparency slider above the collision types controls the transparency of the collision properties on the map view. The slider at the bottom of the panel zooms the selector image in and out.
|
||||
|
||||
.. figure:: images/editing-map-collisions/map-collisions.png
|
||||
:alt: Map Collisions View
|
||||
|
@ -73,3 +73,6 @@ Multi-Level Collision Type |multi-level-collision-type-1| |multi-level-collision
|
|||
|
||||
.. |multi-level-collision-type-2|
|
||||
image:: images/editing-map-collisions/multi-level-collision-type-2.png
|
||||
|
||||
.. note::
|
||||
For advanced usage: Any valid elevation/collision value combination can be selected using the ``Elevation`` and ``Collision`` value spinners, even if it's not represented graphically on the selector image. You may also resize/replace this selector image under ``Options -> Project Settings``.
|
||||
|
|
Before Width: | Height: | Size: 147 KiB After Width: | Height: | Size: 403 KiB |
Before Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 33 KiB |
Before Width: | Height: | Size: 47 KiB |
BIN
docsrc/manual/images/settings-and-options/import-defaults.png
Normal file
After Width: | Height: | Size: 8.3 KiB |
Before Width: | Height: | Size: 30 KiB |
Before Width: | Height: | Size: 42 KiB |
After Width: | Height: | Size: 1 KiB |
Before Width: | Height: | Size: 27 KiB |
Before Width: | Height: | Size: 25 KiB |
BIN
docsrc/manual/images/settings-and-options/restore-defaults.png
Normal file
After Width: | Height: | Size: 8.8 KiB |
BIN
docsrc/manual/images/settings-and-options/tab-events.png
Normal file
After Width: | Height: | Size: 154 KiB |
BIN
docsrc/manual/images/settings-and-options/tab-general.png
Normal file
After Width: | Height: | Size: 188 KiB |
BIN
docsrc/manual/images/settings-and-options/tab-maps.png
Normal file
After Width: | Height: | Size: 144 KiB |
BIN
docsrc/manual/images/settings-and-options/tab-project-files.png
Normal file
After Width: | Height: | Size: 201 KiB |
BIN
docsrc/manual/images/settings-and-options/tab-tilesets.png
Normal file
After Width: | Height: | Size: 188 KiB |
Before Width: | Height: | Size: 80 KiB |
|
@ -6,12 +6,14 @@ Porymap relies on the user maintaining a certain level of integrity with their p
|
|||
This is a list of files that porymap reads from and writes to. Generally, if porymap writes
|
||||
to a file, it probably is not a good idea to edit yourself unless otherwise noted.
|
||||
|
||||
The filepath that Porymap expects for each file can be overridden under the ``Project Files`` section of ``Options -> Project Settings``. A new path can be specified by entering it in the text box or choosing it with the folder button. Paths are expected to be relative to the root project folder. If no path is specified, or if the file/folder specified does not exist, then the default path will be used instead. The name of each setting in this section is listed in the table below under ``Override``.
|
||||
The filepath that Porymap expects for each file can be overridden under the ``Project Files`` section of ``Options -> Project Settings``. A new path can be specified by entering it in the text box or choosing it with the |button-folder| button. Paths are expected to be relative to the root project folder. If no path is specified, or if the file/folder specified does not exist, then the default path will be used instead. The name of each setting in this section is listed in the table below under ``Override``.
|
||||
|
||||
.. figure:: images/project-files/settings.png
|
||||
:align: center
|
||||
:width: 75%
|
||||
:alt: Settings
|
||||
.. |button-folder| image:: images/scripting-capabilities/folder.png
|
||||
:width: 24
|
||||
:height: 24
|
||||
|
||||
.. figure:: images/settings-and-options/tab-project-files.png
|
||||
:alt: Project Files tab
|
||||
|
||||
|
||||
.. csv-table::
|
||||
|
@ -32,7 +34,7 @@ The filepath that Porymap expects for each file can be overridden under the ``Pr
|
|||
data/tilesets/graphics.inc, yes, yes, ``tilesets_graphics_asm``, only if ``tilesets_headers`` can't be found
|
||||
data/tilesets/metatiles.inc, yes, yes, ``tilesets_metatiles_asm``, only if ``tilesets_headers`` can't be found
|
||||
data/tilesets/[primary|secondary]/\*, yes, yes, ``data_tilesets_folders``, default tileset data location
|
||||
src/data/wild_encounters.json, yes, yes, ``json_wild_encounters``,
|
||||
src/data/wild_encounters.json, yes, yes, ``json_wild_encounters``, optional (only required to use Wild Pokémon tab)
|
||||
src/data/object_events/object_event_graphics_info_pointers.h, yes, no, ``data_obj_event_gfx_pointers``,
|
||||
src/data/object_events/object_event_graphics_info.h, yes, no, ``data_obj_event_gfx_info``,
|
||||
src/data/object_events/object_event_pic_tables.h, yes, no, ``data_obj_event_pic_tables``,
|
||||
|
@ -43,15 +45,15 @@ The filepath that Porymap expects for each file can be overridden under the ``Pr
|
|||
src/data/region_map/porymap_config.json, yes, yes, ``json_region_porymap_cfg``,
|
||||
include/constants/global.h, yes, no, ``constants_global``, reads ``OBJECT_EVENT_TEMPLATES_COUNT``
|
||||
include/constants/map_groups.h, no, yes, ``constants_map_groups``,
|
||||
include/constants/items.h, yes, no, ``constants_items``,
|
||||
include/constants/flags.h, yes, no, ``constants_flags``,
|
||||
include/constants/vars.h, yes, no, ``constants_vars``,
|
||||
include/constants/weather.h, yes, no, ``constants_weather``,
|
||||
include/constants/songs.h, yes, no, ``constants_songs``,
|
||||
include/constants/items.h, yes, no, ``constants_items``, for Hidden Item events
|
||||
include/constants/flags.h, yes, no, ``constants_flags``, for Object and Hidden Item events
|
||||
include/constants/vars.h, yes, no, ``constants_vars``, for Trigger events
|
||||
include/constants/weather.h, yes, no, ``constants_weather``, for map weather and Weather Triggers
|
||||
include/constants/songs.h, yes, no, ``constants_songs``, for map music
|
||||
include/constants/heal_locations.h, yes, yes, ``constants_heal_locations``,
|
||||
include/constants/pokemon.h, yes, no, ``constants_pokemon``, reads min and max level constants
|
||||
include/constants/pokemon.h, yes, no, ``constants_pokemon``, reads ``MIN_LEVEL`` and ``MAX_LEVEL``
|
||||
include/constants/map_types.h, yes, no, ``constants_map_types``,
|
||||
include/constants/trainer_types.h, yes, no, ``constants_trainer_types``,
|
||||
include/constants/trainer_types.h, yes, no, ``constants_trainer_types``, for Object events
|
||||
include/constants/secret_bases.h, yes, no, ``constants_secret_bases``, pokeemerald and pokeruby only
|
||||
include/constants/event_object_movement.h, yes, no, ``constants_obj_event_movement``,
|
||||
include/constants/event_objects.h, yes, no, ``constants_obj_events``,
|
||||
|
@ -59,8 +61,10 @@ The filepath that Porymap expects for each file can be overridden under the ``Pr
|
|||
include/constants/region_map_sections.h, yes, no, ``constants_region_map_sections``,
|
||||
include/constants/metatile_labels.h, yes, yes, ``constants_metatile_labels``,
|
||||
include/constants/metatile_behaviors.h, yes, no, ``constants_metatile_behaviors``,
|
||||
include/constants/species.h, yes, no, ``constants_metatile_behaviors``, for the Wild Pokémon tab
|
||||
include/fieldmap.h, yes, no, ``constants_fieldmap``, reads tileset related constants
|
||||
src/event_object_movement.c, yes, no, ``initial_facing_table``, reads ``gInitialMovementTypeFacingDirections``
|
||||
src/pokemon_icon.c, yes, no, ``pokemon_icon_table``, reads files in ``gMonIconTable``
|
||||
graphics/pokemon/*/icon.png, yes, no, ``pokemon_gfx``, to search for Pokémon icons if they aren't found in ``gMonIconTable``
|
||||
|
||||
|
||||
|
|
|
@ -19,66 +19,84 @@ A selection of the settings in this file can be edited under ``Preferences...``,
|
|||
Project settings
|
||||
================
|
||||
|
||||
* :ref:`General <general>`
|
||||
* :ref:`Maps <maps>`
|
||||
* :ref:`Tilesets <tilesets>`
|
||||
* :ref:`Events <events>`
|
||||
* :ref:`Project Files <project-files>`
|
||||
|
||||
A config file for project-specific settings is also created when opening a project in porymap for the first time. It is stored in your project root as ``porymap.project.cfg``. You may want to force commit this file so that other users will automatically have access to your project settings.
|
||||
|
||||
A second config file is created for user-specific settings. It is stored in your project root as ``porymap.user.cfg``. You should add this file to your gitignore.
|
||||
|
||||
The settings in ``porymap.project.cfg`` and ``porymap.user.cfg`` can be edited under ``Options -> Project Settings...``. Any changes made in this window will not take effect unless confirmed by selecting ``OK`` and then reloading the project.
|
||||
|
||||
Each of the settings in the ``Project Settings...`` window are described below.
|
||||
.. |button-folder| image:: images/scripting-capabilities/folder.png
|
||||
:width: 24
|
||||
:height: 24
|
||||
|
||||
.. warning::
|
||||
Changing any of the settings in the Project Settings Editor's red ``Warning`` box will require additional changes to your project to function correctly. Investigate the repository versions that have a setting natively supported to see what changes to your project are necessary.
|
||||
.. |button-import-defaults| image:: images/settings-and-options/import-defaults.png
|
||||
:height: 24
|
||||
|
||||
.. |button-restore-defaults| image:: images/settings-and-options/restore-defaults.png
|
||||
:height: 24
|
||||
|
||||
.. |pokemon-icon-placeholder| image:: images/settings-and-options/pokemon-icon-placeholder.png
|
||||
:width: 24
|
||||
:height: 24
|
||||
|
||||
|
||||
Preferences
|
||||
-----------
|
||||
.. _general:
|
||||
|
||||
.. figure:: images/settings-and-options/preferences.png
|
||||
:align: left
|
||||
:width: 60%
|
||||
:alt: Preferences
|
||||
General
|
||||
-------
|
||||
|
||||
.. figure:: images/settings-and-options/tab-general.png
|
||||
:alt: General tab
|
||||
|
||||
Use Poryscript
|
||||
If this is checked, a ``scripts.pory`` (and ``text.pory``, if applicable) file will be created alongside new maps, instead of a ``scripts.inc`` file. Additionally, ``.pory`` files will be considered when searching for scripts labels and when opening scripts files (in addition to the regular ``.inc`` files).
|
||||
If this is checked, a ``scripts.pory`` (and ``text.pory``, if applicable) file will be created alongside new maps, instead of a ``scripts.inc`` file. Additionally, ``.pory`` files will be considered when searching for scripts labels and when opening scripts files (in addition to the regular ``.inc`` files).
|
||||
|
||||
Defaults to ``unchecked``.
|
||||
|
||||
Field name: ``use_poryscript``
|
||||
Defaults to ``unchecked``.
|
||||
|
||||
Show Wild Encounter Tables
|
||||
If this is checked, the ``Wild Pokemon`` tab will be enabled and wild encounter data will be read from the project's encounters JSON file.
|
||||
If this is checked, the ``Wild Pokemon`` tab will be enabled and wild encounter data will be read from the project's encounters JSON file.
|
||||
|
||||
If no encounters JSON file is found this will be automatically unchecked.
|
||||
Defaults to ``checked``. If no encounters JSON file is found this will be automatically unchecked.
|
||||
|
||||
Field name: ``use_encounter_json``
|
||||
Prefabs
|
||||
``Prefabs Path`` is the file path to a ``.json`` file that contains definitions of prefabs. This will be used to populate the ``Prefabs`` panel on the ``Map`` tab. If no path is specified prefabs will be saved to a new ``prefabs.json`` file in the root project folder. A new file can be selected with the |button-folder| button or by editing the file path.
|
||||
|
||||
The |button-import-defaults| button will populate the specified file with version-specific prefabs constructed using the vanilla tilesets. This will overwrite any existing prefabs.
|
||||
|
||||
Default Tilesets
|
||||
----------------
|
||||
Collision Graphics
|
||||
``Image Path`` is a path to any image file you'd like to use to represent collision and elevation values on the ``Collision`` tab. A new file can be selected with the |button-folder| button or by editing the file path. The image will be evenly divided into segments, with each row representing an elevation value (starting with ``0`` at the top) and each column representing a collision value (starting with ``0`` on the left).
|
||||
|
||||
.. figure:: images/settings-and-options/default-tilesets.png
|
||||
:align: left
|
||||
:width: 60%
|
||||
:alt: Default Tilesets
|
||||
Your image does not need to have a row/column for every valid elevation/collision value (for instance, the default collision values range from ``0-3``, but because ``2-3`` are semantically the same as ``1`` they are not displayed). You can specify the highest elevation and collision value represented on your image with ``Max Elevation`` and ``Max Collision``.
|
||||
|
||||
Default Primary/Secondary Tilesest
|
||||
These will be the initially-selected tilesets when creating a new map, and will be used if a layout's tileset fails to load. If a default tileset is not found then the first tileset in the respective list will be used instead.
|
||||
Note: Images with transparency may not function correctly when displayed on the map.
|
||||
|
||||
The default primary tileset is ``gTileset_General``.
|
||||
The filepath defaults empty, which will use `Porymap's original image <https://github.com/huderlem/porymap/blob/master/resources/images/collisions.png>`_. ``Max Elevation`` and ``Max Collision`` default to ``15`` and ``1`` respectively.
|
||||
|
||||
The default secondary tileset is ``gTileset_PalletTown`` for ``pokefirered``, and ``gTileset_Petalburg`` for other versions.
|
||||
Pokémon Icons
|
||||
Porymap can display Pokémon species icons that it reads from your project on the ``Wild Pokemon`` tab. If Porymap fails to load your icon image, or if you'd like to display your own icon in Porymap for any reason, you can select a new image with the |button-folder| button or by editing the file path. You can select a species with the dropdown to edit the path for a different icon.
|
||||
|
||||
Field names: ``default_primary_tileset`` and ``default_secondary_tileset``
|
||||
If your custom icon or the default icon fails to load a |pokemon-icon-placeholder| icon will be displayed.
|
||||
|
||||
Defaults to empty (the path in your project where Porymap expects to find each icon).
|
||||
|
||||
New Map Defaults
|
||||
----------------
|
||||
Base Game Version
|
||||
This is the name of the base pret repository for this project. Changing this setting will prompt you to restore the default project settings for any of the three versions. You can also do this for the currently-selected base game version by selecting |button-restore-defaults| at the bottom of the window. Aside from determining the default settings in this window, the base game version also determines the default settings when initializing the region map and when importing default prefabs.
|
||||
|
||||
.. figure:: images/settings-and-options/new-map-defaults.png
|
||||
:align: left
|
||||
:width: 60%
|
||||
:alt: New Map Defaults
|
||||
Defaults to ``pokeruby``, ``pokefirered``, or ``pokeemerald`` depending on the project folder name. If the folder name doesn't match you will be prompted to select a version on first launch.
|
||||
|
||||
.. _maps:
|
||||
|
||||
Maps
|
||||
----
|
||||
|
||||
.. figure:: images/settings-and-options/tab-maps.png
|
||||
:alt: Maps tab
|
||||
|
||||
Border Metatiles
|
||||
This is list of metatile ID values that will be used to fill the border on new maps. The spin boxes correspond to the top-left, top-right, bottom-left, and bottom-right border metatiles respectively.
|
||||
|
@ -87,68 +105,55 @@ Border Metatiles
|
|||
|
||||
Defaults to ``0x014``, ``0x015``, ``0x01C``, ``0x01D`` for ``pokefirered``, and ``0x1D4``, ``0x1D5``, ``0x1DC``, ``0x1DD`` for other versions.
|
||||
|
||||
Field name: ``new_map_border_metatiles``
|
||||
|
||||
Fill Metatile
|
||||
This is the metatile ID value that will be used to fill new maps.
|
||||
|
||||
Defaults to ``0x1``.
|
||||
|
||||
Field name: ``new_map_metatile``
|
||||
|
||||
Elevation
|
||||
This is the elevation that will be used to fill new maps. It will also be the default selection on the Collision tab when a map is opened. New maps will be filled with passable collision.
|
||||
This is the elevation that will be used to fill new maps. It will also be used to set the default selection on the Collision tab when a map is opened.
|
||||
|
||||
Defaults to ``3``.
|
||||
|
||||
Field name: ``new_map_elevation``
|
||||
Collision
|
||||
This is the collision that will be used to fill new maps. It will also be used to set the default selection on the Collision tab when a map is opened.
|
||||
|
||||
Defaults to ``0``.
|
||||
|
||||
Create separate text file
|
||||
If this is checked, a ``text.inc`` (or ``text.pory``) file will be created alongside new maps.
|
||||
|
||||
Defaults to ``unchecked`` for ``pokeemerald`` and ``checked`` for other versions.
|
||||
|
||||
Field name: ``create_map_text_file``
|
||||
Enable 'Floor Number'
|
||||
If this is checked, a ``Floor Number`` option will become available on the ``Header`` tab and on the new map prompt. For more information see `Editing Map Headers <https://huderlem.github.io/porymap/manual/editing-map-header.html>`_.
|
||||
|
||||
Defaults to ``checked`` for ``pokefirered`` and ``unchecked`` for other versions.
|
||||
|
||||
Prefabs
|
||||
-------
|
||||
Enable 'Allow Running/Biking/Escaping'
|
||||
If this is checked, ``Allow Running``, ``Allow Biking``, and ``Allow Dig & Escape Rope`` options will become available on the ``Header`` tab and on the new map prompt. For more information see `Editing Map Headers <https://huderlem.github.io/porymap/manual/editing-map-header.html>`_.
|
||||
|
||||
.. figure:: images/settings-and-options/prefabs.png
|
||||
:align: left
|
||||
:width: 60%
|
||||
:alt: Prefabs
|
||||
Defaults to ``unchecked`` for ``pokeruby`` and ``checked`` for other versions.
|
||||
|
||||
Prefabs Path
|
||||
This is the file path to a ``.json`` file that contains definitions of prefabs. This will be used to populate the ``Prefabs`` panel on the ``Map`` tab. If no path is specified prefabs will be saved to a new ``prefabs.json`` file in the root project folder. A new file can be selected with the folder button.
|
||||
Enable Custom Border Size
|
||||
If this is checked, ``Border Width`` and ``Border Height`` options will become available under the ``Change Dimensions`` button and on the new map prompt. If it is unchecked all maps will use the default 2x2 dimensions.
|
||||
|
||||
The ``Import Defaults`` button will populate the specified file with version-specific prefabs constructed using the vanilla tilesets. This will overwrite any existing prefabs.
|
||||
Defaults to ``checked`` for ``pokefirered`` and ``unchecked`` for other versions.
|
||||
|
||||
Field name: ``prefabs_filepath``.
|
||||
.. _tilesets:
|
||||
|
||||
Additionally, there is a ``prefabs_import_prompted`` field that should not be edited.
|
||||
Tilesets
|
||||
--------
|
||||
|
||||
.. figure:: images/settings-and-options/tab-tilesets.png
|
||||
:alt: Tilesets tab
|
||||
|
||||
Base game version
|
||||
-----------------
|
||||
Default Primary/Secondary Tilesest
|
||||
These will be the initially-selected tilesets when creating a new map, and will be used if a layout's tileset fails to load. If a default tileset is not found then the first tileset in the respective list will be used instead.
|
||||
|
||||
.. figure:: images/settings-and-options/base-game-version.png
|
||||
:align: left
|
||||
:width: 60%
|
||||
:alt: Base Game Version
|
||||
The default primary tileset is ``gTileset_General``.
|
||||
|
||||
This is the name of base pret repository for this project. The options are ``pokeruby``, ``pokefirered``, and ``pokeemerald``, and can be selected (or automatically from the project folder name) when the project is first opened. Changing the base game version setting will prompt you to restore the default project settings for any of the three versions. You can also do this for the currently-selected base game version by selecting ``Restore Defaults`` at the bottom. For up-to-date projects changing this setting has no other effect.
|
||||
|
||||
Field name: ``base_game_version``
|
||||
|
||||
|
||||
Tilesets / Metatiles
|
||||
--------------------
|
||||
|
||||
.. figure:: images/settings-and-options/tilesets-metatiles.png
|
||||
:align: left
|
||||
:width: 60%
|
||||
:alt: Tilesets / Metatiles
|
||||
The default secondary tileset is ``gTileset_PalletTown`` for ``pokefirered``, and ``gTileset_Petalburg`` for other versions.
|
||||
|
||||
Enable Triple Layer Metatiles
|
||||
Metatile data normally consists of 2 layers with 4 tiles each. If this is checked, they should instead consist of 3 layers with 4 tiles each. Additionally, the ``Layer Type`` option in the ``Tileset Editor`` will be removed. Note that layer type data will still be read and written according to your ``Layer Type mask`` setting.
|
||||
|
@ -157,155 +162,101 @@ Enable Triple Layer Metatiles
|
|||
|
||||
Defaults to ``unchecked``
|
||||
|
||||
Field name: ``enable_triple_layer_metatiles``
|
||||
|
||||
Attributes size
|
||||
The number of bytes used per metatile for metatile attributes. The data in each of your project's ``metatile_attributes.bin`` files will be expected to be ``s * n``, where ``s`` is this size and ``n`` is the number of metatiles in the tileset. Additionally, new ``metatile_attributes.bin`` will be included in the project with a corresponding ``INCBIN_U8``, ``INCBIN_U16``, or ``INCBIN_U32`` directive.
|
||||
|
||||
Changing this setting will automatically enforce the new limit on the metatile attribute mask settings below.
|
||||
Changing this setting will automatically enforce the new limit on the metatile attribute mask settings.
|
||||
|
||||
Defaults to ``4`` for ``pokefirered`` and ``2`` for other versions.
|
||||
|
||||
Field name: ``metatile_attributes_size``
|
||||
|
||||
Attribute masks
|
||||
Each of the following four settings are bit masks that will be used to read and write a specific metatile attribute from the metatile attributes data. If you are instead importing metatile attribute data from AdvanceMap, a default mask value will be used to read the data, and the mask value specified here will be used to write the new file.
|
||||
Each of these four settings are bit masks that will be used to read and write a specific metatile attribute from the metatile attributes data. If you are instead importing metatile attribute data from AdvanceMap, a default mask value will be used to read the data, and the mask value specified here will be used to write the new file.
|
||||
|
||||
If any of the mask values are set to ``0x0``, the corresponding option in the Tileset Editor will be removed. The maximum for all the attribute masks is determined by the Attributes size setting.
|
||||
|
||||
.. warning::
|
||||
If any of the metatile attribute masks have overlapping bits they may behave in unexpected ways. A warning will be logged in the Porymap log file if this happens
|
||||
- Metatile Behavior mask
|
||||
This is the mask value for the ``Metatile Behavior`` metatile attribute.
|
||||
|
||||
Defaults to ``0x1FF`` for ``pokefirered``, and ``0xFF`` for other versions.
|
||||
|
||||
Metatile Behavior mask
|
||||
See Attribute masks. This is the mask value for the ``Metatile Behavior`` metatile attribute.
|
||||
- Layer Type mask
|
||||
This is the mask value for the ``Layer Type`` metatile attribute. If the value is set to ``0x0`` the ``Layer Type`` option will be disabled in the Tileset Editor, and all metatiles will be treated in the editor as if they had the ``Normal`` layer type.
|
||||
|
||||
Defaults to ``0x1FF`` for ``pokefirered``, and ``0xFF`` for other versions.
|
||||
Defaults to ``0x60000000`` for ``pokefirered`` and ``0xF000`` for other versions.
|
||||
|
||||
Field name: ``metatile_behavior_mask``
|
||||
- Encounter Type mask
|
||||
This is the mask value for the ``Encounter Type`` metatile attribute.
|
||||
|
||||
Layer Type mask
|
||||
See Attribute masks. This is the mask value for the ``Layer Type`` metatile attribute. If the value is set to ``0x0`` the ``Layer Type`` option will be disabled in the Tileset Editor, and all metatiles will be treated in the editor as if they had the ``Normal`` layer type.
|
||||
Defaults to ``0x7000000`` for ``pokefirered`` and ``0x0`` for other versions.
|
||||
|
||||
Defaults to ``0x60000000`` for ``pokefirered`` and ``0xF000`` for other versions.
|
||||
- Terrain Type mask
|
||||
This is the mask value for the ``Terrain Type`` metatile attribute.
|
||||
|
||||
Field name: ``metatile_layer_type_mask``
|
||||
Defaults to ``0x3E00`` for ``pokefirered`` and ``0x0`` for other versions.
|
||||
|
||||
Encounter Type mask
|
||||
See Attribute masks. This is the mask value for the ``Encounter Type`` metatile attribute.
|
||||
|
||||
Defaults to ``0x7000000`` for ``pokefirered`` and ``0x0`` for other versions.
|
||||
|
||||
Field name: ``metatile_encounter_type_mask``
|
||||
|
||||
Terrain Type mask
|
||||
See Attribute masks. This is the mask value for the ``Terrain Type`` metatile attribute.
|
||||
|
||||
Defaults to ``0x3E00`` for ``pokefirered`` and ``0x0`` for other versions.
|
||||
|
||||
Field name: ``metatile_terrain_type_mask``
|
||||
.. warning::
|
||||
If any of the metatile attribute masks have overlapping or discontinous bits they may behave in unexpected ways. A warning will be logged in the Porymap log file if this happens
|
||||
|
||||
Output 'callback' and 'isCompressed' fields
|
||||
If these are checked, then ``callback`` and ``isCompressed`` fields will be output in the C data for new tilesets. Their default values will be ``NULL`` and ``TRUE``, respectively.
|
||||
|
||||
Defaults to ``checked`` for both.
|
||||
|
||||
Field names: ``tilesets_have_callback`` and ``tilesets_have_is_compressed``
|
||||
|
||||
|
||||
Project Files
|
||||
-------------
|
||||
This is a list of the files and folders Porymap expects from your project. Each can be overridden by typing a new path or selecting a file/folder with the folder button. If the file/folder doesn't exist when the project is loaded then the default path will be used instead.
|
||||
|
||||
For more information on each of these files/folders, see https://huderlem.github.io/porymap/manual/project-files.html
|
||||
|
||||
Field name: ``path/<identifier>``
|
||||
.. _events:
|
||||
|
||||
Events
|
||||
------
|
||||
|
||||
.. figure:: images/settings-and-options/events.png
|
||||
:align: left
|
||||
:width: 60%
|
||||
:alt: Events
|
||||
.. figure:: images/settings-and-options/tab-events.png
|
||||
:alt: Events tab
|
||||
|
||||
Default Icons
|
||||
Each event group is represented by a unique icon on the ``Events`` tab of the main editor. Here you can provide filepaths to your own image files to replace these icons, either by selecting the |button-folder| button or by editing the file path directly.
|
||||
|
||||
Events in the ``Objects`` group will only use this icon if there are no graphics associated with their ``Sprite`` field.
|
||||
|
||||
The filepaths default to empty, which will use `Porymap's original icons <https://github.com/huderlem/porymap/blob/master/resources/images/Entities_16x16.png>`_.
|
||||
|
||||
Enable Clone Objects
|
||||
If this is checked Clone Object Events will be available on the ``Events`` tab. For more information see https://huderlem.github.io/porymap/manual/editing-map-events.html#clone-object-events
|
||||
If this is checked Clone Object Events will be available on the ``Events`` tab. For more information see `Clone Object Events <https://huderlem.github.io/porymap/manual/editing-map-events.html#clone-object-events>`_.
|
||||
|
||||
Defaults to ``checked`` for ``pokefirered`` and ``unchecked`` for other versions.
|
||||
|
||||
Field name: ``enable_event_clone_object``
|
||||
|
||||
Enable Secret Bases
|
||||
If this is checked Secret Base Events will be available on the ``Events`` tab. For more information see https://huderlem.github.io/porymap/manual/editing-map-events.html#secret-base-event
|
||||
If this is checked Secret Base Events will be available on the ``Events`` tab. For more information see `Secret Base Events <https://huderlem.github.io/porymap/manual/editing-map-events.html#secret-base-event>`_.
|
||||
|
||||
Defaults to ``unchecked`` for ``pokefirered`` and ``checked`` for other versions.
|
||||
|
||||
Field name: ``enable_event_secret_base``
|
||||
|
||||
Enable Weather Triggers
|
||||
If this is checked Weather Trigger Events will be available on the ``Events`` tab. For more information see https://huderlem.github.io/porymap/manual/editing-map-events.html#weather-trigger-events
|
||||
If this is checked Weather Trigger Events will be available on the ``Events`` tab. For more information see `Weather Trigger Events <https://huderlem.github.io/porymap/manual/editing-map-events.html#weather-trigger-events>`_.
|
||||
|
||||
Defaults to ``unchecked`` for ``pokefirered`` and ``checked`` for other versions.
|
||||
|
||||
Field name: ``enable_event_weather_trigger``
|
||||
|
||||
Enable 'Quantity' for Hidden Items
|
||||
If this is checked the ``Quantity`` property will be available for Hidden Item Events. For more information see https://huderlem.github.io/porymap/manual/editing-map-events.html#hidden-item-event
|
||||
If this is checked the ``Quantity`` property will be available for Hidden Item Events. For more information see `Hidden Item Events <https://huderlem.github.io/porymap/manual/editing-map-events.html#hidden-item-event>`_.
|
||||
|
||||
Defaults to ``checked`` for ``pokefirered`` and ``unchecked`` for other versions.
|
||||
|
||||
Field name: ``enable_hidden_item_quantity``
|
||||
|
||||
Enable 'Requires Itemfinder' for Hidden Items
|
||||
If this is checked the ``Requires Itemfinder`` property will be available for Hidden Item Events. For more information see https://huderlem.github.io/porymap/manual/editing-map-events.html#hidden-item-event
|
||||
If this is checked the ``Requires Itemfinder`` property will be available for Hidden Item Events. For more information see `Hidden Item Events <https://huderlem.github.io/porymap/manual/editing-map-events.html#hidden-item-event>`_.
|
||||
|
||||
Defaults to ``checked`` for ``pokefirered`` and ``unchecked`` for other versions.
|
||||
|
||||
Field name: ``enable_hidden_item_requires_itemfinder``
|
||||
|
||||
Enable 'Repsawn Map/NPC' for Heal Locations
|
||||
If this is checked the ``Respawn Map`` and ``Respawn NPC`` properties will be available for Heal Location events. For more information see https://huderlem.github.io/porymap/manual/editing-map-events.html#heal-location-healspots
|
||||
If this is checked the ``Respawn Map`` and ``Respawn NPC`` properties will be available for Heal Location events. For more information see `Heal Locations <https://huderlem.github.io/porymap/manual/editing-map-events.html#heal-location-healspots>`_.
|
||||
|
||||
Defaults to ``checked`` for ``pokefirered`` and ``unchecked`` for other versions.
|
||||
|
||||
Field name: ``enable_heal_location_respawn_data``
|
||||
|
||||
.. _project-files:
|
||||
|
||||
Maps
|
||||
----
|
||||
Project Files
|
||||
-------------
|
||||
|
||||
.. figure:: images/settings-and-options/maps.png
|
||||
:align: left
|
||||
:width: 60%
|
||||
:alt: Maps
|
||||
.. figure:: images/settings-and-options/tab-project-files.png
|
||||
:alt: Project Files tab
|
||||
|
||||
Enable 'Floor Number'
|
||||
If this is checked, a ``Floor Number`` option will become available on the ``Header`` tab and on the new map prompt. For more information see https://huderlem.github.io/porymap/manual/editing-map-header.html
|
||||
This is a list of the files and folders Porymap expects from your project. Each can be overridden by typing a new path or selecting a file/folder with the folder button. If the file/folder doesn't exist when the project is loaded then the default path will be used instead.
|
||||
|
||||
Defaults to ``checked`` for ``pokefirered`` and ``unchecked`` for other versions.
|
||||
For more information on each of these files/folders, see `Project Files <https://huderlem.github.io/porymap/manual/project-files.html>`_.
|
||||
|
||||
Field name: ``enable_floor_number``
|
||||
|
||||
Enable 'Allow Running/Biking/Escaping'
|
||||
If this is checked, ``Allow Running``, ``Allow Biking``, and ``Allow Dig & Escape Rope`` options will become available on the ``Header`` tab and on the new map prompt. For more information see https://huderlem.github.io/porymap/manual/editing-map-header.html
|
||||
|
||||
Defaults to ``unchecked`` for ``pokeruby`` and ``checked`` for other versions.
|
||||
|
||||
Field name: ``enable_map_allow_flags``
|
||||
|
||||
Enable Custom Border Size
|
||||
If this is checked, ``Border Width`` and ``Border Height`` options will become available under the ``Change Dimensions`` button and on the new map prompt. If it is unchecked all maps will use the default 2x2 dimensions.
|
||||
|
||||
Defaults to ``checked`` for ``pokefirered`` and ``unchecked`` for other versions.
|
||||
|
||||
Field name: ``use_custom_border_size``
|
||||
|
||||
|
||||
Additional Fields
|
||||
-----------------
|
||||
There are two additional fields in ``porymap.user.cfg`` that aren't described above.
|
||||
|
||||
``recent_map`` is the name of the most recently opened map and is updated automatically. This is the map that will be opened when the project is opened. If no map is found with this name (or if the field is empty) then the first map in the map list will be used instead.
|
||||
|
||||
``custom_scripts`` is a comma-separated list of filepaths to scripts for Porymap's API. These can be edited under ``Options -> Custom Scripts...``. For more information see https://huderlem.github.io/porymap/manual/scripting-capabilities.html
|
||||
|
|
|
@ -1265,7 +1265,7 @@
|
|||
<item row="4" column="0" colspan="3">
|
||||
<widget class="QSlider" name="horizontalSlider_CollisionTransparency">
|
||||
<property name="minimum">
|
||||
<number>0</number>
|
||||
<number>1</number>
|
||||
</property>
|
||||
<property name="maximum">
|
||||
<number>100</number>
|
||||
|
|
|
@ -38,8 +38,8 @@
|
|||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>531</width>
|
||||
<height>916</height>
|
||||
<width>528</width>
|
||||
<height>607</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_7">
|
||||
|
@ -69,6 +69,311 @@
|
|||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QGroupBox" name="groupBox_Prefabs">
|
||||
<property name="title">
|
||||
<string>Prefabs</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout_4">
|
||||
<item row="0" column="2">
|
||||
<widget class="QToolButton" name="button_ChoosePrefabs">
|
||||
<property name="text">
|
||||
<string>...</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="../resources/images.qrc">
|
||||
<normaloff>:/icons/folder.ico</normaloff>:/icons/folder.ico</iconset>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<widget class="QPushButton" name="button_ImportDefaultPrefabs">
|
||||
<property name="toolTip">
|
||||
<string>Restore the data in the prefabs file to the version defaults. Will create a new file if one doesn't exist.</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Import Defaults</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="QLineEdit" name="lineEdit_PrefabsPath">
|
||||
<property name="toolTip">
|
||||
<string>The file that will be used to populate the Prefabs tab</string>
|
||||
</property>
|
||||
<property name="placeholderText">
|
||||
<string>prefabs.json</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label_PrefabsPath">
|
||||
<property name="text">
|
||||
<string>Prefabs Path</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QGroupBox" name="groupBox_CollisionGraphics">
|
||||
<property name="title">
|
||||
<string>Collision Graphics</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout_7">
|
||||
<item row="1" column="6">
|
||||
<spacer name="horizontalSpacer">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item row="0" column="1" colspan="6">
|
||||
<widget class="QLineEdit" name="lineEdit_CollisionGraphics">
|
||||
<property name="toolTip">
|
||||
<string>The image sheet that will be used to represent elevation and collision on the Collision tab</string>
|
||||
</property>
|
||||
<property name="clearButtonEnabled">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="7">
|
||||
<widget class="QToolButton" name="button_CollisionGraphics">
|
||||
<property name="text">
|
||||
<string>...</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="../resources/images.qrc">
|
||||
<normaloff>:/icons/folder.ico</normaloff>:/icons/folder.ico</iconset>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="label_MaxElevation">
|
||||
<property name="text">
|
||||
<string>Max Elevation</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="5">
|
||||
<widget class="NoScrollSpinBox" name="spinBox_MaxCollision">
|
||||
<property name="toolTip">
|
||||
<string>The maximum collision value represented with an icon on the image sheet</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="4">
|
||||
<widget class="QLabel" name="label_MaxCollision">
|
||||
<property name="text">
|
||||
<string>Max Collision</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="text">
|
||||
<string>Image Path</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="2">
|
||||
<widget class="NoScrollSpinBox" name="spinBox_MaxElevation">
|
||||
<property name="toolTip">
|
||||
<string>The maximum elevation value represented with an icon on the image sheet</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="3">
|
||||
<spacer name="horizontalSpacer_4">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeType">
|
||||
<enum>QSizePolicy::Maximum</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>5</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QGroupBox" name="groupBox_PokemonIcons">
|
||||
<property name="title">
|
||||
<string>Pokémon Icons</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout_8">
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label_IconSpecies">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Fixed" vsizetype="Preferred">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Species</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="5">
|
||||
<widget class="QToolButton" name="button_PokemonIcon">
|
||||
<property name="text">
|
||||
<string>...</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="../resources/images.qrc">
|
||||
<normaloff>:/icons/folder.ico</normaloff>:/icons/folder.ico</iconset>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="2" colspan="4">
|
||||
<widget class="NoScrollComboBox" name="comboBox_IconSpecies">
|
||||
<property name="editable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="maxVisibleItems">
|
||||
<number>20</number>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="label_PokemonIcon">
|
||||
<property name="text">
|
||||
<string>Image Path</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="2" colspan="3">
|
||||
<widget class="QLineEdit" name="lineEdit_PokemonIcon">
|
||||
<property name="toolTip">
|
||||
<string>The icon that will be displayed on the Wild Pokémon tab for the above species</string>
|
||||
</property>
|
||||
<property name="clearButtonEnabled">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QFrame" name="frame_Warning">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">.QFrame { border: 1px solid red; }</string>
|
||||
</property>
|
||||
<property name="frameShape">
|
||||
<enum>QFrame::StyledPanel</enum>
|
||||
</property>
|
||||
<property name="frameShadow">
|
||||
<enum>QFrame::Raised</enum>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_3">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_Warning">
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>12</pointsize>
|
||||
<weight>75</weight>
|
||||
<bold>true</bold>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string><html><head/><body><p><span style=" font-size:13pt; color:#d7000c;">WARNING: </span><span style=" font-weight:400;">The settings from this point below require project changes to function properly. Do not modify these settings without the necessary changes. </span></p></body></html></string>
|
||||
</property>
|
||||
<property name="wordWrap">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QWidget" name="widget_BaseGameVersion" native="true">
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_BaseGameVersion">
|
||||
<property name="text">
|
||||
<string>Base game version</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="NoScrollComboBox" name="comboBox_BaseGameVersion">
|
||||
<property name="editable">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer_6">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="verticalSpacer_3">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>20</width>
|
||||
<height>40</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<widget class="QWidget" name="tab_Maps">
|
||||
<attribute name="title">
|
||||
<string>Maps</string>
|
||||
</attribute>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_17">
|
||||
<item>
|
||||
<widget class="QScrollArea" name="scrollArea_MapsTab">
|
||||
<property name="widgetResizable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<widget class="QWidget" name="scrollAreaWidgetContents_MapsTab">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>531</width>
|
||||
<height>490</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_16">
|
||||
<item>
|
||||
<widget class="QGroupBox" name="groupBox_NewMapDefaults">
|
||||
<property name="title">
|
||||
|
@ -246,208 +551,7 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QGroupBox" name="groupBox_Prefabs">
|
||||
<property name="title">
|
||||
<string>Prefabs</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout_4">
|
||||
<item row="0" column="2">
|
||||
<widget class="QToolButton" name="button_ChoosePrefabs">
|
||||
<property name="text">
|
||||
<string>...</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="../resources/images.qrc">
|
||||
<normaloff>:/icons/folder.ico</normaloff>:/icons/folder.ico</iconset>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<widget class="QPushButton" name="button_ImportDefaultPrefabs">
|
||||
<property name="toolTip">
|
||||
<string>Restore the data in the prefabs file to the version defaults. Will create a new file if one doesn't exist.</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Import Defaults</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="QLineEdit" name="lineEdit_PrefabsPath">
|
||||
<property name="toolTip">
|
||||
<string>The file that will be used to populate the Prefabs tab</string>
|
||||
</property>
|
||||
<property name="placeholderText">
|
||||
<string>prefabs.json</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label_PrefabsPath">
|
||||
<property name="text">
|
||||
<string>Prefabs Path</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QGroupBox" name="groupBox_CollisionGraphics">
|
||||
<property name="title">
|
||||
<string>Collision Graphics</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout_7">
|
||||
<item row="1" column="6">
|
||||
<spacer name="horizontalSpacer">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item row="0" column="1" colspan="6">
|
||||
<widget class="QLineEdit" name="lineEdit_CollisionGraphics">
|
||||
<property name="toolTip">
|
||||
<string>The image sheet that will be used to represent elevation and collision on the Collision tab</string>
|
||||
</property>
|
||||
<property name="clearButtonEnabled">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="7">
|
||||
<widget class="QToolButton" name="button_CollisionGraphics">
|
||||
<property name="text">
|
||||
<string>...</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="../resources/images.qrc">
|
||||
<normaloff>:/icons/folder.ico</normaloff>:/icons/folder.ico</iconset>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="label_MaxElevation">
|
||||
<property name="text">
|
||||
<string>Max Elevation</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="5">
|
||||
<widget class="NoScrollSpinBox" name="spinBox_MaxCollision">
|
||||
<property name="toolTip">
|
||||
<string>The maximum collision value represented with an icon on the image sheet</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="4">
|
||||
<widget class="QLabel" name="label_MaxCollision">
|
||||
<property name="text">
|
||||
<string>Max Collision</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="text">
|
||||
<string>Image Path</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="2">
|
||||
<widget class="NoScrollSpinBox" name="spinBox_MaxElevation">
|
||||
<property name="toolTip">
|
||||
<string>The maximum elevation value represented with an icon on the image sheet</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="3">
|
||||
<spacer name="horizontalSpacer_4">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeType">
|
||||
<enum>QSizePolicy::Maximum</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>5</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QGroupBox" name="groupBox_PokemonIcons">
|
||||
<property name="title">
|
||||
<string>Pokémon Icons</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout_8">
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label_IconSpecies">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Fixed" vsizetype="Preferred">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>The icon that will be displayed on the Wild Pokémon tab for the above species</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Species</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="5">
|
||||
<widget class="QToolButton" name="button_PokemonIcon">
|
||||
<property name="text">
|
||||
<string>...</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="../resources/images.qrc">
|
||||
<normaloff>:/icons/folder.ico</normaloff>:/icons/folder.ico</iconset>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="2" colspan="4">
|
||||
<widget class="NoScrollComboBox" name="comboBox_IconSpecies">
|
||||
<property name="editable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="maxVisibleItems">
|
||||
<number>20</number>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="label_PokemonIcon">
|
||||
<property name="text">
|
||||
<string>Image Path</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="2" colspan="3">
|
||||
<widget class="QLineEdit" name="lineEdit_PokemonIcon">
|
||||
<property name="clearButtonEnabled">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QFrame" name="frame_Warning">
|
||||
<widget class="QFrame" name="frame_WarningMapsTab">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">.QFrame { border: 1px solid red; }</string>
|
||||
</property>
|
||||
|
@ -457,9 +561,9 @@
|
|||
<property name="frameShadow">
|
||||
<enum>QFrame::Raised</enum>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_3">
|
||||
<layout class="QVBoxLayout" name="verticalLayout_18">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_Warning">
|
||||
<widget class="QLabel" name="label_Warning_2">
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>12</pointsize>
|
||||
|
@ -476,42 +580,9 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QWidget" name="widget_BaseGameVersion" native="true">
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_BaseGameVersion">
|
||||
<property name="text">
|
||||
<string>Base game version</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="NoScrollComboBox" name="comboBox_BaseGameVersion">
|
||||
<property name="editable">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer_6">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QGroupBox" name="groupBox_Maps">
|
||||
<widget class="QGroupBox" name="groupBox_MapFields">
|
||||
<property name="title">
|
||||
<string>Maps</string>
|
||||
<string>Fields</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<item row="0" column="1">
|
||||
|
@ -564,7 +635,7 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="verticalSpacer_3">
|
||||
<spacer name="verticalSpacer_5">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
</property>
|
||||
|
|
|
@ -175,7 +175,6 @@ void ProjectSettingsEditor::updatePokemonIconPath(const QString &species) {
|
|||
QString editedPath = this->editedPokemonIconPaths.value(species);
|
||||
QString defaultPath = this->project->speciesToIconPath.value(species);
|
||||
|
||||
const QSignalBlocker blocker(ui->lineEdit_PokemonIcon);
|
||||
ui->lineEdit_PokemonIcon->setText(this->stripProjectDir(editedPath));
|
||||
ui->lineEdit_PokemonIcon->setPlaceholderText(this->stripProjectDir(defaultPath));
|
||||
this->prevIconSpecies = species;
|
||||
|
@ -254,6 +253,8 @@ void ProjectSettingsEditor::refresh() {
|
|||
ui->comboBox_BaseGameVersion->setTextItem(projectConfig.getBaseGameVersionString());
|
||||
ui->comboBox_AttributesSize->setTextItem(QString::number(projectConfig.getMetatileAttributesSize()));
|
||||
this->updateAttributeLimits(ui->comboBox_AttributesSize->currentText());
|
||||
|
||||
this->prevIconSpecies = QString();
|
||||
this->editedPokemonIconPaths = projectConfig.getPokemonIconPaths();
|
||||
this->updatePokemonIconPath(ui->comboBox_IconSpecies->currentText());
|
||||
|
||||
|
|