Example #1
0
        public void OnResize(SDVSocialPage nativePage)
        {
            nativeSocialPage = nativePage;
            friendSlots      = Utils.GetNativeField <List <ClickableTextureComponent>, SDVSocialPage>(nativeSocialPage, "friendNames");

            // Mostly arbitrary since there's no nice way (that i know of) to get the slots positioned correctly...
            offset        = new SVector2(Game1.tileSize / 4, Game1.tileSize / 8);
            zoom          = Game1.options.zoomLevel;
            slotHeight    = GetSlotHeight();
            lastSlotIndex = -1; // Invalidate
        }
Example #2
0
        public void OnResize(SDVSocialPage nativePage)
        {
            this.NativeSocialPage = nativePage;
            this.FriendSlots      = this.Reflection.GetField <List <ClickableTextureComponent> >(this.NativeSocialPage, "sprites").GetValue();
            this.Names            = this.Reflection.GetField <List <object> >(this.NativeSocialPage, "names").GetValue();

            // Mostly arbitrary since there's no nice way (that i know of) to get the slots positioned correctly...
            this.Offset        = new SVector2(Game1.tileSize / 4, Game1.tileSize / 8);
            this.Zoom          = Game1.options.zoomLevel;
            this.SlotHeight    = this.GetSlotHeight();
            this.LastSlotIndex = -1; // Invalidate
        }
Example #3
0
 /*********
 ** Public methods
 *********/
 public void Init(SDVSocialPage nativePage, IReflectionHelper reflection)
 {
     this.Reflection = reflection;
     this.OnResize(nativePage);
 }
Example #4
0
 public void Init(SDVSocialPage nativePage)
 {
     OnResize(nativePage);
 }