Jump to content

[LE] [AS] how is an interface invoked with arguments?


Levvine

Recommended Posts

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?

Link to comment
Share on other sites

  • Recently Browsing   0 members

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