Welcome, Guest
A place to meet other Developers

TOPIC: Developing Panel Info plugins

Developing Panel Info plugins 7 years 4 months ago #7886

  • cYo
  • cYo's Avatar
  • Offline
  • Moderator
  • Posts: 3476
  • Thank you received: 675
  • Karma: 181
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: 7 years 4 months ago by cYo.
The administrator has disabled public write access.

Re:Developing Panel Info plugins 7 years 1 month ago #9555

  • perezmu
  • perezmu's Avatar
  • Offline
  • Platinum Boarder
  • Posts: 1112
  • Thank you received: 64
  • Karma: 51
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?
The administrator has disabled public write access.

Re:Developing Panel Info plugins 7 years 1 month ago #9556

  • perezmu
  • perezmu's Avatar
  • Offline
  • Platinum Boarder
  • Posts: 1112
  • Thank you received: 64
  • Karma: 51
Ok, one more question :blush:

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.
The administrator has disabled public write access.

Re:Developing Panel Info plugins 7 years 1 month ago #9592

  • pescuma
  • pescuma's Avatar
  • Offline
  • Expert Boarder
  • Posts: 115
  • Thank you received: 16
  • Karma: 21
@ 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: 7 years 1 month ago by pescuma.
The administrator has disabled public write access.

Re:Developing Panel Info plugins 7 years 1 month 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: 7 years 1 month ago by DouglasBubbletrousers.
The administrator has disabled public write access.

Re:Developing Panel Info plugins 7 years 1 month ago #9611

  • perezmu
  • perezmu's Avatar
  • Offline
  • Platinum Boarder
  • Posts: 1112
  • Thank you received: 64
  • Karma: 51
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: 7 years 1 month ago by perezmu.
The administrator has disabled public write access.

Re:Developing Panel Info plugins 7 years 1 month ago #9612

  • pescuma
  • pescuma's Avatar
  • Offline
  • Expert Boarder
  • Posts: 115
  • Thank you received: 16
  • Karma: 21
@ 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: 7 years 1 month ago by pescuma.
The administrator has disabled public write access.

Re:Developing Panel Info plugins 7 years 1 month ago #9631

  • cYo
  • cYo's Avatar
  • Offline
  • Moderator
  • Posts: 3476
  • Thank you received: 675
  • Karma: 181
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
The administrator has disabled public write access.

Re:Developing Panel Info plugins 7 years 1 month ago #9634

  • perezmu
  • perezmu's Avatar
  • Offline
  • Platinum Boarder
  • Posts: 1112
  • Thank you received: 64
  • Karma: 51
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?
The administrator has disabled public write access.

Re:Developing Panel Info plugins 7 years 1 month ago #9636

  • cYo
  • cYo's Avatar
  • Offline
  • Moderator
  • Posts: 3476
  • Thank you received: 675
  • Karma: 181
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.
The administrator has disabled public write access.
Time to create page: 0.274 seconds

Who's Online

We have 183 guests and one member online