Add CSS color classes based on tile type in DB #13

Closed
opened 2024-03-18 20:03:27 -05:00 by Jonathan · 2 comments
Owner

For example, floor_wood would be displayed as a brown - while floor_stone is gray.

For example, floor_wood would be displayed as a brown - while floor_stone is gray.
Jonathan added the
enhancement
front-facing
HTML / CSS
labels 2024-03-18 20:03:34 -05:00
Jonathan started working 2024-03-19 11:42:07 -05:00
Jonathan stopped working 2024-03-19 11:43:51 -05:00
1 minute 44 seconds
Jonathan started working 2024-03-19 11:54:29 -05:00
Author
Owner

The system needs to return a variable for each XY coordinate that tells CSS which class to assign to it.

Therefore, this should be done in mapDecrypt, which will use string:find to determine what material type we are looking at (stone, wood, etc) and what tile type (wall, floor).

The tile type determination will encode the character as before (w for wall, - for floor) but the material type query will assign the type to another variable which etlua will then encode into CSS for that character, giving it a color.

The system needs to return a variable for each XY coordinate that tells CSS which class to assign to it. Therefore, this should be done in mapDecrypt, which will use string:find to determine what material type we are looking at (stone, wood, etc) and what tile type (wall, floor). The tile type determination will encode the character as before (w for wall, - for floor) but the material type query will assign the type to another variable which etlua will then encode into CSS for that character, giving it a color.
Jonathan stopped working 2024-03-19 12:26:50 -05:00
32 minutes 21 seconds
Jonathan reopened this issue 2024-03-19 16:49:33 -05:00
Author
Owner

All work on this issue was lost.

I feel like killing someone.

All work on this issue was lost. I feel like killing someone.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Total Time Spent: 34 minutes 5 seconds
Jonathan
34 minutes 5 seconds
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Jonathan/Peradventure#13
No description provided.