• 1:一种过滤机制的MobileMenuList


      初始化  function InitMenuObject(MobilePlayerInput PlayerInput,MobileMenuScene Scene,int ScreenWidth,int ScreenHeight)

      初始化内部内容,

      local AntInventoryListItem ListItem;    //道具ListItem

      local AntInventoryListGold ListGold;    //列表金币

      local AntInventoryItem Item;     //对应的道具

      local PlayerItemData ItemData;   //对应的金币

      local int Order,Idx;   //序号

      local array<AppStoreProductData> StoreData;

      local string s;

      local int GoldAmount;  

      上边的过程我略去了道具和金币的加载工作。

      scene.LoadItem();   //加载金币

      LastSelectedIndex=-1;

      1.遍历并且初始化道具

      ListItem=new(self) class'AntInventoryListItem';

      ListItem.Init(Item,Screenwidth,ScreenHeight);

      AddItem(ListItem);    //仅仅是添加即可  

      2.遍历并且初始化金币

      ListGold=new(self)class'AntInventoryListGold';

      

  • 相关阅读:
    华为lab-rs-v1-2.11_OSPF与ISIS互通
    jdk源码分析红黑树——插入篇
    jdk源码分析PriorityQueue
    jdk源码分析ArrayDeque
    jdk链表笔记
    jdk顺序表笔记
    SpringMVC类型转换器、属性编辑器
    SpringMVC基本使用
    spring整合hibernate
    spring aop注解配置
  • 原文地址:https://www.cnblogs.com/NEOCSL/p/3152415.html
Copyright © 2020-2023  润新知