Jump to content

Somebody knows the #id of the button?


Recommended Posts

Hello

Context:

Oblivion/Construction Set/OBSE   .-

as you know ...In a Container Menu, the default view is the interior of the container, There is the function:      GETContainerMenuView: (returns 1 if the player is viewing his own inventory, or 0 if viewing the container or merchant's inventory), but there is no "SETContainerMenuView" ; to change that view from a script...

I´ve used the function:          ClickMenuButton "#2" 1035  ; to activate the Exit button in the repair menu, but the numbers change in every menu, I´ve found the code for the "Take all" button and even "Exit" button, but not the id of the button that change the view to the player's inventory, that one with the bag icon... I've tried several numbers in the line:

>>>> ClickMenuButton "#______" 1008  ; ...but havent found the one that I want

if somebody could give me that id/number ...and well...where to know about other buttons...  

I´ve found that maybe I could type text and something like Menus\Main\inventory_menu.xml  but I haven't found much about xml stuff and I still don't get it .

bolsa.jpg

Link to comment
Share on other sites

Ok thanks @Andalaybay,

(visited many times the CS wiki articles but) After 2 days I understood what all that meant, resume (for other newbies like me):

I wanted my script to open a container but in the player's inventory view, not the container interior (the default view). The function was just:

ClickMenuButton "#42" 1008 

 1008 = container menu,  #42= player's inventory button (the bag icon)

another elements of this particular menu:

#2 to #5 = main tabs (weapons tab, apparel tab, alchemy tab and misc tab)

#32 = "Take all" button

#33 = "Exit" button

#34 = "Haggle" button

if you want to know the #id for another element... 

1.-use a BSA extractor (bae.exe or alike) to load the compressed file "Oblivion - Misc.bsa" (that one in the Data folder), and extract the file "container_menu.xml" (or the menu you are interested in)

2.-Open  "container_menu.xml" with wordPad or another text editor

3.- search the lines that mention the icon image/button/element you are looking for, then look for the line below: <id> (#)

 

This mod I'm working on is almost finished. You will be able to check it out soon at:
https://next.nexusmods.com/profile/DxVander

 

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...