filedialog and infix moved from mapeditor.cpp to dialogs.cpp

This commit is contained in:
Zeno Rogue committed 2017-12-09 04:01:56 +01:00
1 parent 635d1f911c
commit 4fa764c175
6 files changed
+201 -193

No files matched your search

+6 -6
View File
@@ -20,8 +20,8 @@ void showOverview() {
cmode = sm::ZOOMABLE | sm::OVERVIEW;
DEBB(DF_GRAPH, (debugfile,"show overview\n"));
if(mapeditor::infix != "")
mouseovers = mapeditor::infix;
if(dialog::infix != "")
mouseovers = dialog::infix;
else {
mouseovers = XLAT("world overview");
mouseovers += " ";
@@ -39,7 +39,7 @@ void showOverview() {
generateLandList(isLandValid);
if(mapeditor::infix != "") {
if(dialog::infix != "") {
vector<eLand> filtered;
for(eLand l: landlist) {
string s = dnameof(l);
@@ -47,7 +47,7 @@ void showOverview() {
s += dnameof(treasureType(l));
s += "@";
s += dnameof(nativeOrbType(l));
if(mapeditor::hasInfix(s))
if(dialog::hasInfix(s))
filtered.push_back(l);
}
if(filtered.size())
@@ -183,7 +183,7 @@ void showOverview() {
"mousewheel to gain or lose treasures and orbs quickly (Ctrl = precise, Shift = reverse)."
);
else if(dialog::handlePageButtons(uni)) ;
else if(mapeditor::editInfix(uni)) ;
else if(dialog::editInfix(uni)) ;
else if(doexiton(sym, uni)) popScreen();
};
}
@@ -709,7 +709,7 @@ void setAppropriateOverview() {
runGeometryExperiments();
}
else {
mapeditor::infix = "";
dialog::infix = "";
pushScreen(showOverview);
}
}