mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-20 03:45:26 +00:00
Merge branch 'development' into osxDedeprecation
This commit is contained in:
commit
8f420893eb
529 changed files with 16806 additions and 21138 deletions
|
|
@ -429,7 +429,7 @@ struct InputEventInfo
|
|||
U16 ascii;
|
||||
|
||||
/// Modifiers to action: SI_LSHIFT, SI_LCTRL, etc.
|
||||
InputModifiers modifier;
|
||||
U32 modifier;
|
||||
|
||||
inline void postToSignal(InputEvent &ie)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -51,10 +51,10 @@ PopupMenu::PopupMenu() : mCanvas(NULL)
|
|||
mSubmenus = new SimSet;
|
||||
mSubmenus->registerObject();
|
||||
|
||||
mBarTitle = StringTable->insert("");
|
||||
mBarTitle = StringTable->EmptyString();
|
||||
mIsPopup = false;
|
||||
|
||||
mPopupGUID = sMaxPopupGUID++;
|
||||
mPopupGUID = sMaxPopupGUID++;
|
||||
}
|
||||
|
||||
PopupMenu::~PopupMenu()
|
||||
|
|
@ -126,10 +126,10 @@ void PopupMenu::onMenuSelect()
|
|||
//-----------------------------------------------------------------------------
|
||||
|
||||
void PopupMenu::handleSelectEvent(U32 popID, U32 command)
|
||||
{
|
||||
if (popID == mPopupGUID && canHandleID(command))
|
||||
if (handleSelect(command))
|
||||
smSelectionEventHandled = true;
|
||||
{
|
||||
if (popID == mPopupGUID && canHandleID(command))
|
||||
if (handleSelect(command))
|
||||
smSelectionEventHandled = true;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
|
@ -138,8 +138,8 @@ void PopupMenu::onAttachToMenuBar(GuiCanvas *canvas, S32 pos, const char *title)
|
|||
{
|
||||
mCanvas = canvas;
|
||||
|
||||
// Attached menus must be notified of menu events
|
||||
smPopupMenuEvent.notify(this, &PopupMenu::handleSelectEvent);
|
||||
// Attached menus must be notified of menu events
|
||||
smPopupMenuEvent.notify(this, &PopupMenu::handleSelectEvent);
|
||||
|
||||
// Pass on to sub menus
|
||||
for(SimSet::iterator i = mSubmenus->begin();i != mSubmenus->end();++i)
|
||||
|
|
@ -160,8 +160,8 @@ void PopupMenu::onRemoveFromMenuBar(GuiCanvas *canvas)
|
|||
{
|
||||
mCanvas = NULL;
|
||||
|
||||
// We are no longer interested in select events, remove ourselves from the notification list in a safe way
|
||||
Sim::postCurrentEvent(this, new PopUpNotifyRemoveEvent());
|
||||
// We are no longer interested in select events, remove ourselves from the notification list in a safe way
|
||||
Sim::postCurrentEvent(this, new PopUpNotifyRemoveEvent());
|
||||
|
||||
// Pass on to sub menus
|
||||
for(SimSet::iterator i = mSubmenus->begin();i != mSubmenus->end();++i)
|
||||
|
|
|
|||
|
|
@ -48,10 +48,10 @@ FileDialogData::FileDialogData()
|
|||
if (mDefaultPath == StringTable->lookup("") || !Platform::isDirectory(mDefaultPath))
|
||||
mDefaultPath = Platform::getCurrentDirectory();
|
||||
|
||||
mDefaultFile = StringTable->insert("");
|
||||
mFilters = StringTable->insert("");
|
||||
mFile = StringTable->insert("");
|
||||
mTitle = StringTable->insert("");
|
||||
mDefaultFile = StringTable->EmptyString();
|
||||
mFilters = StringTable->EmptyString();
|
||||
mFile = StringTable->EmptyString();
|
||||
mTitle = StringTable->EmptyString();
|
||||
|
||||
mStyle = 0;
|
||||
|
||||
|
|
|
|||
|
|
@ -78,8 +78,8 @@ struct NetAddress
|
|||
|
||||
bool isSameAddress(const NetAddress &other) const
|
||||
{
|
||||
if (type != other.type)
|
||||
return false;
|
||||
if (type != other.type)
|
||||
return false;
|
||||
|
||||
switch (type)
|
||||
{
|
||||
|
|
@ -102,32 +102,32 @@ struct NetAddress
|
|||
|
||||
bool isSameAddressAndPort(const NetAddress &other) const
|
||||
{
|
||||
if (type != other.type)
|
||||
return false;
|
||||
if (type != other.type)
|
||||
return false;
|
||||
|
||||
switch (type)
|
||||
{
|
||||
case NetAddress::IPAddress:
|
||||
return (dMemcmp(other.address.ipv4.netNum, address.ipv4.netNum, 4) == 0) && other.port == port;
|
||||
break;
|
||||
case NetAddress::IPV6Address:
|
||||
return (dMemcmp(other.address.ipv6.netNum, address.ipv6.netNum, 16) == 0) && other.port == port;
|
||||
break;
|
||||
case NetAddress::IPBroadcastAddress:
|
||||
return true;
|
||||
break;
|
||||
case NetAddress::IPV6MulticastAddress:
|
||||
return true;
|
||||
break;
|
||||
}
|
||||
switch (type)
|
||||
{
|
||||
case NetAddress::IPAddress:
|
||||
return (dMemcmp(other.address.ipv4.netNum, address.ipv4.netNum, 4) == 0) && other.port == port;
|
||||
break;
|
||||
case NetAddress::IPV6Address:
|
||||
return (dMemcmp(other.address.ipv6.netNum, address.ipv6.netNum, 16) == 0) && other.port == port;
|
||||
break;
|
||||
case NetAddress::IPBroadcastAddress:
|
||||
return true;
|
||||
break;
|
||||
case NetAddress::IPV6MulticastAddress:
|
||||
return true;
|
||||
break;
|
||||
}
|
||||
|
||||
return false;
|
||||
return false;
|
||||
}
|
||||
|
||||
bool isEqual(const NetAddress &other) const
|
||||
{
|
||||
if (type != other.type)
|
||||
return false;
|
||||
if (type != other.type)
|
||||
return false;
|
||||
|
||||
switch (type)
|
||||
{
|
||||
|
|
@ -193,7 +193,7 @@ struct Net
|
|||
WouldBlock,
|
||||
NotASocket,
|
||||
UnknownError,
|
||||
NeedHostLookup
|
||||
NeedHostLookup
|
||||
};
|
||||
|
||||
enum ConnectionState {
|
||||
|
|
@ -214,6 +214,11 @@ struct Net
|
|||
static bool smMulticastEnabled;
|
||||
static bool smIpv4Enabled;
|
||||
static bool smIpv6Enabled;
|
||||
|
||||
static ConnectionNotifyEvent* smConnectionNotify;
|
||||
static ConnectionAcceptedEvent* smConnectionAccept;
|
||||
static ConnectionReceiveEvent* smConnectionReceive;
|
||||
static PacketReceiveEvent* smPacketReceive;
|
||||
|
||||
static bool init();
|
||||
static void shutdown();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue