mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-24 13:01:24 +01:00
namespace for submap ui.
This commit is contained in:
parent
5e6813c52c
commit
e6d499fa60
2 changed files with 185 additions and 181 deletions
|
|
@ -1728,8 +1728,8 @@
|
||||||
|
|
||||||
<p>Click to create a new map:</p>
|
<p>Click to create a new map:</p>
|
||||||
<div id="resamplers">
|
<div id="resamplers">
|
||||||
<button data-tip="Click to generate new (sub)map from the current viewport" onclick="openSubmapOptions()">Submap</button>
|
<button data-tip="Click to generate new (sub)map from the current viewport" onclick="UISubmap.openSubmapOptions()">Submap</button>
|
||||||
<button data-tip="Click to resample (transform) your map to different cellcount" onclick="openRemapOptions()">Resample</button>
|
<button data-tip="Click to resample (transform) your map to different cellcount" onclick="UISubmap.openRemapOptions()">Resample</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@
|
||||||
UI elements for submap generation
|
UI elements for submap generation
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
window.UISubmap = (function () {
|
||||||
function openSubmapOptions() {
|
function openSubmapOptions() {
|
||||||
$("#submapOptionsDialog").dialog({
|
$("#submapOptionsDialog").dialog({
|
||||||
title: "Submap options",
|
title: "Submap options",
|
||||||
|
|
@ -186,3 +187,6 @@ function showSubmapErrorHandler(error) {
|
||||||
position: {my: "center", at: "center", of: "svg"}
|
position: {my: "center", at: "center", of: "svg"}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return {openSubmapOptions, openRemapOptions}
|
||||||
|
})();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue