Levvine Posted September 9, 2019 Share Posted September 9, 2019 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 More sharing options...
cdcooley Posted September 10, 2019 Share Posted September 10, 2019 Interaction with the UI is done in the core game logic. We have no access to that level of the game's code. Link to comment Share on other sites More sharing options...
5133p39 Posted September 10, 2019 Share Posted September 10, 2019 (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 September 10, 2019 by 5133p39 Link to comment Share on other sites More sharing options...
Recommended Posts