mirror of
https://github.com/huderlem/porymap.git
synced 2026-10-01 12:26:37 -05:00
custom table widget for mon data, add new encounter fields to maps
This commit is contained in:
@@ -19,19 +19,20 @@ struct WildMonInfo {
|
||||
// for extensibility, make a QVector<WildMonInfo>
|
||||
// or QMap<QString, WildMonInfo>
|
||||
struct WildPokemonHeader {
|
||||
WildMonInfo landMons;
|
||||
WildMonInfo waterMons;
|
||||
WildMonInfo rockSmashMons;
|
||||
WildMonInfo fishingMons;
|
||||
|
||||
QMap<QString, WildMonInfo> wildMons;
|
||||
};
|
||||
|
||||
class Project;
|
||||
QWidget *newSpeciesTableEntry(Project *project, WildPokemon mon, int index);
|
||||
void createSpeciesTableRow(Project *, QTableWidget *, WildPokemon, int, QString);
|
||||
typedef QVector<QPair<QString, QVector<int>>> Fields;
|
||||
typedef QPair<QString, QVector<int>> Field;
|
||||
|
||||
//class Project;
|
||||
//class MonTabWidget;
|
||||
//QWidget *newSpeciesTableEntry(Project *project, WildPokemon mon, int index);
|
||||
//void createSpeciesTableRow(Project *, QTableWidget *, WildPokemon, int, QString);
|
||||
void clearTabWidget(QLayout *tab);
|
||||
void clearTable(QTableWidget *table);
|
||||
void populateWildMonTabWidget(QTabWidget *tabWidget, QVector<QPair<QString, QVector<int>>> fields);
|
||||
//void clearTable(QTableWidget *table);
|
||||
//void populateWildMonTabWidget(MonTabWidget *tabWidget, Fields /* QVector<QPair<QString, QVector<int>>> */ fields);
|
||||
|
||||
WildMonInfo getDefaultMonInfo(Field field);
|
||||
|
||||
#endif // GUARD_WILDMONINFO_H
|
||||
|
||||
Reference in New Issue
Block a user