mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
Merge pull request #1227 from Azaezel/alpha41/compileFlagFixes
TORQUE_TOOLS off compile fix
This commit is contained in:
commit
bae4f8cf43
|
|
@ -18,7 +18,12 @@ void gotoWebPage(const char* address);
|
|||
bool getDocsURL(void* obj, const char* array, const char* data);
|
||||
const char* getDocsLink(const char* filename, U32 lineNumber);
|
||||
|
||||
#ifdef TORQUE_TOOLS
|
||||
#define docsURL addGroup("Ungrouped");\
|
||||
addProtectedField("docsURL", TypeBool, Offset(mDocsClick, ConsoleObject), &getDocsURL, &defaultProtectedGetFn, getDocsLink(__FILE__,__LINE__), AbstractClassRep::FieldFlags::FIELD_ComponentInspectors);\
|
||||
endGroup("Ungrouped")
|
||||
#else
|
||||
#define docsURL NULL
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -581,6 +581,7 @@ PopupMenu* GuiMenuBar::findMenu(String barTitle)
|
|||
//-----------------------------------------------------------------------------
|
||||
// Console Methods
|
||||
//-----------------------------------------------------------------------------
|
||||
#ifdef TORQUE_TOOLS
|
||||
DefineEngineMethod(GuiMenuBar, attachToCanvas, void, (const char *canvas, S32 pos), , "(GuiCanvas, pos)")
|
||||
{
|
||||
GuiCanvas* canv = dynamic_cast<GuiCanvas*>(Sim::findObject(canvas));
|
||||
|
|
@ -597,6 +598,7 @@ DefineEngineMethod(GuiMenuBar, removeFromCanvas, void, (), , "()")
|
|||
if(canvas)
|
||||
canvas->setMenuBar(nullptr);
|
||||
}
|
||||
#endif
|
||||
|
||||
DefineEngineMethod(GuiMenuBar, getMenuCount, S32, (), , "()")
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue