-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update hoverText for Locations & Dungeons, and add styling for hoverText icons #433
Conversation
This should cover the rest of #425 |
@@ -110,7 +110,7 @@ | |||
top: 0 | |||
logic: westOfMire | |||
- name: DW Death Mountain | |||
hoverText: DW Death Mountain | |||
hoverText: "DW Death Mountain (2) : Don't need <img src='/static/image/moonpearl.png' class='mini'>" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you add double quotes on this one?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The colon in the hoverText
confuses YAML parsers if the string isn't quoted.
@@ -420,7 +420,7 @@ | |||
top: 0 | |||
logic: checkerboardCave | |||
- name: Hammers | |||
hoverText: Hammers | |||
hoverText: <img src='/static/image/hammer.png' class='mini'><img src='/static/image/hammer.png' class='mini'><img src='/static/image/hammer.png' class='mini'><img src='/static/image/hammer.png' class='mini'><img src='/static/image/hammer.png' class='mini'><img src='/static/image/hammer.png' class='mini'><img src='/static/image/hammer.png' class='mini'><img src='/static/image/hammer.png' class='mini'>!!!!!!!! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so many hammers
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One for every peg you have to smack with the hammer in that location. 😄
@@ -60,7 +60,7 @@ | |||
top: 0 | |||
logic: tavern | |||
- name: Chicken House | |||
hoverText: Chicken House | |||
hoverText: Chicken House <img src='/static/image/bomb.png' class='mini'> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there no way to make these more dynamic so the html gets injected and you're not typing out the same thing for the bomb image over and over here in the yaml? seems not super ideal, especially if for some reason there was a directory structure or naming convention change down the line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly just wondering about the two items that have double quotes around them and the inconsistency there, otherwise lgtm
Adding some kind of dynamic way to inject the images would be a nice to have, wouldn't necessarily have to happen in this PR.
irt the dynamic images would also be in line with issue #20 customizing layout later down in the line, something you could toggle perhaps? |
Some kind of templating to reduce the amount of repetition for using images in the hover text would definitely make that easier. |
The kind of customization I was thinking with #20 was more about the fixed grid that is currently used for the item listing, and the dungeon icons immediately below them (not the ones on the map. The lttp-tracker.firebaseapp.com tracker has a mechanism for customizing which (and how many) item icons show up on each row of the grid, for both the items, and for the dungeon icons. What kind of dynamic images are you thinking of? |
No description provided.