If you like the game and can afford to, please donate to support MegaGlest.
I believe it would be beneficial for map editing and scenario creation if the map editor displayed the coordinates for the tile the mouse is currently hovering over in the status bar in the window. This feature is seen in most modern image editors.
GAE does this no? Are you sure MG doesn't already have this?
Index: source/glest_map_editor/main.cpp===================================================================--- source/glest_map_editor/main.cpp (Revision 4566)+++ source/glest_map_editor/main.cpp (Arbeitskopie)@@ -304,6 +304,7 @@ -2, // Brush Type -2, // Brush 'Value' -1, // Brush Radius+ -2, // Position }; CreateStatusBar(siCOUNT); GetStatusBar()->SetStatusWidths(siCOUNT, status_widths);@@ -314,6 +315,7 @@ SetStatusText(wxT("Brush: Height"), siBRUSH_TYPE); SetStatusText(wxT("Value: 0"), siBRUSH_VALUE); SetStatusText(wxT("Radius: 1"), siBRUSH_RADIUS);+ SetStatusText(wxT("Position: 0"), siPOS_VALUE); wxToolBar *toolbar = new MainToolBar(this->panel, wxID_ANY); toolbar->AddTool(miEditUndo, _("undo"), wxBitmap(edit_undo), _("Undo"));@@ -603,6 +605,7 @@ objectUnderMouse = currObject; } + SetStatusText(wxT("Position: ") + ToUnicode((program->getCell(x,y))), siPOS_VALUE); //#ifdef WIN32 //repaint = true; //#endifIndex: source/glest_map_editor/program.cpp===================================================================--- source/glest_map_editor/program.cpp (Revision 4566)+++ source/glest_map_editor/program.cpp (Arbeitskopie)@@ -10,6 +10,7 @@ // ============================================================== +#include "conversion.h" #include "program.h" #include "util.h" #include <iostream>@@ -183,6 +184,12 @@ } } +string Program::getCell(int x, int y) {+ int i=(x - ofsetX) / cellSize;+ int j= (y + ofsetY) / cellSize;+ return intToStr(i) + "," + intToStr(j);+}+ int Program::getResource(int x, int y) { int i=(x - ofsetX) / cellSize; int j= (y + ofsetY) / cellSize;Index: source/glest_map_editor/main.h===================================================================--- source/glest_map_editor/main.h (Revision 4566)+++ source/glest_map_editor/main.h (Arbeitskopie)@@ -53,6 +53,7 @@ siBRUSH_TYPE, siBRUSH_VALUE, siBRUSH_RADIUS,+ siPOS_VALUE, siCOUNT }; Index: source/glest_map_editor/program.h===================================================================--- source/glest_map_editor/program.h (Revision 4566)+++ source/glest_map_editor/program.h (Arbeitskopie)@@ -175,6 +175,7 @@ int getObject(int x, int y); int getResource(int x, int y);+ string getCell(int x, int y); static const MapPreview *getMap() {return map;} };