* Added html5 dir, has a .bat file that can build the html5 version. I went ahead and added the html5 specific Dink media as well, a bit big for SVN though. It has mp3 versions of all songs, otherwise it's the same as the normal data I think
git-svn-id: svn://rtsoft.com/rtsvn/projects/RTDink@1600 353e56fe-9613-0410-8469-b96ad8e6f29c
This commit is contained in:
parent
0974642cfb
commit
35c284b014
824 changed files with 4164 additions and 1121 deletions
|
@ -15,6 +15,11 @@
|
|||
#include "Entity/CustomInputComponent.h"
|
||||
#include "Entity/HTTPComponent.h"
|
||||
|
||||
#ifdef PLATFORM_HTML5
|
||||
#include "html5/SharedJSLIB.h";
|
||||
int GetTouchesReceived();
|
||||
#endif
|
||||
|
||||
bool g_bMainMenuFirstTime = true;
|
||||
bool g_bDidVersionCheck = false;
|
||||
|
||||
|
@ -126,6 +131,19 @@ void MainMenuOnSelect(VariantList *pVList) //0=vec2 point of click, 1=entity sen
|
|||
|
||||
LogMsg("Clicked %s entity at %s", pEntClicked->GetName().c_str(),pVList->m_variant[1].Print().c_str());
|
||||
|
||||
#ifdef PLATFORM_HTML5
|
||||
if (GetTouchesReceived() > 0)
|
||||
{
|
||||
//using a touch screen, go into that mode
|
||||
GetApp()->SetUsingTouchScreen(true);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
//fix it, was set the other way for ios' safari to get tricked into playing sound
|
||||
//SetDefaultButtonStyle(Button2DComponent::BUTTON_STYLE_CLICK_ON_TOUCH_RELEASE);
|
||||
|
||||
|
||||
if (pEntClicked->GetName() == "New")
|
||||
{
|
||||
DisableAllButtonsEntity(pEntClicked->GetParent());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue