Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Sony Reader > Sony Reader Dev Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 03-25-2011, 10:33 AM   #241
kartu
PRS+ author
kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.
 
Posts: 1,637
Karma: 2446233
Join Date: Dec 2007
Device: Sony PRS-300, 505, 600, 650, 950
Ben, there is already popup message functionality in PRS+. In 2.0.11 it is slightly improved, with reliable delay. (Core.ui.showMsg)

Last edited by kartu; 03-25-2011 at 10:47 AM.
kartu is offline   Reply With Quote
Old 03-25-2011, 11:45 AM   #242
Mark Nord
2B || !2B
Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.
 
Posts: 854
Karma: 327896
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
Quote:
Originally Posted by BenChen View Post
.. I moved the "Keep jumping, or click piece to end your turn." into a label, but I need to place some temporary graphics underneath. So I tried to make a "popup". I added the appropriate graphic to AppAssets.png and then in AppAssests.xml I made a skin called "popup" (using popup-l, popup-c and popup-r cutouts) and then in draughts.xml I call it as a sprite with id='jumpTextBox'.

But it doesn't work. The sprite appears basically as it appears in AppAssests.png, but doesn't expand to the intended size of the sprite. Can you take a look and see what I am doing wrong?
Hi, Ben!

Without checking your code a "first shot into the blue".

Sprites didn't adapt to their bounding-box, they tile.
Basically: Buttons, Panels and text-controls will do.

So puting your label onto a panel, should work.
See "CalculatorLabel" in Calc as example.
HTH
Mark

[EDIT]
Define the popup like this:
Code:
          <cutout id="popup-tl" x="728" y="51" width="5" heiht="3"/>
          <cutout id="popup-tc" x="733" y="51" width="42" height="5"/>
          <cutout id="popup-tr" x="775" y="51" width="5" height="5"/>
          <cutout id="popup-ml" x="728" y="55" width="5" height="25"/>         
          <cutout id="popup-mc" x="733" y="55" width="42" height="25"/>
          <cutout id="popup-mr" x="775" y="55" width="5" height="25"/>
          <cutout id="popup-bl" x="728" y="81" width="5" height="5"/>
          <cutout id="popup-bc" x="733" y="81" width="42" height="5"/>
          <cutout id="popup-br" x="775" y="81" width="5" height="5"/>

        <skin id="popup" 
        	cutouts="popup-tl,popup-tc,popup-tr,popup-ml,popup-mc,popup-mr,popup-bl,popup-bc,popup-br"/>
and in draughts.xml
Code:
			<panel id='jumpTextBox'	skin='popup' left='130' width='350' top='24' height='35' active="false" canFocus="false"/>
			<label id='jumpText' skin='touchText' left='130' width='350' top='30' height='20' align='center' text='Keep jumping, or click piece to end your turn.'/>
[/EDIT]

Last edited by Mark Nord; 03-25-2011 at 05:39 PM. Reason: After looking at your code
Mark Nord is offline   Reply With Quote
Advert
Old 03-25-2011, 03:11 PM   #243
BenChen
EPUB Metadata ******
BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.
 
Posts: 525
Karma: 26874
Join Date: Dec 2010
Device: Kobo Glo HD
Thanks, Mark. I will give it a go tomorrow!
Sincerely,
Ben.
BenChen is offline   Reply With Quote
Old 03-25-2011, 05:35 PM   #244
Mark Nord
2B || !2B
Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.
 
Posts: 854
Karma: 327896
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
AppAssets (cont.)

Hello Ben,

here is my bunch of apps:
Sudoku without SkinMain, should also look good on PRS-950
Fiveballs with reduced SkinMain
MahJong, with text-based-help and still with the background-image but reduced to the max. (Could be removed and repalced with AppMainSkin if necessary)
Draughts with panel-fix
Still work in progress. Not for use with real devices!
Attached Files
File Type: rar addons_mark.rar (221.1 KB, 167 views)
Mark Nord is offline   Reply With Quote
Old 03-26-2011, 03:26 AM   #245
BenChen
EPUB Metadata ******
BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.
 
Posts: 525
Karma: 26874
Join Date: Dec 2010
Device: Kobo Glo HD
PRS+ Games & Calc (shared assets versions)

Hi everyone,

Mark and I have been busy stripping these apps back to their barest essentials, and here are the results of our labours:

AppAssets - contains the shared graphics and definitions
Calc
Chess
Draughts
FiveBalls
FiveRow
FreeCell
MahJong
Sudoku

I have tested these on my 600 (using a custom-built PRS+) and they all work fine. It is possible that further tweaking may be needed, so I have kept the apps separate, in order to make it easy to update one of them at a time.

If you find a problem, let us know!

Sincerely,
Ben.

P.S. I have left the older versions in post #193 for archival reasons.

