improve usability of ExampleBrowser

store command-line arguments in bulletDemo.txt
save/load of configuration, save demo name instead of index
add setBackgroundColor as example (background_color_red) and
mouse move/wheel speed config (mouse_wheel_multiplier and mouse_move_multiplier)
(saved after changing the demo)
default btIDebugDraw colors can be changed
b3CommandLineArgs::GetCmdLineArgument returns bool, and b3CommandLineArgs::addArgs added
fix copy/paste
This commit is contained in:
erwincoumans
2015-08-04 18:24:30 -07:00
parent 9d7d5caa8b
commit b316f30040
14 changed files with 400 additions and 115 deletions

View File

@@ -18,7 +18,7 @@ using namespace Gwen::ControlsInternal;
GWEN_CONTROL_CONSTRUCTOR( ColorPicker )
{
SetMouseInputEnabled( true );
SetKeyboardInputEnabled(true);
SetSize( 256, 150 );
CreateControls();
SetColor( Gwen::Color( 50, 60, 70, 255 ) );

View File

@@ -73,7 +73,8 @@ bool Gwen::Platform::SetClipboardText( const Gwen::UnicodeString& str )
// Copy the string into the buffer
wchar_t* buffer = (wchar_t*) GlobalLock( clipbuffer );
wcscpy_s( buffer, iDataSize, str.c_str() );
//wcscpy_s( buffer, iDataSize, str.c_str() );
memcpy( buffer, str.c_str() ,iDataSize);
GlobalUnlock(clipbuffer);
// Place it on the clipboard