Commit graph

36 commits

Author SHA1 Message Date
Ilari Liusvaara
783d20f690 Don't use framebuffer palettes 2014-02-10 00:07:31 +02:00
Ilari Liusvaara
85d78e2632 Lua: Give the print method as pointer instead of assuming T::print 2014-01-29 11:32:52 +02:00
Ilari Liusvaara
53d7bbd633 Lua: Make class methods take lua::parameters 2014-01-28 14:38:25 +02:00
Ilari Liusvaara
ebb1779e29 Lua: Use multiarg for rest of gui-* stuff 2014-01-28 12:28:35 +02:00
Ilari Liusvaara
bb6bf9ca26 Lua: Multi-argument parsing and unify color parsing 2014-01-27 11:00:34 +02:00
Ilari Liusvaara
b7ea7bb2c7 Lua: cleanup some more files 2014-01-26 17:42:22 +02:00
Ilari Liusvaara
676dfe7ac8 Lua: Refactor classes
- Support static methods for classes
- Allow Lua to enumerate static and class methods
- Support dynamic class lookup
- Support class groups (in style of function groups)
2014-01-25 16:30:25 +02:00
Ilari Liusvaara
94114f1e2e Lua: Refactor lots of stuff
- Split lua-base.hpp into number of files.
- New Lua function parameters parser.
- Convert some Lua code files in order to test the stuff
2014-01-25 12:51:13 +02:00
Ilari Liusvaara
2bc837dbf5 Allow loading empty font and editing font after loading 2014-01-19 16:15:41 +02:00
Ilari Liusvaara
f032ae3b60 Allow color names as color specifications 2013-12-24 04:58:09 +02:00
Ilari Liusvaara
78cade7daa Refactor library UTF8 to dedicated namespace 2013-12-20 12:39:41 +02:00
Ilari Liusvaara
2c4a3a5f84 Refactor library Lua base to dedicated namespace 2013-12-20 02:02:22 +02:00
Ilari Liusvaara
007ef21d7a Get rid of DECLARE_LUACLASS 2013-12-19 23:25:05 +02:00
Ilari Liusvaara
db80bea7a5 Refactor custom_font into framebuffer namespace 2013-12-19 07:34:00 +02:00
Ilari Liusvaara
dce933b76d Refactor library framebuffer to dedicated namespace 2013-12-19 07:00:43 +02:00
Ilari Liusvaara
cd80fa3ebf Bitmap font to custom font conversion 2013-12-13 21:45:10 +02:00
Ilari Liusvaara
68e8630308 Merge branch 'rr1-maint' 2013-09-27 14:25:46 +03:00
Ilari Liusvaara
1110596977 Fix wrong use of lua_error
Lua_error should only be used in C functions and closures directly
registered with Lua. Otherwise errors should trigger exceptions.
2013-09-27 14:22:52 +03:00
Ilari Liusvaara
59ef6961e3 Merge branch 'rr1-maint' 2013-09-27 10:47:19 +03:00
Ilari Liusvaara
a42c0bf6ea Extend userdata printing 2013-09-27 10:36:19 +03:00
Ilari Liusvaara
6a0f9750b2 Lua: Pass name of method to various lua class methods 2013-08-22 22:34:17 +03:00
Ilari Liusvaara
1909357f99 Lua: lua_class<T>::bind_multi (initializer lists are useful) 2013-08-22 00:11:34 +03:00
Ilari Liusvaara
9092dea931 Lua: Automatically pass Lua state to lua class ctors 2013-08-21 23:19:20 +03:00
Ilari Liusvaara
17f8603ec5 Make lua_obj_pin<T> copyable 2013-08-21 19:24:00 +03:00
Ilari Liusvaara
b3f8f7f1b7 Decouple sets of functions from Lua states 2013-08-07 17:31:09 +03:00
Ilari Liusvaara
95bbae153e Whitespace cleanup 2013-07-06 23:21:11 +03:00
Ilari Liusvaara
e27a06f7c3 Lua: CUSTOMFONT: Allow painting with halo
Conflicts:

	manual.txt
	src/lua/gui-text-cf.cpp
2013-03-29 17:15:28 +02:00
Ilari Liusvaara
31e05b501d Lua: CUSTOMFONT: Allow painting with halo 2013-03-29 00:43:14 +02:00
Ilari Liusvaara
92adf8519c Use std::u32string instead of std::vector<uint32_t> for UTF-32 strings
This also uncovered a bug in copy_from_utf8.
2013-03-25 00:29:48 +02:00
Ilari Liusvaara
8f57ae5834 Refactoring: copy_from_utf8() 2013-03-13 01:02:10 +02:00
Ilari Liusvaara
ff8e220fb7 Merge branch 'rr1-maint'
Conflicts:
	include/lua/internal.hpp
2013-02-28 10:40:40 +02:00
Ilari Liusvaara
1295518041 More paint / reset fixes
- Refactor the code related to killing requests.
- Free the pins when destroying killed requests (otherwise memory will
  leak).
- Customfont texts have associated requests, so those need to be killed
  if the font goes away.
2013-02-28 10:36:57 +02:00
Ilari Liusvaara
90a5f80232 Fix lots of -Wall compiler warnings 2013-02-10 15:00:12 +02:00
Ilari Liusvaara
bcdb9dd9f8 Merge branch 'rr1-maint'
Conflicts:
	include/lua/internal.hpp
	manual.txt
	src/lua/lua.cpp
	src/lua/memory.cpp
2013-02-01 22:26:22 +02:00
Ilari Liusvaara
8c346c0695 Lua: Fix bug with methods and resetting Lua VM 2013-02-01 22:10:01 +02:00
Ilari Liusvaara
5d08c36390 Lua: Custom fonts support 2013-02-01 21:52:27 +02:00