on 04-04-2012 02:15 AM
Solved! Go to Solution.
on 04-04-2012 05:42 PM
on 04-04-2012 07:03 PM
Check the order in which the button is being added in the generated .composer.cs file
I've posted about an issue I've encountered which could be the cause :
on 04-04-2012 07:10 PM
Thanks! None of the simple suggestions apply. Non-button widgets show up fine (at least labels and popuplists do).
namespace VCalc
{
public class AppMain
{
private static GraphicsContext graphics;
public static void Main (string[] args)
{
Initialize ();
while (true) {
SystemEvents.CheckEvents ();
Update ();
Render ();
}
}
public static void Initialize ()
{
// Set up the graphics system
graphics = new GraphicsContext (960, 544, PixelFormat.None, PixelFormat.None, MultiSampleMode.None);
UISystem.Initialize(graphics);
Scene calcScene = new mainview();
UISystem.SetScene(calcScene, null);
}
public static void Update ()
{
// Query gamepad for current state
var gamePadData = GamePad.GetData (0);
}
public static void Render ()
{
// Clear the screen
graphics.SetClearColor (.50f, .50f, .50f, 1.0f);
graphics.Clear ();
// Render the UI
UISystem.Render();
// Present the screen
graphics.SwapBuffers ();
}
}
}
From the generated code:
// Scene
sceneBackgroundPanel.BackgroundColor = new UIColor(168f / 255f, 206f / 255f, 238f / 255f, 255f / 255f);
this.RootWidget.AddChildLast(sceneBackgroundPanel)
this.RootWidget.AddChildLast(Button_0);
this.RootWidget.AddChildLast(Button_1);
this.RootWidget.AddChildLast(Button_2);
this.RootWidget.AddChildLast(Button_3);
this.RootWidget.AddChildLast(Button_4);
this.RootWidget.AddChildLast(Button_5);
this.RootWidget.AddChildLast(Button_6);
this.RootWidget.AddChildLast(Button_7);
...
on 04-04-2012 07:28 PM
on 04-04-2012 07:37 PM
on 19-04-2012 10:29 PM
Thanks man! Had the same problem, also helped with my slider widget ^^
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を一度ログアウトし、再度ログインしてください。


Website ©2013 Sony Computer Entertainment Europe
All content, game titles, trade names and/or trade dress, trademarks, artwork and associated imagery are trademarks and/or copyright material of their respective owners. All rights reserved. [more info]
%%http://community.eu.playstation.com/t5/Announcements/Beta-Trial-Information/td-p/11386362
best_shooter.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_driver.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_performer.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_footballer.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_fighter.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_creator.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
best_action_player.png%%http://community.eu.playstation.com/t5/Announcements/Introducing-Best-of-PlayStation/td-p/13741979
dev2.png%%http://community.eu.playstation.com/t5/Website-and-Forum-Help-Feedback/Producer-and-Developer-Ranks/td-p/18407352
trophy.gif%%http://community.eu.playstation.com/t5/Website-and-Forum-Help-Feedback/The-Community-Awards-FAQ/td-p/18407096
PSlogoSM.png%%http://community.eu.playstation.com/t5/Website-and-Forum-Help-Feedback/Online-Support-Coordinator-rank/td-p/18414870