public void Initialize() { this.menuTss = new MenuLayout(this, 550, 34); TusTss.add_OnTssDataRecieved(new Messages.EventHandler(this.OnGotTssData)); TusTss.add_OnTssNoData(new Messages.EventHandler(this.OnSomeEvent)); TusTss.add_OnTusTssError(new Messages.EventHandler(this.OnTusTssError)); }
public void Initialize() { menu = new MenuLayout(this, 450, 34); Requests.OnCheckPlusResult += OnCheckPlusResult; Requests.OnAccountLanguageResult += OnAccountLanguageResult; Requests.OnParentalControlResult += OnParentalControlResult; }
public void Initialize() { this.menu = new MenuLayout(this, 450, 34); Requests.add_OnCheckPlusResult(new Messages.EventHandler(this.OnCheckPlusResult)); Requests.add_OnAccountLanguageResult(new Messages.EventHandler(this.OnAccountLanguageResult)); Requests.add_OnParentalControlResult(new Messages.EventHandler(this.OnParentalControlResult)); }
public void Initialize() { menuTss = new MenuLayout(this, 550, 34); TusTss.OnTssDataRecieved += OnGotTssData; TusTss.OnTssNoData += OnSomeEvent; TusTss.OnTusTssError += OnTusTssError; }
private void HandleRomListChanged(object sender, NotifyCollectionChangedEventArgs e) { switch (e.Action) { case NotifyCollectionChangedAction.Remove: MenuLayout.StartItemsUpdate(); for (int i = 0; i < e.OldItems.Count; ++i) { var program = e.OldItems[i] as ProgramDescription; MenuLayout.MarkProgramMissing(program, LtoFlash.ActiveLtoFlashDevices.Select(vm => vm.Device).Where(m => m.IsValid)); ////MenuLayout.MenuLayout.RemoveChildFromHierarchy(f => (f is INTV.LtoFlash.Model.Program) && ((f as INTV.LtoFlash.Model.Program).Description == program)); } MenuLayout.FinishItemsUpdate(false); // The menu isn't really changing here... break; case NotifyCollectionChangedAction.Add: MenuLayout.StartItemsUpdate(); for (int i = 0; i < e.NewItems.Count; ++i) { var program = e.NewItems[i] as ProgramDescription; MenuLayout.MarkProgramAvailable(program, LtoFlash.ActiveLtoFlashDevices.Select(vm => vm.Device).Where(m => m.IsValid)); } MenuLayout.FinishItemsUpdate(false); // The menu isn't actually changing break; default: ////MenuLayout.MarkProgramMissing(program); break; } }
public void PopMenu() { if (menuStack.Count > 0) { activeMenu = menuStack[menuStack.Count - 1]; menuStack.RemoveAt(menuStack.Count - 1); } }
public void Initialize() { menuUser = new MenuLayout(this, 560, 34); User.OnGotUserProfile += OnUserGotProfile; User.OnGotRemoteUserNpID += OnGotRemoteUserNpID; User.OnGotRemoteUserProfile += OnGotRemoteUserProfile; User.OnUserProfileError += OnUserProfileError; }
public void Initialize() { this.menu = new MenuLayout(this, 450, 34); Dialogs.add_OnDlgFriendsListClosed(new Messages.EventHandler(this.OnFriendDialogClosed)); Dialogs.add_OnDlgSharedPlayHistoryClosed(new Messages.EventHandler(this.OnSharedPlayHistoryDialogClosed)); Dialogs.add_OnDlgProfileClosed(new Messages.EventHandler(this.OnProfileDialogClosed)); Dialogs.add_OnDlgCommerceClosed(new Messages.EventHandler(this.OnCommerceDialogClosed)); }
public void Initialize() { menu = new MenuLayout(this, 450, 34); Dialogs.OnDlgFriendsListClosed += OnFriendDialogClosed; Dialogs.OnDlgSharedPlayHistoryClosed += OnSharedPlayHistoryDialogClosed; Dialogs.OnDlgProfileClosed += OnProfileDialogClosed; Dialogs.OnDlgCommerceClosed += OnCommerceDialogClosed; }
public void Initialize() { this.menuUser = new MenuLayout(this, 560, 34); User.add_OnGotUserProfile(new Messages.EventHandler(this.OnUserGotProfile)); User.add_OnGotRemoteUserNpID(new Messages.EventHandler(this.OnGotRemoteUserNpID)); User.add_OnGotRemoteUserProfile(new Messages.EventHandler(this.OnGotRemoteUserProfile)); User.add_OnUserProfileError(new Messages.EventHandler(this.OnUserProfileError)); }
public void PopMenu() { if (this.menuStack.get_Count() > 0) { this.activeMenu.GetOwner().OnExit(); this.activeMenu = this.menuStack.get_Item(this.menuStack.get_Count() - 1); this.menuStack.RemoveAt(this.menuStack.get_Count() - 1); } }
void Start() { if (singleton != null) { Destroy(gameObject); return; } singleton = this; }
void LoadUser() { var userHead = MenuLayout.FindViewById <ImageView>(Resource.Id.MenuLeft_UserHead); var userName = MenuLayout.FindViewById <TextView>(Resource.Id.MenuLeft_UserName); var userSignature = MenuLayout.FindViewById <TextView>(Resource.Id.MenuLeft_UserSignature); userName.Text = $"{Greetings},{ActiveContext.User.Name}"; userSignature.Text = ActiveContext.User.Signature; }
public void Initialize() { menu = new MenuLayout(this, 450, 34); store = new SonyNpCommerceStore(); inGameStore = new SonyNpCommerceInGameStore(); entitlements = new SonyNpCommerceEntitlements(); Commerce.OnError += OnCommerceError; Commerce.OnDownloadListStarted += OnSomeEvent; Commerce.OnDownloadListFinished += OnSomeEvent; }
public void Initialize() { this.menu = new MenuLayout(this, 450, 34); this.store = new SonyNpCommerceStore(); this.inGameStore = new SonyNpCommerceInGameStore(); this.entitlements = new SonyNpCommerceEntitlements(); Commerce.add_OnError(new Messages.EventHandler(this.OnCommerceError)); Commerce.add_OnDownloadListStarted(new Messages.EventHandler(this.OnSomeEvent)); Commerce.add_OnDownloadListFinished(new Messages.EventHandler(this.OnSomeEvent)); }
public void Initialize() { menuTus = new MenuLayout(this, 550, 34); TusTss.OnTusDataSet += OnSetTusData; TusTss.OnTusDataRecieved += OnGotTusData; TusTss.OnTusVariablesSet += OnSetTusVariables; TusTss.OnTusVariablesModified += OnModifiedTusVariables; TusTss.OnTusVariablesRecieved += OnGotTusVariables; TusTss.OnTusTssError += OnTusTssError; }
public void Initialize() { this.menuTus = new MenuLayout(this, 550, 34); TusTss.add_OnTusDataSet(new Messages.EventHandler(this.OnSetTusData)); TusTss.add_OnTusDataRecieved(new Messages.EventHandler(this.OnGotTusData)); TusTss.add_OnTusVariablesSet(new Messages.EventHandler(this.OnSetTusVariables)); TusTss.add_OnTusVariablesModified(new Messages.EventHandler(this.OnModifiedTusVariables)); TusTss.add_OnTusVariablesRecieved(new Messages.EventHandler(this.OnGotTusVariables)); TusTss.add_OnTusTssError(new Messages.EventHandler(this.OnTusTssError)); }
public void SetMenu(MenuLayout menu) { if (this.activeMenu != null) { this.activeMenu.GetOwner().OnExit(); } this.menuStack.Clear(); this.activeMenu = menu; this.activeMenu.GetOwner().OnEnter(); }
public void Initialize() { this.rankingMenu = new MenuLayout(this, 450, 34); Ranking.add_OnCacheRegistered(new Messages.EventHandler(this.OnSomeEvent)); Ranking.add_OnRegisteredNewBestScore(new Messages.EventHandler(this.OnRegisteredNewBestScore)); Ranking.add_OnNotBestScore(new Messages.EventHandler(this.OnSomeEvent)); Ranking.add_OnGotOwnRank(new Messages.EventHandler(this.OnRankingGotOwnRank)); Ranking.add_OnGotFriendRank(new Messages.EventHandler(this.OnRankingGotFriendRank)); Ranking.add_OnGotRankList(new Messages.EventHandler(this.OnRankingGotRankList)); Ranking.add_OnRankingError(new Messages.EventHandler(this.OnRankingError)); }
public void Initialize() { menu = new MenuLayout(this, 450, 34); Commerce.OnSessionCreated += OnSessionCreated; Commerce.OnSessionAborted += OnSomeEvent; Commerce.OnGotCategoryInfo += OnGotCategoryInfo; Commerce.OnGotProductList += OnGotProductList; Commerce.OnGotProductInfo += OnGotProductInfo; Commerce.OnCheckoutStarted += OnSomeEvent; Commerce.OnCheckoutFinished += OnSomeEvent; }
/// <summary> /// Builds a menu based on the parameters given /// </summary> /// <typeparam name="T">The type of data the menu should hold</typeparam> /// <param name="parentControl">The parent control this menu resides in</param> /// <param name="menuLayout">The standard layout to use, either horizontal or vertical</param> /// <param name="menuLocation">The location in the screen the menu is located at</param> /// <param name="appearance">The appearance this menu should take<para>Leave null for default layout</para></param> /// <param name="eventFunction">The function to execute when the tab changes</param> /// <returns>A menu based on the parameters given</returns> public static IMenu <T> Build <T>(Control parentControl, MenuLayout menuLayout, MenuLocation menuLocation, MenuAppearance appearance = null, EventHandler <TabChangedEventArgs <T> > eventFunction = null) { var menu = new Menu <T> { appearance = appearance ?? MenuAppearance.GetDefaultAppearance(), allowRightClick = false, parentControl = parentControl, currentTabIndex = -1, currentMouseMode = MouseModes.mouseClick, }; switch (menuLayout) { case MenuLayout.horizontal: menu.menuDrawer = new HorizontalMenuDrawer(); menu.tabDrawer = new HorizontalTabDrawer(); menu.clickHandler = new HorizontalClickHandler(); break; case MenuLayout.vertical: menu.menuDrawer = new VerticalMenuDrawer(); menu.tabDrawer = new VerticalTabDrawer(); menu.clickHandler = new VerticalClickHandler(); break; } switch (menuLocation) { case MenuLocation.top: menu.tabDrawer.tabLocationDrawer = new TopTabLocationDrawer(); break; case MenuLocation.right: menu.tabDrawer.tabLocationDrawer = new RightTabLocationDrawer(); break; case MenuLocation.bottom: menu.tabDrawer.tabLocationDrawer = new BottomTabLocationDrawer(); break; case MenuLocation.left: menu.tabDrawer.tabLocationDrawer = new LeftTabLocationDrawer(); break; } parentControl.Paint += menu.OnDraw; parentControl.MouseClick += menu.OnClick; if (eventFunction != null) { menu.tabChanged += eventFunction; } return(menu); }
public void Initialize() { this.menu = new MenuLayout(this, 450, 34); Commerce.add_OnSessionCreated(new Messages.EventHandler(this.OnSessionCreated)); Commerce.add_OnSessionAborted(new Messages.EventHandler(this.OnSomeEvent)); Commerce.add_OnGotCategoryInfo(new Messages.EventHandler(this.OnGotCategoryInfo)); Commerce.add_OnGotProductList(new Messages.EventHandler(this.OnGotProductList)); Commerce.add_OnGotProductInfo(new Messages.EventHandler(this.OnGotProductInfo)); Commerce.add_OnCheckoutStarted(new Messages.EventHandler(this.OnSomeEvent)); Commerce.add_OnCheckoutFinished(new Messages.EventHandler(this.OnSomeEvent)); }
public void Initialize() { rankingMenu = new MenuLayout(this, 450, 34); Ranking.OnCacheRegistered += OnSomeEvent; Ranking.OnRegisteredNewBestScore += OnRegisteredNewBestScore; Ranking.OnNotBestScore += OnSomeEvent; Ranking.OnGotOwnRank += OnRankingGotOwnRank; Ranking.OnGotFriendRank += OnRankingGotFriendRank; Ranking.OnGotRankList += OnRankingGotRankList; Ranking.OnRankingError += OnRankingError; }
public void Initialize() { this.menuMessaging = new MenuLayout(this, 500, 34); Messaging.add_OnMessageSent(new Messages.EventHandler(this.OnSomeEvent)); Messaging.add_OnMessageNotSent(new Messages.EventHandler(this.OnSomeEvent)); Messaging.add_OnMessageCanceled(new Messages.EventHandler(this.OnSomeEvent)); Messaging.add_OnCustomDataMessageRetrieved(new Messages.EventHandler(this.OnMessagingGotGameMessage)); Messaging.add_OnCustomInviteMessageRetrieved(new Messages.EventHandler(this.OnMessagingGotGameInvite)); Messaging.add_OnInGameDataMessageRetrieved(new Messages.EventHandler(this.OnMessagingGotInGameDataMessage)); Messaging.add_OnMessageNotSentFreqTooHigh(new Messages.EventHandler(this.OnSomeEvent)); Messaging.add_OnMessageError(new Messages.EventHandler(this.OnMessageError)); }
public void Initialize() { menuMessaging = new MenuLayout(this, 500, 34); Messaging.OnMessageSent += OnSomeEvent; Messaging.OnMessageNotSent += OnSomeEvent; Messaging.OnMessageCanceled += OnSomeEvent; Messaging.OnCustomDataMessageRetrieved += OnMessagingGotGameMessage; Messaging.OnCustomInviteMessageRetrieved += OnMessagingGotGameInvite; Messaging.OnInGameDataMessageRetrieved += OnMessagingGotInGameDataMessage; Messaging.OnMessageNotSentFreqTooHigh += OnSomeEvent; Messaging.OnMessageError += OnMessageError; }
public void Initialize() { menuTrophies = new MenuLayout(this, 450, 34); Trophies.OnGotGameInfo += OnTrophyGotGameInfo; Trophies.OnGotGroupInfo += OnTrophyGotGroupInfo; Trophies.OnGotTrophyInfo += OnTrophyGotTrophyInfo; Trophies.OnGotProgress += OnTrophyGotProgress; Trophies.OnAwardedTrophy += OnSomeEvent; Trophies.OnAwardTrophyFailed += OnSomeEvent; Trophies.OnAlreadyAwardedTrophy += OnSomeEvent; Trophies.OnUnlockedPlatinum += OnSomeEvent; }
public void Initialize() { this.menuTrophies = new MenuLayout(this, 450, 34); Trophies.add_OnGotGameInfo(new Messages.EventHandler(this.OnTrophyGotGameInfo)); Trophies.add_OnGotGroupInfo(new Messages.EventHandler(this.OnTrophyGotGroupInfo)); Trophies.add_OnGotTrophyInfo(new Messages.EventHandler(this.OnTrophyGotTrophyInfo)); Trophies.add_OnGotProgress(new Messages.EventHandler(this.OnTrophyGotProgress)); Trophies.add_OnAwardedTrophy(new Messages.EventHandler(this.OnSomeEvent)); Trophies.add_OnAwardTrophyFailed(new Messages.EventHandler(this.OnSomeEvent)); Trophies.add_OnAlreadyAwardedTrophy(new Messages.EventHandler(this.OnSomeEvent)); Trophies.add_OnUnlockedPlatinum(new Messages.EventHandler(this.OnSomeEvent)); }
public void Initialize() { menu = new MenuLayout(this, 450, 34); ticketing = new SonyNpTicketing(); dialogs = new SonyNpDialogs(); Sony.NP.System.OnGotBandwidth += OnSystemGotBandwidth; Sony.NP.System.OnGotNetInfo += OnSystemGotNetInfo; Sony.NP.System.OnNetInfoError += OnNetInfoError; WordFilter.OnCommentCensored += OnWordFilterCensored; WordFilter.OnCommentNotCensored += OnWordFilterNotCensored; WordFilter.OnCommentSanitized += OnWordFilterSanitized; WordFilter.OnWordFilterError += OnWordFilterError; }
public void Initialize() { this.menu = new MenuLayout(this, 450, 34); this.ticketing = new SonyNpTicketing(); this.dialogs = new SonyNpDialogs(); System.add_OnGotBandwidth(new Messages.EventHandler(this.OnSystemGotBandwidth)); System.add_OnGotNetInfo(new Messages.EventHandler(this.OnSystemGotNetInfo)); System.add_OnNetInfoError(new Messages.EventHandler(this.OnNetInfoError)); WordFilter.add_OnCommentCensored(new Messages.EventHandler(this.OnWordFilterCensored)); WordFilter.add_OnCommentNotCensored(new Messages.EventHandler(this.OnWordFilterNotCensored)); WordFilter.add_OnCommentSanitized(new Messages.EventHandler(this.OnWordFilterSanitized)); WordFilter.add_OnWordFilterError(new Messages.EventHandler(this.OnWordFilterError)); }
private void Start() { //IL_0223: Unknown result type (might be due to invalid IL or missing references) //IL_0228: Unknown result type (might be due to invalid IL or missing references) //IL_0229: Unknown result type (might be due to invalid IL or missing references) //IL_022b: Invalid comparison between Unknown and I4 avatars[0] = new Avatar(GameObject.Find("UserAvatar")); avatars[1] = new Avatar(GameObject.Find("RemoteUserAvatar")); menuMain = new MenuLayout(this, 500, 34); menuStack = new MenuStack(); menuStack.SetMenu(menuMain); Main.OnNPInitialized += OnNPInitialized; OnScreenLog.Add("Initializing NP"); Main.enableInternalLogging = true; Main.OnLog += OnLog; Main.OnLogWarning += OnLogWarning; Main.OnLogError += OnLogError; int kNpToolkitCreate_CacheTrophyIcons = Main.kNpToolkitCreate_CacheTrophyIcons; Main.Initialize(kNpToolkitCreate_CacheTrophyIcons); string sessionImage = Application.streamingAssetsPath + "/PSP2SessionImage.jpg"; Main.SetSessionImage(sessionImage); Sony.NP.System.OnConnectionUp += OnSomeEvent; Sony.NP.System.OnConnectionDown += OnConnectionDown; Sony.NP.System.OnSysResume += OnSomeEvent; Sony.NP.System.OnSysNpMessageArrived += OnSomeEvent; Sony.NP.System.OnSysStorePurchase += OnSomeEvent; Sony.NP.System.OnSysStoreRedemption += OnSomeEvent; Sony.NP.System.OnSysEvent += OnSomeEvent; Messaging.OnSessionInviteMessageRetrieved += OnMessagingSessionInviteRetrieved; Messaging.OnMessageSessionInviteReceived += OnMessagingSessionInviteReceived; Messaging.OnMessageSessionInviteAccepted += OnMessagingSessionInviteAccepted; User.OnSignedIn += OnSignedIn; User.OnSignedOut += OnSomeEvent; User.OnSignInError += OnSignInError; user = new SonyNpUser(); friends = new SonyNpFriends(); trophies = new SonyNpTrophy(); ranking = new SonyNpRanking(); sessions = new SonyNpSession(); messaging = new SonyNpMessaging(); commerce = new SonyNpCommerce(); cloudStorage = new SonyNpCloud(); utilities = new SonyNpUtilities(); Utility.SkuFlags skuFlags = Utility.skuFlags; if ((int)skuFlags == 1) { OnScreenLog.Add("Trial Mode, purchase the full app to get extra features."); } }
public Menu(List<MenuObject> _objects, MenuLayout _layout, int _startX = 0, int _startY=50) { camera = new Camera (); startX = _startX; startY = _startY; layout = _layout; objects = _objects; if (layout == MenuLayout.Vertical) { int y = startY; foreach (MenuObject obj in objects) { int x = Constants.Constants.WIDTH / 2 - obj.width / 2; if (startX != 0) { x = startX; } obj.x = x; obj.y = y; y += obj.height + 20; } width = objects [0].width; height = y; if (y >= Constants.Constants.HEIGHT - objects [0].height) { yOverflow = true; height = Constants.Constants.HEIGHT; } } else if (layout == MenuLayout.Horizontal) { int y = startY; int x = startX; foreach (MenuObject obj in objects) { obj.x = x; obj.y = y; x += obj.width + 10; } width = x; if (x >= Constants.Constants.WIDTH - objects [0].width) { xOverflow = true; x = Constants.Constants.WIDTH; } } objects [0].selected = true; }