Skip to content

Add flats to the list (WIP)#2

Open
jmtd wants to merge 1 commit into
fragglet:masterfrom
jmtd:flats
Open

Add flats to the list (WIP)#2
jmtd wants to merge 1 commit into
fragglet:masterfrom
jmtd:flats

Conversation

@jmtd
Copy link
Copy Markdown

@jmtd jmtd commented Aug 31, 2017

Pretty rough, lots of copy pasta, but a place to work from.

@jmtd
Copy link
Copy Markdown
Author

jmtd commented Aug 31, 2017

Independent of #1 but works best on top (to get the DIV styling)

Comment thread texture.js Outdated
var lines = wadinfo.split("\n");
var i;
var flats = []; f = null;
// skip until [flats]
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd suggest just a simple text file containing the list of flats, rather than bother trying to parse wadinfo.txt.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Certainly easier from the JS side of things but then I/we'd have to generate said text file ourselves... I suppose that's a one-time thing most likely.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exactly. ls *.png > flags.txt doesn't seem like a huge amount of effort.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh yeah of course!

Pretty rough, lots of copy pasta, but a place to work from.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants