mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
committed by
Qingping Hou
parent
b16a33a232
commit
2ed6cf760d
@@ -4,7 +4,7 @@ Hacking
|
||||
Developing UI Widgets
|
||||
---------------------
|
||||
|
||||
`utils/wbuilder.lua` is your friend, if you need to create new UI widgets. It
|
||||
`tools/wbuilder.lua` is your friend, if you need to create new UI widgets. It
|
||||
sets up a minimal environment to bootstrap KOReader's UI framework to avoid
|
||||
starting the whole reader. This gives you quick feedback loop while iterating
|
||||
through your widget changes. It's also a handy tool for debugging widget
|
||||
@@ -20,5 +20,5 @@ KOReader's source tree:
|
||||
It will spawn up an emulator window with a grid and simple timer widget for
|
||||
demonstration.
|
||||
|
||||
You can add more `UIManager:show` call at the end of `utils/wbuilder.lua` to
|
||||
You can add more `UIManager:show` call at the end of `tools/wbuilder.lua` to
|
||||
test your new widgets.
|
||||
|
||||
2
kodev
2
kodev
@@ -204,7 +204,7 @@ function kodev-wbuilder {
|
||||
kodev-build
|
||||
echo "[*] Running wbuilder.lua..."
|
||||
pushd "${EMU_DIR}"
|
||||
EMULATE_READER_W=540 EMULATE_READER_H=720 ./luajit ./utils/wbuilder.lua
|
||||
EMULATE_READER_W=540 EMULATE_READER_H=720 ./luajit ./tools/wbuilder.lua
|
||||
popd
|
||||
}
|
||||
|
||||
|
||||
@@ -394,7 +394,7 @@ function testBookStatus()
|
||||
end
|
||||
|
||||
function testTouchProbe()
|
||||
local TouchProbe = require("utils/kobo_touch_probe")
|
||||
local TouchProbe = require("tools/kobo_touch_probe")
|
||||
UIManager:show(TouchProbe:new{})
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user