Wednesday February 08 , 2012
Text Size
   
Welcome, Guest
Username Password: Remember me

Developing Panel Info plugins
(1 viewing) (1) Guest
A place to meet other Developers

TOPIC: Developing Panel Info plugins

Developing Panel Info plugins 1 year, 8 months ago #7886

  • cYo
  • OFFLINE
  • Moderator
  • Posts: 2116
  • Karma: 109
Ask your questions or here

One initial tip: If you write UI panels, turn off optimization (-dso) and reload your panel with Shift-Alt-Ctrl-R while heaving the focus in your panel. This way you can develop your script while reducing the time to restart ComicRack.
Last Edit: 1 year, 8 months ago by cYo.

Re:Developing Panel Info plugins 1 year, 5 months ago #9555

  • perezmu
  • OFFLINE
  • Platinum Boarder
  • Posts: 788
  • Karma: 36
cYo,

I am cooking up some fun with the infopanels... I am using the "html" version, I am not sure if I understand the "controls" versions just yet. I was wondering if is there any way to pass an image to the panel without saving it to a real jpg file that the html can then read. I guess I need to use the UIInfoPanel approach, right?

Also, the browser component used is, I guess IE, and the version depends on what each user has installed, right?

Re:Developing Panel Info plugins 1 year, 5 months ago #9556

  • perezmu
  • OFFLINE
  • Platinum Boarder
  • Posts: 788
  • Karma: 36
Ok, one more question

Is there anyway to provide feedback from the infopanel to CR, like opening a comic when a link is selected or the like?

Sorry, just swimming in utterly unknown waters here.

Thanks.

Re:Developing Panel Info plugins 1 year, 5 months ago #9592

  • pescuma
  • OFFLINE
  • Expert Boarder
  • Posts: 94
  • Karma: 19
@ cYo

I saw that the comic info receives the selected books. Can it access a list of all books that are visible and the current grouping/ordering settings?
My idea is to show a page with info if a series stack is show. Info like name of the series, maybe some description, missing issues, etc. Is it possible? If not, can you add it, please?

Also, there is any way for one extension to talk to another?

EDIT: One more: using the HTML version, when a new html is generated the scroll is not reset. It would be good if the page was scrolled to top. (EDIT 2: It only happens sometimes)
Last Edit: 1 year, 5 months ago by pescuma.

Re:Developing Panel Info plugins 1 year, 5 months ago #9606

Where do these panels show up? I enabled the Web link panel example put I'm not seeing it anywhere

Edit: Never mind, just found it
Last Edit: 1 year, 5 months ago by DouglasBubbletrousers.

Re:Developing Panel Info plugins 1 year, 5 months ago #9611

  • perezmu
  • OFFLINE
  • Platinum Boarder
  • Posts: 788
  • Karma: 36
DouglasBubbletrousers wrote:
Where do these panels show up? I enabled the Web link panel example put I'm not seeing it anywhere

Edit: Never mind, just found it


tricky, ain't it?
Last Edit: 1 year, 5 months ago by perezmu.

Re:Developing Panel Info plugins 1 year, 5 months ago #9612

  • pescuma
  • OFFLINE
  • Expert Boarder
  • Posts: 94
  • Karma: 19
@ cYo

One more feature request: could you provide an easy to generate text from templates? I was thinking about something like a way to call NVelocity from inside python. I tried some template engines for python and none was easy to integrate (and the ones that I could integrate had problems with unicode chars - I ended up hacking one, but...). Thanks.
Last Edit: 1 year, 5 months ago by pescuma.

Re:Developing Panel Info plugins 1 year, 5 months ago #9631

  • cYo
  • OFFLINE
  • Moderator
  • Posts: 2116
  • Karma: 109
As the API extends, it would be a good idea to create/update the wiki for it.

So here are some answers

* Html Panels are displayed with the currently installed IE version
* There are actually some API functions for controlling the reader. The App object has the "OpenBooks" object. Good functions are:

bool IsOpen (book) -> Check if book is open
bool Open (book, bool inNewSlot, int initialPage) -> opens a book in the reader

* I did not get the template question

Re:Developing Panel Info plugins 1 year, 5 months ago #9634

  • perezmu
  • OFFLINE
  • Platinum Boarder
  • Posts: 788
  • Karma: 36
cYo wrote:

bool Open (book, bool inNewSlot, int initialPage) -> opens a book in the reader


Excuse my ignorance... [as usual (you could see that when you looked at the source of the original ComicVine script) I am swimming in deeper waters than my knowledge allows... but it is fun], but can this be triggered from a link or action in the infopanel html?

Re:Developing Panel Info plugins 1 year, 5 months ago #9636

  • cYo
  • OFFLINE
  • Moderator
  • Posts: 2116
  • Karma: 109
to use it from a web panel I would have to make some webinterface. This is not there for now. So you either have to make a control UI.
Time to create page: 0.59 seconds

Who's Online

We have 166 guests and 1 member online
  • primetime34

PIM

You are not logged in.