PlayStation Mobile UI Composer

Reply

Copy of custom button - bug or future feature?

I have found the following issue:

 

Steps:

1. In the UI Composer, drop a Button widget on a scene => Button_1

2. Set the Background type to: Custom

3. Select the button and paste it on the scene. => Button_2

4. Save

5. Build

 

The copied button will get Background images: for example system_assets/button_9patch_normal.png Actually this idea is quite nice if it would run out-of-the box but ...

 

UI Composer generates the following code:

...

Button_2_custom.BackgroundNormalImage = new ImageAsset"/Application/assets/system_assets/button_9patch_normal.png");

...

 

Running the application will give:

System.IO.FileNotFoundException: File not found.

 

The reason fr this error is clear since there is no assets/system_assets/button_9patch_normal.png file yet.

And of course, it can be solved quite easily by ourselves but I am not sure what the idea behind this behaviour is and how we should deal with it.

 

Questions:

- Is this a future feature where the composer will automatically add the asset to the list of assets?



- Or are we supposed to create a system_assets folder in assets and add the images ourselves?

 

Please use plain text.

Re: Copy of custom button - bug or future feature?

[ Edited ]

Hi Potato4H3ad,

 

Thank you for the bug report. This is not an intented behaviour and we will esclatate this bug.

 

As a temporary workaround, in UIComposer, on the pasted button, delete the path to the image which has been automatically set by UIComposer and this should fix your problems. You can then Build from there. 

 

The UIToolkit is bundled with its own textures (such as the button_9patch_normal.png) which are bundled at runtime.


You should not have to create a system_assets folder. 

 

Thanks again,

James. 

PlayStation®Mobile Dev Team
Please use plain text.

Re: Copy of custom button - bug or future feature?

This should be fixed in the next SDK.

Thanks again for reporting it.
James
PlayStation®Mobile Dev Team
Please use plain text.
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を一度ログアウトし、再度ログインしてください。