mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-11 07:18:11 -05:00
Move IW4 menu dumping logic to separate class and constants to common scope
This commit is contained in:
219
src/ObjCommon/Game/IW4/MenuConstantsIW4.h
Normal file
219
src/ObjCommon/Game/IW4/MenuConstantsIW4.h
Normal file
@ -0,0 +1,219 @@
|
||||
#pragma once
|
||||
|
||||
#include "Game/IW4/IW4.h"
|
||||
|
||||
namespace IW4
|
||||
{
|
||||
inline const char* g_expFunctionNames[]
|
||||
{
|
||||
"NOOP",
|
||||
")",
|
||||
"*",
|
||||
"/",
|
||||
"%",
|
||||
"+",
|
||||
"-",
|
||||
"!",
|
||||
"<",
|
||||
"<=",
|
||||
">",
|
||||
">=",
|
||||
"==",
|
||||
"!=",
|
||||
"&&",
|
||||
"||",
|
||||
"(",
|
||||
",",
|
||||
"&",
|
||||
"|",
|
||||
"~",
|
||||
"<<",
|
||||
">>",
|
||||
"dvarint(static)\x01\x02",
|
||||
"dvarbool(static)\x01\x03",
|
||||
"dvarfloat(static)\x01\x04",
|
||||
"dvarstring(static)\x01\x05",
|
||||
"int",
|
||||
"string",
|
||||
"float",
|
||||
"sin",
|
||||
"cos",
|
||||
"min",
|
||||
"max",
|
||||
"milliseconds",
|
||||
"dvarint",
|
||||
"dvarbool",
|
||||
"dvarfloat",
|
||||
"dvarstring",
|
||||
"stat",
|
||||
"ui_active",
|
||||
"flashbanged",
|
||||
"usingvehicle",
|
||||
"missilecam",
|
||||
"scoped",
|
||||
"scopedthermal",
|
||||
"scoreboard_visible",
|
||||
"inkillcam",
|
||||
"inkillcamnpc",
|
||||
"player",
|
||||
"getperk",
|
||||
"selecting_location",
|
||||
"selecting_direction",
|
||||
"team",
|
||||
"otherteam",
|
||||
"marinesfield",
|
||||
"opforfield",
|
||||
"menuisopen",
|
||||
"writingdata",
|
||||
"inlobby",
|
||||
"inprivateparty",
|
||||
"privatepartyhost",
|
||||
"privatepartyhostinlobby",
|
||||
"aloneinparty",
|
||||
"adsjavelin",
|
||||
"weaplockblink",
|
||||
"weapattacktop",
|
||||
"weapattackdirect",
|
||||
"weaplocking",
|
||||
"weaplocked",
|
||||
"weaplocktooclose",
|
||||
"weaplockscreenposx",
|
||||
"weaplockscreenposy",
|
||||
"secondsastime",
|
||||
"tablelookup",
|
||||
"tablelookupbyrow",
|
||||
"tablegetrownum",
|
||||
"locstring",
|
||||
"localvarint",
|
||||
"localvarbool",
|
||||
"localvarfloat",
|
||||
"localvarstring",
|
||||
"timeleft",
|
||||
"secondsascountdown",
|
||||
"gamemsgwndactive",
|
||||
"gametypename",
|
||||
"gametype",
|
||||
"gametypedescription",
|
||||
"scoreatrank",
|
||||
"friendsonline",
|
||||
"spectatingclient",
|
||||
"spectatingfree",
|
||||
"statrangeanybitsset",
|
||||
"keybinding",
|
||||
"actionslotusable",
|
||||
"hudfade",
|
||||
"maxrecommendedplayers",
|
||||
"acceptinginvite",
|
||||
"isintermission",
|
||||
"gamehost",
|
||||
"partyismissingmappack",
|
||||
"partymissingmappackerror",
|
||||
"anynewmappacks",
|
||||
"amiselected",
|
||||
"partystatusstring",
|
||||
"attachedcontrollercount",
|
||||
"issplitscreenonlinepossible",
|
||||
"splitscreenplayercount",
|
||||
"getplayerdata",
|
||||
"getplayerdatasplitscreen",
|
||||
"experienceforlevel",
|
||||
"levelforexperience",
|
||||
"isitemunlocked",
|
||||
"isitemunlockedsplitscreen",
|
||||
"debugprint",
|
||||
"getplayerdataanybooltrue",
|
||||
"weaponclassnew",
|
||||
"weaponname",
|
||||
"isreloading",
|
||||
"savegameavailable",
|
||||
"unlockeditemcount",
|
||||
"unlockeditemcountsplitscreen",
|
||||
"unlockeditem",
|
||||
"unlockeditemsplitscreen",
|
||||
"mailsubject",
|
||||
"mailfrom",
|
||||
"mailreceived",
|
||||
"mailbody",
|
||||
"maillootlocalized",
|
||||
"mailgivesloot",
|
||||
"anynewmail",
|
||||
"mailtimetofollowup",
|
||||
"mailloottype",
|
||||
"mailranlottery",
|
||||
"lotterylootlocalized",
|
||||
"radarisjammed",
|
||||
"radarjamintensity",
|
||||
"radarisenabled",
|
||||
"isempjammed",
|
||||
"playerads",
|
||||
"weaponheatactive",
|
||||
"weaponheatvalue",
|
||||
"weaponheatoverheated",
|
||||
"getsplashtext",
|
||||
"getsplashdescription",
|
||||
"getsplashmaterial",
|
||||
"splashhasicon",
|
||||
"splashrownum",
|
||||
"getfocuseditemname",
|
||||
"getfocuseditemx",
|
||||
"getfocuseditemy",
|
||||
"getfocuseditemwidth",
|
||||
"getfocuseditemheight",
|
||||
"getitemx",
|
||||
"getitemy",
|
||||
"getitemwidth",
|
||||
"getitemheight",
|
||||
"playlist",
|
||||
"scoreboardexternalmutenotice",
|
||||
"getclientmatchdata",
|
||||
"getclientmatchdatadef",
|
||||
"getmapname",
|
||||
"getmapimage",
|
||||
"getmapcustom",
|
||||
"getmigrationstatus",
|
||||
"getplayercardinfo",
|
||||
"isofflineprofileselected",
|
||||
"coopplayer",
|
||||
"iscoop",
|
||||
"getpartystatus",
|
||||
"getsearchparams",
|
||||
"gettimeplayed",
|
||||
"isselectedplayerfriend",
|
||||
"getcharbyindex",
|
||||
"getprofiledata",
|
||||
"isprofilesignedin",
|
||||
"getwaitpopupstatus",
|
||||
"getnattype",
|
||||
"getlocalizednattype",
|
||||
"getadjustedsafeareahorizontal",
|
||||
"getadjustedsafeareavertical",
|
||||
"connectioninfo",
|
||||
"offlineprofilecansave",
|
||||
"allsplitscreenprofilescansave",
|
||||
"allsplitscreenprofilesaresignedin",
|
||||
"coopready",
|
||||
};
|
||||
|
||||
inline const ItemExpressionTargetBinding floatExpressionTargetBindings[ITEM_FLOATEXP_TGT_COUNT]
|
||||
{
|
||||
{ITEM_FLOATEXP_TGT_RECT_X, "rect", "x"},
|
||||
{ITEM_FLOATEXP_TGT_RECT_Y, "rect", "y"},
|
||||
{ITEM_FLOATEXP_TGT_RECT_W, "rect", "w"},
|
||||
{ITEM_FLOATEXP_TGT_RECT_H, "rect", "h"},
|
||||
{ITEM_FLOATEXP_TGT_FORECOLOR_R, "forecolor", "r"},
|
||||
{ITEM_FLOATEXP_TGT_FORECOLOR_G, "forecolor", "g"},
|
||||
{ITEM_FLOATEXP_TGT_FORECOLOR_B, "forecolor", "b"},
|
||||
{ITEM_FLOATEXP_TGT_FORECOLOR_RGB, "forecolor", "rgb"},
|
||||
{ITEM_FLOATEXP_TGT_FORECOLOR_A, "forecolor", "a"},
|
||||
{ITEM_FLOATEXP_TGT_GLOWCOLOR_R, "glowcolor", "r"},
|
||||
{ITEM_FLOATEXP_TGT_GLOWCOLOR_G, "glowcolor", "g"},
|
||||
{ITEM_FLOATEXP_TGT_GLOWCOLOR_B, "glowcolor", "b"},
|
||||
{ITEM_FLOATEXP_TGT_GLOWCOLOR_RGB, "glowcolor", "rgb"},
|
||||
{ITEM_FLOATEXP_TGT_GLOWCOLOR_A, "glowcolor", "a"},
|
||||
{ITEM_FLOATEXP_TGT_BACKCOLOR_R, "backcolor", "r"},
|
||||
{ITEM_FLOATEXP_TGT_BACKCOLOR_G, "backcolor", "g"},
|
||||
{ITEM_FLOATEXP_TGT_BACKCOLOR_B, "backcolor", "b"},
|
||||
{ITEM_FLOATEXP_TGT_BACKCOLOR_RGB, "backcolor", "rgb"},
|
||||
{ITEM_FLOATEXP_TGT_BACKCOLOR_A, "backcolor", "a"},
|
||||
};
|
||||
}
|
20
src/ObjCommon/Game/IW4/ObjConstantsIW4.h
Normal file
20
src/ObjCommon/Game/IW4/ObjConstantsIW4.h
Normal file
@ -0,0 +1,20 @@
|
||||
#pragma once
|
||||
|
||||
namespace IW4
|
||||
{
|
||||
class ObjConstants
|
||||
{
|
||||
ObjConstants() = default;
|
||||
|
||||
public:
|
||||
static constexpr const char* INFO_STRING_PREFIX_PHYS_PRESET = "PHYSIC";
|
||||
static constexpr const char* INFO_STRING_PREFIX_TRACER = "TRACER";
|
||||
static constexpr const char* INFO_STRING_PREFIX_VEHICLE = "VEHICLEFILE";
|
||||
static constexpr const char* INFO_STRING_PREFIX_WEAPON = "WEAPONFILE";
|
||||
|
||||
static constexpr const char* GDF_FILENAME_PHYS_PRESET = "physpreset.gdf";
|
||||
static constexpr const char* GDF_FILENAME_TRACER = "tracer.gdf";
|
||||
static constexpr const char* GDF_FILENAME_VEHICLE = "vehicle.gdf";
|
||||
static constexpr const char* GDF_FILENAME_WEAPON = "weapon.gdf";
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user