You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.2 KiB
C++
53 lines
1.2 KiB
C++
//
|
|
// G A M E.O.N.E - LOW LEVEL LIB V1.0
|
|
// Copyright (C) 2001 LEVEL ONE ENTERTAINMENT,
|
|
// Licensed under the terms of LGPL.
|
|
//:---------------------------------------------------------------------------
|
|
//:Description
|
|
//
|
|
// FRAMEWORK Layerobject - displays a single bitmap
|
|
//
|
|
// CActor
|
|
// +--CLayer
|
|
// +--CLayerImage
|
|
// +--CLayerLoadBar
|
|
//
|
|
// Hooks a Streammodul, displays a Loading Bar bitmap
|
|
//
|
|
//:---------------------------------------------------------------------------
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
#if !defined(_LAYER_LOADBAR_H)
|
|
#define _LAYER_LOADBAR_H
|
|
|
|
#include "llfrm_layerimage.h"
|
|
#include "../llgfx_blit.h"
|
|
#include "../llstream_readhook.h"
|
|
|
|
class CLayerLoadBar : public CLayerImage
|
|
{
|
|
public:
|
|
CLayerLoadBar();
|
|
virtual ~CLayerLoadBar();
|
|
|
|
virtual bool ParseMsg(const char *Type );
|
|
|
|
virtual void Draw(llgfx_id id );
|
|
virtual void Action(float delta);
|
|
|
|
int m_totalfiles;
|
|
int m_totalbytes;
|
|
int m_blocksize;
|
|
bool m_bSettotalfiles;
|
|
bool m_bSettotalbytes;
|
|
|
|
|
|
CReadHookModule *m_StreamMod;
|
|
|
|
friend int LoadbarHook(char * curFilename, int totalbytes, int totalfiles, int percentcomplete, void *userPtr );
|
|
|
|
};
|
|
|
|
#endif // !defined(_LAYER_LOADBAR_H)
|