fix tooltip regression, change readme
This commit is contained in:
parent
654fb1f3ea
commit
7407ca35da
16
README
16
README
|
@ -1,16 +0,0 @@
|
|||
ABOUT
|
||||
OTClient is an alternative tibia client. Currently in early stage
|
||||
and it aims to be a complete flexible client to otserv. It uses LUA
|
||||
scripting for all UI functionality and allow custom user MODs via scripts.
|
||||
Inspirited by "World of Warcraft" and "Heroes of Newerth" where
|
||||
users can create custom game scripts and on top of the original game.
|
||||
|
||||
COMPILING AND RUNNING
|
||||
|
||||
$ cmake .
|
||||
$ make
|
||||
$ ./otclient
|
||||
|
||||
LICENSE
|
||||
|
||||
OTClient is made available under the MIT License
|
|
@ -0,0 +1,18 @@
|
|||
=== Welcome
|
||||
OTClient is an alternative tibia client for otserv written in C++2011, made
|
||||
with a modular system that uses lua scripts for ingame interface and
|
||||
functionality, making otclient flexible and easy to customize.
|
||||
|
||||
=== Getting Started
|
||||
|
||||
* {Compiling on Windows}[http://otclient.info/page/articles.html/_/general/compiling-on-windows-r9]
|
||||
* {Compiling on Ubuntu}[http://otclient.info/page/articles.html/_/general/compiling-on-ubuntu-r12]
|
||||
Checkout our website at {http://otclient.info}[http://otclient.info/] for tutorials and more information
|
||||
|
||||
=== Contributing
|
||||
|
||||
We encourage you to contribute to OTClient! Please check out
|
||||
{our website}[http://otclient.info/] for guidelines about how to proceed. Join us!
|
||||
|
||||
=== License
|
||||
OTClient is made available under the MIT License
|
6
TODO
6
TODO
|
@ -1,14 +1,14 @@
|
|||
modules managment interface
|
||||
clean sprites cache periodically
|
||||
hotkeys events in lua
|
||||
load modules from zip packages
|
||||
ip/host/rsa configuration
|
||||
review directories search
|
||||
tooltips
|
||||
left panel with dragging windows
|
||||
console history
|
||||
console text selection
|
||||
console scrolling
|
||||
padding
|
||||
remember password/account
|
||||
move fps to a module
|
||||
scrollbar
|
||||
make otui syntax more like css
|
||||
a real working border and background property in otui
|
|
@ -40,7 +40,7 @@ function ToolTip.hide()
|
|||
end
|
||||
end
|
||||
|
||||
-- hooks
|
||||
-- UIWidget hooks
|
||||
local function onWidgetHoverChange(widget, hovered)
|
||||
if hovered then
|
||||
ToolTip.display(widget.tooltip)
|
||||
|
@ -50,14 +50,15 @@ local function onWidgetHoverChange(widget, hovered)
|
|||
end
|
||||
|
||||
local function onWidgetStyleApply(widget, style)
|
||||
if not style then return end
|
||||
widget.tooltip = style.tooltip
|
||||
if style and style.tooltip then
|
||||
widget.tooltip = style.tooltip
|
||||
end
|
||||
end
|
||||
|
||||
connect(UIWidget, { onStyleApply = onWidgetStyleApply,
|
||||
onHoverChange = onWidgetHoverChange})
|
||||
|
||||
-- public extensions
|
||||
-- UIWidget extensions
|
||||
function UIWidget:setTooltip(text)
|
||||
self.tooltip = text
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue