mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-11-29 13:25:52 +01:00
a84fb76883
MenuGadets(.h/.cpp) separated into multiple files for each gadget!
54 lines
1.2 KiB
C++
54 lines
1.2 KiB
C++
/* Copyright (c) 2002-2012 Croteam Ltd. All rights reserved. */
|
|
|
|
#ifndef SE_INCL_MENU_GADGET_SERVERLIST_H
|
|
#define SE_INCL_MENU_GADGET_SERVERLIST_H
|
|
#ifdef PRAGMA_ONCE
|
|
#pragma once
|
|
#endif
|
|
|
|
#include "MGButton.h"
|
|
|
|
|
|
class CMGServerList : public CMGButton {
|
|
public:
|
|
INDEX mg_iSelected;
|
|
INDEX mg_iFirstOnScreen;
|
|
INDEX mg_ctOnScreen;
|
|
// server list dimensions
|
|
PIX mg_pixMinI;
|
|
PIX mg_pixMaxI;
|
|
PIX mg_pixListMinJ;
|
|
PIX mg_pixListStepJ;
|
|
// header dimensions
|
|
PIX mg_pixHeaderMinJ;
|
|
PIX mg_pixHeaderMidJ;
|
|
PIX mg_pixHeaderMaxJ;
|
|
PIX mg_pixHeaderI[8];
|
|
// scrollbar dimensions
|
|
PIX mg_pixSBMinI;
|
|
PIX mg_pixSBMaxI;
|
|
PIX mg_pixSBMinJ;
|
|
PIX mg_pixSBMaxJ;
|
|
// scrollbar dragging params
|
|
PIX mg_pixDragJ;
|
|
PIX mg_iDragLine;
|
|
PIX mg_pixMouseDrag;
|
|
// current mouse pos
|
|
PIX mg_pixMouseI;
|
|
PIX mg_pixMouseJ;
|
|
|
|
INDEX mg_iSort; // column to sort by
|
|
BOOL mg_bSortDown; // sort in reverse order
|
|
|
|
CMGServerList();
|
|
BOOL OnKeyDown(int iVKey);
|
|
PIXaabbox2D GetScrollBarFullBox(void);
|
|
PIXaabbox2D GetScrollBarHandleBox(void);
|
|
void OnSetFocus(void);
|
|
void OnKillFocus(void);
|
|
void Render(CDrawPort *pdp);
|
|
void AdjustFirstOnScreen(void);
|
|
void OnMouseOver(PIX pixI, PIX pixJ);
|
|
};
|
|
|
|
#endif /* include-once check. */ |