Game Development Community

Mod"show" loads dts twice

by Yang Deqian · in Torque Game Engine Advanced · 09/11/2007 (12:05 am) · 0 replies

It realy does this if you double click the .dts file from the directory file list to load a dts file.
int ":\Torque\TGEA_1_0_3\engine\gui\controls\guiDirectoryFileListCtrl.cpp"


void GuiDirectoryFileListCtrl::onMouseDown(const GuiEvent &event)
{
Parent::onMouseDown( event );

if( event.mouseClickCount == 2 && isMethod("onDoubleClick") )
Con::executef(this, 1, "onDoubleClick");

}


Upper function calls it's Parent::onMouseDown( event ); so both it and it's Parent executef( this, 1, "onDoubleClick");