Stat Display

legowiifun

StatDisplay

[Image: Mod Version] [Image: Downloads] [Image: GD Version] [Image: Geode Version] Displays various statistics on the UILayer

This mod supports an optional API. To use it, first put in your mod.json

	"legowiifun.stat_display": {
		"version": ">=2.1.1",
		"required": false
	},

Next, include in your #includes #include . Next, store the possible start and end strings in std::strings. For this example, I will call them start and end. You also will want to store a string with the id of the stat. Make sure there is a resource in the mod resources folder with a name matching the ID, and append the ID with _spr.

Next, hook GJBaseGameLayer::createTextLayers, and after calling the original method, call the following line of code:

stat_display_api::addStatEvent(start, end, id, int value); with int value being replaced by the int variable where you are storing the stat to display. The mod does not support non-int stats.

This will add the stat to the stat display. However, it will only update when exiting and reentering the level, unlike the base stats.

2.1.2

  • 2.209 Support!

2.1.1

  • 2.208 Support
  • Changed the optional API to an Event Export Macro-based API

2.1.0

  • Refactoring
  • Added support for a dispatch-events based API

2.0.1

  • JIT-less IOS support!

2.0.0

  • IOS support!
  • Support for images as requested by mariokirby1703
  • Major rewrite by Alphalaneous
  • New mod logo by ezpixelGD

1.0.2

  • Fix a bug involving the pause menu button
  • Make it so you can turn the pause menu button off

1.0.1

  • fix bug with liked/disliked levels, rated levels, user coins, diamonds, and mana orbs stats
  • Add options to display jump and attempt stats

1.0.0

  • initial release

Original Site made by HJfod. Geode 2 parody-ish by MeFinity.

Geode-SDK is the property of the Geode Team.


This website (Geode 2, Codename Malachite) is not affiliated with the Geode Team in any way shape or form.