Commit Graph

93 Commits

Author SHA1 Message Date
Eduardo Bart eec6114b2d Optimize lua object push
* Optimize position hash
* Fix minimap reload
2012-06-24 08:20:39 -03:00
Eduardo Bart 79532cd612 Optimize minimap save/load 2012-06-23 18:30:54 -03:00
Eduardo Bart aed779a2c8 doc and luabinder changes 2012-06-22 00:14:13 -03:00
Eduardo Bart 8761220deb Refactoring and flexibility changes
* Split game module into game and game_interface
* Move core_lib to corelib
* Move miniwindow to corelib
* Introduce init.lua script for initializing the client, giving much more flexibility
* OTClient is no longer Application derived and is much simpler
2012-06-19 21:16:52 -03:00
Eduardo Bart 1c7bbaea89 Fix memory leaks
* Fix recursive reference memory leak in UIWidget
* Make Event/ScheduledEvent memory-leak safe
* Fix exit crashs by freeing graphics resources before destroying GL context
* Add many asserts to avoid any leak regression
2012-06-18 05:13:52 -03:00
Eduardo Bart ad04043a88 Lua binder compability changes
* A lot of changes in lua binder to compile with clang's libc++
* Add more portability to luabinder
* Remove const keyword from bound lua functions
* Deprecate std::bind usage with luabinder replace its usage with registerSingletonClass/bindSingletonFunction for binding singleton classes
* Fix a bug in lua binder where calling functions with bil object would make the client crash
* More fixes to compile with clang
2012-06-17 12:21:46 -03:00
Eduardo Bart 10b33c6124 Compile with clang and add cotire
* Add cotire cmake module to speedup compilation https://github.com/sakra/cotire
* Fix clang error and warnings
* Rename Font to BitmapFont to fix conflict with Xlib.g Font typedef
* Remove legacy PCH support
* Improve Position hash
2012-06-16 20:20:22 -03:00
Eduardo Bart bb1fb939c4 just fixes
* fix battle rendering
* fix rendering glitch when following creatures
* properly throw exceptions from C++ to lua and avoid exception crashs
* fixes rendering states in framebuffer
2012-06-06 11:10:35 -03:00
Eduardo Bart 7a529d23be check lua stack size to avoid possible overflows 2012-06-06 00:44:17 -03:00
Eduardo Bart 023a4ebef6 performance improvements 2012-06-05 12:36:27 -03:00
Eduardo Bart 296f2a17c4 many modules fixes 2012-06-03 21:28:19 -03:00
Eduardo Bart 14db1066fc change logger 2012-06-01 17:39:23 -03:00
Eduardo Bart c01b32b032 rework log function and protocol
* remove some protocol ifdefs, replace with game features system
2012-05-28 19:04:44 -03:00
Eduardo Bart 4c80d783d6 rewrite and reoganize tools functions
* create stdext namespace which contains additional C++ algorithms
* organize stdext in string, math, cast and exception utilities
2012-05-28 10:06:26 -03:00
Eduardo Bart 2478809945 add lua flexibility for protocol
* use shared_ptr for InputMessage and OutputMessage and bind them
* allow sending network messages from lua
* implement extended opcode
* use own OS type  for otclient to allow server side detection
* fixes in input event bot protection
* move RSA to input/output network messages
* allow to capture opcodes before GameProtocol parsing with the event GameProtocol.onOpcode
* fixes in lua std::string pop/push to allow byte buffering
2012-05-14 18:39:31 -03:00
Eduardo Bart fae2cc6481 new scripting functionality
* dofiles functions to run all scripts inside a directory
* new style option ! that evaluates its value from a lua code
2012-04-26 12:11:03 -03:00
Eduardo Bart 27e24bda28 fixes to compile on gcc 4.7 2012-04-04 10:16:33 -03:00
Eduardo Bart 90d3acce2a restore containers
* implemente Container class
* restore module containers
* add lua bindings for std::map
* improve grid layout
* fixes in UIItem rendering
* changes in miniwindow design
2012-04-02 20:09:47 -03:00
Eduardo Bart 179e53bb77 scrollbar, options and widgets changes
* complete scrollbar skin
* implement scrollbar functionality (scrolling with mouse)
* fix onMouseClick issues
* add tabs in options (graphics and general tab)
* add new option for limiting frame rate using scrollbar
* add new widget property "clipping" that will be used on scrollable areas
2012-03-25 11:10:15 -03:00
Eduardo Bart b4261a8c7b bunch of optimizations 2012-03-20 12:17:10 -03:00
Eduardo Bart e03bf33f58 BEAWARE all game functionality is disabled with this commit for a while
* rework client modules
* hide main window when loading
* remake top menu functions
* rework modules autoload
* improve path resolving for otml and lua
* move core_widgets to core_lib
* fix tooltip issues
* split some styles
* add bit32 lua library
* fix assert issues
* fix compilation on linux 32 systems
* rework gcc compile options
* renable and fix some warnings
* remove unused constants
* speedup sprite cache
* move UIGame to lua (not funcional yet)
* fix a lot of issues in x11 window
* fix crash handler
* add some warnings do uiwidget
and much more...
2012-02-20 00:28:13 -02:00
Eduardo Bart 37f3f904c7 some fixes in MainWindow move 2012-02-07 02:55:20 -02:00
Eduardo Bart 46df3c7dbe some window moving 2012-02-06 22:41:53 -02:00
Eduardo Bart 88301c329a a lot of changes in modules 2012-02-06 17:19:47 -02:00
Eduardo Bart f97104f12e replace require with dofile, rename Hotkeys to Keyboard 2012-02-06 02:39:52 -02:00
Eduardo Bart 5f6dd5aff1 remove dump line 2012-02-01 22:40:43 -02:00
Eduardo Bart e88774728e otml node cast fixes 2012-02-01 22:38:42 -02:00
Eduardo Bart 34f9ecb6c8 fixes in Settings/g_configs 2012-02-01 22:10:55 -02:00
Eduardo Bart 98ef0e4574 allow setting/getting nodes in g_configs 2012-02-01 21:37:40 -02:00
Eduardo Bart 2a62159a61 rename item data to count, add function to get current class name in lua 2012-02-01 13:20:13 -02:00
Eduardo Bart 6ce92a1a64 rework walk 2012-01-19 02:12:53 -02:00
Eduardo Bart 0b08552bbc fix a loading error crash, command to debug containers items ids 2012-01-17 06:26:13 -02:00
Eduardo Bart e6cb3de637 add options style for UIComboBox, fix push values of otml nodes 2012-01-16 06:26:57 -02:00
Eduardo Bart 9ec40f016d implement API to save lists in configs file and terminal history 2012-01-15 13:13:22 -02:00
Eduardo Bart aae784468b fix some keyboard issues, chat tab, fix loadScript exception 2012-01-13 18:37:44 -02:00
Eduardo Bart a1374baee1 major UIWidget rewrite with new features 2012-01-10 20:13:40 -02:00
Eduardo Bart c4b2dd18d6 restore terminal, rework console 2012-01-07 15:36:58 -02:00
Eduardo Bart b0f8e495c9 changes in number conversion 2012-01-06 22:53:15 -02:00
Eduardo Bart 5d0d1432ed lua fixes 2012-01-06 22:46:41 -02:00
Eduardo Bart 3c62ce97db fixes in Settings 2012-01-06 22:34:40 -02:00
Eduardo Bart acd720e249 add missing lua casts 2012-01-06 18:42:28 -02:00
Eduardo Bart aca082f228 check spr and dat signatures 2012-01-06 18:28:57 -02:00
Eduardo Bart f3c0260ea2 change bot protection 2012-01-06 17:29:51 -02:00
Eduardo Bart 028441831d save window position and size 2012-01-06 06:49:23 -02:00
Eduardo Bart 0cb5facd7a lua binder improvments 2012-01-06 01:29:52 -02:00
Eduardo Bart 30ce5e2ba9 reorganize some stuff 2012-01-04 23:28:29 -02:00
Eduardo Bart 05230f44e4 new lua function for creating widgets: createWidget 2012-01-02 22:42:53 -02:00
Eduardo Bart 43c16a1643 init menu 2012-01-02 18:47:02 -02:00
Eduardo Bart 9104305f37 update copyright notice 2012-01-02 14:59:24 -02:00
Eduardo Bart e95973174c more changes to work on ARM 2011-12-30 02:50:19 -02:00