Skip to content

Commit 98c3aa4

Browse files
committed
Add Editors::VerbIconData class
1 parent 32de907 commit 98c3aa4

4 files changed

Lines changed: 70 additions & 0 deletions

File tree

Spore ModAPI/Spore ModAPI.vcxproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,7 @@
348348
<ClInclude Include="Spore\Editors\PlayModeBackgrounds.h" />
349349
<ClInclude Include="Spore\Editors\IPlayModeModule.h" />
350350
<ClInclude Include="Spore\Editors\PlayModeUI.h" />
351+
<ClInclude Include="Spore\Editors\VerbIconData.h" />
351352
<ClInclude Include="Spore\GeneralAllocator.h" />
352353
<ClInclude Include="Spore\Graphics\ActiveState.h" />
353354
<ClInclude Include="Spore\Graphics\BufferDraw.h" />

Spore ModAPI/Spore ModAPI.vcxproj.filters

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2160,6 +2160,9 @@
21602160
<ClInclude Include="Spore\Simulator\cICBM.h">
21612161
<Filter>Header Files</Filter>
21622162
</ClInclude>
2163+
<ClInclude Include="Spore\Editors\VerbIconData.h">
2164+
<Filter>Header Files</Filter>
2165+
</ClInclude>
21632166
</ItemGroup>
21642167
<ItemGroup>
21652168
<ClCompile Include="SourceCode\Allocator.cpp">

Spore ModAPI/Spore/BasicIncludes.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
#include <Spore\Editors\Editor.h>
3838
#include <Spore\Editors\EditorRequest.h>
3939
#include <Spore\Editors\EditorMessages.h>
40+
#include <Spore\Editors\VerbIconData.h>
4041

4142
#include <Spore\App\IClassManager.h>
4243
#include <Spore\App\FileDrop.h>
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
#pragma once
2+
3+
#include <Spore\Object.h>
4+
#include <Spore\LocalizedString.h>
5+
#include <Spore\ResourceKey.h>
6+
#include <Spore\App\PropertyList.h>
7+
#include <EASTL\vector.h>
8+
9+
#define VerbIconDataPtr eastl::intrusive_ptr<Editors::VerbIconData>
10+
11+
namespace Editors
12+
{
13+
class VerbIconData
14+
: public Object
15+
, public DefaultRefCounted
16+
{
17+
public:
18+
static const uint32_t TYPE = 0x4AA0ACD;
19+
20+
/* 10h */ virtual void ParseProp(App::PropertyList* propList);
21+
/// Resets mpPropList
22+
/* 14h */ virtual void ClearPropList();
23+
/* 18h */ virtual void func18h(int);
24+
/// Used to generate text
25+
/* 20h */ virtual void SetKey(int verbIconTriggerKey);
26+
/* 24h */ virtual eastl::string16 GetName(bool includeLevel);
27+
/* 28h */ virtual eastl::string16 GetDescription();
28+
29+
public:
30+
/* 0Ch */ bool mVerbIconUseDescription; // true
31+
/* 0Dh */ bool mVerbIconShowLevel; // true
32+
/* 0Eh */ bool mPaletteItemRolloverShowLevel; // true
33+
/* 0Fh */ bool mVerbIconRolloverShowLevel; // true
34+
/* 10h */ bool field_10;
35+
/* 11h */ bool mVerbIconShowZeroLevel;
36+
/* 14h */ int mVerbIconTriggerKey; // -1
37+
/* 18h */ int field_18; // not initialized
38+
/* 1Ch */ float mVerbIconMaxLevel;
39+
/* 20h */ int field_20; // not initialized
40+
/* 24h */ uint32_t mVerbIconCategory;
41+
/* 28h */ uint32_t mVerbIconRepresentativeAnimation; // -1
42+
/* 2Ch */ Math::ColorRGBA mVerbIconColor;
43+
/* 3Ch */ uint32_t mVerbIconRolloverLevelImageID;
44+
/* 40h */ ResourceKey mVerbIconRolloverLevelLayoutID;
45+
/* 4Ch */ bool mVerbIconRolloverShowIcon; // not initialized
46+
/* 4Dh */ bool mVerbIconEnforceMaxLevel;
47+
/* 50h */ uint32_t mCreatureAbilityCategory; // not initialized
48+
/* 54h */ LocalizedString mCreatureAbilityName;
49+
/* 68h */ eastl::string16 field_68;
50+
/* 78h */ uint32_t mTriggerKeyForLocalization;
51+
/* 7Ch */ int field_7C; // -1
52+
/* 80h */ int field_80; // -1
53+
/* 84h */ int field_84;
54+
/* 88h */ int field_88;
55+
/* 8Ch */ int field_8C;
56+
/* 90h */ uint32_t mVerbIconImageID; // not initialized
57+
/* 94h */ uint32_t mVerbIconTrayOverrideImageID;
58+
/* 98h */ uint32_t mVerbIconTraySmallCardOverrideImageID; // not initialized
59+
/* 9Ch */ ResourceKey mVerbIconLayout;
60+
/* A8h */ ResourceKey mVerbIconGameLayout;
61+
/* B4h */ ResourceKey mVerbIconStaticLayout;
62+
/* C0h */ PropertyListPtr mpPropList;
63+
};
64+
ASSERT_SIZE(VerbIconData, 0xC4);
65+
}

0 commit comments

Comments
 (0)