GithubHelp home page GithubHelp logo

Comments (15)

P0keDev avatar P0keDev commented on July 22, 2024

Can you add a screenshot of this?

I feel there's a decent chance this is just vanilla behavior

from artemis.

Kepler-17c avatar Kepler-17c commented on July 22, 2024

Found that it can also happen in landscape format.

Landscape - in this case a broken item with JSON data as lore - also had this with a long list of roll predictions earlier:
image

Portrait - happens with a great portion of the items:
image

Both screenshots go all the way to the left border of my screen.

from artemis.

P0keDev avatar P0keDev commented on July 22, 2024

That top one is definitely just vanilla behavior - it's not getting affected by the tooltip feature at all since, like the one in legacy wynntils, it only checks the vertical borders of the screen. We could maybe add checks for horizontal borders as well but that's very rarely an issue in-game

That second one is definitely strange though. My guess is that the minecraft rendering system always handles dimensions as if they're 16:9 and does some extra processing for non-standard window sizes that we're not accounting for, but I'll have to look into it further. Could you attach a full screenshot so I know just what shape your window is?

from artemis.

Kepler-17c avatar Kepler-17c commented on July 22, 2024

Thought it might be a bit too big, but here you go:

2022-07-04_05 06 44
2022-07-04_05 06 58

from artemis.

Kepler-17c avatar Kepler-17c commented on July 22, 2024

As you can see from the squares, I'm on the most recent version (90) as of now.

from artemis.

Incompleteusern avatar Incompleteusern commented on July 22, 2024

A solution for the item guesses problem would be wrapping when the text gets too long.

from artemis.

Kepler-17c avatar Kepler-17c commented on July 22, 2024

Afaik that's currently the case on the 1.12.2 version

from artemis.

Incompleteusern avatar Incompleteusern commented on July 22, 2024

Yeah it might be good to consider that for 1.12.2 version. Another alternative is to further split from the four possible levels, one line for each level.

from artemis.

Kepler-17c avatar Kepler-17c commented on July 22, 2024

No, I mean it's already implemented - I'll have to switch versions to make sure, but as far as I remember, that broken item stopped at the side and wrapped to the next line

from artemis.

kristofbolyai avatar kristofbolyai commented on July 22, 2024

As you can see from the squares, I'm on the most recent version (90) as of now.

lol, thanks for pointing that out, it should not happen in production.😅 See #138 for tracking the issue.

from artemis.

TomaSajt avatar TomaSajt commented on July 22, 2024

I did some testing, and it seems like this wrapping issue is only present with fabric and quilt (this is also the vanilla behavior). However with forge the wrapping works perfectly fine, the same as in 1.12.
I searched for the code making it possible in forge, but couldn't find the implementation (the method was empty).

from artemis.

kristofbolyai avatar kristofbolyai commented on July 22, 2024

I did some testing, and it seems like this wrapping issue is only present with fabric and quilt (this is also the vanilla behavior). However with forge the wrapping works perfectly fine, the same as in 1.12.

I searched for the code making it possible in forge, but couldn't find the implementation (the method was empty).

What was the method name? Was it not overwritten by something?

from artemis.

TomaSajt avatar TomaSajt commented on July 22, 2024

What was the method name? Was it not overwritten by something?

I did some more searching and found how forge actually does it ForgeHooksClient::gatherTooltipComponents
But I also found some code which supposedly already does this wrapping in the vanilla code (it doesn't) screen::renderComponentHoverEffect

from artemis.

kristofbolyai avatar kristofbolyai commented on July 22, 2024

I will check out these and probably just implement forge behavior for the mod. We will need to disable the mod's code in Forge though, that will need a small change in the common side.

from artemis.

TomaSajt avatar TomaSajt commented on July 22, 2024

correction: turns out screen::renderComponentHoverEffect is used when you hover over a hoverable text component. The wrapping seems to be working fine when hovering the text.

from artemis.

Related Issues (20)

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.