UPDATE 1: Sudoku updated (quit by Home button restored)

UPDATE 2: AppAssets, Chess, Draughts, FreeCell updated (to remove selection definition conflict)

UPDATE 3: Mahjong now has congratulations upon completion (thanks to AppAssets!)

UPDATE 4: Chess, Draughts, FiveBalls, Sudoku updated (fixed for PRS-950)

UPDATE 5: AppAssets updated

IMPORTANT NOTE: ALL FUTURE UPDATES WILL ONLY BE UPLOADED TO THE GOOGLE CODE SITE (HERE).
Attached Files
File Type: zip Calc.zip (10.2 KB, 193 views)
File Type: zip FiveRow.zip (10.9 KB, 179 views)
File Type: zip FreeCell.zip (48.8 KB, 209 views)
File Type: zip Mahjong.zip (69.1 KB, 188 views)
File Type: zip Chess.zip (24.7 KB, 186 views)
File Type: zip Draughts.zip (18.2 KB, 166 views)
File Type: zip FiveBalls.zip (15.7 KB, 181 views)
File Type: zip Sudoku.zip (71.0 KB, 190 views)
File Type: zip AppAssets.zip (44.7 KB, 193 views)

Last edited by BenChen; 03-27-2011 at 12:46 PM. Reason: UPDATE 5: AppAssets updated
BenChen is offline   Reply With Quote
Advert
Old 03-26-2011, 04:49 AM   #246
Mark Nord
2B || !2B
Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.
 
Posts: 854
Karma: 327896
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
Hi,
First of all, thank you Ben for compiling this.

But there are some glitches with my bunch of apps:
Sudoku lost the ability to quit via Home-button
Fiveballs MainSkin will extend to full-screen on PRS-950
Solution: add a "allBlack" cutout and skin, fill the background with this and set up a additional panel with skin="FiveBSkin", with top, left, right anchors and set height="800"
Will post fixes to post #244 later today.
Also slightly updated version of Sim with surquizu's awesome new icon-set is to come.

Last edited by Mark Nord; 03-26-2011 at 04:53 AM.
Mark Nord is offline   Reply With Quote
Old 03-26-2011, 05:09 AM   #247
BenChen
EPUB Metadata ******
BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.
 
Posts: 525
Karma: 26874
Join Date: Dec 2010
Device: Kobo Glo HD
Quote:
Originally Posted by Mark Nord View Post
Hi,
First of all, thank you Ben for compiling this.

But there are some glitches with my bunch of apps:
Sudoku lost the ability to quit via Home-button
Fiveballs MainSkin will extend to full-screen on PRS-950
Solution: add a "allBlack" cutout and skin, fill the background with this and set up a additional panel with skin="FiveBSkin", with top, left, right anchors and set height="800"
Will post fixes to post #244 later today.
Also slightly updated version of Sim with surquizu's awesome new icon-set is to come.
Hi Mark,

Regarding Sudoku, I added back the ability to quit via Home-button. Does it not work for some reason?

Sincerely,
Ben.
BenChen is offline   Reply With Quote
Old 03-26-2011, 05:16 AM   #248
Mark Nord
2B || !2B
Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.
 
Posts: 854
Karma: 327896
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
Ben,
just re-downloades the archive in post#245 and the
doRoot-functionality is missing.
Clicking the Home-button in the Sim with touch-skin didn't close the app.
Spoiler:
Code:
<group id="AUTORUN_GROUP" left="0" right="0" top="0" bottom="0" visible="false">
	<panel skin="AppMainSkin" left="0" right="0" top="0" bottom="0"/>
    <group id="AUTORUN" width="600" top="70" bottom="33">
	   	<sprite id="appIcon" skin="kbookMenuIcon" left="0" width="70" top="-70" height="70" u="44" v="1" active="false" canFocus="false"/>   
		<label id="appTitle" skin="title" left="70" right="0" top="-70" height="70" align="left" text="Sudoku"/>
		<code>
         <function id="doDigit" params="part">
	         this.drawDigit(part.key)
         </function>
         <function id="doMenu">
         	this.doMenuF();
         </function>
         <function id="doCenter">
         	this.doCenterF();
         </function>
         <function id="doMark">
	         this.doCenterF();
         </function>
         <function id="doLeft">
         	this.moveCursor("left");
         </function>
	      <function id="doPrevious">
         	this.moveCursor("left");
         </function>
         <function id="doRight">
         	this.moveCursor("right");
         </function>
         <function id="doNext">
         	this.moveCursor("right");
         </function>
         <function id="doUp">
         	this.moveCursor("up");
         </function>
         <function id="doDown">
        		this.moveCursor("down");
         </function>
      </code>

