Beispiel #1
0
void Session1::onPaint()
{
    Img* p =  GETIMG(ID_se1);
    //p =  GETIMG(ID_background);
    PAINT->drawImage(p, 0, 0);
    //printf("0x%0x\n",p);
    Cont* btn = GetCont(ID_test);
    btn->PointerPressed = se->_page.OnPointerPressed;
    btn->x = 100;
    btn->y = 200;
    ShowCont(ID_test, &se->_page);
    return;
}
Beispiel #2
0
//o--------------------------------------------------------------------------o
//|	Function		-	bool Save( ofstream &outStream )
//|	Date			-	28th July, 2000
//|	Programmer		-	Abaddon
//|	Modified		-
//o--------------------------------------------------------------------------o
//|	Purpose			-	Saves a multi out to disk
//|						outStream is the file to write to
//o--------------------------------------------------------------------------o
bool CMultiObj::Save( std::ofstream &outStream )
{
	bool rvalue = false;
	if( !isFree() )
	{
		rvalue = true;
		MapData_st& mMap = Map->GetMapData( worldNumber );
		if( GetCont() != NULL || ( GetX() > 0 && GetX() < mMap.xBlock && GetY() < mMap.yBlock ) )
		{
			DumpHeader( outStream );
			DumpBody( outStream );
			DumpFooter( outStream );
		}
	}
	return rvalue;
}