Git Product home page Git Product logo

wfto-mapeditor's People

Contributors

ufdada avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

wfto-mapeditor's Issues

Release 1.3

To merge the branch minor the following tasks have to be done:

  • Resize of current Map
  • Get rid of tile position in map file
  • Inputfield for map name and simple versioning
  • Rotate mirror 1

Map that has been downloaded/exported 2 times can't be imported

It shows the message "invalid filename".
It only happens if you import the map via the options menu (not the drag and drop feature).
The filename is "Basions_001 (2).wfto".
This mainly happens because if you export a map 2 times in a row.

There are two things that should be fixed:

  • Update version (increment by 1) if the export button was clicked/file was downloaded
  • Allow braces in filename
  • Filter this kind of filename (rename it to "Basions_001.wfto")
    • filename.replace(/\s\([0-9]{1,}\)/g, "");

Save map as image

Instead of saving a map to a file, it should be saved as an image.

open the readme in a new tab

When clicking the "?" Button in the menu, the readme should be opened in a new tab instead of the same window.

like window.open("http://awesome.url/readme", "_blank")

Check for popup blocking!

Y axis

The in-game map editor's x and y axes start at the bottom left of the map, and increase in number from 1 to whatever the map's size is (so in a 50x50 map, the bottom left-most tile will be 1,1 and the top right-most tile will be 50,50). Currently the y axis in wfto-mapeditor is the wrong way round (so in the same 50x50 map, the bottom left most tile will be 1,50 and the top right-most tile will be 50,1). Below are two images to illustrate what I mean:

xyaxis01 xyaxis02

It's easier to translate a map from wfto-mapeditor to the in-game map editor if the coordinates on the x-y axes are the same, but currently only the x axis is the same. Would it be possible to flip the y axis around so it starts at the bottom of the map and counts up to the top?

Saving and restoring a map draft

To save the progress of a map for unpredictable situations (browser-crash, accidental tab closing etc.) the mapeditor should be smart enough to set and reset a draft after every action.

Sideeffects: As the browser has a max of 5MiB to store, i just would store one map as draft (no undo/redo - data).

Actions where a draft should be

set reset
after setting a tile generate new map
redo import map file
mirror map import csv file
resize map export map
undo choose cancel on confirm message

Edit: There is no confirm message, the map file gets immediately restored now. It is more convienent that way.

Undo/Redo Feature

Actions should be logged and the user should be able to redo/undo actions.

Maybe just save the whole map with export and restrict the history to 10 (so we don't get too much overhead).

Watching for difference seems rather difficult to implement and may lead to several restrictions and limitations (importing map / generate new map / mirror map) as there is a lot going on.

Convert selenium ide tests to dalekjs

As selenium ide only works in firefox and the webdrivers are not really convenient i decided to switch to dalekjs.

Just to throw in some ideas:
Folderstructure:

  • tests
    • maps
      • default map (20x20)
      • map for extending
      • map not for extending
      • map for rotating
      • map for testing rooms on mirror line
    • options
      • new map
      • import
      • import csv
      • export
      • general options
      • mirroring
        • mirror 1
        • mirror 2
        • mirror 3

Remove rooms that aren't complete

On mirroring there are several possibilities that a room gets overwritten by itself and by other rooms as well.

If this is the case a room that is not complete (because partially overwritten) should be deleted from the map.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.