mirror of
https://github.com/edubart/otclient.git
synced 2025-10-20 06:23:26 +02:00
Rework application class and framework
Make otclient's framework flexible enough to run console apps like servers, so this mean is possible to build otclient versions without graphical interface and use it's framework to code servers
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
#define UILAYOUT_H
|
||||
|
||||
#include "declarations.h"
|
||||
#include <framework/luascript/luaobject.h>
|
||||
#include <framework/luaengine/luaobject.h>
|
||||
#include <framework/otml/otml.h>
|
||||
|
||||
// @bindclass
|
||||
|
@@ -27,7 +27,7 @@
|
||||
#include <framework/graphics/graphics.h>
|
||||
#include <framework/platform/platformwindow.h>
|
||||
#include <framework/core/eventdispatcher.h>
|
||||
#include <framework/application.h>
|
||||
#include <framework/core/application.h>
|
||||
|
||||
UIManager g_ui;
|
||||
|
||||
|
@@ -26,7 +26,7 @@
|
||||
#include <framework/platform/platformwindow.h>
|
||||
#include <framework/core/clock.h>
|
||||
#include <framework/otml/otmlnode.h>
|
||||
#include <framework/application.h>
|
||||
#include <framework/core/application.h>
|
||||
|
||||
UITextEdit::UITextEdit()
|
||||
{
|
||||
|
@@ -30,7 +30,7 @@
|
||||
#include <framework/graphics/graphics.h>
|
||||
#include <framework/platform/platformwindow.h>
|
||||
#include <framework/graphics/texturemanager.h>
|
||||
#include <framework/application.h>
|
||||
#include <framework/core/application.h>
|
||||
|
||||
UIWidget::UIWidget()
|
||||
{
|
||||
@@ -46,7 +46,7 @@ UIWidget::UIWidget()
|
||||
|
||||
UIWidget::~UIWidget()
|
||||
{
|
||||
assert(!g_app.isTermianted());
|
||||
assert(!g_app.isTerminated());
|
||||
#ifdef DEBUG
|
||||
if(!m_destroyed)
|
||||
g_logger.warning(stdext::format("widget '%s' was not explicitly destroyed", m_id));
|
||||
|
@@ -24,7 +24,7 @@
|
||||
#define UIWIDGET_H
|
||||
|
||||
#include "declarations.h"
|
||||
#include <framework/luascript/luaobject.h>
|
||||
#include <framework/luaengine/luaobject.h>
|
||||
#include <framework/graphics/declarations.h>
|
||||
#include <framework/otml/otmlnode.h>
|
||||
#include <framework/graphics/bitmapfont.h>
|
||||
|
@@ -25,7 +25,7 @@
|
||||
#include <framework/graphics/fontmanager.h>
|
||||
#include <framework/graphics/painter.h>
|
||||
#include <framework/graphics/framebuffer.h>
|
||||
#include <framework/application.h>
|
||||
#include <framework/core/application.h>
|
||||
|
||||
void UIWidget::initText()
|
||||
{
|
||||
|
Reference in New Issue
Block a user