Skip to content

Commit 86f8c65

Browse files
committed
IDialog and PlayModeBackgrounds addresses fixed
1 parent d789976 commit 86f8c65

File tree

4 files changed

+64
-1
lines changed

4 files changed

+64
-1
lines changed

Spore ModAPI/SourceCode/DLL/AddressesEditors.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ namespace Editors
114114
DefineAddress(AddWalkAction, SelectAddress(0x62CE10, , 0x62CE30));
115115
}
116116

117-
namespace Addresses(PlayModeBackground)
117+
namespace Addresses(PlayModeBackgrounds)
118118
{
119119
DefineAddress(SwitchBackground, SelectAddress(0x62F5F0, , 0x62F640));
120120
DefineAddress(DisableBackground, SelectAddress(0x62F900, , 0x62F950));

Spore ModAPI/Spore ModAPI.vcxproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -706,6 +706,7 @@
706706
<ClInclude Include="Spore\UTFWin\Graphics2D.h" />
707707
<ClInclude Include="Spore\UTFWin\IButton.h" />
708708
<ClInclude Include="Spore\UTFWin\IComboBox.h" />
709+
<ClInclude Include="Spore\UTFWin\IDialog.h" />
709710
<ClInclude Include="Spore\UTFWin\InflateEffect.h" />
710711
<ClInclude Include="Spore\UTFWin\InteractiveWindow.h" />
711712
<ClInclude Include="Spore\UTFWin\InteractiveWinProc.h" />

Spore ModAPI/Spore ModAPI.vcxproj.filters

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1719,6 +1719,9 @@
17191719
<ClInclude Include="Spore\Editors\PlayModeBackgrounds.h">
17201720
<Filter>Header Files</Filter>
17211721
</ClInclude>
1722+
<ClInclude Include="Spore\UTFWin\IDialog.h">
1723+
<Filter>Header Files</Filter>
1724+
</ClInclude>
17221725
</ItemGroup>
17231726
<ItemGroup>
17241727
<ClCompile Include="SourceCode\Allocator.cpp">
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
#pragma once
2+
3+
#include <Spore\UTFWin\UTFWinObject.h>
4+
#include <Spore\UTFWin\IWindow.h>
5+
#include <Spore\UTFWin\IButton.h>
6+
7+
#define IDialogPtr eastl::intrusive_ptr<UTFWin::IDialog>
8+
9+
namespace UTFWin
10+
{
11+
class IDialog : public UTFWinObject
12+
{
13+
public:
14+
static const uint32_t TYPE = 0x6F0B8AC9;
15+
16+
static const uint32_t WinDialog_ID = 0x0f0b8b73;
17+
18+
/// Returns the UTFWin::IWindow representation of this dialog.
19+
/* 10h */ virtual IWindow* ToWindow() = 0;
20+
21+
/* 14h */ virtual int GetDialogFlags() = 0;
22+
/* 18h */ virtual void SetDialogFlags(int) = 0;
23+
/* 1Ch */ virtual void SetDialogFlag(int flag, bool value) = 0;
24+
/* 20h */ virtual void func20h() = 0;
25+
/* 24h */ virtual void GetMinDimensions(float& minWidth, float& minHeight) = 0;
26+
/* 28h */ virtual void SetMinDimensions(float minWidth, float minHeight) = 0;
27+
/* 2Ch */ virtual void GetMaxDimensions(float& maxWidth, float& maxHeight) = 0;
28+
/* 30h */ virtual void SetMaxDimensions(float maxWidth, float maxHeight) = 0;
29+
/* 34h */ virtual int* func34h() = 0;
30+
/* 38h */ virtual void GetClientAreaBorder(union Math::Rectangle& dst) = 0;
31+
/* 3Ch */ virtual void SetClientAreaBorder(const union Math::Rectangle& border) = 0;
32+
/* 40h */ virtual const char16_t* GetTitleText() = 0;
33+
/* 44h */ virtual void SetTitleText(const char16_t* text) = 0;
34+
/* 48h */ virtual uint32_t GetTitleTextStyle() = 0;
35+
/* 4Ch */ virtual void SetTitleTextStyle(uint32_t styleID) = 0;
36+
/* 50h */ virtual Color GetTitleTextColor() = 0;
37+
/* 54h */ virtual void SetTitleTextColor(Color color) = 0;
38+
/* 58h */ virtual void GetTitleTextBorder(union Math::Rectangle& dst) = 0;
39+
/* 5Ch */ virtual void SetTitleTextBorder(const union Math::Rectangle& border) = 0;
40+
/* 60h */ virtual void GetCloseButtonBorder(union Math::Rectangle& dst) = 0;
41+
/* 64h */ virtual void SetCloseButtonBorder(const union Math::Rectangle& border) = 0;
42+
/* 68h */ virtual IButtonDrawable* GetCloseButtonDrawable() = 0;
43+
/* 6Ch */ virtual void SetCloseButtonDrawable(IButtonDrawable* drawable) = 0;
44+
45+
// 214h DialogFlags
46+
// 224h CloseButtonDrawable
47+
// 2E0h ClientAreaBorder
48+
// 2F0h TitleTextBorder
49+
// 300h CloseButtonBorder
50+
// 310h MaxWidth
51+
// 314h MaxHeight
52+
// 318h MinWidth
53+
// 31Ch MinHeight
54+
// 320h TitleTextColor
55+
// 324h TitleTextStyle
56+
// 328h TitleText
57+
58+
};
59+
}

0 commit comments

Comments
 (0)