From 714965da4544b8848306ad9b281f48b2378567a5 Mon Sep 17 00:00:00 2001 From: John McCardle Date: Fri, 12 Apr 2024 14:15:00 -0400 Subject: [PATCH] eliminate extra includes on UICaption --- src/UICaption.cpp | 3 +++ src/UICaption.h | 11 ----------- src/UIDrawable.h | 2 +- 3 files changed, 4 insertions(+), 12 deletions(-) diff --git a/src/UICaption.cpp b/src/UICaption.cpp index ffe3976..9d8c21d 100644 --- a/src/UICaption.cpp +++ b/src/UICaption.cpp @@ -1,5 +1,8 @@ #include "UICaption.h" #include "GameEngine.h" +#include "PyColor.h" +#include "PyVector.h" +#include "PyFont.h" UIDrawable* UICaption::click_at(sf::Vector2f point) { diff --git a/src/UICaption.h b/src/UICaption.h index 1e93699..bf01a96 100644 --- a/src/UICaption.h +++ b/src/UICaption.h @@ -1,18 +1,7 @@ #pragma once #include "Common.h" #include "Python.h" -#include "structmember.h" -#include "IndexTexture.h" -#include "Resources.h" -#include - -#include "PyCallable.h" -#include "PyTexture.h" -#include "PyColor.h" -#include "PyVector.h" -#include "PyFont.h" #include "UIDrawable.h" -#include "UIBase.h" class UICaption: public UIDrawable { diff --git a/src/UIDrawable.h b/src/UIDrawable.h index 640437f..d1a6b6e 100644 --- a/src/UIDrawable.h +++ b/src/UIDrawable.h @@ -13,7 +13,7 @@ #include "PyFont.h" #include "Resources.h" - +#include "UIBase.h" class UIFrame; class UICaption; class UISprite; class UIEntity; class UIGrid; enum PyObjectsEnum : int