Skip to content
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

Show infotext with description for item entities #3547

Closed
wants to merge 1 commit into from

Conversation

RealBadAngel
Copy link
Contributor

screenshot_20160108_155704
screenshot_20160108_155806

@@ -1850,5 +1850,10 @@ std::string GenericCAO::debugInfoText()
return os.str();
}

std::string GenericCAO::infoText()
Copy link
Member

Choose a reason for hiding this comment

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

no, set this definition to content_cao.h directly to permit inlining implictly by compiler.

Copy link
Member

Choose a reason for hiding this comment

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

Also, return const std::string instead of std::string

@PilzAdam
Copy link
Contributor

PilzAdam commented Jan 8, 2016

Can you document the new field in lua_api.txt?

@RealBadAngel
Copy link
Contributor Author

@PilzAdam done

@sfan5
Copy link
Member

sfan5 commented Jan 9, 2016

👍

@nerzhul
Copy link
Member

nerzhul commented Jan 11, 2016

@PilzAdam remove bad suggestions about virtual operator :)

@paramat
Copy link
Contributor

paramat commented Jan 14, 2016

I'd like to give this a +1 but there's no description of what it does, is the top screenshot the before or the after? How does this change the information shown?

@HybridDog
Copy link
Contributor

Why is the infotext shown in the top left part of the minetest window and not next to the + cursor?

@Amaz1
Copy link
Contributor

Amaz1 commented Jan 14, 2016

... is the top screenshot the before or the after?

I don't think that either are the before/after screenshots. From the small bit of testing that I've done, it seems that the top one is how it looks without debug info, and the bottom one is with debug info on.

How does this change the information shown?

It makes the info in debug mode (hp & armor groups) appear a line further down the screen, and (somewhat obviously!) shows the "infotext" of the item being pointed at.

@RealBadAngel
Copy link
Contributor Author

@HybridDog infotext is shown at the same position like for nodes, its fixed.
@paramat screenshot of "before" for you:
screenshot_20160114_225639
Also, the PR name clearly states what it does, what else could i say?

@sofar
Copy link
Contributor

sofar commented Jan 15, 2016

Tested this and it's great, simple implementation as well, so 👍 from me.

@nerzhul
Copy link
Member

nerzhul commented Jan 15, 2016

@RealBadAngel i'm okay with your PR except the inlining comments

@RealBadAngel
Copy link
Contributor Author

@nerzhul ah, forgot bout that, will do that later today

@sfan5
Copy link
Member

sfan5 commented Jan 15, 2016

👍

@paramat
Copy link
Contributor

paramat commented Jan 18, 2016

87291ea

@paramat paramat closed this Jan 18, 2016
paramat added a commit that referenced this pull request May 22, 2016
Partially reverts #3547
Infotext remains optional for objects, empty by default
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants