Browse Source

fix tooltip regression, change readme

Eduardo Bart 9 years ago
parent
commit
7407ca35da
4 changed files with 26 additions and 21 deletions
  1. 0
    16
      README
  2. 18
    0
      README.rdoc
  3. 3
    3
      TODO
  4. 5
    2
      modules/tooltip/tooltip.lua

+ 0
- 16
README View File

@@ -1,16 +0,0 @@
1
-ABOUT
2
-    OTClient is an alternative tibia client. Currently in early stage
3
-    and it aims to be a complete flexible client to otserv. It uses LUA
4
-    scripting for all UI functionality and allow custom user MODs via scripts.
5
-    Inspirited by "World of Warcraft" and "Heroes of Newerth" where
6
-    users can create custom game scripts and on top of the original game.
7
-
8
-COMPILING AND RUNNING
9
-
10
-    $ cmake .
11
-    $ make
12
-    $ ./otclient
13
-
14
-LICENSE
15
-
16
-    OTClient is made available under the MIT License

+ 18
- 0
README.rdoc View File

@@ -0,0 +1,18 @@
1
+=== Welcome
2
+OTClient is an alternative tibia client for otserv written in C++2011, made
3
+with a modular system that uses lua scripts for ingame interface and
4
+functionality, making otclient flexible and easy to customize.
5
+
6
+=== Getting Started
7
+
8
+* {Compiling on Windows}[http://otclient.info/page/articles.html/_/general/compiling-on-windows-r9]
9
+* {Compiling on Ubuntu}[http://otclient.info/page/articles.html/_/general/compiling-on-ubuntu-r12]
10
+Checkout our website at {http://otclient.info}[http://otclient.info/] for tutorials and more information
11
+
12
+=== Contributing
13
+
14
+We encourage you to contribute to OTClient! Please check out
15
+{our website}[http://otclient.info/] for guidelines about how to proceed. Join us!
16
+
17
+=== License
18
+OTClient is made available under the MIT License

+ 3
- 3
TODO View File

@@ -1,14 +1,14 @@
1 1
 modules managment interface
2 2
 clean sprites cache periodically
3
-hotkeys events in lua
4 3
 load modules from zip packages
5 4
 ip/host/rsa configuration
6 5
 review directories search
7
-tooltips
8 6
 left panel with dragging windows
9 7
 console history
10 8
 console text selection
11 9
 console scrolling
12 10
 padding
13 11
 remember password/account
14
-move fps to a module
12
+scrollbar
13
+make otui syntax more like css
14
+a real working border and background property in otui

+ 5
- 2
modules/tooltip/tooltip.lua View File

@@ -40,7 +40,7 @@ function ToolTip.hide()
40 40
   end
41 41
 end
42 42
 
43
+-- UIWidget hooks
43 44
 local function onWidgetHoverChange(widget, hovered)
44 45
   if hovered then
45 46
     ToolTip.display(widget.tooltip)
@@ -50,14 +50,15 @@ local function onWidgetHoverChange(widget, hovered)
50 50
 end
51 51
 
52 52
 local function onWidgetStyleApply(widget, style)
53
-  if not style then return end
54
-  widget.tooltip = style.tooltip
53
+  if style and style.tooltip then
54
+    widget.tooltip = style.tooltip
55
+  end
55 56
 end
56 57
 
57 58
 connect(UIWidget, {  onStyleApply = onWidgetStyleApply,
58 59
                      onHoverChange = onWidgetHoverChange})
59 60
 
61
+-- UIWidget extensions
60 62
 function UIWidget:setTooltip(text)
61 63
   self.tooltip = text
62 64
 end

Loading…
Cancel
Save