-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHideAreaName.lua
More file actions
22 lines (16 loc) · 980 Bytes
/
HideAreaName.lua
File metadata and controls
22 lines (16 loc) · 980 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
local Constants = _G.require("Constants/Constants");
local find_type_definition = Constants.find_type_definition;
local hook = Constants.hook;
local to_int64 = Constants.to_int64;
local SKIP_ORIGINAL = Constants.SKIP_ORIGINAL;
local skipOriginal = Constants.skipOriginal;
local GUI020206_type_def = find_type_definition("app.GUI020206");
local Default = find_type_definition("app.GUI020206.RequestType"):get_field("Default"):get_data(nil);
local function preHook_one(args)
if to_int64(args[4]) & 0xFFFFFFFF == Default then
return SKIP_ORIGINAL;
end
end
hook(GUI020206_type_def:get_method("requestStage(app.FieldDef.STAGE, app.GUI020206.RequestType)"), preHook_one);
hook(GUI020206_type_def:get_method("requestLifeArea(app.FieldDef.LIFE_AREA, app.GUI020206.RequestType)"), preHook_one);
hook(GUI020206_type_def:get_method("requestBase(System.Guid, System.Guid, app.FieldDef.STAGE, app.FieldDef.LIFE_AREA, System.Boolean)"), skipOriginal);