Skip to content

Conversation

@paypur
Copy link

@paypur paypur commented Jul 16, 2025

@KnightMiner
Copy link
Member

Its also worth asking, do you plan to implement tooltips or not? Its fine without tooltip; text + links is better than nothing. But want to know so I know how to review this.

@paypur
Copy link
Author

paypur commented Jul 16, 2025

I'll try but not in this pr

paypur added 2 commits July 16, 2025 18:32
Removed unnecessary spans and colors

Took 3 hours 23 minutes
Comment on lines 8 to 9
Mantle.logger.warn("{} does not implement IHTML. If it does not contain text, ignore this warning.", this.getClass());
return "<p>" + this.getClass() + "</p>";
Copy link
Member

Choose a reason for hiding this comment

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

I believe this default implementation is redundant and is probably better left out, since it is implemented on the base PageContent, and any subsequent child content inherits that.

Copy link
Author

Choose a reason for hiding this comment

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

I do want to keep this though, it makes figuring out which class to work on very easy

Copy link
Member

Choose a reason for hiding this comment

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

It might be worth making it abstract in the interface, but then put this default implementation in PageContent. Are there any other classes that implement the interface without providing an implementation?

Copy link
Author

@paypur paypur Jul 17, 2025

Choose a reason for hiding this comment

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

I removed the implementation in PageContent, so everything else I haven't changed

paypur added 8 commits July 17, 2025 08:40
Took 12 minutes
Took 9 minutes
Took 15 minutes
Took 11 minutes
Added another title helper

Took 30 minutes
Took 23 minutes
@paypur paypur changed the title Implement converting most PageContent's into HTML Implement converting PageContent's into HTML Jul 20, 2025
@paypur paypur marked this pull request as ready for review July 20, 2025 23:20
paypur and others added 18 commits July 20, 2025 17:03
Took 16 minutes
# Conflicts:
#	src/main/java/slimeknights/mantle/client/screen/book/BookScreen.java
Took 8 seconds
Took 2 hours 8 minutes
Took 1 hour 1 minute
Took 35 minutes
Took 44 minutes


Took 5 minutes
Took 1 hour 57 minutes
# Conflicts:
#	src/main/java/slimeknights/mantle/client/screen/book/BookScreen.java
#	src/main/java/slimeknights/mantle/command/client/BookCommand.java

Took 15 seconds
Took 29 minutes

Took 24 seconds
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.

3 participants