mirror of
https://github.com/huderlem/porymap.git
synced 2026-08-13 04:15:45 -05:00
insert new map entries when edited
This commit is contained in:
@@ -18,6 +18,14 @@
|
||||
class RegionMapEntry
|
||||
{
|
||||
public:
|
||||
RegionMapEntry()=default;
|
||||
RegionMapEntry(int x_, int y_, int width_, int height_, QString name_) {
|
||||
this-> x = x_;
|
||||
this-> y = y_;
|
||||
this-> width = width_;
|
||||
this-> height = height_;
|
||||
this-> name = name_;
|
||||
}
|
||||
int x;
|
||||
int y;
|
||||
int width;
|
||||
@@ -98,6 +106,8 @@ public:
|
||||
QVector<uint8_t> getTiles();
|
||||
void setTiles(QVector<uint8_t> tileIds);
|
||||
|
||||
QString fixCase(QString);
|
||||
|
||||
private:
|
||||
int layout_width_;
|
||||
int layout_height_;
|
||||
@@ -112,8 +122,6 @@ private:
|
||||
|
||||
int img_index_(int x, int y);
|
||||
int layout_index_(int x, int y);
|
||||
|
||||
QString fix_case(QString);
|
||||
};
|
||||
|
||||
#endif // REGIONMAP_H
|
||||
|
||||
@@ -92,11 +92,11 @@ private:
|
||||
void displayCityMapTileSelector();
|
||||
void displayCityMap(QString name);
|
||||
void displayRegionMapEntryOptions();
|
||||
void uodateRegionMapEntryOptions(int);//
|
||||
void updateRegionMapEntryOptions(QString);//
|
||||
void updateRegionMapEntryOptions(QString);
|
||||
void importTileImage(bool city = false);
|
||||
|
||||
bool createCityMap(QString name);
|
||||
bool tryInsertNewMapEntry(QString);
|
||||
|
||||
void closeEvent(QCloseEvent* event);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user