-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleanup, more features, fix UI folder crash
- Loading branch information
1 parent
b1cc722
commit f685edd
Showing
8 changed files
with
1,256 additions
and
979 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#include <Geode/Geode.hpp> | ||
#include <Geode/modify/CCLabelBMFont.hpp> | ||
#include "Utils.h" | ||
|
||
using namespace geode::prelude; | ||
|
||
class $modify(MyCCLabelBMFont, CCLabelBMFont){ | ||
|
||
struct Fields { | ||
float m_limitWidth = 1; | ||
float m_limitDefaultScale = 1; | ||
float m_limitMinScale = 1; | ||
bool m_isLimited = false; | ||
}; | ||
|
||
void limitLabelWidth(float width, float defaultScale, float minScale){ | ||
|
||
m_fields->m_limitWidth = width; | ||
m_fields->m_limitDefaultScale = defaultScale; | ||
m_fields->m_limitMinScale = minScale; | ||
m_fields->m_isLimited = true; | ||
|
||
CCLabelBMFont::limitLabelWidth(width, defaultScale, minScale); | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.