Last edited by Mark Nord; 03-26-2011 at 05:18 AM.
Mark Nord is offline   Reply With Quote
Old 03-26-2011, 05:18 AM   #249
BenChen
EPUB Metadata ******
BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.
 
Posts: 525
Karma: 26874
Join Date: Dec 2010
Device: Kobo Glo HD
Oops, yes, I missed the xml file. Sorry! I will make the change, and update the zip file in the earlier post.
BenChen is offline   Reply With Quote
Old 03-26-2011, 05:19 AM   #250
kartu
PRS+ author
kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.
 
Posts: 1,637
Karma: 2446233
Join Date: Dec 2007
Device: Sony PRS-300, 505, 600, 650, 950
Mark,

I think it's about time to start using repositories for FSkTestEnvironment.
You could use existing repositories on PRS+ project, the only (ugly as hell) problem being that repositories cannot be renamed and neither new could be created (10 max), so the choice is:

default - where prs+ now is. not really an option
firmware - used up to 1.1.3, obsolete
installer - used up to 1.1.3, obsolete
build - used up to 1.1.3, obsolete
600-code - empty
600-firmware - empty
600-build - empty
300-firmware - empty
300-code - empty

Or create a new project, shouldn't take more than about 15 mins to setup.
kartu is offline   Reply With Quote
Old 03-26-2011, 06:56 AM   #251
BenChen
EPUB Metadata ******
BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.
 
Posts: 525
Karma: 26874
Join Date: Dec 2010
Device: Kobo Glo HD
Hi everyone,

UPDATE 2: AddAssets, Chess, Draughts, FreeCell updated (to remove selection definition conflict)

See post #245.

Sincerely,
Ben.

P.S. I guess a repository would make this updating process easier, assuming that it is as easy to push as it is to pull using hg!
BenChen is offline   Reply With Quote
Old 03-26-2011, 09:18 AM   #252
BenChen
EPUB Metadata ******
BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.
 
Posts: 525
Karma: 26874
Join Date: Dec 2010
Device: Kobo Glo HD
Hi everyone,

UPDATE 3: Mahjong now has congratulations upon completion (thanks to AppAssets!)

See post #245.

Sincerely,
Ben.
BenChen is offline   Reply With Quote
Old 03-26-2011, 04:32 PM   #253
Mark Nord
2B || !2B
Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.
 
Posts: 854
Karma: 327896
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
As I havn't set up a repository by now, one last classic update to the Sim-Environmet in post #59

Version x.06 comes with surquizu's awesome 3D icon-set, a second page of App-Menu and a special skin to simulate the output for PRS-950
*.bat files in the root-folder allow to start the desired resolution.
normal for screen-resolution of 1024+ lines for any 4:3 reader
800px for laptop-user, again 4:3
PRS-950 requires a screen-res equal or better then 1024 lines and works with a output-window of 600x1024 according the screen of a Sony PRS-950
@ Ben:
Sudoku and Fiveballs (and AppAssets) are included with the latest code. So you may copy this over to post #245

Will you please also check your games with the PRS-950 resolution?
For some apps the "button-hint-texts" are not anchord to bottom.

Enjoy
Mark

Last edited by Mark Nord; 03-27-2011 at 06:29 AM.
Mark Nord is offline   Reply With Quote
Old 03-27-2011, 06:23 AM   #254
Mark Nord
2B || !2B
Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.
 
Posts: 854
Karma: 327896
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
Code for FSK Test-Environment for Autorun Applications under MS-Windows is moved to repository apps, kindly provided by kartu, at his prs+ goolgecode project page.
A, very basic, Wiki-page was created, too.

Last edited by Mark Nord; 05-10-2011 at 02:54 PM.
Mark Nord is offline   Reply With Quote
Old 03-27-2011, 08:28 AM   #255
BenChen
EPUB Metadata ******
BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.
 
Posts: 525
Karma: 26874
Join Date: Dec 2010
Device: Kobo Glo HD
Hi everyone,

UPDATE 4: Chess, Draughts, FiveBalls, Sudoku updated (fixed for PRS-950)

See post #245.

@Mark, if you can update the FSK Test repository, that would be good. Don't forget Mahjong (with the new congratulations upon winning!)

Sincerely,
Ben.
BenChen is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fsk error, code = -13 Brian Charles Sony Reader 4 04-23-2010 04:21 PM
Fsk error code= -43 shrktank Sony Reader 1 12-24-2009 09:32 AM
Just a silly tweak: AUTORUN.INF for Windows Rootman Kindle Developer's Corner 3 12-04-2009 10:17 AM
Request for test in Windows XP kovidgoyal Calibre 5 08-26-2009 01:14 PM
Windows Develpment Environment issue itimpi Calibre 20 01-17-2009 07:15 PM


All times are GMT -4. The time now is 12:13 AM.


MobileRead.com is a privately owned, operated and funded community.