View Single Post
Old 10-15-2020, 04:13 AM   #1
GerReader
Connoisseur
GerReader has read War And Peace ... all of itGerReader has read War And Peace ... all of itGerReader has read War And Peace ... all of itGerReader has read War And Peace ... all of itGerReader has read War And Peace ... all of itGerReader has read War And Peace ... all of itGerReader has read War And Peace ... all of itGerReader has read War And Peace ... all of itGerReader has read War And Peace ... all of itGerReader has read War And Peace ... all of itGerReader has read War And Peace ... all of it
 
Posts: 52
Karma: 66200
Join Date: Oct 2020
Location: Germany, Rhein-Main
Device: PocketBook Touch HD 3
Currently porting the SGT Puzzle collection, need some coding help

Hi,

I bought a Pocketbook Touch HD 3 start of this year, and I used the covid lockdown to look into the PocketBook SDK, and ported the open source "Simon Tatham's Portable Puzzle collection" to my device.

By looking at several code repositories with other PocketBook apps that I found at GitHub and elsewhere, I made some quite good progress and am now at a stage where it is turning into a serious and usable app:

https://github.com/SteffenBauer/PocketPuzzles

(MIT License, so completely open source and free, no commercial interest at all, just personal enthusiasm)

To further progress with developing the app, I have some questions:

- Is there anything comparable to Menus and Dialogs in the SDK for Buttons? So far I low-level coded buttons by drawing bitmaps, catching screen tap events and checking if the x/y coordinates are within the button bitmap.

- I'd like to switch the game chooser screen to a scrolled area, similiar to the book browser library. There are functions like `AddScrolledArea` in `inkview.h`, but I'm unsure how to use this exactly. Is there example code somewhere?

- There is a special type of menu (for example when long-tapping a book in the home screen) that opens with some kind of 'arrow' pointing to the tapped object. What object in the SDK is this?

- One big element that is still missing in my app is individual configuration of game parameters. There is something like `ConfigEditor` in the SDK, but I'm completely unsure if I can use this, or if I need to low-code manual configuration.

Would be really great if somebody could help me out, thanks a lot for answers!
GerReader is offline   Reply With Quote