Decompile 2 functions in Source/UI/Buttons/UITextButton.cpp

Batch #12735 by cremane: 2 byte-identical, 0 confirmed by peer review.

- fn_10280 SkillUseTextPercent: byte-identical
- fn_10281 SkillUseTextFlat: byte-identical

Merged automatically: every function is byte-identical to the original.
This commit is contained in:
ragnarok-clanker 2026-11-06 00:20:27 +00:00
commit 1994f0eb8a

View file

@ -479,21 +479,21 @@ void UITabControl::Slot28(int x, int y) {
// OFFSET: 0x00822660
// FUNCTION: fn_10280
std::string SkillUseTextPercent(const char* name, int level, int sp, int ap) {
if (ap == 0) {
return FormatOwnedString("%s Use Lv %d (Sp : %d%%)", name, level, sp);
if (ap != 0) {
return FormatOwnedString("%s Use Lv %d (Sp : %d%%, Ap : %d)", name, level, sp, ap);
}
return FormatOwnedString("%s Use Lv %d (Sp : %d%%, Ap : %d)", name, level, sp, ap);
return FormatOwnedString("%s Use Lv %d (Sp : %d%%)", name, level, sp);
}
// OFFSET: 0x008226F0
// FUNCTION: fn_10281
std::string SkillUseTextFlat(const char* name, int level, int sp, int ap) {
if (ap == 0) {
return FormatOwnedString("%s Use Lv %d (Sp : %d)", name, level, sp);
if (ap != 0) {
return FormatOwnedString("%s Use Lv %d (Sp : %d, Ap : %d)", name, level, sp, ap);
}
return FormatOwnedString("%s Use Lv %d (Sp : %d, Ap : %d)", name, level, sp, ap);
return FormatOwnedString("%s Use Lv %d (Sp : %d)", name, level, sp);
}
// OFFSET: 0x00891350