mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 14:53:52 +00:00
Level editor and resource loader fixups and refactors
This commit is contained in:
@@ -9,10 +9,22 @@ namespace PortabilityLayer
|
||||
{
|
||||
class IOStream;
|
||||
|
||||
namespace WindowStyleFlags
|
||||
{
|
||||
enum WindowStyleFlag
|
||||
{
|
||||
kTitleBar = 1,
|
||||
kBorderless = 2,
|
||||
kResizable = 4,
|
||||
kMiniBar = 8,
|
||||
kAlert = 16,
|
||||
};
|
||||
}
|
||||
|
||||
struct WindowDef
|
||||
{
|
||||
Rect m_initialRect;
|
||||
int16_t m_wdefResID;
|
||||
uint16_t m_styleFlags;
|
||||
uint16_t m_visibilityStatus;
|
||||
uint16_t m_hasCloseBox;
|
||||
uint32_t m_referenceConstant;
|
||||
@@ -21,6 +33,6 @@ namespace PortabilityLayer
|
||||
|
||||
bool Deserialize(IOStream *stream);
|
||||
|
||||
static WindowDef Create(const Rect &initialRect, int16_t wdefID, bool isVisible, bool hasCloseBox, uint32_t refConstant, uint16_t positionSpec, const PLPasStr &title);
|
||||
static WindowDef Create(const Rect &initialRect, uint16_t styleFlags, bool isVisible, bool hasCloseBox, uint32_t refConstant, uint16_t positionSpec, const PLPasStr &title);
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user