aboutsummaryrefslogtreecommitdiff
path: root/src/irrlicht_changes
Commit message (Expand)AuthorAge
* Fix two CMake build issuessfan52021-04-21
* CGUITTFont optimizations (#11136)sfan52021-04-02
* Irrlicht support code maintenancesfan52021-03-31
* Replace fallback font nonsense with automatic per-glyph fallback (#11084)sfan52021-03-29
* Drop irrUString from MT, it's owned by irrlicht nowLoic Blot2021-03-26
* Fix deprecated calls with Irrlicht 1.9Jean-Patrick Guerrero2021-03-16
* Restore Irrlicht 1.9 supportsfan52021-03-09
* Fix double free caused by CGUITTFont codesfan52021-02-06
* Fix memory leak detected by address sanitizer (#10896)k.h.lai2021-02-02
* Fix some minor code issues all over the placesfan52020-12-24
* StaticText: Reset background on EnrichedString change (#9340)SmallJoker2020-02-01
* StaticText/EnrichedString: Styling support (#9187)SmallJoker2020-01-22
* Refactor to centralize GUIButton styling/rendering code (#9090)Hugues Ross2019-12-09
* Formspec: add hypertext elementPierre-Yves Rollo2019-11-03
* Clean up and fix freetype=false crashes (#8641)SmallJoker2019-08-06
* LINT fixes since recent tooling updateLoïc Blot2019-03-14
* Update our tooling (Clang 5 -> 7, GCC 7 -> 8)Loïc Blot2019-03-14
* Fix cast from const by accessing string data directly (#8354)rubenwardy2019-03-12
* DragonFly BSD is somewhat identical to FreeBSD (#8159)Leonid Bobrov2019-02-03
* Drop .NET-specific workaround: _IRR_IMPLEMENT_MANAGED_MARSHALLING_BUGFIXnumber Zero2018-11-11
* Fix debug and info text being the wrong colorrubenwardy2018-08-05
* Fix tooltip colors specified by formspec partrubenwardy2018-08-04
* Forget to fix non freetype build in StaticTextLoic Blot2018-01-12
* Don't recalculate statustext initial color everytime & review fixesLoic Blot2018-01-05
* GameUI refactor (part 2/X): Move Game::guitext to GameUI + enhancements on St...Loic Blot2018-01-05
* C++ modernize: Pragma once (#6264)Loïc Blot2017-08-17
* Merge cguittfont lib in irrlicht change folder. (#6016)Loïc Blot2017-06-20
* Irrlicht 1.9 supportsfan52016-12-26
* Add colored text (not only colored chat).Ekdohibs2016-05-31
ss="hl kwd">same({ "hello", "world", "" }, string.split("hello,world,", ",", true)) assert.same({ "hello", "", "", "world", "2" }, string.split("hello,,,world,2", ",", true)) assert.same({ "", "", "hello", "world", "2" }, string.split(",,hello,world,2", ",", true)) assert.same({ "hello ", " world | :" }, string.split("hello :| world | :", ":|")) end) it("max_splits", function() assert.same({ "one" }, string.split("one", ",", true, 2)) assert.same({ "one,two,three,four" }, string.split("one,two,three,four", ",", true, 0)) assert.same({ "one", "two", "three,four" }, string.split("one,two,three,four", ",", true, 2)) assert.same({ "one", "", "two,three,four" }, string.split("one,,two,three,four", ",", true, 2)) assert.same({ "one", "two", "three,four" }, string.split("one,,,,,,two,three,four", ",", false, 2)) end) it("pattern", function() assert.same({ "one", "two" }, string.split("one,two", ",", false, -1, true)) assert.same({ "one", "two", "three" }, string.split("one2two3three", "%d", false, -1, true)) end) end) end) describe("privs", function() it("from string", function() assert.same({ a = true, b = true }, core.string_to_privs("a,b")) end) it("to string", function() assert.equal("one", core.privs_to_string({ one=true })) local ret = core.privs_to_string({ a=true, b=true }) assert(ret == "a,b" or ret == "b,a") end) end) describe("pos", function() it("from string", function() assert.same({ x = 10, y = 5.1, z = -2}, core.string_to_pos("10.0, 5.1, -2")) assert.same({ x = 10, y = 5.1, z = -2}, core.string_to_pos("( 10.0, 5.1, -2)")) assert.is_nil(core.string_to_pos("asd, 5, -2)")) end) it("to string", function() assert.equal("(10.1,5.2,-2.3)", core.pos_to_string({ x = 10.1, y = 5.2, z = -2.3})) end) end) describe("table", function() it("indexof()", function() assert.equal(1, table.indexof({"foo", "bar"}, "foo")) assert.equal(-1, table.indexof({"foo", "bar"}, "baz")) end) end)