|
1 | | --- Raphael's Library v1.1.0 |
2 | | --- Last Updated: 01/02/2014 - 23:42 UTC |
| 1 | +-- Raphael's Library v1.1.1 |
| 2 | +-- Last Updated: 02/02/2014 - 00:05 UTC |
3 | 3 | -- Released for WindBot v1.3.3 |
4 | 4 |
|
5 | | -RAPHAEL_LIB = '1.1.0' |
| 5 | +RAPHAEL_LIB = '1.1.1' |
6 | 6 |
|
7 | 7 | LIBS = LIBS or {} |
8 | 8 | LIBS.RAPHAEL = RAPHAEL_LIB |
9 | 9 |
|
10 | 10 |
|
11 | 11 | --[[ |
12 | | - * Changelog v1.1.0 |
| 12 | + * Changelog v1.1.1 |
13 | 13 | * |
14 | | - * - Added string.rtrim, string.ltrim and string.trim. |
15 | | - * - Added table.copy, table.filter and table.merge. |
16 | | - * - Added table.sum, table.average, table.min and table.max. |
17 | | - * - Added calltable, setsetting and waitcondition. |
18 | | - * - Added Point class. |
19 | | - * - Added HUD class. |
20 | | - * - Updated userdatastringformat. |
21 | | - * - Fixed maxcap. |
22 | | - * - Fixed table.stringformat. |
23 | | - * - Fixed REGEX_SERVER_SAVE. |
| 14 | + * - Minor fixes for HUD class. |
24 | 15 | * |
25 | 16 | --]] |
26 | 17 |
|
@@ -1854,7 +1845,7 @@ function HUD:new(options) |
1854 | 1845 |
|
1855 | 1846 | local oldPos = newObj.database:getvalue('HUDs Info', newObj.uniqueId .. '.position') |
1856 | 1847 | if oldPos ~= nil then |
1857 | | - newObj.startPosition = Point:new(oldPos:explode(';')) |
| 1848 | + newObj.startPosition = newObj.posRelativeTo() + Point:new(oldPos:explode(';')) |
1858 | 1849 | end |
1859 | 1850 | end |
1860 | 1851 |
|
@@ -1920,10 +1911,6 @@ function HUD:drag() |
1920 | 1911 |
|
1921 | 1912 | self:setPosition((curMouse - self.mousePos) + getposition()) |
1922 | 1913 | self.mousePos = curMouse |
1923 | | - |
1924 | | - if self.savePosition then |
1925 | | - self:updateSavedPosition() |
1926 | | - end |
1927 | 1914 | end |
1928 | 1915 | end |
1929 | 1916 |
|
|
0 commit comments