Files
wowdecomp/WoW/Source/Ui/BarberShop_Scripts.cpp
T
SatyandClaude Opus 5.5 3b76648777 Client bring-up: Lua stand-in ports, add-on loading, world map, combat log, locale fix
- Port hit-order Lua stand-ins (unit tokens, tooltips, combat log filters and
  current entry, bags/containers, quest POI, minimap, titles, world states,
  trade, group roles, runes, mirror timers, saved-variable registration, Quit)
- LoadAddOn: real add-on loading (Blizzard_CombatLog etc. now load)
- CombatLogEntry::PushEvent: COMBAT_LOG_EVENT arguments
- World map chain: SetMapToCurrentZone, SetMap, GetWorldPosition, landmarks,
  overlays, highlight, zones, dungeon levels, player position
- OpenArchives: locale index was off by one (enUS read the koKR DBC slot,
  leaving zone/map names empty)
- Zone/area sound chain, invisible units (spline mode read size), raid/bag
  crash fixes, stand-in console, waystone icon for all executables
- Coding-rule cleanups: statics/includes at the top, event enums, Lua
  _Scripts layout

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-30 06:31:10 +02:00

34 lines
1.3 KiB
C++

#include "BarberShop.h"
#include <cstdint>
#include "Engine/Source/FrameScript/FrameScript.h"
#include "Engine/Source/FrameScript/FrameScript_Object.h"
#include "Engine/Source/lua-5.1/src/lua.h"
// VERIFY: 350bfeb0 auto
// OFFSET: 0x0052E4F0
static int32_t Script_CanAlterSkin(lua_State* L) {
lua_pushboolean(L, CGBarberShop::m_currentSkinColor != 0);
return 1;
}
// STATIC: 0x00ACC790
static FrameScript_Method s_ScriptFunctions[] = {
{ "GetBarberShopStyleInfo", &Script_GetBarberShopStyleInfo },
{ "SetNextBarberShopStyle", &Script_SetNextBarberShopStyle },
{ "GetBarberShopTotalCost", &Script_GetBarberShopTotalCost },
{ "ApplyBarberShopStyle", &Script_ApplyBarberShopStyle },
{ "CancelBarberShop", &Script_CancelBarberShop },
{ "GetHairCustomization", &Script_GetHairCustomization },
{ "GetFacialHairCustomization", &Script_GetFacialHairCustomization },
{ "BarberShopReset", &Script_BarberShopReset },
{ "CanAlterSkin", &Script_CanAlterSkin },
};
// VERIFY: 5397546f auto
// OFFSET: 0x0052E520
void CGBarberShop::RegisterScriptFunctions() {
for (uint32_t i = 0; i < sizeof(s_ScriptFunctions) / sizeof(s_ScriptFunctions[0]); i++) {
FrameScript_RegisterFunction(s_ScriptFunctions[i].m_name, s_ScriptFunctions[i].m_method);
}
}