|
Post by Plutonus on Jan 6, 2017 10:37:30 GMT
I remember reading somewhere that you have to change the script dimensions manually.
Why not just do the below?
It seems to work fine for me.
screen = getRealScreenSize() Settings:setCompareDimension(true, screen:getX()) Settings:setScriptDimension(true, screen:getX())
|
|
|
Post by AnkuLua on Jan 6, 2017 10:54:58 GMT
|
|
|
Post by Plutonus on Jan 6, 2017 12:05:39 GMT
Why shouldn't it work? Mine does, albeit a bit slow. Also: I've been using toast for generic debugging, but it's value is limited as I have to be watching script execute in order to see the toast. Is it possible to provide a console in the ankulua gui's screen. Using a debug api we could view a log of messages sent from the script to allow better debugging and understanding what went wrong when scripts don't work as expected. You missed that question. I've tried recreating it myself but it tells me that: attempt to call global 'highlight' (a nil value) I've tried: screen:highlight("test") highlight(screen, "test") screen:highlight("test", true) After defining: screen = getRealScreenSize() Any answers?
|
|
|
Post by AnkuLua on Jan 6, 2017 12:16:06 GMT
|
|
|
Post by Plutonus on Jan 6, 2017 12:26:55 GMT
I just tried this example code, but its telling me that
no such function 'highlight'
Settings:setScriptDimension(true, 960) right = Region(400, 0, 560, 640) left = Region(0,0, 400, 640) -- ========== main program =========== left:highlight("Hello!") -- Text highlight with "Hello!". The background color is gray. And the text color is white. right:highlight() setHighlightStyle(0x8fffff00, true) getLastMatch():highlight(3) right:highlight() left:highlightOff()
Also, under what circumstances does a user become a contributor? What other ranks are there?
|
|
|
Post by AnkuLua on Jan 6, 2017 12:29:41 GMT
Make sure that you use latest version.
Sharing script makes you a contributor. And you are now a contributor.
|
|
|
Post by Plutonus on Jan 6, 2017 12:33:04 GMT
I have auto-updates off on my phone, I didn't even know there was a website until 2 days ago. Thanks!
|
|