View Single Post
Old 05-28-2010, 03:02 PM   #6
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
m-land:
Ok, lets parse the <text> TAG used:
<text id="textlines" // a name to adress the object
skin="fileText" // skin actually used, definition is in simAssets.xml
left="213" right="157" top="207" height="395" // position in respect of the parent
align="left" // no comment
active="false" // doesn't accept input, If "true" you can type in code (at least under windows)
value="textlines"/> // the initial text to be displayed/used
variable = "anyvar" // a variable defined by <variable id="anyvar" value="textlines"> to be displayed in "textlines"
Lets look on the skin "fileText" which I used because it uses smaller textsize then the text-skin.
<skin id="fileText"
cutouts="text-lt, // Left Top // cutouts defines the visual appearance of the "GUI element"
text-ct, // Center Top
text-rt, // Right Top
text-lm, // Left Middle
text-cm, // Center Middle
text-rm, // Right Middle
text-lb, // Left Bottom
text-cb, // Center Bottom
text-rb" // Right Bottom
styles="text-e, // styles defines the appearance of text
text-e,
text-p,
text-s"/>
the cutouts are defined this way:
<texture href="simAssets.png"> // look for the used grafic in this file
<cutout id="null" x="0" y="0" width="0" height="0"/>
..
<cutout id="text-lt" x="306" y="6" width="9" height="9" lines="60"/>
<cutout id="text-ct" x="315" y="6" width="30" height="9" lines="60"/>
<cutout id="text-rt" x="345" y="6" width="9" height="9" lines="60"/>
<cutout id="text-lm" x="306" y="15" width="9" height="30" lines="60"/>
<cutout id="text-cm" x="315" y="15" width="30" height="30" lines="60"/>
<cutout id="text-rm" x="345" y="15" width="9" height="30" lines="60"/>
<cutout id="text-lb" x="306" y="45" width="9" height="9" lines="60"/>
<cutout id="text-cb" x="315" y="45" width="30" height="9" lines="60"/>
<cutout id="text-rb" x="345" y="45" width="9" height="9" lines="60"/>
// lines: grafic is repeated for different "State" all 60 Lines, x, y, width and height are obvious
// columns: does the same in horizontal direction
text-styles comes from:
<style font="Arial" size="14">
..
<style id="text-e" halign="left" left="4" top="4" right="4" bottom="4"> // E<nabled
<style id="text-d" color="#959595" background="#6D6D6D"/> // D<isabled
<style id="text-p" background="#B49AFF"/> // P<ressed
<style id="text-s" background="#B49AFF"/> // S<selected (thank's m-land)
</style>
And here are also styles for the four (4) STATES of the element!

As far as I can see, that's all that's done/defined here

victorsjg:
I will upload the scripts and assets when, and only when they reach a public "beta" state. (Expect them in Mid-June)
At the moment I'm pleased with the UI, but have to finish some internals and sort out a problem with doDigit() on the PRS-505.
Calculator is already running as a "addon" in prs+ on my reader (still with the german v1.4 firmware), but the code will be released as autorun-script, and have kartu to decide if he wants to include it into prs+

kartu:
Thanks for the "Fantastic!"

Last edited by Mark Nord; 05-30-2010 at 04:27 AM.
Mark Nord is offline   Reply With Quote