Jump to content

Recommended Posts

Posted

Hello,

 

Can someone explain to me how a menu is invoked in Skyrim with arguments?

 

I have examined the ActionScript in lockpickingmenu.swf and in the LockpickingMenu class there is a function that uses several arguments to display the player's lockpicking skill progress, as shown below:

function SetLockInfo()
   {
      this.InfoRect_mc.SkillLevelCurrent.SetText(arguments[0]);
      this.InfoRect_mc.SkillLevelNext.SetText(arguments[1]);
      this.InfoRect_mc.LevelMeterInstance.gotoAndStop("Pause");
      this.SkillMeter.SetPercent(arguments[2]);
      var _loc3_ = this.InfoRect_mc.LockLevelText;
      _loc3_.SetText("$Lock Level");
      _loc3_.SetText(_loc3_.text + ": " + arguments[3]);
      var _loc4_ = this.InfoRect_mc.NumLockpicksText;
      _loc4_.SetText("$Lockpicks Left");
      if(arguments[4] < 99)
      {
         _loc4_.SetText(_loc4_.text + ": " + arguments[4]);
      }
      else
      {
         _loc4_.SetText(_loc4_.text + ": 99+");
      }
      this.BottomBar_mc._visible = true;
   }

So the question is where does the game invoke this menu from and how does it pass arguments to ActionScript?

Posted (edited)

Have a look at SKSE UI script functions, take a look at how Sky UI or UI Extensions work - depending on what exactly you need, you may find an answer there.

Edited by 5133p39
  • Recently Browsing   0 members

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