mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
Gui cleanup4 (#446)
* use smart pointers for almost all widget fields * use SDL2 texture for cursor * a lot af small tweaks and formatting * removed CompImage class, it is actually useless as long as regular SDLImage support margins * CGuiHandler: use smart pointers for [push|pop]Int
This commit is contained in:
committed by
ArseniyShestakov
parent
7c8b74a806
commit
75f8c8b29a
@@ -11,13 +11,13 @@
|
||||
|
||||
#include "../gui/CIntObject.h"
|
||||
|
||||
/// Basic class for windows
|
||||
class CWindowObject : public CIntObject
|
||||
class CWindowObject : public WindowBase
|
||||
{
|
||||
std::shared_ptr<CPicture> createBg(std::string imageName, bool playerColored);
|
||||
int getUsedEvents(int options);
|
||||
|
||||
std::shared_ptr<CIntObject> shadow;
|
||||
std::vector<std::shared_ptr<CPicture>> shadowParts;
|
||||
|
||||
void setShadow(bool on);
|
||||
|
||||
int options;
|
||||
@@ -25,8 +25,6 @@ class CWindowObject : public CIntObject
|
||||
protected:
|
||||
std::shared_ptr<CPicture> background;
|
||||
|
||||
//Simple function with call to GH.popInt
|
||||
void close();
|
||||
//Used only if RCLICK_POPUP was set
|
||||
void clickRight(tribool down, bool previousState) override;
|
||||
//To display border
|
||||
|
||||
Reference in New Issue
Block a user