Exemple #1
0
 /**
  * Adds an topobj to a TopMenu.
  *
  * @param topmenu       TopMenu Handle.
  * @param name          Object name (MUST be unique).
  * @param type          Object type.
  * @param handler       Handler for topobj.
  * @param parent        Parent topobj ID, or INVALID_TOPMENUOBJECT for none.
  *                      Items must have a category parent.
  *                      Categories must not have a parent.
  * @param cmdname       Command name (for access overrides).
  * @param flags         Default access flags.
  * @param info_string   Arbitrary storage (max 255 bytes).
  * @return              A new TopMenuObject ID, or INVALID_TOPMENUOBJECT on
  *                      failure.
  * @error               Invalid TopMenu Handle.
  */
 public static TopMenuObject AddToTopMenu(Handle topmenu,
                                          string name,
                                          TopMenuObjectType type,
                                          TopMenuHandler handler,
                                          TopMenuObject parent,
                                          string cmdname     = "",
                                          int flags          = 0,
                                          string info_string = "")
 {
     throw new NotImplementedException();
 }
    /// <summary> 탑메뉴에 들어갈 이름 </summary>
    public void SetTopMenuTitleName(uint commonLowDataId)
    {
        if (TopMenu == null)
        {
            string     path    = "UIObject/TopMenuObject";
            GameObject topMenu = Instantiate(ResourceMgr.LoadUI(path)) as GameObject;

            topMenu.name = "TopMenu";
            TopMenu      = topMenu.GetComponent <TopMenuObject>();
            TopMenu.Initialize(uiSystemObj.transform);
        }

        TopMenu.SetTitleName(commonLowDataId);
    }
    /// <summary>
    /// 탑메뉴 생성 or 열기
    /// </summary>
    public void OpenTopMenu(UIBasePanel basePanel)
    {
        if (TopMenu == null)
        {
            string     path    = "UIObject/TopMenuObject";
            GameObject topMenu = Instantiate(ResourceMgr.LoadUI(path)) as GameObject;

            topMenu.name = "TopMenu";
            TopMenu      = topMenu.GetComponent <TopMenuObject>();
            TopMenu.Initialize(uiSystemObj.transform);
        }

        TopMenu.ShowTopMenu(basePanel);
    }
Exemple #4
0
 /**
  * Displays a TopMenu category to a client.
  *
  * @param topmenu       TopMenu Handle.
  * @param category      Category topobj id.
  * @param client        Client index.
  * @return              True on success, false on failure.
  * @error               Invalid TopMenu Handle or client not in game.
  */
 public static bool DisplayTopMenuCategory(Handle topmenu, TopMenuObject category, int client)
 {
     throw new NotImplementedException();
 }
Exemple #5
0
 /**
  * Removes an topobj from a TopMenu.
  *
  * Plugins' topobjs are automatically removed all TopMenus when the given
  * plugin unloads or pauses.  In the case of unpausing, all items are restored.
  *
  * @param topmenu       TopMenu Handle.
  * @param topobj        TopMenuObject ID.
  * @error               Invalid TopMenu Handle.
  */
 public static void RemoveFromTopMenu(Handle topmenu, TopMenuObject topobj)
 {
     throw new NotImplementedException();
 }
Exemple #6
0
 /**
  * Retrieves the name string of a top menu item.
  *
  * @param topmenu       TopMenu Handle.
  * @param topobj        TopMenuObject ID.
  * @param buffer        Buffer to store info string.
  * @param maxlength     Maximum size of info string.
  * @return              Number of bytes written, not including the
  *                      null terminator.
  * @error               Invalid TopMenu Handle or TopMenuObject ID.
  */
 public static int GetTopMenuObjName(Handle topmenu, TopMenuObject topobj, string buffer, int maxlength)
 {
     throw new NotImplementedException();
 }
Exemple #7
0
 /**
  * Retrieves the info string of a top menu item.
  *
  * @param topmenu       TopMenu Handle.
  * @param parent        TopMenuObject ID.
  * @param buffer        Buffer to store info string.
  * @param maxlength     Maximum size of info string.
  * @return              Number of bytes written, not including the
  *                      null terminator.
  * @error               Invalid TopMenu Handle or TopMenuObject ID.
  */
 public static int GetTopMenuInfoString(Handle topmenu, TopMenuObject parent, string buffer, int maxlength)
 {
     throw new NotImplementedException();
 }
Exemple #8
0
 // Displays a TopMenu category to a client.
 //
 // @param category     Category topobj id.
 // @param client       Client index.
 // @return              True on success, false on failure.
 public bool DisplayCategory(TopMenuObject category, int client)
 {
     throw new NotImplementedException();
 }
Exemple #9
0
 // Removes an topobj from a TopMenu.
 //
 // Plugins' topobjs are automatically removed all TopMenus when the given
 // plugin unloads or pauses.  In the case of unpausing, all items are restored.
 //
 // @param topobj       TopMenuObject ID.
 public void Remove(TopMenuObject topobj)
 {
     throw new NotImplementedException();
 }
Exemple #10
0
 // Retrieves the name string of a top menu item.
 //
 // @param topobj       TopMenuObject ID.
 // @param buffer       Buffer to store info string.
 // @param maxlength    Maximum size of info string.
 // @return              Number of bytes written, not including the null terminator.
 public int GetObjName(TopMenuObject topobj, string buffer, int maxlength)
 {
     throw new NotImplementedException();
 }
Exemple #11
0
 // Retrieves the info string of a top menu item.
 //
 // @param parent       TopMenuObject ID.
 // @param buffer       Buffer to store info string.
 // @param maxlength    Maximum size of info string.
 // @return              Number of bytes written, not including the  null terminator.
 public int GetInfoString(TopMenuObject parent, string buffer, int maxlength)
 {
     throw new NotImplementedException();
 }
Exemple #12
0
 // Adds an item to a TopMenu category.
 //
 // @param name         Object name (MUST be unique).
 // @param handler      Handler for topobj.
 // @param category     The object of the parent category for the item.
 // @param cmdname      Command name (for access overrides).
 // @param flags        Default access flags.
 // @param info_string  Arbitrary storage (max 255 bytes).
 // @return              A new TopMenuObject ID, or INVALID_TOPMENUOBJECT on failure.
 public TopMenuObject AddItem(string name, TopMenuHandler handler,
                              TopMenuObject parent, string cmdname = "",
                              int flags = 0, string info_string = "")
 {
     throw new NotImplementedException();
 }