Comments (15)
Can you add a screenshot of this?
I feel there's a decent chance this is just vanilla behavior
from artemis.
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:
Portrait - happens with a great portion of the items:
Both screenshots go all the way to the left border of my screen.
from artemis.
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.
Thought it might be a bit too big, but here you go:
from artemis.
As you can see from the squares, I'm on the most recent version (90) as of now.
from artemis.
A solution for the item guesses problem would be wrapping when the text gets too long.
from artemis.
Afaik that's currently the case on the 1.12.2 version
from artemis.
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.
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.
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.
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.
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.
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.
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.
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)
- 1.20.4 where HOT 1
- [Question] The Urls.json cannot be replace by using Resouces pack HOT 1
- [Question] About the resource download issue of Chinese Players HOT 1
- [Proposal] - Allow overriding urls.json source link with a java properties
- Make translation feature work with NPC dialogues HOT 13
- Disabling Game Notifications overlay hides all notifications (unless it's parent feature is also disabled) HOT 2
- WorldStateModel needs to correctly handle Housing Islands
- The one-click join wynncraft button on the title screen crashes when using Blur Mod HOT 2
- Text renders black on the left side of the screen
- Crashes on launch when using v1.1.11+ HOT 2
- Unidentified Shiny Items are not annotated correctly HOT 1
- "donator" should be "donor"
- [Function request] Some features that may provide a better experience HOT 2
- "Press SNEAK to continue" has "<protected>" behind it HOT 6
- WorldStateModel breaks after /class in streamer mode HOT 2
- Game frequently crashes in trade market HOT 4
- Quest, cave, discoveries, and other things in content book take way too long to load HOT 10
- WAR_MESSAGE_PATTERN does not handle x minute and y second case
- [MapData] - Icon Fade is applied on the minimap HOT 4
- [MapData] - Minimum visibility to render is slightly off, allowing hovering unrendered features HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from artemis.