UI Toolkit

Reply

Level 3

Level 3
niwrA
Posts: 152
Registered: ‎31-07-2008
Message 11 of 23 (197 Views)

Re: UI Wizard

Style Manager works, styles now configurable in Xml, automatic Font Caching built in. Happy! :smileyhappy:

 

Now the updates to and from the wizard and a bit of clean-up, and I'm ready to go 'public beta' ... :smileyvery-happy:

Please use plain text.

Level 3

Level 3
niwrA
Posts: 152
Registered: ‎31-07-2008
Message 12 of 23 (190 Views)

Re: UI Wizard

Hurray! I've achieved my first major milestone :smileyhappy: If anyone is interested, this is now ready for testing in a foreign location. I'm going to hook it up to various stuff myself now, demos and other test stuff, but the basics are now done:

 

WizardEngine

Contains a  serializeable object-hierarchy that defines the user interface. You instantiate the WizardManager, optionally with a url to a serializeable xml file that will automatically create the wizard, otherwise start with an empty wizard object that you can build out in code. 

 

The WizardManager also controls navigation (FirstPage, NextPage, PreviousPage) and setting values of individual elements (SetElementValueByName), and will raise events when actual changes occur (ValueChanged, PageChanged) with event arguments containing the relevant information (e.g. NewValue, OldValue, Element and NewPage, OldPage, Direction respectively). 

 

WizardEngine.UI

Contains a WizardPanel and a WizardElementPanel, as well as a StyleManager. The StyleManager works similar to the WizardManager, and can serialize and de-serialize its Styles from a file. It handles all the basic settings for Widgets, but as best practice I have setup the WizardElementPanel to distinguish between Label, Widget, and Text, always falling back to Default whenever there is no explicit style defined. 

 

I'll write a full manual and will unquestionably add more features, but for now, this is a good start and I'm very happy. 

Please use plain text.

Re: UI Wizard

This looks fantastic niwrA - great work!
PlayStation®Mobile Dev Team
Please use plain text.

Level 3

Level 3
niwrA
Posts: 152
Registered: ‎31-07-2008
Message 14 of 23 (156 Views)

Re: UI Wizard

Thanks James!

Currently working in ListPanel support with embedding and some databinding. Great to be getting some results on that now, will post some more shots soon.
Please use plain text.

Level 3

Level 3
niwrA
Posts: 152
Registered: ‎31-07-2008
Message 15 of 23 (149 Views)

Re: UI Wizard

Here's a screenie. Listpanel item is built up of some Ui controls but also two nested wizardpanels. These don't have databinding yet, but I hopefully get that finished on Monday, shouldn't be too hard now. 2012-05-12-005825
Please use plain text.

Level 3

Level 3
niwrA
Posts: 152
Registered: ‎31-07-2008
Message 16 of 23 (137 Views)

Re: UI Wizard

[ Edited ]

FIRST *BETA* RELEASE

 

Hi All, 

 

Those interested can try the libs now. It's not nearly finished, and there is plenty of work to do on the documentation as well :smileywink: but the basics are there, and as I had a question from someone if he could try it, and I am off for a week not able to work on this, it seemed like a good moment to share some results.

 

There's a manual in there detailing how to add the UI Wizard to your project, and there's a modifield SampleModelDemo from the PSS that shows the end result of integrating it, that you can use for reference and testing. I also made a little crappy video, that shows some of the project and code that I will post whenever it is done. 

 

You can download the whole package from here, it's the only file in the shared folder at the moment:

https://skydrive.live.com/redir.aspx?cid=2d62d5dd0c4dbd0c&resid=2D62D5DD0C4DBD0C!242&parid=2D62D5DD0...

Hope to see some cool stuff from you guys. :smileywink: Feel free to post questions here. I will be answering those promptly.

 

Short video:

http://www.youtube.com/watch?v=i3_l0_aKLtM&feature=youtu.be

 

Long video:

http://www.youtube.com/watch?v=4D3__Fa0V_Y&feature=youtu.be

Please use plain text.

Level 3

Level 3
niwrA
Posts: 152
Registered: ‎31-07-2008
Message 17 of 23 (124 Views)

Re: UI Wizard

Long video failed last time but it is up now: http://www.youtube.com/watch?v=aB4dD5vgYYI&feature=youtube_gdata_player
Please use plain text.

Level 3

Level 3
niwrA
Posts: 152
Registered: ‎31-07-2008
Message 18 of 23 (85 Views)

Re: UI Wizard

[ Edited ]

I have been messing around a bit trying to model some existing UIs in the tool to see what works and what is still missing. Features I am now working on is a generic 'StackPanel' that can orientate horizontal and vertical, a simple header control, making labels optional and configurable, extending the existing UI Toolkit controls with most needed features etc. Quite a lot of work. *sigh*

 

 

school_demo_p2
Please use plain text.

Re: UI Wizard

A stackpanel is very useful in WPF. Great job.

 

Any way to push the final item to the bottom of the screen? In WPF you would typically use a dockpanel for that.

Please use plain text.

Level 3

Level 3
niwrA
Posts: 152
Registered: ‎31-07-2008
Message 20 of 23 (78 Views)

Re: UI Wizard

Usually you want that for sizing, right? But I will support a different trick that I learnt for that, that I think makes docking irrelevant (otherwise I would model after the DockPanel rather than the StackPanel):

 

- controls have a default height (y): the Height were designed at

- height can however be specified specifically in either pixels or percentage of remaining space, with a minimum (and I will also support a maximum)

 

So for instance, if you specify two controls, the first one 100pixels hight, the second one 100%, and the control space (not the actual visible space, as that could be less in a scroll panel), is 300 pixels high, then the second panel will be 200 pixels high, or fill up all the remaining space.

 

This works both horizontally and vertically, so is very powerful for list views as well. If you have a control with 800 pixels wide, four items in total: two items with a fixed with, of say 100 each, and the other two should scale to the remaining space. Then you can simply specify those at 40% and 60%, and that will be calculated over the 800 - 200 for the fixed width controls, so 600 pixels, which amounts to or 240 for the first and 360 for the second. 

 

I've found that a very pleasant and powerful way to work, so hoping others will too. :smileywink:

 

The other thing I would like to implement is gradient fills and brushes though, but I don't know if I can do that. On iOS those haven't been that important - you can just use images. But on PS Mobile, Android and PC, that is generally nicer as it scales much better to the vastly different range of screen sizes available (and makes packages smaller.

Please use plain text.
This widget could not be displayed.
Announcements

Welcome to the PlayStation Mobile Developer Forums


This is a community for the discussion of technical topics with other developers and SCE engineers. Posting ideas/requests are also appreciated. Join the discussion!

PlayStation®Mobile開発者フォーラムでは世界中の開発者の皆様と一緒に、議論や情報交換が可能です。SCEも議論に参加し、皆様の開発をサポートします。アイデアやリクエストも大歓迎です。ぜひご参加ください。

PSM Developer Registration (for free) on PSM DevPortal is required to post on the forum.
Please sign out then sign in again to the forum and PSM DevPortal after you have completed the registration.

フォーラムへ投稿をするにはPSM DevPortalへの登録(無料)が必要です。
登録後はフォーラムと PSM DevPortalを一度ログアウトし、再度ログインしてください。






Recent News