BUG: ShapeEditor FileType Select Text Broken

There are no stupid questions, just stupid answers.
6 posts Page 1 of 1
Steve_Yorkshire
Posts: 294
Joined: Tue Feb 03, 2015 10:30 pm
 
  by Steve_Yorkshire » Fri Aug 03, 2018 1:04 am
When adding animations via ShapeEditor, the filetype select menu has missing/blank (or very white) text, meaning you cannot see it. All the options are still there just unviewable.
Pic related: New and busted at top, old hotness at bottom
Image
Steve_Yorkshire
Posts: 294
Joined: Tue Feb 03, 2015 10:30 pm
 
by Steve_Yorkshire » Fri Aug 03, 2018 4:49 pm
Tested devhead and still no text showing up (full template)
Steve_Yorkshire
Posts: 294
Joined: Tue Feb 03, 2015 10:30 pm
 
by Steve_Yorkshire » Fri Aug 03, 2018 5:31 pm
Using Cmake 3.12.0-win64x64
Image

Visual Studio 2017
Steve_Yorkshire
Posts: 294
Joined: Tue Feb 03, 2015 10:30 pm
 
by Steve_Yorkshire » Fri Aug 03, 2018 9:23 pm
After searching through the 9 gazillion versions of Torque on my PC I found that the last working version was 3.10 (Feb 2017), before SDL2.dll was a thing. My copies of devhead from October 2017 onwards have the non-visible text for fileTypes.
Steve_Yorkshire
Posts: 294
Joined: Tue Feb 03, 2015 10:30 pm
 
by Steve_Yorkshire » Sun Aug 05, 2018 6:06 pm
OK, I can get the filetype text to display if I open File Explorer Options and uncheck "Hide extensions for known file types" :?

Image
Steve_Yorkshire
Posts: 294
Joined: Tue Feb 03, 2015 10:30 pm
 
by Steve_Yorkshire » Sun Aug 05, 2018 10:00 pm
Okidoki, after much help from @ Azaezel and @ OTHGMars and co it can apparently be fixed with changes to engine/lib/nativeFileDialogs/nfd_win.cpp

~line 128
static nfdresult_t AddFiltersToDialog( ::IFileDialog *fileOpenDialog, const char *filterList )
{
    const wchar_t EMPTY_WSTR[] = L"All Files";//yorks added text "All Files" between empty ""
    const wchar_t WILDCARD[] = L"*.*";
...
~line 186
            // Empty filter name -- Windows describes them by extension.            
            //specList[specIdx].pszName = EMPTY_WSTR;//yorks out
			CopyNFDCharToWChar(specbuf, (wchar_t**)&specList[specIdx].pszName);//yorks in
            CopyNFDCharToWChar( specbuf, (wchar_t**)&specList[specIdx].pszSpec );
6 posts Page 1 of 1

Who is online

Users browsing this forum: No registered users and 7 guests