UI Scripting

Post » Sun Aug 08, 2010 9:01 pm

I hope you will help me with my questions about the UI
Sorry for i'm noob and bad english.

I'll start with this-
In OBSE v0019 Command Documentation, UI Functions example:

	; hides the "Take All" button in the Container menu	SetMenuFloatValue "cont_background\page_layout\cont_contents\cont_button_take_all\visible" 1008 1


I tried them on Quest script and NPC script, no avail. None works.

How it doing right?
User avatar
Ernesto Salinas
 
Posts: 3399
Joined: Sat Nov 03, 2007 2:19 pm

Post » Sun Aug 08, 2010 10:11 pm

Are you calling it while the container menu (menumode 1008) is opened (you should)? What is the full script?
User avatar
Kayla Oatney
 
Posts: 3472
Joined: Sat Jan 20, 2007 9:02 pm

Post » Sun Aug 08, 2010 11:42 am

oink oink
User avatar
DeeD
 
Posts: 3439
Joined: Sat Jul 14, 2007 6:50 pm

Post » Sun Aug 08, 2010 3:43 pm

What's do you think about all this?
User avatar
Louise Lowe
 
Posts: 3262
Joined: Fri Jul 28, 2006 9:08 am

Post » Sun Aug 08, 2010 10:03 pm

What's do you think about all this?

That it would be helpful to know if your PrintC lines are written to the console. If they are not, you have a problem with the trigger of the scripts. If they are displayed, you most likely have a timing problem. Menus are updated when they get opened, so any such dynamic changes normally need to be done while in the correct menumode. You try to set the visiblity the Take All button from gamemode (where it has no effect since the menu is hidden), and from an OnActivate block, which quite surely is triggered while still in gamemode too. So what you need is a quest variable telling whether the menu should be hidden or not, and when entering MenuMode 1008, hiding the button then, if needed.
User avatar
jadie kell
 
Posts: 3497
Joined: Sat Jul 29, 2006 3:54 pm

Post » Sun Aug 08, 2010 9:20 am

It work in MenuMode block :/
User avatar
Eddie Howe
 
Posts: 3448
Joined: Sat Jun 30, 2007 6:06 am


Return to IV - Oblivion